/* Duora landing page — monochrome "black glass" theme, matching the app */

:root {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --elevated: #121212;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.24);
  --highlight: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: #b4b4b4;
  --subtle: #7c7c7c;
  --lilac: #d8a8f0;
  --pink: #f2b8d6;
  --orange: #ff8a3d;
  --grad: linear-gradient(100deg, #e3b9ff 0%, #f6c1dc 100%);
  --radius: 28px;
  --font-head: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

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

h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glass surface: translucent fill + top-edge light catch, like the app */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--highlight);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600;
  border-radius: 999px; transition: transform .2s, background .2s;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { transform: translateY(-1px); background: #e6e6e6; }
.btn-sm { padding: 9px 18px; font-size: 15px; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-row.center { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #000;
  padding: 10px 22px 10px 16px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.1;
  transition: transform .2s, box-shadow .2s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(255, 255, 255, .35); }
.store-btn svg { width: 26px; height: 26px; fill: currentColor; flex-shrink: 0; }
.store-btn span { display: flex; flex-direction: column; }
.store-btn small { font-family: var(--font-body); font-size: 10.5px; font-weight: 500; letter-spacing: .02em; opacity: .7; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(0, 0, 0, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 24px; }
.logo img { border-radius: 9px; }
.nav-links { display: flex; gap: 32px; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  height: 38px; min-width: 46px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .04em;
  transition: background .2s, border-color .2s;
}
.lang-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 80px; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 380px at 78% 35%, rgba(216, 168, 240, .16), transparent 70%),
    radial-gradient(420px 280px at 92% 80%, rgba(255, 138, 61, .08), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #5ee6a0; box-shadow: 0 0 0 4px rgba(94, 230, 160, .18); }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); margin: 22px 0 20px; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points svg { width: 16px; height: 16px; fill: #fff; }

.hero-visual { position: relative; height: 620px; }
.glow { position: absolute; inset: 20% 15%; background: radial-gradient(closest-side, rgba(216, 168, 240, .28), transparent); filter: blur(40px); }

/* Phone frame around raw app screenshots */
.phone {
  position: relative; width: 280px; aspect-ratio: 1206 / 2622;
  padding: 9px; border-radius: 52px;
  background: linear-gradient(160deg, #2a2a2a, #0d0d0d 40%, #1a1a1a);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 90px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 43px; background: #000; }
.hero-visual .phone { position: absolute; }
.phone-front { left: 6%; top: 0; transform: rotate(-4deg); z-index: 2; }
.phone-back { right: 2%; top: 50px; width: 250px; transform: rotate(6deg); opacity: .85; }
.otters { position: absolute; z-index: 3; width: 140px; left: -4%; bottom: 0; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .6)); }
.bubble {
  position: absolute; z-index: 3; padding: 10px 16px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(40, 40, 40, .85), rgba(20, 20, 20, .85));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--highlight), 0 16px 40px -12px rgba(0, 0, 0, .8);
  font-family: var(--font-head); font-size: 15px; font-weight: 500; white-space: nowrap;
}
.bubble-a { right: -2%; top: 0; }
.bubble-b { right: 4%; bottom: 60px; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float { animation: float 5s ease-in-out infinite; }
.float-slow { animation: float 7s ease-in-out infinite; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); overflow: hidden; padding: 18px 0; background: var(--bg-alt); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track span {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--muted); font-family: var(--font-head); font-size: 15px; white-space: nowrap; background: var(--surface);
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-bottom: 120px; }
.feature:last-child { margin-bottom: 0; }
.feature-rev .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media::before {
  content: ''; position: absolute; width: 70%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .10), transparent); filter: blur(30px);
}
.feature-media .phone { width: min(300px, 78%); }
.tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid currentColor;
}
.tag-lilac { color: var(--lilac); }
.tag-pink { color: var(--pink); }
.tag-orange { color: var(--orange); }
.feature h3 { font-size: clamp(32px, 3.8vw, 46px); margin: 18px 0 16px; }
.feature p { color: var(--muted); font-size: 17px; }
.checks { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: #e6e6e6; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Bento */
.bento { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-auto-rows: minmax(220px, auto); gap: 20px; }
.tile {
  border-radius: var(--radius); overflow: hidden; transition: transform .3s, border-color .3s;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--highlight);
}
.tile:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.tile-tall { grid-row: span 2; display: flex; flex-direction: column; }
.tile-shot { flex: 1; min-height: 320px; position: relative; overflow: hidden; display: flex; justify-content: center; padding-top: 28px; }
.tile-shot img { width: 72%; height: auto; border-radius: 30px 30px 0 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); align-self: flex-start; }
.tile-shot::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, #0a0a0a, transparent); }
.tile h4 { font-size: 23px; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile-cap { padding: 4px 28px 28px; position: relative; }
.tile-mini { padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface-2); font-size: 24px; margin-bottom: auto; }
.ico-lilac { background: var(--lilac); }
.ico-pink { background: var(--pink); }
.ico-orange { background: var(--orange); }
.tile-mini h4 { margin-top: 28px; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li {
  padding: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--highlight);
}
.num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: #000; font-family: var(--font-head); font-weight: 700; font-size: 19px; margin-bottom: 18px;
}
.steps h4 { font-size: 23px; margin-bottom: 6px; }
.steps p { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; position: relative;
  font-family: var(--font-head); font-weight: 500; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* CTA */
.cta {
  position: relative; text-align: center; padding: 72px 32px; border-radius: 40px; overflow: hidden;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(216, 168, 240, .18), transparent 70%),
    linear-gradient(180deg, #161616, #080808);
  border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--highlight);
}
.cta-otters { width: 130px; margin: 0 auto 20px; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .5)); }
.cta h2 { font-size: clamp(36px, 5.4vw, 60px); margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 18px; margin-bottom: 32px; }
.cta-note { display: block; margin-top: 20px; color: var(--subtle); font-size: 13px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); margin-top: 12px; font-size: 14px; }
.footer-cols { display: flex; gap: 72px; }
.footer-cols h5 { font-size: 15px; margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--subtle); font-size: 13px; }

