/* Yinea — landing. Tokens de marca espejados de
   apps/yinea_mobile/lib/app/theme/tokens.dart. Tipografías: Dahlia (display) +
   Supreme (UI/cuerpo). */

/* ---- Fuentes de marca ---- */
@font-face {
  font-family: "Dahlia";
  src: url("fonts/Dahlia-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Dahlia";
  src: url("fonts/Dahlia-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Supreme";
  src: url("fonts/Supreme-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Supreme";
  src: url("fonts/Supreme-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Supreme";
  src: url("fonts/Supreme-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --purple: #5b2a86;
  --purple-dark: #2e1a47;
  --purple-darker: #1a0f2b;
  --bg-light: #f6f2fb;
  --card: #ffffff;
  --accent: #e9b949;
  --accent-soft: #f6d277;
  --text-dark: #1f1633;
  --text-muted: #6b6280;
  --text-on-dark: #efe9f7;
  --max: 1080px;
  --display: "Dahlia", Georgia, "Times New Roman", serif;
  --sans: "Supreme", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; }

a { color: inherit; }

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

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(46, 26, 71, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.5px; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav-cta { color: var(--purple-dark); background: var(--accent); padding: 9px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 14px; }

/* ---- Hero ---- */
.hero {
  background: radial-gradient(circle at 50% 0%, var(--purple) 0%, var(--purple-dark) 55%, var(--purple-darker) 100%);
  color: var(--text-on-dark);
  text-align: center;
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero .star { width: 64px; height: 64px; margin: 0 auto 28px; display: block; filter: drop-shadow(0 0 24px rgba(233, 185, 73, 0.45)); }
.hero h1 { font-size: clamp(42px, 7vw, 80px); color: #fff; letter-spacing: 0.5px; }
.hero p { font-size: clamp(17px, 2.4vw, 21px); max-width: 620px; margin: 22px auto 0; color: var(--text-on-dark); }
.hero-cta { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 15px 30px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 16px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--purple-dark); box-shadow: 0 10px 30px rgba(233, 185, 73, 0.3); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
.hero-note { margin-top: 18px; font-size: 13px; color: rgba(239, 233, 247, 0.6); }

/* estrellas tenues de fondo */
.hero::before, .hero::after {
  content: ""; position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; opacity: .5;
  box-shadow: 120px 60px #fff, 320px 140px rgba(255,255,255,.6), 540px 80px #fff,
              760px 180px rgba(255,255,255,.5), 940px 60px #fff, 200px 240px rgba(255,255,255,.4),
              680px 280px #fff, 1020px 220px rgba(255,255,255,.5);
}
.hero::before { top: 40px; left: 5%; }
.hero::after { top: 120px; right: 8%; }

/* ---- Secciones ---- */
section { padding: 88px 0; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.section-title { font-size: clamp(30px, 4.5vw, 46px); margin-top: 12px; }
.section-lead { color: var(--text-muted); font-size: 18px; max-width: 640px; margin: 16px 0 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.card {
  background: var(--card); border-radius: 22px; padding: 32px;
  box-shadow: 0 14px 40px rgba(46, 26, 71, 0.07);
  border: 1px solid rgba(46, 26, 71, 0.05);
}
.card .ico { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(145deg, var(--accent-soft), var(--accent)); display: grid; place-items: center; font-size: 22px; }
.card h3 { font-size: 22px; margin: 20px 0 10px; }
.card p { color: var(--text-muted); margin: 0; }

/* franja oscura con cita */
.quote { background: var(--purple-dark); color: #fff; text-align: center; }
.quote blockquote { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 4vw, 40px); line-height: 1.3; max-width: 820px; margin: 0 auto; }
.quote .by { margin-top: 24px; color: var(--accent); font-family: var(--sans); font-weight: 500; letter-spacing: 1px; }

/* ---- Footer ---- */
footer { background: var(--purple-darker); color: rgba(239, 233, 247, 0.75); padding: 56px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
footer .brand { font-size: 20px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.foot-links a { text-decoration: none; opacity: .8; }
.foot-links a:hover { opacity: 1; color: var(--accent); }
.copyright { width: 100%; font-size: 12px; opacity: .5; margin-top: 12px; }

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
