/* Candy Store — landing "Noche" */

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0f;
  --surface: #141419;
  --surface-2: #1c1c22;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f5f5f7;
  --text-2: #a1a1aa;
  --text-3: #8e8e96;
  --text-dim: #6e6e78;
  --accent: #ff6b95;
  --accent-soft: rgba(255, 107, 149, 0.1);
  --info: #8ccbfa;
  --info-soft: rgba(124, 196, 250, 0.12);
  --ok: #6fd07d;
  --ok-soft: rgba(63, 185, 80, 0.14);
  --radius: 22px;
  --wrap: 1120px;
  /* Spacing rhythm: one section step, one block step */
  --section: clamp(112px, 13vw, 168px);
  --block: clamp(40px, 5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); }
a:hover { color: #ff9db9; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, p { margin: 0; }

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

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 15, 0.6);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.nav.is-scrolled { background: rgba(11, 11, 15, 0.82); border-bottom-color: var(--line); }
.nav__inner { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand, .btn, .nav__link { white-space: nowrap; }
.brand__mark { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link { color: #c7c7cc; text-decoration: none; font-size: 14px; padding: 12px 12px; }
.nav__link:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 500; text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--bg); font-weight: 600; min-height: 52px; padding: 0 28px; }
.btn--primary:hover { color: var(--bg); box-shadow: 0 10px 30px -10px rgba(255, 107, 149, 0.6); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-strong); min-height: 52px; }
.btn--ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.45); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 14px; background: var(--text); color: var(--bg); font-weight: 500; }
.btn--small:hover { color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Hero */
.hero { padding-top: clamp(72px, 12vw, 140px); text-align: center; }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--accent); margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 96px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700;
}
.hero h1 .dim { color: var(--text-dim); }
.lede {
  margin: 28px auto 0; max-width: 660px;
  font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--text-2);
}
.hero .btn-row { margin-top: 40px; }
.fineprint { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* Product mockup */
.stage { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 7vw, 88px) 24px 0; perspective: 1400px; }
.window {
  --p: 1;
  transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--p)) * 20deg)) scale(calc(0.86 + 0.14 * var(--p)));
  opacity: calc(0.35 + 0.65 * var(--p));
  border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface);
  box-shadow: 0 60px 120px -40px rgba(255, 107, 149, calc(0.08 + 0.22 * var(--p)));
  overflow: hidden;
  will-change: transform;
}
.window__bar { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.window__dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3a42; }
.window__url { margin-left: 16px; font-size: 12px; color: var(--text-3); background: var(--surface-2); padding: 5px 14px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window__body { display: flex; min-height: 420px; }
.sidebar { flex: 0 0 200px; padding: 20px 14px; border-right: 1px solid rgba(255, 255, 255, 0.07); display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-2); }
.sidebar span { padding: 9px 12px; border-radius: 8px; }
.sidebar .is-active { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.panel { flex: 1; min-width: 0; padding: 24px 28px; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.panel__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.panel__meta { font-size: 13px; color: var(--text-3); }
.table { overflow-x: auto; }
.table__grid { min-width: 600px; }
.row { display: grid; grid-template-columns: 1.4fr 1.2fr 1.1fr 1fr; gap: 12px; align-items: center; padding: 13px 12px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; }
.row--head { border-top: 0; padding: 10px 12px; font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.row .name { font-weight: 500; }
.row .muted { color: var(--text-2); }
.row .none { color: var(--text-3); }
.pill { display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--info-soft); color: var(--info); }
.pill--ok { background: var(--ok-soft); color: var(--ok); }

/* Statement */
.statement { padding-top: var(--section); }
.statement .line {
  --lit: 1;
  font-size: clamp(36px, 5.6vw, 72px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600;
  opacity: calc(0.18 + 0.82 * var(--lit));
}
.statement .line--accent { color: var(--accent); }
.statement .body { margin-top: var(--block); max-width: 640px; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--text-2); }

/* Features */
.features { padding-top: var(--section); display: flex; flex-direction: column; gap: var(--section); }
.feature { display: flex; flex-wrap: wrap; gap: var(--block) clamp(48px, 7vw, 96px); align-items: center; }
.feature--flip { flex-wrap: wrap-reverse; }
.feature__copy { flex: 1 1 380px; }
.feature__num { font-size: 14px; color: var(--text-3); margin-bottom: 14px; }
.feature h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 600; }
.feature__copy p:last-child { margin-top: 20px; max-width: 460px; font-size: 19px; line-height: 1.55; color: var(--text-2); }
.card { flex: 1 1 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }

.person { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: #2a2a33; display: flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
.person__name { display: block; font-weight: 600; font-size: 17px; }
.person__meta { display: block; font-size: 14px; color: var(--text-3); }
.owner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); font-size: 14px; }
.owner__tag { font-size: 12px; color: var(--accent); }
.fake-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.fake-btn { font-size: 14px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-strong); }
.fake-btn--solid { background: var(--text); color: var(--bg); border-color: var(--text); }

.req__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 600; font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 14px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.stat__label { font-size: 12px; color: var(--text-3); }
.stat__value { margin-top: 6px; font-size: 15px; overflow-wrap: anywhere; }
.activity { font-size: 14px; color: var(--text-2); display: flex; flex-direction: column; gap: 10px; }

