/* HypeChime — Premium Modern Aesthetic */

:root {
  --bg: #07090e;
  --bg-soft: rgba(18, 24, 35, 0.6);
  --card: rgba(22, 29, 41, 0.5);
  --card-hover: rgba(28, 37, 52, 0.7);
  --line: rgba(255, 255, 255, 0.08);
  --line-highlight: rgba(212, 255, 74, 0.3);
  --text: #f3f6f9;
  --muted: #8e9bb0;
  --accent: #7fd0c6;
  --lime: #d4ff4a;
  --lime-end: #9be22e;
  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 255, 74, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(127, 208, 198, 0.05) 0%, transparent 40%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header & Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: var(--bg);
  z-index: -1;
}

.nav .brand {
  display: flex;
  align-items: center;
  text-decoration: none;   /* brand is a link to home on pages that wrap it in <a> */
  color: inherit;
}

.nav .brand .logo {
  height: 32px;
  width: auto;
  margin-right: 10px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(212, 255, 74, 0.2));
}

.nav .wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
  background: linear-gradient(90deg, var(--lime) 0%, var(--lime-end) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.badge-alpha {
  align-self: flex-start;
  margin-left: 6px;
  padding: 2px 6px;
  background: rgba(127, 208, 198, 0.12);
  border: 1px solid rgba(127, 208, 198, 0.25);
  border-radius: 6px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.nav .links a {
  color: var(--muted);
  margin-left: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav .links a:hover {
  color: var(--text);
}

/* Active page in the top nav: bold, not a link (a <span aria-current="page">). */
.nav .links .current {
  color: var(--text);
  margin-left: 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: default;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 56px 0 48px;
  position: relative;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lime);
  background: rgba(212, 255, 74, 0.08);
  border: 1px solid rgba(212, 255, 74, 0.2);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 auto 20px;
  max-width: 800px;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 0%, #b0c0d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.sub {
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 21px);
  max-width: 620px;
  margin: 0 auto 52px;
  font-weight: 400;
}

/* Phone Mockups */
.phones {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  justify-content: center;
  align-items: center;
  margin: 0 0 60px;
  position: relative;
  perspective: 1000px;
}

.phones::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(212, 255, 74, 0.15) 0%, rgba(127, 208, 198, 0.08) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.phone-wrap {
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-wrap:hover {
  transform: translateY(-8px);
}

.phone-wrap.center {
  z-index: 2;
}

.phone-wrap.center .phone {
  transform: scale(1.08);
}

.phone {
  position: relative;
  width: clamp(180px, 22vw, 230px);
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  background: #000;
  padding: 8px;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}

.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen .clock {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  height: clamp(48px, 10vw, 68px);
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.phone-wrap .label {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Call To Actions */
.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--lime) 0%, var(--lime-end) 100%);
  color: #081000;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 25px rgba(155, 226, 46, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(155, 226, 46, 0.35);
  opacity: 0.95;
}

.cta.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.cta.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-note {
  color: var(--muted);
  font-size: 14px;
  max-width: 460px;
  margin: 20px auto 0;
  line-height: 1.5;
}

/* Feature Grid */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 40px 0 60px;
}

@media (max-width: 680px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Small screens — phones, iPhones, etc. */
@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }

  .nav .links a,
  .nav .links .current {
    margin-left: 18px;
    font-size: 14px;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero .eyebrow {
    font-size: 12px;
    padding: 5px 12px;
  }

  .hero p.sub {
    margin-bottom: 36px;
  }

  .phones {
    gap: 10px;
    margin: 0 0 40px;
  }

  .phone {
    width: clamp(76px, 27vw, 130px);
    border-radius: 24px;
    padding: 6px;
  }

  .screen {
    border-radius: 18px;
  }

  .phone-wrap .label {
    margin-top: 10px;
    font-size: 11px;
  }

  .phone-wrap:hover {
    transform: none;
  }

  .cta-row {
    gap: 12px;
  }

  .cta {
    padding: 14px 28px;
    font-size: 15px;
    width: 100%;
    max-width: 320px;
  }

  .feature {
    padding: 24px;
  }

  .widget-hero {
    padding: 36px 22px;
    margin: 24px 0 44px;
  }

  .widget-hero-inner {
    gap: 24px;
  }

  .widget-hero-text h2 {
    font-size: clamp(24px, 6vw, 32px);
  }

  .alpha {
    padding: 40px 20px;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }

  .footer .links a {
    margin: 0 10px;
  }
}

@media (max-width: 380px) {
  .phone {
    width: clamp(64px, 28vw, 110px);
  }

  .screen .clock {
    height: clamp(28px, 8vw, 40px);
  }
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-highlight), transparent);
  opacity: 0.5;
}

