:root {
  --bg: #fbfbfd;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #007aff;
  --accent-soft: rgba(0, 122, 255, 0.08);
  --accent-glow: rgba(0, 122, 255, 0.15);
  --border: rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --content-width: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #86868b;
    --border: rgba(255, 255, 255, 0.1);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light dark; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

img { max-width: 100%; height: auto; display: block; }

.content-width {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 22px;
}

/* Top nav */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.top-nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.top-nav .brand {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.top-nav .brand strong { color: var(--text); font-weight: 600; }

.top-nav .nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.top-nav.is-scrolled .nav-center { opacity: 1; }

.top-nav .links {
  display: flex;
  gap: 20px;
  font-size: 0.8125rem;
}

.top-nav .links a { color: var(--text-secondary); }
.top-nav .links a:hover { color: var(--accent); opacity: 1; }

@media (max-width: 640px) {
  .top-nav .links { display: none; }
}

/* Hero — full width split layout */
.hero-section {
  position: relative;
  padding: 100px 22px 64px;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: radial-gradient(
    ellipse 70% 50% at 70% 20%,
    var(--accent-soft),
    transparent
  );
}

.hero-section .hero-grid {
  width: 100%;
}

.hero-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    min-height: 60vh;
  }
}

.hero-visual {
  order: -1;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-visual { order: 1; justify-content: flex-end; }
  .hero-content { order: 0; }
}

.hero-content {
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content { text-align: left; }
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .app-icon { margin: 0 0 20px; }
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-content .tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.4;
}

.hero-meta {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-meta .pricing {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  color: var(--accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .cta-row { justify-content: flex-start; }
}

.app-store-badge svg {
  display: block;
  height: 44px;
  width: auto;
}

.qr-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qr-wrap canvas, .qr-wrap img {
  border-radius: 8px;
  border: 1px solid var(--border);
}

.qr-label {
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .qr-wrap { display: flex; }
}

.btn-disabled {
  display: inline-flex;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  border: 1px solid var(--border);
}

/* Highlight strip */
.highlight-strip {
  padding: 48px 22px;
  text-align: center;
  background: var(--accent-soft);
}

.highlight-strip p {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.highlight-strip .solution {
  display: block;
  margin-top: 8px;
  color: var(--accent);
}

/* Feature rows */
.feature-rows {
  padding: 80px 0;
}

.feature-row {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 22px 80px;
  display: grid;
  gap: 40px;
  align-items: center;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-row:last-child { padding-bottom: 0; }

@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-bottom: 120px;
  }

  .feature-row--reverse .feature-row__visual { order: 2; }
  .feature-row--reverse .feature-row__text { order: 1; }
}

.feature-row__visual {
  display: flex;
  justify-content: center;
}

.feature-row__text h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feature-row__text p {
  margin-top: 12px;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Use cases — simplified prose */
.use-cases-section {
  padding: 80px 22px;
  background: var(--card);
}

.use-cases-section h2,
.gallery-section h2,
.faq-section h2,
.cross-promo-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.use-case-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.use-case-item {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.use-case-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.use-case-item .who {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.use-case-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.use-case-item p {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Screenshot gallery */
.gallery-section {
  padding: 80px 22px;
  background: var(--bg);
}

.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.screenshot-panel { display: none; }
.screenshot-panel.active { display: block; }

.gallery-main {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.gallery-main .iphone-showcase,
.gallery-main .ipad-showcase,
.gallery-main .mac-showcase {
  transition: opacity 0.2s ease;
}

.gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.thumb-btn {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.thumb-btn.active,
.thumb-btn:hover {
  opacity: 1;
  border-color: var(--accent);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FAQ */
.faq-section {
  padding: 80px 22px;
  background: var(--card);
}

.faq-list { max-width: 640px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Cross promo — horizontal scroll */
.cross-promo-section {
  padding: 64px 0;
  background: var(--bg);
}

.cross-promo-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 22px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.cross-promo-scroll::-webkit-scrollbar { display: none; }

.promo-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card);
  border-radius: var(--radius);
  color: var(--text);
  min-width: 200px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s;
}

.promo-card:hover { transform: translateY(-2px); opacity: 1; }

.promo-card img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.promo-card .name { font-weight: 600; font-size: 0.875rem; }
.promo-card .desc { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }
.promo-card .arrow { margin-left: auto; color: var(--text-secondary); font-size: 0.875rem; }

/* Footer docs */
.site-footer {
  text-align: center;
  padding: 48px 22px 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-links a:hover { color: var(--accent); opacity: 1; }

.site-footer p + p { margin-top: 8px; }

/* Waitlist */
.waitlist {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 22px;
}

.waitlist p { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 16px; }

.waitlist a {
  display: inline-flex;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 99;
  justify-content: center;
}

.sticky-cta .app-store-badge svg {
  height: 40px;
}

/* MacBook marketing shots — image already includes device */
.mac-showcase {
  width: min(100%, 680px);
  margin: 0 auto;
  filter: drop-shadow(0 28px 72px rgba(0, 0, 0, 0.14));
}

.mac-showcase img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.feature-row__visual .mac-showcase {
  width: min(100%, 560px);
}

.gallery-main .mac-showcase {
  width: min(100%, 720px);
}

/* iPhone marketing shots — image already includes device + headline */
.iphone-showcase {
  width: min(100%, 360px);
  margin: 0 auto;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.1));
}

.iphone-showcase img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.feature-row__visual .iphone-showcase {
  width: min(100%, 320px);
}

/* iPad marketing shots — image already includes device frame */
.ipad-showcase {
  width: min(100%, 560px);
  margin: 0 auto;
  filter: drop-shadow(0 24px 64px rgba(0, 0, 0, 0.12));
}

.ipad-showcase img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.feature-row__visual .ipad-showcase {
  width: min(100%, 480px);
}

.gallery-main .ipad-showcase {
  width: min(100%, 640px);
}

.hero-visual .iphone-showcase {
  width: min(100%, 320px);
}

@media (min-width: 768px) {
  .hero-visual .iphone-showcase {
    width: min(100%, 360px);
  }
}

.gallery-thumbs .thumb-btn.mac-thumb {
  width: 72px;
  height: 48px;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 72px; }
}