/* Legal pages (privacy, terms) */
.legal { position: relative; padding: 128px 0 96px; }
.legal::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 420px; pointer-events: none;
  background: radial-gradient(520px 300px at 50% 0%, rgba(216, 168, 240, .12), transparent 70%);
}
.legal-inner { position: relative; max-width: 800px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 28px; transition: color .2s; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 18px; height: 18px; fill: currentColor; transition: transform .2s; }
.back-link:hover svg { transform: translateX(-3px); }
.legal h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 10px; }
.legal-updated { color: var(--subtle); font-size: 14px; margin-bottom: 36px; }
.legal-card {
  padding: 44px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--highlight);
}
.legal-section + .legal-section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.legal-section h2 { font-size: 23px; font-weight: 600; margin-bottom: 12px; }
.legal-section p, .legal-section ul { color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.legal-section p + p, .legal-section p + ul { margin-top: 12px; }
.legal-section ul { padding-left: 20px; }
.legal-section li + li { margin-top: 8px; }
.legal-section li::marker { color: var(--subtle); }
.legal-section strong { color: var(--text); font-weight: 600; }
.legal-section a, .legal-other a { color: var(--lilac); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.legal-other { margin-top: 28px; color: var(--subtle); font-size: 14px; text-align: center; }

/* Desktop QR card */
.qr-card {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; max-width: 320px;
  border-radius: 24px; background: rgba(18, 18, 18, .86);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--highlight), 0 24px 60px -20px rgba(0, 0, 0, .9);
  transform: translateY(20px); opacity: 0; transition: transform .4s, opacity .4s;
}
.qr-card.show { transform: none; opacity: 1; }
.qr-card[hidden] { display: none; }
.qr-code { flex-shrink: 0; width: 104px; height: 104px; padding: 6px; border-radius: 14px; background: #fff; }
.qr-code img, .qr-code canvas { width: 100% !important; height: 100% !important; }
.qr-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.qr-brand img { border-radius: 7px; }
.qr-brand strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.1; }
.qr-brand small { color: var(--subtle); font-size: 12px; }
.qr-info p { color: var(--muted); font-size: 13px; line-height: 1.4; }
.qr-close {
  position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%;
  background: #222; border: 1px solid var(--border); font-size: 17px; line-height: 1;
}
.qr-close:hover { background: #333; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .float-slow, .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .qr-card { display: none !important; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { padding: 116px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-inline: auto; }
  .store-row, .hero-points { justify-content: center; }
  .hero-visual { height: 560px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-visual .phone-front { width: 240px; }
  .hero-visual .phone-back { width: 215px; }
  .feature, .feature-rev { grid-template-columns: 1fr; gap: 40px; margin-bottom: 88px; text-align: center; }
  .feature-rev .feature-media { order: 0; }
  .checks { justify-items: center; }
  .checks li { text-align: left; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-tall { grid-column: span 2; grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .btn-sm { padding: 8px 14px; font-size: 14px; }
  .hero-visual { height: 450px; }
  .hero-visual .phone-front { width: 195px; left: 4%; padding: 7px; border-radius: 38px; }
  .hero-visual .phone-back { width: 175px; right: 0; padding: 7px; border-radius: 34px; }
  .hero-visual .phone img { border-radius: 31px; }
  .otters { width: 96px; left: -2%; }
  .bubble { font-size: 13px; padding: 8px 12px; }
  .bubble-a { right: 0; }
  .bento { grid-template-columns: 1fr; }
  .tile-tall { grid-column: auto; }
  .tile-mini { min-height: 200px; }
  .footer-cols { gap: 48px; }
  .cta { padding: 56px 20px; border-radius: 30px; }
  .legal { padding: 104px 0 72px; }
  .legal-card { padding: 28px 22px; border-radius: 24px; }
  .legal-section h2 { font-size: 20px; }
}