.feature:hover {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.feature h3 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Full-Width Dedicated Widget Showcase */
.widget-hero {
  width: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(18, 26, 36, 0.9) 0%, rgba(9, 12, 17, 0.95) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  margin: 32px 0 60px;
  overflow: hidden;
}

.widget-hero-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  flex-wrap: wrap;
}

.widget-hero-text {
  flex: 1 1 320px;
  min-width: 0;
}

/* Phone stage — centered, no 3D transform */
.widget-phone-stage {
  display: flex;
  justify-content: center;
  flex: 1 1 280px;
  min-width: 0;
}

.widget-phone-stage img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

/* iPhone hardware frame */
.iphone-device {
  position: relative;
  width: clamp(280px, 36vw, 360px);
  aspect-ratio: 9 / 19.5;
  /* Titanium/aluminum edge — multi-stop gradient for metallic shimmer */
  background: linear-gradient(
    155deg,
    #6e6e73 0%,
    #3a3a3c 22%,
    #1c1c1e 50%,
    #3a3a3c 78%,
    #6e6e73 100%
  );
  border-radius: 48px;
  padding: 13px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.20),
    0 0 0 2.5px rgba(0,0,0,0.7),
    0 70px 140px rgba(0,0,0,0.95),
    0 30px 60px rgba(0,0,0,0.75),
    inset 0 0 0 0.5px rgba(255,255,255,0.06);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s;
}

.iphone-device:hover {
  transform: translateY(-12px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.26),
    0 0 0 2.5px rgba(0,0,0,0.7),
    0 90px 180px rgba(0,0,0,0.95),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 0 0 0.5px rgba(255,255,255,0.06);
}

/* Screen bezel — screenshot has the Dynamic Island baked in */
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: #000;
}

.iphone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Subtle screen glare for glass realism */
.iphone-glare {
  position: absolute;
  inset: 0;
  border-radius: 35px;
  background: linear-gradient(
    130deg,
    rgba(255,255,255,0.07) 0%,
    rgba(255,255,255,0.02) 28%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 5;
}

/* Physical side buttons */
.iphone-btn {
  position: absolute;
  z-index: 10;
  border-radius: 2px;
}

/* Silent switch (short, leftmost) */
.iphone-btn.silent {
  left: -3.5px;
  top: 18%;
  width: 3.5px;
  height: 3.2%;
  background: linear-gradient(to right, #2e2e30, #4a4a4f, #2e2e30);
  border-radius: 2px 0 0 2px;
}

/* Volume up */
.iphone-btn.vol-up {
  left: -3.5px;
  top: 24.5%;
  width: 3.5px;
  height: 7.8%;
  background: linear-gradient(to right, #2e2e30, #4a4a4f, #2e2e30);
  border-radius: 2px 0 0 2px;
}

/* Volume down */
.iphone-btn.vol-down {
  left: -3.5px;
  top: 35%;
  width: 3.5px;
  height: 7.8%;
  background: linear-gradient(to right, #2e2e30, #4a4a4f, #2e2e30);
  border-radius: 2px 0 0 2px;
}

/* Power / side button */
.iphone-btn.power {
  right: -3.5px;
  top: 28%;
  width: 3.5px;
  height: 13%;
  background: linear-gradient(to left, #2e2e30, #4a4a4f, #2e2e30);
  border-radius: 0 2px 2px 0;
}

/* Alpha Footer Signup Banner */
.alpha {
  text-align: center;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 0%, rgba(212, 255, 74, 0.05) 0%, rgba(14, 20, 29, 0.6) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 28px;
  margin: 40px 0;
}

.alpha h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.alpha > p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 16px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer .links a {
  color: var(--muted);
  margin-left: 20px;
}

.footer .links a:hover {
  color: var(--text);
}

/* ---------- Lifestyle showcase ("spaces") ---------- */
.spaces {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 36px 0 28px;
}

.space {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.space.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.space.reverse .space-media {
  order: 2;
}

.space-media {
  margin: 0;
  line-height: 0;
}

.space-media img {
  display: block;
  width: 100%;
  height: auto;            /* the HTML width/height attributes must not override the aspect ratio */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 50%;
}

.space.tall .space-media img {
  aspect-ratio: 4 / 5;
  object-position: 50% 48%;
}

.space-text {
  padding: 36px 40px;
}

.space-text .eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--lime);
  background: rgba(212, 255, 74, 0.08);
  border: 1px solid rgba(212, 255, 74, 0.2);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.space-text h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.15;
  margin: 10px 0 14px;
  letter-spacing: -0.01em;
}

.space-text p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.spaces-note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
}

@media (max-width: 760px) {
  .space,
  .space.reverse {
    grid-template-columns: 1fr;
  }

  .space.reverse .space-media {
    order: 0;
  }

  .space-text {
    padding: 24px 22px 28px;
  }
}
