/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary:    #ffffff;
  --bg-secondary:  #f5f5f7;
  --bg-dark:       #1d1d1f;
  --text-primary:  #1d1d1f;
  --text-secondary:#6e6e73;
  --text-on-dark:  #f5f5f7;
  --accent:        #0071e3;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
}

.text-center { text-align: center; }

/* ── Navigation ────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  white-space: nowrap;
}

/* Scrolled: collapse to centered pill */
#nav.nav-scrolled {
  top: 16px;
  left: 50%;
  right: auto;
  width: auto;
  padding: 0;
  transform: translateX(-50%);
}

#nav.nav-scrolled .nav-inner {
  justify-content: initial;
  gap: 8px;
  padding: 8px 8px 8px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 980px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.nav-logo {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.3px;
}

#nav.nav-scrolled .nav-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

#nav:not(.nav-scrolled) .btn-nav {
  background: none;
  color: var(--text-secondary);
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  border-radius: 0;
}

#nav:not(.nav-scrolled) .btn-nav:hover {
  opacity: 1;
  color: var(--text-primary);
}


/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 980px;
  font-family: var(--font);
  font-size: 17px;
  transition: transform 0.1s, opacity 0.15s;
  cursor: pointer;
}

.btn:active { transform: scale(0.98); }

.btn-nav {
  font-size: 13px;
  padding: 6px 16px;
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
}

.btn-nav:hover { opacity: 0.85; }

.btn-primary {
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
}

.btn-primary:hover { opacity: 0.85; }

.btn-white {
  padding: 14px 28px;
  background: #fff;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 400;
}

.btn-white:hover { opacity: 0.88; }

.btn-link {
  font-size: 19px;
  color: var(--accent);
  text-decoration: none;
  padding: 0;
  border-radius: 0;
  display: inline-block;
  margin-top: 8px;
}

.btn-link:hover { text-decoration: underline; }

/* ── Sections ────────────────────────────────────────────────────── */
.hero {
  background: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 48px;
}

.section-light {
  background: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.section-gray {
  background: var(--bg-secondary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.section-dark {
  background: var(--bg-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.cta-section { padding: 80px 0; }

/* ── Typography ─────────────────────────────────────────────────── */
.hero-headline {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 28px;
}

.hero-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  margin-bottom: 28px;
}

.hero-key-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  font-size: 13px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}

.hero-caption-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-left: 4px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-headline {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin-bottom: 56px;
}

.section-headline-dark {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.3px;
  color: var(--text-on-dark);
  margin-bottom: 72px;
}

.cta-headline {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.4px;
  color: #000;
  margin-bottom: 40px;
}

.subheadline {
  font-size: 21px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 32px;
}

.body-text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 380px;
}


.wavy {
  background-image: linear-gradient(rgba(255, 214, 0, 0.5), rgba(255, 214, 0, 0.5));
  background-repeat: no-repeat;
  background-size: 0% 65%;
  background-position: left bottom;
  padding: 0 4px;
  transition: background-size 0.25s ease-out 0.3s;
}

.wavy.highlighted {
  background-size: 105% 65%;
}

.fine-print {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* ── Hero screenshot ─────────────────────────────────────────────── */
.hero-screenshot {
  width: 100%;
  max-width: 900px;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.15));
  border-radius: 16px;
  overflow: hidden;
}

/* ── Screenshot placeholders ─────────────────────────────────────── */
.screenshot-placeholder {
  border-radius: 16px;
  overflow: hidden;
}

.placeholder-ui {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  max-width: 480px;
  margin: 0 auto;
}

.placeholder-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 4px;
}

.placeholder-search-icon {
  opacity: 0.35;
  flex-shrink: 0;
}

.placeholder-search-text {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.3);
}

.placeholder-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 4px 0;
}

.placeholder-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.placeholder-item {
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.1s;
}

/* Matches real app: Color.accentColor.opacity(0.12) */
.placeholder-item.active {
  background: rgba(0, 113, 227, 0.1);
}

.placeholder-item-row {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
}

