/* ── Font ─────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Ltt Recoleta';
  src: url('../brand/fonts/lttrecoleta-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('../brand/fonts/Geist-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('../brand/fonts/Geist-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('../brand/fonts/Geist-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  color: #1d1d1f;
  background: #fafaf8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ───────────────────────────────────────────────── */

h1 {
  font-family: 'Ltt Recoleta', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-family: 'Ltt Recoleta', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.65;
  color: #6e6e73;
}

/* ── Nav ──────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  transition: background 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  border-radius: 8px;
}

.nav-wordmark {
  font-family: 'Ltt Recoleta', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.nav-download {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: background 0.2s;
}

.nav-download:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav.scrolled .nav-wordmark {
  color: #1d1d1f;
}

.nav.scrolled .nav-download {
  background: #1d1d1f;
  color: #fff;
}

.nav.scrolled .nav-download:hover {
  opacity: 0.8;
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00C7BE, #007AFF, #5856D6, #00C7BE);
  background-size: 300% 300%;
  animation: heroGradient 12s ease infinite;
}

@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.hero-icon {
  border-radius: 28px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.hero h1 {
  color: #fff;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 460px;
}

.hero .app-store-badge img {
  opacity: 0.9;
}

.hero-phone {
  flex-shrink: 0;
}

.hero-phone .phone-frame {
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 24px 80px rgba(0, 0, 0, 0.3);
}

.hero-phone .phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 64px;
  }

  .hero-text {
    align-items: flex-start;
    text-align: left;
  }
}

.app-store-badge svg {
  display: block;
}

/* ── Intro ────────────────────────────────────────────────────── */

.intro {
  padding: 80px 0 40px;
  text-align: center;
}

.intro-text {
  max-width: 540px;
  margin: 0 auto;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.7;
  color: #1d1d1f;
}

/* ── Core Loop ────────────────────────────────────────────────── */

.core-loop {
  padding: 60px 0 40px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 80px 0;
}

.step + .step {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.step-text {
  max-width: 400px;
  text-align: center;
}

.step-text h2 {
  margin-bottom: 16px;
}

.step-visual {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .step {
    flex-direction: row;
    gap: 80px;
    justify-content: center;
  }

  .step.reverse {
    flex-direction: row-reverse;
  }

  .step-text {
    text-align: left;
  }
}

/* ── Phone Frame ──────────────────────────────────────────────── */

.phone-frame {
  position: relative;
  width: 220px;
  height: 460px;
  background: #fff;
  border-radius: 32px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
}

.placeholder-screen {
  width: 100%;
  height: 100%;
}

.phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .phone-frame {
    width: 240px;
    height: 500px;
    border-radius: 36px;
    padding: 12px;
  }

  .phone-screen {
    border-radius: 24px;
  }
}

/* ── Features ─────────────────────────────────────────────────── */

.features {
  padding: 60px 0 80px;
  background: #f2f1ed;
}

.features .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.feature {
  padding: 40px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.feature:last-child {
  border-bottom: none;
}

.feature h3 {
  margin-bottom: 10px;
}

@media (min-width: 640px) {
  .features .container {
    grid-template-columns: 1fr 1fr;
    gap: 0 64px;
  }

  .feature {
    padding: 36px 0;
  }
}

/* ── Closing ──────────────────────────────────────────────────── */

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

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

.closing-text {
  font-family: 'Ltt Recoleta', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

/* ── Footer ───────────────────────────────────────────────────── */

.footer {
  padding: 48px 0 36px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #6e6e73;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #1d1d1f;
}

.footer-credit {
  font-size: 0.8rem;
  color: #aeaeb2;
}

/* ── Legal Pages ─────────────────────────────────────────────── */

.legal {
  padding: 120px 0 80px;
}

.legal h1 {
  margin-bottom: 8px;
}

.legal h2 {
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal p {
  margin-bottom: 16px;
}

.legal a {
  color: #007AFF;
  text-decoration: underline;
  text-decoration-color: rgba(0, 122, 255, 0.3);
  text-underline-offset: 2px;
}

.legal a:hover {
  text-decoration-color: #007AFF;
}

.legal-updated {
  font-size: 0.9rem;
  color: #aeaeb2;
  margin-bottom: 32px;
}

.legal h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  color: #1d1d1f;
}

/* ── Animations ───────────────────────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 767px) {
  .hero {
    padding: 130px 0 60px;
  }

  .step {
    padding: 56px 0;
  }
}
