/* =============================================================================
 * styles.css — solutions.io Knowledge Platform presentation page
 * -----------------------------------------------------------------------------
 * BRAND TOKENS: every colour, font and radius lives in :root below. To match
 * the real solutions.io brand, change these values only — nothing else needs
 * to be touched.
 * ===========================================================================*/

:root {
  /* --- Brand palette (placeholder — swap for real solutions.io values) --- */
  --brand-ink:    #0B1F3A;   /* deep navy — primary dark           */
  --brand-ink-2:  #122a4d;   /* slightly lighter navy             */
  --brand-accent: #2F6BFF;   /* bright blue — primary accent       */
  --brand-accent-2:#7AA2FF;  /* lighter accent for gradients      */
  --brand-glow:   #5FE3C0;   /* mint highlight (success / cited)   */
  --brand-bg:     #F7F9FC;   /* page background (light sections)   */
  --brand-surface:#FFFFFF;   /* cards on light background          */

  /* --- Derived / semantic --- */
  --text:         #0B1F3A;
  --text-soft:    #45556c;
  --text-faint:   #6b7a90;
  --text-invert:  #eaf1ff;
  --text-invert-soft: #a9bcdd;
  --line:         #e4eaf2;
  --line-dark:    rgba(255,255,255,.12);
  --danger:       #ff6b6b;

  /* --- Type --- */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* --- Shape & depth --- */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow:    0 18px 50px -20px rgba(11,31,58,.35);
  --shadow-sm: 0 8px 24px -12px rgba(11,31,58,.30);

  /* --- Layout --- */
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 64px);

  /* --- Motion --- */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .8s;
}

/* ----------------------------- Reset / base ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--brand-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

/* ------------------------------ Utilities -------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-accent);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-2));
}
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: 14px 0 0; }
.section__lead { margin-top: 16px; font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-soft); max-width: 60ch; }

.section--dark { background: var(--brand-ink); color: var(--text-invert); }
.section--dark .section__lead { color: var(--text-invert-soft); }
.section--dark .eyebrow { color: var(--brand-accent-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 600; font-size: .98rem; cursor: pointer;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand-accent), #1f4fd6);
  color: #fff; box-shadow: 0 12px 30px -10px rgba(47,107,255,.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(47,107,255,.7); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.section--dark .btn--ghost { border-color: var(--line-dark); color: var(--text-invert); }
.btn--ghost:hover { border-color: var(--brand-accent); color: var(--brand-accent); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* =============================== Header ================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(12px);
  background: rgba(247,249,252,.7);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(247,249,252,.92); border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: baseline; gap: .55rem; font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; }
.brand__dot { color: var(--brand-accent); }
.brand__tag { font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--text-faint); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { font-size: .92rem; font-weight: 500; color: var(--text-soft); position: relative; transition: color .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--brand-accent); transition: width .25s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { width: 100%; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* Scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-glow)); transition: width .1s linear; }

/* =============================== Hero =================================== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(47,107,255,.18), transparent 60%),
              radial-gradient(900px 500px at 0% 10%, rgba(95,227,192,.12), transparent 55%),
              var(--brand-bg);
  padding-block: clamp(64px, 10vw, 120px);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); margin-top: 20px; }
.hero__lead { margin-top: 22px; font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--text-soft); max-width: 36ch; }
.hero__pillars { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 28px; }
.pill {
  font-size: .82rem; font-weight: 600; padding: .45rem .9rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}
.pill::before { content: "✓ "; color: var(--brand-accent); font-weight: 800; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 34px; }
.hero__note { margin-top: 20px; font-size: .9rem; color: var(--text-faint); display: flex; align-items: center; gap: .5rem; }
.hero__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-glow); box-shadow: 0 0 0 4px rgba(95,227,192,.25); }

/* Hero answer card (the visual) */
.answer-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 22px; position: relative;
}
.answer-card__bar { display: flex; gap: .4rem; margin-bottom: 16px; }
.answer-card__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.answer-card__bar span:nth-child(1){ background:#ff5f57;} .answer-card__bar span:nth-child(2){background:#febc2e;} .answer-card__bar span:nth-child(3){background:#28c840;}
.ask {
  display: flex; align-items: center; gap: .6rem; background: var(--brand-bg);
  border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1rem; font-size: .95rem; color: var(--text);
}
.ask__q { font-weight: 500; }
.ask .caret { width: 2px; height: 1.1em; background: var(--brand-accent); display: inline-block; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.answer { margin-top: 16px; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.answer.show { opacity: 1; transform: none; }
.answer__label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-glow); display: flex; align-items: center; gap: .4rem; }
.answer__label::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-glow); }
.answer__text { margin-top: 10px; color: var(--text); font-size: 1rem; }
.cites { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 14px; }
.cite {
  font: 600 .76rem/1 var(--font-mono); padding: .4rem .65rem; border-radius: 8px;
  background: rgba(47,107,255,.08); color: var(--brand-accent); border: 1px solid rgba(47,107,255,.18);
  display: inline-flex; align-items: center; gap: .35rem;
}
.cite::before { content: "↗"; opacity: .7; }
.answer__action { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(135deg, rgba(47,107,255,.08), rgba(95,227,192,.08)); border: 1px dashed rgba(47,107,255,.3);
  border-radius: var(--radius-sm); padding: .7rem .9rem; }
