/* Awakanize landing : dark productivity aesthetic */

:root {
  --bg: #0c0f14;
  --bg-elevated: #12161e;
  --bg-card: #161b26;
  --bg-card-hover: #1a2030;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8ecf4;
  --text-muted: #8b95a8;
  --text-dim: #5c6678;
  /* Brand : logo, CTAs, active state (matches app primary teal) */
  --accent: #4ecdc4;
  --accent-dark: #3dbdb5;
  --accent-light: #6ed9d2;
  --accent-soft: rgba(78, 205, 196, 0.15);
  --accent-glow: rgba(78, 205, 196, 0.14);
  --accent-secondary: #4ecdc4;
  /* Keep-awake semantic only : not for buttons or logo */
  --warm: #e8784a;
  --warm-soft: rgba(232, 120, 74, 0.15);
  --warm-border: rgba(232, 120, 74, 0.35);
  --success: #4ecdc4;
  --mockup-traffic-green: #28c840;
  --inactive: #6b7a94;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --container: min(1120px, 100% - 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-distance: 28px;
  --reveal-duration: 0.85s;
  --stagger-step: 0.11s;
  --btn-row-max: 26rem;
  --btn-touch-min-height: 2.875rem;
  /* Vertical rhythm between page sections */
  --space-section-y: 6rem;
  --space-section-header: 3.5rem;
  --space-hero-top: 4rem;
  --space-hero-bottom: 6rem;
  --space-section-cta: 2.5rem;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

body.nav-open {
  overflow: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  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");
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12, 15, 20, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(12, 15, 20, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: color-mix(in srgb, var(--accent) 22%, var(--border-strong));
  box-shadow:
    0 6px 32px rgba(0, 0, 0, 0.45),
    0 1px 0 color-mix(in srgb, var(--accent) 8%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: block;
  height: 40px;
  width: 40px;
  max-height: 40px;
  max-width: min(40px, 12vw);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.logo-wordmark {
  white-space: nowrap;
  line-height: 1;
}

.logo-mark--footer {
  height: 36px;
  width: 36px;
  max-height: 36px;
  max-width: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.nav-cta {
  color: var(--bg) !important;
  background: var(--accent) !important;
  margin-left: 0.5rem;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--accent-light) !important;
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Typography helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 50%, transparent);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 40%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--success) 0%, transparent); }
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 55%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* background-clip:text paints a tight box; negative h1 letter-spacing extends glyphs past it */
  padding-right: 0.06em;
  margin-right: -0.06em;
}

.section-header {
  width: 100%;
  margin-bottom: var(--space-section-header);
}

.section-header h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 2px 10px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

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

.btn-icon {
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + var(--space-hero-top)) 0 var(--space-hero-bottom);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, color-mix(in srgb, var(--accent) 5%, transparent) 0%, transparent 50%),
    var(--bg);
}