.stages { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.stage-pill { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-3); }
.stage-pill--current { background: var(--accent); color: var(--bg); font-weight: 600; }
.stage-pill--next { background: transparent; border: 1px dashed var(--line-strong); }
.quote { padding: 18px; border-radius: 14px; background: var(--surface-2); }
.quote p:first-child { font-size: 15px; line-height: 1.55; }
.quote p:last-child { margin-top: 12px; font-size: 13px; color: var(--text-3); }

/* Pricing */
.pricing { padding-top: var(--section); }
.pricing__box {
  border-radius: 28px; background: linear-gradient(180deg, #17171d, #111115); border: 1px solid var(--line);
  padding: clamp(36px, 6vw, 80px);
  display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between;
}
.pricing__copy { flex: 1 1 380px; }
.pricing h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 600; }
.pricing__copy p { margin-top: 20px; max-width: 440px; font-size: 19px; line-height: 1.55; color: var(--text-2); }
.pricing__num { flex: 0 1 360px; display: flex; flex-direction: column; gap: 10px; }
.price { font-size: clamp(48px, 6vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price__note { font-size: 15px; color: var(--text-2); }
.text-link { margin-top: 14px; font-size: 17px; text-decoration: none; }

/* Closing */
.closing { max-width: 900px; margin: 0 auto; padding: var(--section) 24px clamp(80px, 9vw, 120px); text-align: center; }
.closing h2 { font-size: clamp(40px, 6vw, 80px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 700; }
.closing h2 span { color: var(--accent); }
.closing .btn-row { margin-top: var(--block); }

/* Footer */
.footer { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.footer::before {
  content: ""; position: absolute; left: 50%; bottom: -30%; width: 120%; height: 80%;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 107, 149, 0.16), rgba(255, 107, 149, 0));
}
.footer__top {
  position: relative; padding-top: clamp(64px, 8vw, 96px);
  display: flex; flex-wrap: wrap; gap: var(--block) clamp(48px, 8vw, 120px); justify-content: space-between;
}
.footer__intro { flex: 1 1 340px; max-width: 440px; }
.footer__intro p { margin-top: 20px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.footer__mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  color: var(--text); text-decoration: none; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 6px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.footer__mail span { color: var(--accent); transition: transform 0.25s var(--ease); }
.footer__mail:hover { color: var(--text); border-color: var(--accent); }
.footer__mail:hover span { transform: translateX(4px); }
.footer__cols { flex: 0 1 440px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 4px; }
.footer__h { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.footer__col a { color: #c7c7cc; text-decoration: none; font-size: 15px; padding: 6px 0; width: fit-content; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  position: relative; margin-top: clamp(64px, 8vw, 96px);
  padding: 24px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-3);
}
.totop { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #c7c7cc; text-decoration: none; }
.totop span { transition: transform 0.25s var(--ease); }
.totop:hover span { transform: translateY(-3px); }
.totop:hover { color: var(--text); }
@media (max-width: 720px) {
  :root { --section: 96px; --block: 32px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav__inner { padding: 0 16px; }
  .nav__links { gap: 2px; }
  .nav__link { padding: 12px 8px; font-size: 13px; }
  .btn--small { padding: 0 14px; font-size: 13px; }

  .hero { padding-top: 56px; }
  .lede { margin-top: 20px; font-size: 17px; }
  .hero .btn-row { margin-top: 32px; }
  .btn-row { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .btn-row .btn { width: 100%; }

  .stage { padding: 48px 16px 0; }
  .window { border-radius: 16px; }
  .window__body { min-height: 0; }
  .sidebar { display: none; }
  .panel { padding: 18px 14px 8px; }
  .panel__head { margin-bottom: 8px; }
  .table__grid { min-width: 0; }
  .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name stage" "owner stage"; column-gap: 12px; row-gap: 2px; padding: 12px 4px; }
  .row > :nth-child(1) { grid-area: name; }
  .row > :nth-child(2) { display: none; }
  .row > :nth-child(3) { grid-area: stage; }
  .row > :nth-child(4) { grid-area: owner; font-size: 13px; color: var(--text-3); }
  .row--head { display: none; }

  .statement .line { font-size: clamp(32px, 9vw, 40px); }
  .feature__copy p:last-child { font-size: 17px; margin-top: 16px; }
  .card { padding: 20px; gap: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: span 2; }

  .pricing__box { padding: 28px 22px; gap: 32px; border-radius: 22px; }
  .pricing__copy p { font-size: 17px; }

  .closing { padding-left: 20px; padding-right: 20px; }
  .footer__top { padding-top: 64px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__bottom { margin-top: 48px; }
}

@media (max-width: 380px) {
  .brand { font-size: 16px; gap: 8px; }
  .brand__mark { width: 20px; height: 20px; border-radius: 6px; }
  .nav__link { padding: 12px 6px; }
  .btn--small { padding: 0 12px; }
}

/* Motion — only with JS and when the user hasn't asked for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .eyebrow,
  .js .hero h1,
  .js .hero .lede,
  .js .hero .btn-row,
  .js .hero .fineprint {
    animation: heroIn 1s var(--ease) both;
  }
  .js .hero h1 { animation-delay: 0.08s; }
  .js .hero .lede { animation-delay: 0.2s; }
  .js .hero .btn-row { animation-delay: 0.3s; }
  .js .hero .fineprint { animation-delay: 0.38s; }

  .js .rv {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .js .rv.is-in { opacity: 1; transform: none; }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .window { transform: none !important; opacity: 1 !important; }
  .statement .line { opacity: 1 !important; }
}
