:root {
  color-scheme: light dark;
  --bg: #f7f7f8;
  --bg-top: #fcfcfd;
  --surface: #ffffff;
  --surface-soft: #fbfbfc;
  --text: #121212;
  --text-muted: #5f6670;
  --line: #e7e8eb;
  --header-bg: rgba(252, 252, 253, 0.86);
  --footer-bg: #fafafb;
  --nav-drawer-bg: rgba(255, 255, 255, 0.96);
  --ink-strong: #17181b;
  --accent: #0a84ff;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 24px rgba(14, 18, 27, 0.06);
  --shadow-card: 0 20px 40px rgba(14, 18, 27, 0.08);
  --appstore-bg: #0b0b0b;
  --appstore-text: #ffffff;
  --appstore-border: #2a2a2a;
  --appstore-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  --appstore-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] {
  --bg: #0f1216;
  --bg-top: #101319;
  --surface: #141920;
  --surface-soft: #11161d;
  --text: #ecf1f7;
  --text-muted: #a8b3c2;
  --line: #252c36;
  --header-bg: rgba(16, 19, 25, 0.86);
  --footer-bg: #0f141b;
  --nav-drawer-bg: rgba(20, 25, 32, 0.96);
  --ink-strong: #f1f5fa;
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.32);
  --shadow-card: 0 24px 44px rgba(0, 0, 0, 0.38);
}

@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) {
    --bg: #0f1216;
    --bg-top: #101319;
    --surface: #141920;
    --surface-soft: #11161d;
    --text: #ecf1f7;
    --text-muted: #a8b3c2;
    --line: #252c36;
    --header-bg: rgba(16, 19, 25, 0.86);
    --footer-bg: #0f141b;
    --nav-drawer-bg: rgba(20, 25, 32, 0.96);
    --ink-strong: #f1f5fa;
    --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.32);
    --shadow-card: 0 24px 44px rgba(0, 0, 0, 0.38);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
  line-height: 1.5;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
}

.container {
  width: min(1100px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 6.5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(130%) blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 7px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 10px;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.theme-toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--appstore-text);
  background: var(--appstore-bg);
  padding: 0.48rem 0.82rem;
  border-radius: 12px;
  border: 1px solid var(--appstore-border);
  box-shadow: var(--appstore-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-store-badge:hover,
.app-store-badge:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--appstore-shadow-hover);
}

.app-store-badge svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.app-store-badge small {
  display: block;
  font-size: 0.58rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-store-badge strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.app-store-badge-lg {
  padding: 0.74rem 1.2rem;
  border-radius: 14px;
}

.app-store-badge-lg svg {
  width: 24px;
  height: 24px;
}

.app-store-badge-lg small {
  font-size: 0.67rem;
}

.app-store-badge-lg strong {
  font-size: 1.18rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 3rem;
  min-height: min(900px, calc(100vh - 74px));
  padding-top: 4rem;
}

.eyebrow {
  color: var(--text-muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: var(--text-muted);
  max-width: 45ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 1.25rem;
  font-weight: 560;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  background: #000;
}

.hero .btn-primary {
  background: #0b0b0b;
  color: #fff;
}

.hero .btn-primary:hover,
.hero .btn-primary:focus-visible {
  background: #000;
}

.btn-link {
  color: var(--text-muted);
}

.btn-link:hover,
.btn-link:focus-visible {
  color: var(--text);
}

.hero-phone-wrap {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(390px, 92vw);
  aspect-ratio: 1780 / 3555;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 20px 34px rgba(14, 18, 27, 0.2));
}

.phone-screen {
  position: absolute;
  z-index: 1;
  inset: 4.45% 7.98% 4.56% 8.43%;
  border-radius: 10.5% / 5.8%;
  overflow: hidden;
  background: #eceef3;
  border: 0;
  padding: 0;
}

.hero-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-surface {
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #eceff3, #f8f9fb);
  display: grid;
  place-items: center;
}

.photo-circle {
  width: 68%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #cfd6df 0%, #aab5c1 100%);
}

.photo-meta {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  color: #606975;
  font-size: 0.7rem;
}

.swipe-label {
  position: absolute;
  top: 14px;
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  font-weight: 700;
  padding: 0.2rem 0.38rem;
  border-radius: 999px;
}

.swipe-label.delete {
  left: 14px;
  color: #b93e41;
  background: rgba(249, 222, 223, 0.8);
}

.swipe-label.keep {
  right: 14px;
  color: #297d45;
  background: rgba(220, 243, 229, 0.8);
}

.swipe-hint {
  position: absolute;
  bottom: 8px;
  color: #707987;
  font-size: 0.58rem;
}

.section h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(14, 18, 27, 0.1);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.95rem;
  border: 1px solid #dbe6f8;
  background: #f3f8ff;
}

.feature-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #245c99;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3,
.steps-grid h3,
.preview-card h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.steps-grid li {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d9dde3;
  display: grid;
  place-items: center;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.preview-card {
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.preview-card h3 {
  margin-top: 0.9rem;
}

.mini-phone {
  border-radius: 20px;
  padding: 0.85rem;
  background: linear-gradient(180deg, #fbfbfc, #f0f2f6);
  border: 1px solid #dfe3eb;
  min-height: 255px;
}

.mini-header {
  height: 9px;
  width: 30%;
  border-radius: 999px;
  margin-inline: auto;
  margin-bottom: 0.9rem;
  background: #c7cdd7;
}

.mini-block,
.mini-row,
.mini-stat,
.mini-grid span {
  border-radius: 12px;
  background: #d5dbe5;
}

.mini-block.large {
  height: 130px;
}

.mini-row {
  height: 16px;
  margin-top: 0.8rem;
}

.mini-row.short {
  width: 62%;
}

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

.mini-grid span {
  display: block;
  aspect-ratio: 1;
}

.mini-stat {
  height: 52px;
  margin-bottom: 0.65rem;
}

.privacy-text {
  font-size: 1.04rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.privacy-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.15rem, 2.6vw, 2rem);
}

.privacy-copy h2 {
  margin-bottom: 0.9rem;
}

.privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.privacy-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 0.95rem;
}

.privacy-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 9px;
}

.section-download {
  padding-top: 2.3rem;
}

.download-box {
  text-align: center;
  padding: 3rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.download-box p {
  margin: 0.75rem 0 1.4rem;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  margin-top: 4rem;
}

.footer-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.footer-inner ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--ink-strong);
}

.footer-credit {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0.25rem auto 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--ink-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: initial;
    padding-top: 3rem;
  }

  .hero-phone-wrap {
    order: -1;
  }

  .feature-grid,
  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 760px) {
  .section {
    padding: 4.5rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-right {
    position: absolute;
    right: 1.25rem;
    top: 68px;
    width: min(320px, calc(100% - 2.5rem));
    background: var(--nav-drawer-bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 0.8rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-right.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .privacy-panel {
    grid-template-columns: 1fr;
  }

  .privacy-list {
    grid-template-columns: 1fr;
  }

  .download-box {
    padding: 2.4rem 1rem;
  }
}

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

  * {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }

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