.hero-mesh {
  position: absolute;
  inset: -22% -8%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.78;
  background:
    radial-gradient(ellipse 52% 42% at 85% 12%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 68%),
    radial-gradient(ellipse 48% 38% at 12% 52%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%),
    radial-gradient(ellipse 42% 32% at 58% 88%, color-mix(in srgb, var(--accent-dark) 16%, transparent), transparent 58%);
  filter: blur(42px);
  transform: translateZ(0);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-stats strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.glow-orb-1 {
  width: 200px;
  height: 200px;
  background: var(--accent-glow);
  top: -20px;
  right: -20px;
  opacity: 0.5;
}

.glow-orb-2 {
  width: 150px;
  height: 150px;
  background: color-mix(in srgb, var(--accent-secondary) 25%, transparent);
  bottom: 0;
  left: -30px;
}

/* Mockup windows */
.mockup-window {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 80px color-mix(in srgb, var(--accent) 8%, transparent);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.mockup-hero {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot-red { background: #ff5f57; }
.mockup-dot-yellow { background: #febc2e; }
.mockup-dot-green { background: var(--mockup-traffic-green); }

.mockup-title {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  font-family: var(--mono);
  color: var(--text-dim);
}

.mockup-body {
  padding: 1rem;
}

/* Dashboard mockup */
.mockup-dashboard {
  display: flex;
  gap: 0.75rem;
  min-height: 280px;
}

.mockup-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 36px;
  flex-shrink: 0;
}

.mockup-nav-item {
  width: 100%;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.mockup-nav-item.active {
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
}

.mockup-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  font-family: var(--mono);
}

.status-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.metric-card {
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.metric-label {
  display: block;
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.metric-value {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--mono);
  margin-bottom: 0.4rem;
}

.metric-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.metric-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.metric-bar-muted span { background: var(--inactive); }
.metric-bar-warm span { background: var(--warm); }

.app-usage-panel {
  flex: 1;
  padding: 0.65rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.panel-title {
  display: block;
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  font-size: 0.72rem;
  border-bottom: 1px solid var(--border);
}

.app-row:last-child { border-bottom: none; }

.app-name { color: var(--text-muted); }
.app-time { font-family: var(--mono); color: var(--text); }
.always-active { color: var(--accent); }

/* Sections : alternate bands after hero (odd: elevated, even: base) */
.section {
  padding-block: var(--space-section-y);
}

main > .section:nth-of-type(odd) {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

main > .section:nth-of-type(even) {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}

.feature-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border-strong));
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.42),
    0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent),
    0 0 64px color-mix(in srgb, var(--accent) 18%, transparent);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  grid-column: 1;
  grid-row: 1;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-card h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.feature-card p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.also-included {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.also-included h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.also-included p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.also-included ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.also-included li + li {
  margin-top: 0.4rem;
}

.hero-visual-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

/* Preview */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.preview-card {
  margin: 0;
  transition: transform 0.35s var(--ease);
}

.preview-card:hover {
  transform: translateY(-4px);
}

.preview-card:hover .mockup-window {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 28px 72px rgba(0, 0, 0, 0.5),
    0 0 90px color-mix(in srgb, var(--accent) 12%, transparent);
}

.preview-card figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.mockup-compact .mockup-body {
  min-height: 200px;
}

/* Sessions mockup */
.mockup-sessions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.session-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.65rem;
  font-size: 0.72rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.session-row-active {
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-soft);
}

.session-date { color: var(--text-dim); font-family: var(--mono); }
.session-name { color: var(--text); font-weight: 500; }
.session-duration { color: var(--text-muted); font-family: var(--mono); }

/* Settings mockup */
.mockup-settings {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.setting-row:last-child { border-bottom: none; }

.setting-value {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.68rem;
}

.toggle {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform 0.2s, background 0.2s;
}

.toggle.on {
  background: var(--accent-soft);
}

.toggle.on::after {
  transform: translateX(14px);
  background: var(--accent);
}

.slider-mock {
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.slider-mock span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* Status mockup */
.mockup-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 1rem !important;
}

.status-ring {
  position: relative;
  width: 100px;
  height: 100px;
}

.status-ring svg {
  width: 100%;
  height: 100%;
}

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

.status-label {
  font-size: 0.6rem;
  color: var(--warm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-timer {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--mono);
}

.status-legend {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.status-legend span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-active { background: var(--accent); }
.dot-inactive { background: var(--inactive); }
.dot-warm { background: var(--warm); }

/* Privacy */
.privacy-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 50%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.privacy-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.privacy-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.privacy-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.privacy-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success);
}

.privacy-list strong {
  color: var(--text);
}

.privacy-list code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-secondary);
  background: color-mix(in srgb, var(--accent-secondary) 8%, transparent);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.shield-card {
  padding: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.shield-icon {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.shield-label {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.shield-path {
  margin: 0.25rem 0 1.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.shield-code {
  text-align: left;
  padding: 1rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.8;
}

.code-line { display: block; }
.code-kw { color: var(--accent-secondary); }
.code-comment { color: var(--text-dim); }

/* About : full container width; readable measure via line-height, not a narrow centered column */
.about-definition {
  max-width: none;
  text-align: left;
}

.about .section-header {
  margin-bottom: 0;
}

.about-definition + .about-definition {
  margin-top: 1.25rem;
}

.about-definition strong {
  color: var(--text);
}

.answer-first {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: left;
}

.answer-first strong {
  color: var(--text);
}

/* In-page section links in body copy (overrides default / :visited purple) */
a.section-link:link,
a.section-link:visited {
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

a.section-link:hover,
a.section-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Pro section: 3 tiles in one row on desktop, or stacked (never 2 + 1) */
.benefits-grid.pro-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.benefit-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border-strong));
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent),
    0 0 60px color-mix(in srgb, var(--accent) 16%, transparent);
}

.benefit-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.benefit-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.benefit-card-accent {
  border-color: color-mix(in srgb, var(--warm) 35%, var(--border));
  background: color-mix(in srgb, var(--warm) 6%, var(--bg-card));
}

.benefit-card-accent strong {
  color: var(--text);
}

/* Keep-awake Pro: feature checklist (matches in-app pitch) */
.pro-features-panel {
  margin-bottom: 2.5rem;
  padding: 2rem 1.75rem;
  background: color-mix(in srgb, var(--warm) 6%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--warm) 35%, var(--border));
  border-radius: var(--radius-lg);
}

.pro-features-heading {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.pro-features-lead {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 42rem;
}

.pro-features-lead strong {
  color: var(--text);
  font-weight: 600;
}

.pro-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 2.25rem;
}

.pro-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pro-feature-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  color: var(--bg);
  background: var(--accent);
}

.pro-feature-title {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: -0.01em;
}

.pro-feature-detail {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.trust-chips-center {
  justify-content: center;
  margin: 1.25rem 0 1.75rem;
}

.trust-chips li {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
}

.trust-chips a {
  color: inherit;
  text-decoration: none;
}

.trust-chips a:hover,
.trust-chips a:focus-visible {
  color: var(--accent-secondary);
}

/* How it works */
.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.step-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent),
    0 0 40px color-mix(in srgb, var(--accent) 8%, transparent);
}

.step-card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.section-cta {
  margin: var(--space-section-cta) 0 0;
  text-align: center;
}

.privacy-cta {
  margin: 1.75rem 0 0;
}

/* FAQ */
.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Download */
.download-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.download-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  margin: 1.5rem 0 0.75rem;
}