.placeholder-app-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.slack-icon    { background: #611f69; }
.safari-icon   { background: #0071e3; }
.terminal-icon { background: #1d1d1f; }
.notes-icon    { background: #ffcc00; }

.placeholder-link-icon {
  opacity: 0.35;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.placeholder-item-text {
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.placeholder-item-text.code-text {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 12px;
}

.placeholder-shortcut {
  font-size: 10px;
  font-family: "SF Mono", "Menlo", monospace;
  color: rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
  letter-spacing: -0.2px;
}


.hiw-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  font-size: 20px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

/* ── Stats grid ──────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Split layout ────────────────────────────────────────────────── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-reverse {
  direction: rtl;
}

.split-reverse > * {
  direction: ltr;
}

.split-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.split-text .section-headline {
  margin-bottom: 0;
}

/* ── Privacy placeholder ─────────────────────────────────────────── */
.privacy-placeholder {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.privacy-mockup {}

.activity-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 13px;
}

.activity-row.dim { opacity: 0.4; }

.activity-app {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
}

.activity-net {
  font-family: "SF Mono", monospace;
  font-size: 12px;
  color: var(--text-secondary);
}

.net-zero { color: #34c759; }

.activity-badge {
  font-size: 11px;
  background: rgba(52, 199, 89, 0.12);
  color: #34c759;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 500;
}

/* ── Native screenshot ───────────────────────────────────────────── */
.native-screenshot {
  max-width: 1100px;
  margin: 0 auto 56px;
}

.native-placeholder {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px;
}

.native-mockup {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.native-panel {
  width: 280px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.native-light {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(40px);
}

.native-dark {
  background: rgba(40, 40, 42, 0.95);
  backdrop-filter: blur(40px);
}

.native-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dark-search {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.native-search-icon {
  opacity: 0.3;
  flex-shrink: 0;
}

.dark-search .native-search-icon {
  opacity: 0.35;
  color: rgba(255, 255, 255, 0.85);
}

.native-search-text {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.28);
}

.dark-search .native-search-text {
  color: rgba(255, 255, 255, 0.28);
}

.native-items {
  padding: 6px;
}

.native-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
}

.native-item-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.native-item-text.native-code-text {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 11.5px;
}

.native-item-shortcut {
  font-size: 10px;
  font-family: "SF Mono", "Menlo", monospace;
  color: rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

/* Matches real app: Color.accentColor.opacity(0.12) */
.native-item.selected {
  background: rgba(0, 113, 227, 0.12);
  color: var(--text-primary);
}

.dark-item {
  color: rgba(255, 255, 255, 0.85);
}

.native-item.selected-dark {
  background: rgba(0, 113, 227, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.native-item-shortcut.dark-shortcut {
  color: rgba(255, 255, 255, 0.22);
}

.native-item.selected-dark .native-item-shortcut {
  color: rgba(255, 255, 255, 0.4);
}

.feature-tags {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.dot { opacity: 0.4; }

/* ── Features grid ───────────────────────────────────────────────── */
.features-section {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg-dark);
  padding: 28px;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}

.feature-body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 32px 0 24px;
}

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

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

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


/* ── Scroll animations ────────────────────────────────────────────── */
.animate-hero {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-hero.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 24px; }

  /* Nav */
  #nav { padding: 16px 24px; }

  /* Sections */
  .hero { padding: 100px 0 64px; min-height: 100svh; }
  .section-light,
  .section-gray,
  .section-dark { min-height: unset; padding: 80px 0; }

  /* Typography */
  .hero-headline { font-size: 44px; letter-spacing: -0.3px; }
  .section-headline { font-size: 34px; margin-bottom: 32px; }
  .section-headline-dark { font-size: 34px; margin-bottom: 48px; }
  .cta-headline { font-size: 40px; }
  .subheadline { font-size: 17px; }
  .body-text { max-width: 100%; font-size: 16px; }

  /* Split layouts — stack, image always on top */
  .split-layout { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse { direction: ltr; }
  .split-reverse .split-image { order: -1; }

  /* Stats — 2 columns on mobile */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .stat { text-align: center; }

  /* Features grid — 2 columns on mobile */
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  /* Native mockup — stack panels */
  .native-placeholder { padding: 24px; }
  .native-mockup { flex-direction: column; align-items: center; }
  .native-panel { width: 100%; max-width: 300px; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { justify-content: center; }
}