.answer__action span { font-size: .85rem; font-weight: 600; }
.answer__action .mini { font: inherit; font-size: .8rem; font-weight: 700; color: #fff; background: var(--brand-accent); border: 0; border-radius: 8px; padding: .45rem .8rem; cursor: pointer; }

/* ============================== Problem ================================= */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 820px) { .cols-3 { grid-template-columns: 1fr; } }
.problem-card {
  background: var(--brand-surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.problem-card .num { font: 800 .85rem/1 var(--font-mono); color: var(--brand-accent); }
.problem-card h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.problem-card p { color: var(--text-soft); font-size: .98rem; }

/* =============================== Demo =================================== */
.demo { background: var(--brand-ink); color: var(--text-invert); }
.demo__inner { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .demo__inner { grid-template-columns: 1fr; } }
.demo__aside { position: sticky; top: 110px; }
@media (max-width: 900px) { .demo__aside { position: static; } }
.demo__question {
  margin-top: 22px; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 20px;
}
.demo__question .q-label { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-accent-2); font-weight: 700; }
.demo__question .q-text { margin-top: 10px; font-size: 1.15rem; font-weight: 600; }

.steps { display: grid; gap: 18px; }
.step {
  background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 22px 24px; position: relative;
  opacity: .35; transform: translateY(26px) scale(.99); filter: saturate(.6);
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease), border-color .6s, background .6s;
}
.step.is-active { opacity: 1; transform: none; filter: none; border-color: rgba(47,107,255,.55); background: rgba(47,107,255,.08); }
.step__tag { font: 700 .76rem/1 var(--font-mono); color: var(--brand-accent-2); letter-spacing: .04em; }
.step h3 { font-size: 1.2rem; margin: 12px 0 8px; }
.step p { color: var(--text-invert-soft); font-size: .98rem; }
.step__sources { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 14px; }
.chip { font-size: .78rem; font-weight: 600; padding: .38rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); color: var(--text-invert-soft);
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.step.is-active .chip { opacity: 1; transform: none; }
.step.is-active .chip { border-color: rgba(122,162,255,.5); color: var(--text-invert); }
.step__cites { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 14px; }
.step__cites .cite { background: rgba(95,227,192,.12); color: var(--brand-glow); border-color: rgba(95,227,192,.3); }
.step__action { margin-top: 14px; display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem;
  color: var(--brand-ink); background: var(--brand-glow); padding: .55rem .9rem; border-radius: 999px; }

