/* =========================================================
   Allontas — Marketing site shared scaffold
   Used by Homepage.html and the 4 feature pages.
   Each page may add its own <style> for bento-specific layout.
   ========================================================= */

:root {
  --hg-bg: #060E19;
  --hg-bg2: #0C1D33;
  --hg-card: rgba(255,255,255,0.04);
  --hg-card-2: rgba(255,255,255,0.06);
  --hg-border: rgba(255,255,255,0.08);
  --hg-border-2: rgba(255,255,255,0.14);
  --hg-text-dim: rgba(255,255,255,0.62);
  --hg-text-faint: rgba(255,255,255,0.4);
  --hg-positive: #4be29a;
  --hg-amber: #F59E47;
  --hg-cyan: #6BC9C0;
  --hg-violet: #B89BFF;
  --hg-coral: #ED7E7E;
  --hg-accent: var(--hg-positive);     /* default; pages override */
  --hg-accent-soft: rgba(75,226,154,0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--hg-bg); color: #fff; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); }
::selection { background: var(--hg-accent); color: var(--hg-bg); }

/* ---------- Layout primitives ---------- */
.hg-container { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }

.hg-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--hg-text-dim); font-weight: 500;
}
.hg-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--hg-accent); box-shadow: 0 0 8px var(--hg-accent);
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; margin: 0; letter-spacing: -0.02em; line-height: 1.05; }

