/* Ava Display - product site. Egosi OS brand palette. */

:root {
  --ink: #0D1B22;
  --teal-dark: #294555;
  --teal-mid: #4A8A99;
  --teal-soft: #E4EFF1;
  --rose: #CC6B97;
  --gold: #FFD700;
  --gold-deep: #C9A227;
  --cream: #F5F3EE;
  --light: #FAFAF7;
  --text: #22323B;
  --text-soft: #5A6C76;
  --line: #E2E0D9;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(13, 27, 34, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* The page opens on a dark hero. Without this the browser paints a light
     scrollbar track against it, which reads as a white bar down the right. */
  color-scheme: dark;
  scrollbar-color: rgba(255,255,255,0.28) var(--ink);
  scrollbar-width: thin;
  background: var(--ink);
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.24);
  border-radius: 999px;
  border: 3px solid var(--ink);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.38); }
/* colour-scheme dark would otherwise darken the light sections' inputs */
input, select, textarea { color-scheme: light; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1120px, 92vw); margin: 0 auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 27, 34, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner { display: flex; align-items: center; gap: 2rem; padding: 0.85rem 0; }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.nav-brand img { height: 30px; width: auto; display: block; }
.nav-brand span { color: #fff; font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--gold); color: var(--ink) !important; font-weight: 700 !important;
  padding: 0.55rem 1.15rem; border-radius: 999px; font-size: 0.88rem !important;
}

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(1100px 520px at 20% -10%, rgba(74,138,153,0.30), transparent 60%),
              radial-gradient(900px 480px at 88% 8%, rgba(204,107,151,0.18), transparent 60%),
              var(--ink);
  color: #fff; padding: 5.5rem 0 5rem; position: relative; overflow: hidden;
}
.eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.7rem); line-height: 1.08;
  letter-spacing: -0.025em; font-weight: 800; max-width: 17ch;
}
.hero p.lead {
  margin-top: 1.35rem; font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: rgba(255,255,255,0.80); max-width: 60ch;
}
.hero-actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }
.btn {
  display: inline-block; padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px rgba(255,215,0,0.22); }
.btn-ghost { border-color: rgba(255,255,255,0.34); color: #fff; }
.price-strip {
  margin-top: 2.6rem; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.6rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px; padding: 0.7rem 1.5rem;
}
.price-strip b { color: #fff; font-size: 1.05rem; }
.price-strip span { color: rgba(255,255,255,0.68); font-size: 0.86rem; }
.price-strip .sep { width: 1px; height: 22px; background: rgba(255,255,255,0.18); }

/* ---------- sections ---------- */
section { padding: 4.6rem 0; }
.sec-light { background: var(--light); }
.sec-cream { background: var(--cream); }
.sec-dark { background: var(--ink); color: #fff; }
.sec-teal { background: linear-gradient(150deg, var(--teal-dark), #1B3441); color: #fff; }

.kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-mid); margin-bottom: 0.8rem;
}
.sec-dark .kicker, .sec-teal .kicker { color: var(--gold); }
h2.title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.16; letter-spacing: -0.02em;
  font-weight: 800; max-width: 20ch;
}
.sub {
  margin-top: 1rem; font-size: 1.03rem; color: var(--text-soft); max-width: 62ch;
}
.sec-dark .sub, .sec-teal .sub { color: rgba(255,255,255,0.76); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.4rem; margin-top: 2.6rem; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.55rem; }
.card p { color: var(--text-soft); font-size: 0.95rem; }
.card .num {
  font-size: 2rem; font-weight: 800; color: var(--teal-dark);
  letter-spacing: -0.02em; line-height: 1;
}
.sec-dark .card, .sec-teal .card {
  background: rgba(255,255,255,0.055); border-color: rgba(255,255,255,0.13); box-shadow: none;
}
.sec-dark .card h3, .sec-teal .card h3 { color: #fff; }
.sec-dark .card p, .sec-teal .card p { color: rgba(255,255,255,0.74); }

/* ---------- calculator ---------- */
.calc {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 2.2rem; box-shadow: var(--shadow); margin-top: 2.6rem;
}
.calc-inputs { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 0.45rem; }
.field .hint { font-weight: 400; color: var(--text-soft); }
.field input {
  width: 100%; padding: 0.8rem 0.95rem; font-size: 1.05rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: 11px; background: var(--light); color: var(--text);
}
.field input:focus { outline: 2px solid var(--teal-mid); outline-offset: 1px; }
.calc-out {
  margin-top: 1.9rem; padding-top: 1.7rem; border-top: 1px solid var(--line);
  display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.out-item .out-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.out-item .out-val { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 0.3rem; }
.out-item .out-note { font-size: 0.82rem; color: var(--text-soft); }
.out-save .out-val { color: #1F7A5C; }
.calc-foot { margin-top: 1.5rem; font-size: 0.84rem; color: var(--text-soft); }

/* ---------- pricing table ---------- */
.ptable { margin-top: 2.4rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.prow { display: grid; grid-template-columns: 2.4fr 1fr; gap: 1rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--line); align-items: center; }
.prow:last-child { border-bottom: 0; }
.prow.head { background: var(--cream); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-soft); }
.prow .pname { font-weight: 700; }
.prow .pname small { display: block; font-weight: 400; color: var(--text-soft); font-size: 0.85rem; margin-top: 0.15rem; }
.prow .pprice { font-weight: 800; font-size: 1.05rem; color: var(--teal-dark); }

/* ---------- lists ---------- */
.checks { margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; }
.check .dot {
  flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 3px;
  background: rgba(74,138,153,0.16); color: var(--teal-dark);
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 800;
}
.sec-dark .check .dot, .sec-teal .check .dot { background: rgba(255,215,0,0.18); color: var(--gold); }
.check p { font-size: 0.97rem; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,0.66); padding: 3rem 0 2.4rem; font-size: 0.88rem; }
.foot a { color: rgba(255,255,255,0.82); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-top { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-left: auto; }
.foot-legal { margin-top: 1.9rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.10); font-size: 0.82rem; line-height: 1.8; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.on { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .prow { grid-template-columns: 1fr; gap: 0.35rem; }
  .prow.head { display: none; }
  section { padding: 3.4rem 0; }
}
