:root {
  --bg: #0f1115;
  --card: #171a20;
  --muted: #1e2229;
  --text: #ffffff;
  --secondary: #a0a6b2;
  --border: #2a2e38;
  --success: #34c759;
  --warning: #ff9f0a;
  --danger: #ff453a;
  --accent: #6ee7b7;
  --glow: rgba(52, 199, 89, 0.18);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 16px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 100;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px var(--glow));
}

@media (min-width: 600px) {
  .logo {
    font-size: 1.15rem;
  }
}

.badge {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--secondary);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0 4rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding: 5rem 0 6rem;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--success);
}

.hero-hook {
  margin: 0 0 1.5rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-hook-line {
  display: block;
}

.hero-hook .time {
  font-weight: 800;
}

.time--late {
  color: var(--warning);
}

.time--early {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 34ch;
  font-size: 1.125rem;
  color: var(--secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--success);
  color: #041208;
}

.btn-primary:hover {
  background: #3dd868;
}

.btn-ghost {
  border: 1px solid var(--border);
  background: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--secondary);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  --delay: 0s;
}

.phone-device {
  position: relative;
  z-index: 2;
  transform: rotateY(-14deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.phone-device:hover {
  transform: rotateY(-8deg) rotateX(2deg) translateY(-4px);
}

.phone-frame {
  position: relative;
  width: min(272px, 78vw);
  padding: 10px;
  border-radius: 44px;
  background:
    linear-gradient(
      155deg,
      #4a4f5c 0%,
      #2e323c 18%,
      #1a1d24 42%,
      #0e1014 68%,
      #252830 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    inset 2px 0 4px rgba(255, 255, 255, 0.04),
    inset -2px 0 4px rgba(0, 0, 0, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 40px 90px rgba(0, 0, 0, 0.35);
}

.phone-frame::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 41px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.phone-btn {
  position: absolute;
  border-radius: 2px;
  background: linear-gradient(90deg, #3a3f4a, #1e2128 45%, #2c3039);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    1px 0 2px rgba(0, 0, 0, 0.4);
}

.phone-btn-power {
  right: -3px;
  top: 28%;
  width: 3px;
  height: 52px;
  border-radius: 0 2px 2px 0;
}

.phone-btn-vol-up {
  left: -3px;
  top: 22%;
  width: 3px;
  height: 32px;
  border-radius: 2px 0 0 2px;
}

.phone-btn-vol-down {
  left: -3px;
  top: 32%;
  width: 3px;
  height: 32px;
  border-radius: 2px 0 0 2px;
}

.phone-bezel {
  padding: 2px;
  border-radius: 36px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  border-radius: 34px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}

.phone-glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 22%,
    transparent 42%,
    transparent 100%
  );
}

.phone-status-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 20px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.phone-time {
  justify-self: start;
}

.phone-island {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 96px;
  height: 28px;
  padding-right: 10px;
  border-radius: 20px;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.phone-island-cam {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a3a5c, #0a1520 55%, #000 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 4px rgba(40, 80, 140, 0.35);
}

.phone-status-icons {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
}

.phone-status-icons svg {
  display: block;
}

.icon-signal {
  width: 16px;
  height: 11px;
}

.icon-wifi {
  width: 14px;
  height: 11px;
}

.icon-battery {
  width: 22px;
  height: 11px;
}

.phone-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1.25rem 1rem;
  text-align: center;
}

.phone-home-indicator {
  position: relative;
  z-index: 2;
  width: 108px;
  height: 4px;
  margin: 10px auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.phone-shadow {
  position: absolute;
  bottom: -18px;
  left: 12%;
  width: 76%;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
  transform: rotateX(80deg);
  filter: blur(8px);
  z-index: 1;
}

@media (max-width: 600px) {
  .phone-device {
    transform: rotateY(-6deg) rotateX(2deg) scale(0.92);
  }

  .phone-screen {
    min-height: 480px;
  }
}

.usage-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
}

.usage-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: var(--muted);
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: var(--warning);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 0;
  animation: fill-ring 2s ease-out forwards;
}

@keyframes fill-ring {
  from {
    stroke-dashoffset: 327;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.ring-caption {
  font-size: 0.65rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phone-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.phone-body {
  margin: 0.5rem 0 1rem;
  font-size: 0.85rem;
  color: var(--secondary);
}

.phone-chips {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.phone-chips span {
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--muted);
  border: 1px solid var(--border);
  color: var(--secondary);
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}

.orbit-a {
  width: 360px;
  height: 360px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 24s linear infinite;
}

.orbit-b {
  width: 460px;
  height: 460px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-style: dashed;
  opacity: 0.4;
  animation: spin 36s linear infinite reverse;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.problem-solution {
  margin-bottom: 5rem;
}

.ps-problem h2,
.ps-solution h2 {
  max-width: 20ch;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

.eyebrow--problem {
  color: var(--warning);
}

.ps-cards {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .ps-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.ps-cards article {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--warning) 22%, var(--border));
}

.ps-cards strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.ps-cards p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--secondary);
}

.ps-bridge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
}

.ps-bridge-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.ps-bridge-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  white-space: nowrap;
}

.ps-solution .step {
  border-color: color-mix(in srgb, var(--success) 22%, var(--border));
}

.ps-solution .steps {
  margin-top: 2rem;
}

.section {
  margin-bottom: 5rem;
}

.section-head {
  max-width: 28ch;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.section-head h2 em {
  font-style: italic;
  color: var(--secondary);
}

.accent {
  color: var(--success);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.25s;
}

.step:hover {
  border-color: color-mix(in srgb, var(--success) 35%, var(--border));
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--success);
  opacity: 0.7;
}

.step h3 {
  font-size: 1.15rem;
  margin: 0;
}

.step-detail {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--secondary);
}

.cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--secondary) 40%, var(--border));
}