/* ---------- Navbar ---------- */
.hg-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(6,14,25,0.85), rgba(6,14,25,0.65));
  border-bottom: 1px solid var(--hg-border);
}
.hg-nav__row { display: flex; align-items: center; gap: 32px; padding: 14px 0; }
.hg-nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.hg-nav__logo img { height: 26px; filter: brightness(0) invert(1); }
.hg-nav__logo .word { font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.04em; }
.hg-nav__links { display: flex; gap: 4px; flex: 1; }
.hg-nav__links a {
  color: var(--hg-text-dim); text-decoration: none;
  padding: 8px 14px; font-size: 14px; border-radius: 8px;
  transition: all .15s;
}
.hg-nav__links a:hover, .hg-nav__links a.is-on { color: #fff; background: var(--hg-card); }
.hg-nav__cta { display: flex; gap: 10px; align-items: center; }
.hg-nav__cta .sign-in { color: var(--hg-text-dim); text-decoration: none; font-size: 14px; padding: 8px 12px; }
.hg-nav__cta .sign-in:hover { color: #fff; }

.hg-pill-cta {
  background: #fff; color: var(--hg-bg); border: 0;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 6px 20px transparent;
}
.hg-pill-cta:hover { box-shadow: 0 0 0 1px var(--hg-accent), 0 8px 24px rgba(75,226,154,0.25); }
.hg-pill-cta .arr { font-family: var(--font-heading); font-weight: 500; }

/* ---------- Buttons ---------- */
.hg-btn-primary {
  background: var(--hg-accent); color: var(--hg-bg);
  border: 0; padding: 14px 22px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; cursor: pointer;
  box-shadow: 0 8px 30px var(--hg-accent-soft);
  transition: transform .15s, box-shadow .15s;
}
.hg-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 36px var(--hg-accent-soft); }
.hg-btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid var(--hg-border-2); padding: 13px 20px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.hg-btn-ghost:hover { background: var(--hg-card); }
.hg-btn-ghost .play { width: 8px; height: 10px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ---------- Hero base (page-specific layout in each file) ---------- */
.hg-hero { position: relative; padding-top: 56px; padding-bottom: 100px; overflow: hidden; }
.hg-hero::before {
  content: ""; position: absolute; inset: -10% -10% auto -10%; height: 600px;
  background:
    radial-gradient(60% 50% at 30% 0%, rgba(107,201,192,0.16) 0%, transparent 60%),
    radial-gradient(50% 50% at 80% 10%, rgba(245,158,71,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.hg-hero h1 {
  font-size: clamp(48px, 6.4vw, 88px);
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin-top: 18px;
}
.hg-hero h1 .stk { color: var(--hg-accent); position: relative; }
.hg-hero h1 .stk::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.12em; height: 0.14em;
  background: var(--hg-accent-soft); z-index: -1; border-radius: 2px;
}
.hg-hero .lede { font-size: 18px; line-height: 1.55; color: var(--hg-text-dim); max-width: 540px; margin: 22px 0 28px; }
.hg-hero__cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hg-hero__stats { display: grid; grid-template-columns: repeat(3, max-content); gap: 36px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--hg-border); }
.hg-stat .v { font-family: var(--font-heading); font-weight: 600; font-size: 32px; letter-spacing: -0.02em; }
.hg-stat .v .unit { color: var(--hg-text-dim); font-weight: 400; font-size: 18px; }
.hg-stat .k { font-size: 12px; color: var(--hg-text-dim); margin-top: 6px; letter-spacing: 0.04em; }

/* Hero phone with floating chips */
.hg-hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 980px) { .hg-hero__grid { grid-template-columns: 1fr; gap: 40px; } }
.hg-hero__phone { position: relative; display: flex; justify-content: center; }
.hg-hero__phone .frame {
  position: relative; width: 320px;
  border-radius: 44px; padding: 14px; background: linear-gradient(180deg, #1B2B43, #0A1322);
  box-shadow: 0 60px 120px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.hg-hero__phone .screen {
  border-radius: 32px; overflow: hidden; aspect-ratio: 9 / 18.4;
  background: linear-gradient(180deg, #0F2540 0%, #0C1D33 30%, #F4F5F7 30.01%);
  position: relative;
}
.hg-hero__phone .screen img { width: 100%; display: block; }
.hg-hero__phone .notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; border-radius: 14px; background: #000; z-index: 2;
}
.hg-chip {
  position: absolute; background: rgba(12,29,51,0.75); backdrop-filter: blur(14px);
  border: 1px solid var(--hg-border-2); border-radius: 14px; padding: 10px 12px;
  font-size: 12px; color: #fff; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
  animation: float 6s ease-in-out infinite;
}
.hg-chip .ic { width: 28px; height: 28px; border-radius: 8px; display:flex; align-items:center; justify-content:center; font-family: var(--font-heading); font-weight: 600; font-size: 11px; }
.hg-chip .k { font-size: 10px; color: var(--hg-text-dim); letter-spacing: 0.06em; text-transform: uppercase; }
.hg-chip .v { font-family: var(--font-heading); font-weight: 600; font-size: 14px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Live ticker strip ---------- */
.hg-ticker {
  border-top: 1px solid var(--hg-border); border-bottom: 1px solid var(--hg-border);
  background: rgba(255,255,255,0.02);
  overflow: hidden; position: relative;
}
.hg-ticker__inner { display: flex; align-items: center; gap: 18px; padding: 16px 0; white-space: nowrap; }
.hg-ticker__label {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hg-text-dim);
  padding-right: 18px; border-right: 1px solid var(--hg-border);
  margin-left: 24px;
}
.hg-ticker__label .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--hg-accent); box-shadow: 0 0 8px var(--hg-accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hg-ticker__track { flex: 1; display: flex; gap: 36px; overflow: hidden; }
.hg-ticker__run { display: inline-flex; gap: 36px; flex-shrink: 0; animation: ticker 50s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }
.hg-tick { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; }
.hg-tick .name { color: var(--hg-text-dim); }
.hg-tick .price { font-family: var(--font-heading); font-weight: 600; color: #fff; }
.hg-tick .store { font-size: 11px; color: var(--hg-text-faint); padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,0.06); }

/* ---------- Section base ---------- */
.hg-section { padding: 96px 0; position: relative; }
.hg-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.hg-section__head h2 { font-size: clamp(36px, 4.5vw, 56px); max-width: 760px; }
.hg-section__head .desc { color: var(--hg-text-dim); font-size: 16px; max-width: 380px; line-height: 1.5; }
@media (max-width: 800px) { .hg-section__head { flex-direction: column; align-items: flex-start; } }

/* ---------- Bento grid base ---------- */
.hg-bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
}
.hg-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--hg-border);
  border-radius: 20px;
  padding: 24px;
  position: relative; overflow: hidden;
  transition: border-color .2s;
}
.hg-card:hover { border-color: var(--hg-border-2); }
.hg-card__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hg-text-dim); margin-bottom: 12px; font-family: var(--font-heading); font-weight: 500; }
.hg-card__eyebrow .num { background: var(--hg-card-2); border: 1px solid var(--hg-border-2); width: 22px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; }
.hg-card h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 10px; }
.hg-card p.body { color: var(--hg-text-dim); font-size: 14px; line-height: 1.55; }

/* mini stat block */
.hg-mini-stat { display: flex; flex-direction: column; gap: 6px; }
.hg-mini-stat .v { font-family: var(--font-heading); font-weight: 600; font-size: 40px; letter-spacing: -0.02em; line-height: 1; }
.hg-mini-stat .k { font-size: 12px; color: var(--hg-text-dim); }

/* tiny store row */
.hg-store-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
.hg-store-row:last-child { border-bottom: 0; }
.hg-store-row .ic { width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-family: var(--font-heading); font-weight: 600; }
.hg-store-row .name { display: flex; align-items: center; gap: 8px; }
.hg-store-row .name .tag { font-size: 9px; padding: 2px 7px; border-radius: 999px; background: rgba(75,226,154,0.18); color: var(--hg-positive); }
.hg-store-row .price { font-family: var(--font-heading); font-weight: 600; }