/* ============================== Features ================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 26px); }
@media (max-width: 920px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.feature {
  background: var(--brand-surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(47,107,255,.3); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(47,107,255,.12), rgba(95,227,192,.14)); color: var(--brand-accent);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--text-soft); font-size: .96rem; }

.badge-live {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700;
  color: #0a7d52; background: rgba(95,227,192,.18); border: 1px solid rgba(10,125,82,.25);
  padding: .35rem .8rem; border-radius: 999px;
}
.badge-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16b97e; box-shadow: 0 0 0 4px rgba(22,185,126,.2); }

/* =============================== Trust ================================== */
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 22px); }
@media (max-width: 760px) { .trust__grid { grid-template-columns: 1fr; } }
.trust-card {
  background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 26px; display: flex; gap: 16px; align-items: flex-start;
}
.trust-card__check { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(95,227,192,.15); color: var(--brand-glow); }
.trust-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.trust-card p { color: var(--text-invert-soft); font-size: .95rem; }

/* ============================== Limits ================================= */
.limits-band { background: var(--brand-bg); }
.limits {
  background: linear-gradient(135deg, rgba(47,107,255,.06), rgba(95,227,192,.07));
  border: 1px solid var(--line); border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
}
.limits h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 12px 0 14px; }
.limits p { color: var(--text-soft); font-size: 1.08rem; max-width: 70ch; }

/* ============================= Use cases =============================== */
.usecase {
  background: var(--brand-surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 40px); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.usecase::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: linear-gradient(var(--brand-accent), var(--brand-glow)); }
.usecase .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-accent); }
.usecase h3 { font-size: 1.4rem; margin: 12px 0 10px; }
.usecase p { color: var(--text-soft); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.6vw, 28px); }
@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }

/* ============================== Roadmap ================================ */
.roadmap { background: var(--brand-ink); color: var(--text-invert); }
.roadmap .badge-soon { display:inline-flex; align-items:center; gap:.4rem; font-size:.78rem; font-weight:700;
  color: var(--brand-accent-2); background: rgba(47,107,255,.12); border: 1px solid rgba(122,162,255,.3);
  padding:.35rem .8rem; border-radius:999px; }
.roadmap-card { background: rgba(255,255,255,.04); border: 1px dashed var(--line-dark); border-radius: var(--radius); padding: 26px; }
.roadmap-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.roadmap-card p { color: var(--text-invert-soft); font-size: .96rem; }

/* =============================== CTA =================================== */
.cta-band {
  background: linear-gradient(135deg, var(--brand-ink), var(--brand-ink-2));
  color: var(--text-invert); text-align: center; position: relative; overflow: hidden;
}
.cta-band::after { content:""; position:absolute; inset:auto 0 -40% 0; height:80%;
  background: radial-gradient(600px 300px at 50% 100%, rgba(47,107,255,.35), transparent 70%); pointer-events:none; }
.cta-inner { position: relative; max-width: 680px; margin-inline: auto; }
.cta-inner h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 14px 0 16px; }
.cta-inner p { color: var(--text-invert-soft); font-size: 1.15rem; margin-bottom: 30px; }

/* ============================= Connectors ============================== */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: scroll-x 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.conn { font-size: .9rem; font-weight: 600; color: var(--text-soft); padding: .6rem 1.1rem; border-radius: 999px;
  background: var(--brand-surface); border: 1px solid var(--line); white-space: nowrap; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* =============================== Footer ================================ */
.site-footer { background: var(--brand-ink); color: var(--text-invert-soft); padding-block: 48px; border-top: 1px solid var(--line-dark); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer .brand { color: var(--text-invert); }
.site-footer__note { max-width: 46ch; font-size: .9rem; }
.site-footer__tag { font-weight: 700; color: var(--text-invert); }

/* ====================== Scroll-reveal animations ======================= */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
[data-reveal].in-view { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].in-view { transform: none; }
/* Stagger children */
[data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-stagger].in-view > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] > *, .answer, .step, .chip { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee__track { animation: none; }
  .ask .caret { animation: none; }
}

/* noscript fallback */
.noscript { padding: 16px; text-align: center; background: var(--brand-ink); color: var(--text-invert); font-size: .95rem; }