.download-btn {
  margin-top: 0;
}

.download-os-hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.download-btn-unavailable {
  opacity: 0.72;
  cursor: not-allowed;
}

.download-btn-unavailable.btn-primary {
  box-shadow: none;
}

.download-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.download-meta a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.download-meta a:hover,
.download-meta a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

.whats-new {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.whats-new h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.whats-new ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.whats-new li + li {
  margin-top: 0.35rem;
}

.download-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.install-platform {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.install-platform.is-recommended {
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.install-platform h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.download-steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-steps li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
}

.download-steps code {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
}

/* Footer : contrasts with last section band (download is even → base) */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.logo-footer {
  justify-content: center;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 100%;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 0.5rem 0;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent);
  outline: none;
}

.footer-copy,
.footer-domain,
.footer-contact {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-contact {
  margin-top: 0.35rem;
}

.footer-contact a,
.footer-domain a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-domain a:hover,
.footer-domain a:focus-visible {
  color: var(--accent);
  outline: none;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition:
    opacity var(--reveal-duration) var(--ease),
    transform var(--reveal-duration) var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition:
    opacity var(--reveal-duration) var(--ease),
    transform var(--reveal-duration) var(--ease);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: calc(var(--stagger-step) * 0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: calc(var(--stagger-step) * 1); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: calc(var(--stagger-step) * 2); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: calc(var(--stagger-step) * 3); }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: calc(var(--stagger-step) * 4); }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: calc(var(--stagger-step) * 5); }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: calc(var(--stagger-step) * 6); }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: calc(var(--stagger-step) * 7); }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: calc(var(--stagger-step) * 8); }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  :root {
    --space-section-y: 5rem;
    --space-section-header: 2.75rem;
    --space-hero-top: 3rem;
    --space-hero-bottom: 5rem;
    --space-section-cta: 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    order: 1;
  }

  .hero-content .trust-chips,
  .hero-content .hero-stats {
    justify-content: center;
  }

  .hero-content .hero-stats li {
    text-align: center;
  }

  .hero-visual {
    order: 2;
    max-width: 480px;
    margin-inline: auto;
  }

  .features-grid,
  .preview-grid,
  .benefits-grid,
  .benefits-grid.pro-tiles,
  .pro-features-list {
    grid-template-columns: 1fr;
  }

  .pro-features-panel {
    padding: 1.5rem 1.25rem;
  }

  .privacy-panel,
  .download-panel {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .privacy-visual {
    order: -1;
  }

  /* Paired CTAs: equal width, two per row on tablet */
  .hero-actions,
  .download-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    max-width: var(--btn-row-max);
  }

  .hero-actions .btn,
  .download-actions .btn {
    width: 100%;
    min-height: var(--btn-touch-min-height);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.25;
  }

  .download-actions .btn-lg {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .section-cta,
  .privacy-cta {
    display: flex;
    justify-content: center;
  }

  .section-cta .btn,
  .privacy-cta .btn {
    width: 100%;
    max-width: var(--btn-row-max);
    min-height: var(--btn-touch-min-height);
  }
}