.card-featured {
  border-color: color-mix(in srgb, var(--success) 45%, var(--border));
  box-shadow: 0 0 40px var(--glow);
}

.card-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, transparent);
  border-radius: 999px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--secondary);
}

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.card li {
  font-size: 0.85rem;
  color: var(--secondary);
  padding-left: 1rem;
  position: relative;
}

.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

.insight-box {
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, var(--muted), var(--card));
  border: 1px solid var(--border);
}

blockquote {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

blockquote strong {
  color: var(--accent);
  font-weight: 700;
}

.insight-meta {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 600px) {
  .insight-meta {
    grid-template-columns: auto 1fr;
  }
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  padding: 0 0.5rem;
}

.mini-chart span {
  width: 14px;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(to top, var(--success), var(--accent));
  opacity: 0.85;
  animation: bar-grow 1s ease-out backwards;
}

.mini-chart span:nth-child(1) { animation-delay: 0.1s; }
.mini-chart span:nth-child(2) { animation-delay: 0.15s; }
.mini-chart span:nth-child(3) { animation-delay: 0.2s; }
.mini-chart span:nth-child(4) { animation-delay: 0.25s; }
.mini-chart span:nth-child(5) { animation-delay: 0.3s; }
.mini-chart span:nth-child(6) { animation-delay: 0.35s; }
.mini-chart span:nth-child(7) { animation-delay: 0.4s; }

@keyframes bar-grow {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.insight-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.insight-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--secondary);
}

.cta {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(ellipse at top, var(--glow), transparent 60%),
    var(--card);
  border: 1px solid var(--border);
}

.cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.cta p {
  margin: 0 0 1.75rem;
  color: var(--secondary);
  max-width: 40ch;
  margin-inline: auto;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--success);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 0.85rem 0 0;
  color: var(--secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.faq-item a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--secondary);
  border-top: 1px solid var(--border);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

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

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
}

.footer-domain {
  color: var(--accent);
}

.footer-domain:hover {
  text-decoration: underline;
}

.cta a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ring-progress,
  .orbit-a,
  .orbit-b,
  .mini-chart span,
  .phone-device {
    animation: none;
    transform: none;
  }

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