/* ==========================================================================
   Ratito — Landing page styles
   Tokens lifted directly from /design_system.html — keep these two in sync.
   ========================================================================== */

:root {
  /* Canvas */
  --bg-deep: #060d0b;
  --bg: #0a1512;
  --surface: #0f1c17;
  --surface-1: #1c3128;

  /* Copper */
  --copper-dark: #8c4a28;
  --copper: #c06b3c;
  --copper-light: #c8a07c;
  --copper-glow: #e8d4bc;

  /* Text */
  --text-primary: #f0ece8;
  --text-secondary: #8a9e9a;
  --text-muted: #3d5550;

  /* Semantic */
  --success: #4caf7d;

  /* Spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;

  /* Radius */
  --radius-xs: 4px; --radius-sm: 8px; --radius-md: 12px;
  --radius-lg: 16px; --radius-xl: 24px; --radius-pill: 9999px;

  /* Motion */
  --ease-cinematic: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-transition: 260ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

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

.glow-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(192, 107, 60, 0.16), transparent 60%),
    radial-gradient(50% 35% at 10% 15%, rgba(76, 175, 125, 0.08), transparent 60%);
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 13, 11, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Nunito', sans-serif; font-weight: 300; font-size: 22px; letter-spacing: -0.01em; }
.nav-brand img { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; color: var(--text-secondary); }
.nav-links a { transition: color var(--duration-transition) var(--ease-cinematic); }
.nav-links a:hover { color: var(--text-primary); }

/* ── Section scaffolding ── */
section { position: relative; z-index: 1; }
.section-pad { padding: var(--space-16) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper); margin-bottom: var(--space-4); }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); }
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; max-width: 640px; }
.section-sub { font-size: 17px; color: var(--text-secondary); max-width: 560px; margin-top: var(--space-4); }
.section-head { margin-bottom: var(--space-12); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Hero ── */
.hero { padding: 56px 0 var(--space-16); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 480px; gap: var(--space-12); align-items: center; }
.hero-copy h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: var(--space-6); }
.hero-copy h1 span { color: var(--copper-light); }
.hero-sub { font-size: 19px; color: var(--text-secondary); max-width: 460px; margin-bottom: var(--space-8); }
.hero-actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--copper), var(--copper-dark)); color: #f7f1ea; font-weight: 600; font-size: 15px; border: none;
  box-shadow: 0 8px 24px rgba(192, 107, 60, 0.28);
  transition: transform var(--duration-transition) var(--ease-cinematic), box-shadow var(--duration-transition) var(--ease-cinematic);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(192, 107, 60, 0.36); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--text-primary); font-size: 15px; font-weight: 500; }
.hero-note { margin-top: var(--space-6); font-size: 13px; color: var(--text-muted); }

/* Store badges link to each store's home page until ratito is listed. */
.badge-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px;
  border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03); color: var(--text-primary);
  transition: border-color var(--duration-transition) var(--ease-cinematic), background var(--duration-transition) var(--ease-cinematic);
}
.badge-btn:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.badge-btn span { display: flex; flex-direction: column; line-height: 1.15; font-size: 16px; font-weight: 600; }
.badge-btn small { font-size: 10.5px; font-weight: 400; color: var(--text-secondary); letter-spacing: 0.02em; }

/* ── Phone frames ── */
.phones { position: relative; height: 620px; }
.phone {
  position: absolute; width: 240px; border-radius: 42px; background: #050807;
  border: 6px solid #1a1a1a; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.phone::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #050807; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen { position: relative; width: 100%; aspect-ratio: 9 / 19.5; background-size: cover; background-position: center; }
.phone-screen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,13,11,0) 55%, rgba(6,13,11,0.85) 100%); }
.phone-front { left: 0; top: 60px; z-index: 2; transform: rotate(-4deg); }
.phone-back { right: -10px; top: 0; z-index: 1; transform: rotate(6deg); opacity: 0.94; filter: brightness(0.85); }
.phone-chrome { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 14px 14px 20px; }
.phone-chrome .stream-title { font-size: 13px; font-weight: 600; color: #f0ece8; margin-bottom: 6px; }
.avatars { display: flex; align-items: center; }
.avatars .a { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #050807; margin-left: -8px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #050807; }
.avatars .a:first-child { margin-left: 0; }
.rec-pill {
  position: absolute; top: 30px; left: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px; border-radius: var(--radius-pill); background: rgba(224, 82, 82, 0.9);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: #fff;
}
.rec-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.step { background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(192, 107, 60, 0.14); color: var(--copper-light); font-size: 14px; font-weight: 700; margin-bottom: var(--space-6); }
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: var(--space-2); }
.step p { font-size: 15px; color: var(--text-secondary); }

/* ── Features grid ── */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.feature-card { background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius-lg); padding: var(--space-6); transition: border-color var(--duration-transition) var(--ease-cinematic), transform var(--duration-transition) var(--ease-cinematic); }
.feature-card:hover { border-color: rgba(192, 107, 60, 0.35); transform: translateY(-2px); }
.feature-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: rgba(192, 107, 60, 0.12); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); color: var(--copper); }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); }

/* ── Trust / positioning ── */
.trust { background: var(--surface); border-radius: var(--radius-xl); padding: var(--space-16) var(--space-12); position: relative; overflow: hidden; }
.trust::before { content: ''; position: absolute; top: -80px; right: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(192,107,60,0.16) 0%, transparent 70%); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); position: relative; z-index: 1; align-items: center; }
.trust-benefits { display: flex; flex-direction: column; gap: var(--space-6); }
.trust-benefit { display: flex; gap: var(--space-4); }
.trust-benefit-mark { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(76, 175, 125, 0.14); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.trust-benefit h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.trust-benefit p { font-size: 14px; color: var(--text-secondary); }
.trust h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: var(--space-4); }
.trust > .trust-grid > div:first-child p { font-size: 16px; color: var(--text-secondary); }

/* ── Download CTA ── */
.download { text-align: center; }
.download .section-title { margin: 0 auto var(--space-4); }
.coming-soon { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--space-8); padding: 14px 28px; border-radius: var(--radius-pill); border: 1px dashed rgba(255, 255, 255, 0.2); color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.coming-soon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }

/* ── Footer ── */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: var(--space-12) 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Nunito', sans-serif; font-weight: 300; font-size: 17px; }
.footer-brand img { width: 18px; height: 18px; }
.footer-links { display: flex; gap: var(--space-6); font-size: 13px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }
.footer-meta { font-size: 12px; color: var(--text-muted); }

/* ── Legal pages ── */
.legal { max-width: 760px; margin: 0 auto; padding: var(--space-16) 24px; }
.legal h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal .updated { font-size: 13px; color: var(--text-muted); margin-bottom: var(--space-12); }
.legal h2 { font-size: 20px; font-weight: 600; margin: var(--space-8) 0 var(--space-3); color: var(--copper-light); }
.legal p, .legal li { font-size: 15px; color: var(--text-secondary); margin-bottom: var(--space-3); }
.legal ul { padding-left: 20px; margin-bottom: var(--space-4); }
.legal a { color: var(--copper-light); text-decoration: underline; }
.legal strong { color: var(--text-primary); }
.legal .placeholder-note { background: var(--surface); border: 1px solid rgba(192,107,60,0.3); border-radius: var(--radius-md); padding: var(--space-4); font-size: 13px; color: var(--copper-light); margin-bottom: var(--space-8); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .phones { height: 460px; margin: 0 auto; max-width: 420px; }
  .phone { width: 190px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust { padding: var(--space-8); }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .features { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
