/* Duo marketing site — shared styles */

:root {
  --yellow: #f8be03;
  --yellow-deep: #caa000;
  --bg: #fdf3d7;              /* light warm tint of brand yellow */
  --bg-soft: #fbe9b8;
  --ink: #1a1406;             /* near-black, warm */
  --ink-soft: rgba(26, 20, 6, 0.62);
  --ink-faint: rgba(26, 20, 6, 0.4);
  --card: #ffffff;
  --card-border: rgba(26, 20, 6, 0.1);
  --phone-frame: #101010;
  --max: 1080px;
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(253, 243, 215, 0.92), rgba(253, 243, 215, 0.7));
  backdrop-filter: blur(6px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.brand img { height: 34px; width: auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* language switcher */

.lang-switch {
  position: relative;
}

.lang-switch button {
  font-family: inherit;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 6px;
  min-width: 150px;
  box-shadow: 0 12px 30px rgba(26, 20, 6, 0.12);
  display: none;
  flex-direction: column;
}

.lang-menu.open { display: flex; }

.lang-menu button {
  background: none;
  border: none;
  text-align: left;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
}

.lang-menu button:hover,
.lang-menu button[aria-current="true"] {
  background: var(--bg-soft);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 40px 0 60px;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  z-index: 2;
}

.hero-tagline {
  font-size: clamp(30px, 5.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.08;
  margin: 0;
  max-width: 720px;
}

.hero-tagline .accent {
  color: var(--ink);
  background: var(--yellow);
  padding: 0 10px;
  border-radius: 8px;
  box-shadow: 0 3px 0 rgba(26,20,6,0.12);
}

.hero-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0;
  line-height: 1.5;
}

/* phone frame */

.phone-shell {
  position: relative;
  width: 232px;
  height: 476px;
  border-radius: 42px;
  background: var(--phone-frame);
  padding: 12px;
  box-shadow:
    0 30px 60px rgba(26, 20, 6, 0.28),
    0 0 0 1px rgba(26, 20, 6, 0.06);
  z-index: 3;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 20px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  position: relative;
}

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

/* floating stickers / avatars */

.float-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.floatie {
  position: absolute;
  width: 64px;
  opacity: 0.9;
  filter: drop-shadow(0 8px 18px rgba(26,20,6,0.15));
  animation: drift 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--r2, 0deg)); }
}

/* play badge */

.play-badge img {
  height: 58px;
  width: auto;
}

.play-badge {
  display: inline-block;
  margin-top: 4px;
}

/* scroll hint */

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
}

/* ---------- features ---------- */

.section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  margin: 0 0 10px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}

.section-body {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* usp band */

.usp-band {
  background: var(--phone-frame);
  color: #fff;
  padding: 80px 0;
}

.usp-band .section-kicker { color: var(--yellow); }
.usp-band .section-title { color: #fff; }
.usp-band .section-body { color: rgba(255,255,255,0.62); }

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.usp-item {
  text-align: center;
  padding: 0 8px;
}

.usp-item .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.usp-item h4 {
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 700;
}

.usp-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.55;
}

/* cta band */

.cta-band {
  text-align: center;
  padding: 80px 0 100px;
}

.cta-band .play-badge {
  margin-top: 20px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 32px 0 40px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- legal pages ---------- */

.legal-page .wrap { max-width: 760px; }

.legal-header {
  padding: 56px 0 20px;
}

.legal-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.4px;
}

.legal-updated {
  font-size: 13px;
  color: var(--ink-faint);
}

.legal-body {
  padding-bottom: 80px;
}

.legal-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--card-border);
}

.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.1px;
}

.legal-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.legal-section a { color: var(--yellow-deep); font-weight: 600; }

/* ---------- 404 ---------- */

.not-found {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 40px 24px;
}

.not-found img { width: 96px; }

.not-found h1 { font-size: 26px; margin: 0; }

.not-found a {
  font-weight: 700;
  color: var(--yellow-deep);
  text-decoration: underline;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; gap: 32px; }
  .phone-shell { width: 196px; height: 402px; border-radius: 34px; }
  .floatie { width: 46px; }
  .hero { min-height: 100vh; padding-top: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .floatie { animation: none; }
}