/* AI insight card */
.hg-insight {
  margin-top: 16px;
  background: rgba(184,155,255,0.08);
  border: 1px solid rgba(184,155,255,0.20);
  border-radius: 14px; padding: 14px;
  display: grid; grid-template-columns: 32px 1fr; gap: 10px;
}
.hg-insight .ic { width: 32px; height: 32px; border-radius: 10px; background: rgba(184,155,255,0.20); color: var(--hg-violet); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.hg-insight .t { font-family: var(--font-heading); font-weight: 600; font-size: 13px; }
.hg-insight .b { font-size: 12px; color: var(--hg-text-dim); line-height: 1.5; margin-top: 3px; }

/* ---------- Comparison (old vs new) ---------- */
.hg-compare {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 24px; border: 1px solid var(--hg-border); overflow: hidden;
  background: rgba(255,255,255,0.02);
}
@media (max-width: 800px) { .hg-compare { grid-template-columns: 1fr; } }
.hg-compare__col { padding: 32px 28px; }
.hg-compare__col + .hg-compare__col { border-left: 1px solid var(--hg-border); }
@media (max-width: 800px) { .hg-compare__col + .hg-compare__col { border-left: 0; border-top: 1px solid var(--hg-border); } }
.hg-compare__col h4 { font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hg-compare__col h4 .tag { font-size: 10px; padding: 4px 9px; border-radius: 999px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.hg-compare__col.old h4 .tag  { background: rgba(255,255,255,0.06); color: var(--hg-text-dim); }
.hg-compare__col.new h4 .tag  { background: var(--hg-accent-soft); color: var(--hg-accent); }
.hg-compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hg-compare li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; color: var(--hg-text-dim); line-height: 1.5; }
.hg-compare li .x { color: var(--hg-coral); font-weight: 700; }
.hg-compare li .ch { color: var(--hg-accent); font-weight: 700; }
.hg-compare__col.new li { color: #fff; }

/* ---------- CTA ---------- */
.hg-cta {
  margin: 0 24px; border-radius: 28px;
  background:
    radial-gradient(60% 100% at 50% 0%, var(--hg-accent-soft) 0%, transparent 70%),
    linear-gradient(180deg, #0C1D33, #060E19);
  border: 1px solid var(--hg-border-2);
  padding: 80px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.hg-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 60% at 50% 100%, rgba(245,158,71,0.12) 0%, transparent 70%);
}
.hg-cta h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.035em; line-height: 1; max-width: 18ch; margin: 0 auto 18px; }
.hg-cta p { color: var(--hg-text-dim); font-size: 16px; max-width: 520px; margin: 0 auto 28px; line-height: 1.55; }
.hg-cta__form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.hg-cta__form input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,0.06); border: 1px solid var(--hg-border-2);
  border-radius: 999px; padding: 14px 18px; color: #fff; font-family: var(--font-body); font-size: 14px;
}
.hg-cta__form input::placeholder { color: var(--hg-text-faint); }
.hg-cta__form input:focus { outline: 2px solid var(--hg-accent); outline-offset: 2px; }
.hg-cta__form button { white-space: nowrap; }

/* ---------- FAQ ---------- */
.hg-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .hg-faq { grid-template-columns: 1fr; } }
.hg-faq__item {
  border: 1px solid var(--hg-border); border-radius: 14px; padding: 18px 20px;
  background: rgba(255,255,255,0.02);
}
.hg-faq__q { font-family: var(--font-heading); font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hg-faq__q .plus { width: 18px; height: 18px; opacity: 0.5; flex-shrink: 0; }
.hg-faq__a { font-size: 14px; color: var(--hg-text-dim); line-height: 1.55; margin-top: 10px; }

/* ---------- Footer ---------- */
.hg-footer { border-top: 1px solid var(--hg-border); padding: 48px 0 32px; margin-top: 48px; }
.hg-footer__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .hg-footer__row { grid-template-columns: 1fr 1fr; } }
.hg-footer__brand img { height: 28px; filter: brightness(0) invert(1); }
.hg-footer__brand p { color: var(--hg-text-dim); font-size: 13px; margin-top: 14px; line-height: 1.5; max-width: 280px; }
.hg-footer h5 { font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hg-text-faint); font-weight: 500; margin-bottom: 14px; }
.hg-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hg-footer a { color: var(--hg-text-dim); text-decoration: none; font-size: 14px; }
.hg-footer a:hover { color: #fff; }
.hg-footer__base { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--hg-border); font-size: 12px; color: var(--hg-text-faint); }
.hg-footer__base .legal { display: flex; gap: 18px; }
