:root {
  --orange: #f07e00;
  --blue: #0070ed;
  --eye-blue: #1c70f2;
  --eye-cyan: #1ac9fb;
  --icon-accent: var(--eye-blue);
  --pro-gold: #fa9e21;
  --bg: #0b0d12;
  --bg-elevated: #12151d;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --text-muted: #9aa3b5;
  --text-dim: #6b7385;
  --link: #6ecfff;
  --link-hover: #9ee8ff;
  --gradient: linear-gradient(135deg, var(--orange), var(--blue));
  --gradient-hero: linear-gradient(
    108deg,
    #ff8f0a 0%,
    #ff6b2c 22%,
    #ff3d71 44%,
    #1ac9fb 68%,
    #1c70f2 86%,
    #0066e8 100%
  );
  --gradient-subtle: linear-gradient(135deg, rgba(240, 126, 0, 0.15), rgba(0, 112, 237, 0.15));
  --radius: 16px;
  --radius-sm: 10px;
  --radius-card: 12px;
  --max-width: 1120px;
  --header-height: 72px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

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

.brand,
.app-store-link,
.btn,
.back-link {
  text-decoration: none;
}

.brand:hover,
.app-store-link:hover,
.btn:hover {
  text-decoration: none;
}

/* Mac App Store badge (ApolloOne-style) */

.app-store-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.app-store-link:hover {
  text-decoration: none;
  opacity: 0.8;
}

.app-store-link:focus-visible {
  outline: 2px solid var(--eye-cyan);
  outline-offset: 4px;
  border-radius: 8px;
}

.app-store-badge {
  display: block;
  height: 40px;
  width: auto;
}

.cta-group {
  display: flex;
  justify-content: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

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

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

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.hero-cta .app-store-link {
  align-self: flex-start;
}

.hero-cta .app-store-badge,
.closing-cta .app-store-badge {
  height: 40px;
}

/* Hero */

.hero {
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 44, 0.16), transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(26, 201, 251, 0.14), transparent 50%),
    radial-gradient(ellipse at 20% 30%, rgba(255, 61, 113, 0.08), transparent 45%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 .gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.hero-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Mac window frame */

.mac-window {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.mac-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mac-dot.red { background: #ff5f57; }
.mac-dot.yellow { background: #febc2e; }
.mac-dot.green { background: #28c840; }

.mac-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-right: 52px;
}

.screenshot-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--gradient-subtle);
  padding: 32px;
  text-align: center;
}

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-placeholder .placeholder-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.screenshot-placeholder .placeholder-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Sections */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Feature layout */

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-split.reverse .feature-visual {
  order: 2;
}

.feature-split.reverse .feature-copy {
  order: 1;
}

/* Stacked feature — text above, wide visual below (ApolloOne-style) */

.feature-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.feature-stacked-text {
  max-width: 720px;
  text-align: center;
}

.feature-stacked-text h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-stacked-text p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-stacked-text p + p {
  margin-top: 16px;
}

.feature-stacked-text strong {
  color: var(--text);
  font-weight: 600;
}

.feature-stacked-text kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 0.88em;
  color: var(--text);
}

.feature-stacked-visual {
  width: 100%;
  max-width: 960px;
}

.mac-window-wide {
  width: 100%;
}

.feature-copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-copy .subhead {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.feature-cards {
  display: grid;
  gap: 12px;
}

.feature-card {
  padding: 20px 22px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

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

.feature-card kbd,
.shortcut-key {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 0.82em;
  color: var(--text);
}

.key-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(28, 112, 242, 0.12);
  border: 1px solid rgba(28, 112, 242, 0.25);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.key-hint .option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--eye-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Picks grid */

.picks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Shortcuts */

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.shortcuts-column h3 {
  margin: 0 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

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

.shortcut-action {
  color: var(--text-muted);
}

.shortcut-keys {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

/* Audience */

.audience-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.audience-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.audience-item::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-subtle);
  color: var(--icon-accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.audience-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Formats */

.formats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.format-group {
  padding: 20px 22px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.format-group h3 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.format-group p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.format-group-wide {
  grid-column: 1 / -1;
}

/* Key features */

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.highlight-item {
  padding: 20px 22px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.highlight-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.highlight-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--icon-accent);
}

.highlight-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.highlight-item kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 0.85em;
  color: var(--text);
}

/* Pricing */

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.pricing-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
}

.pricing-card.featured {
  border-color: rgba(250, 158, 33, 0.4);
  background: linear-gradient(180deg, rgba(250, 158, 33, 0.08), var(--bg-card));
}

.pricing-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(250, 158, 33, 0.15);
  color: var(--pro-gold);
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.pricing-price {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.pro-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pro-feature {
  padding: 20px 22px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.pro-feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.pro-feature .highlight-icon {
  color: var(--pro-gold);
}

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

.trial-banner {
  text-align: center;
  margin-bottom: 40px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  background: rgba(250, 158, 33, 0.1);
  border: 1px solid rgba(250, 158, 33, 0.25);
  color: var(--pro-gold);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Philosophy */

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.philosophy-card {
  padding: 24px 22px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.philosophy-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

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

/* Closing CTA */

.closing-cta {
  text-align: center;
  padding: 56px 0;
}

.closing-cta h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.closing-cta p {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Footer */

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-sep {
  margin: 0 0.4em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

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

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

/* Legal pages */

.legal-page {
  padding: 48px 0 96px;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.legal-page .updated {
  margin: 0 0 32px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.legal-page p {
  color: var(--text-muted);
  max-width: 65ch;
  line-height: 1.65;
}

.legal-page h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
  color: var(--text-muted);
  max-width: 65ch;
  line-height: 1.65;
}

.legal-page li + li {
  margin-top: 8px;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* App Store "available soon" dialog */

body.store-soon-open {
  overflow: hidden;
}

.store-soon {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.store-soon[hidden] {
  display: none;
}

.store-soon-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.store-soon-panel {
  position: relative;
  width: min(100%, 380px);
  padding: 28px 28px 24px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.store-soon-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.store-soon-panel p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.store-soon-panel .btn {
  min-width: 96px;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .feature-split,
  .shortcuts-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-split.reverse .feature-visual,
  .feature-split.reverse .feature-copy {
    order: unset;
  }

  .pricing-cards,
  .pro-features,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .picks-grid,
  .audience-list,
  .formats-grid,
  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .format-group-wide {
    grid-column: auto;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 32px, var(--max-width));
  }

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

  .section {
    padding: 44px 0;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fb;
    --bg-elevated: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.03);
    --border: rgba(0, 0, 0, 0.08);
    --text: #12151d;
    --text-muted: #4a5568;
    --text-dim: #6b7280;
    --link: #005fcc;
    --link-hover: #004799;
    --icon-accent: var(--blue);
  }

  .site-header {
    background: rgba(247, 248, 251, 0.9);
  }

  .feature-card kbd,
  .shortcut-key,
  .feature-stacked-text kbd,
  .highlight-item kbd {
    background: rgba(0, 0, 0, 0.05);
  }
}