@media (max-width: 720px) {
  :root {
    --space-section-y: 3.75rem;
    --space-section-header: 2rem;
    --space-hero-top: 2.25rem;
    --space-hero-bottom: 3.75rem;
    --space-section-cta: 1.75rem;
    --container: min(1120px, 100% - 2rem);
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 202;
  }

  /* Solid header + elevated stack while menu covers the page */
  body.nav-open .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 200;
    border-bottom-color: var(--border);
  }

  body.nav-open .site-header .logo {
    position: relative;
    z-index: 202;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 201;
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-h) + 1rem) 1rem 1.5rem;
    background: var(--bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-8%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.45s var(--ease),
      opacity 0.4s var(--ease),
      visibility 0.4s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.4s var(--ease),
      transform 0.4s var(--ease);
  }

  .nav-links.is-open li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.is-open li:nth-child(1) { transition-delay: 0.04s; }
  .nav-links.is-open li:nth-child(2) { transition-delay: 0.08s; }
  .nav-links.is-open li:nth-child(3) { transition-delay: 0.12s; }
  .nav-links.is-open li:nth-child(4) { transition-delay: 0.16s; }
  .nav-links.is-open li:nth-child(5) { transition-delay: 0.2s; }
  .nav-links.is-open li:nth-child(6) { transition-delay: 0.24s; }
  .nav-links.is-open li:nth-child(7) { transition-delay: 0.28s; }

  .nav-links a {
    padding: 0.85rem 1rem;
  }

  .nav-cta {
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--btn-touch-min-height);
    padding: 0.85rem 1rem !important;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-actions,
  .download-actions {
    grid-template-columns: 1fr;
    max-width: min(100%, var(--btn-row-max));
  }

  .hero-content .hero-actions {
    max-width: 100%;
  }

  .download-actions {
    margin-inline: auto;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 2rem;
  }

  .about .section-header {
    margin-bottom: 1.25rem;
  }

  .privacy-panel,
  .download-panel {
    gap: 2rem;
  }

  .site-footer {
    padding-block: var(--space-section-y);
  }

  .logo {
    gap: 0.45rem;
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
  }
}
