/* Hyperion landing page: neutral, unbranded palette (slate + indigo).
   Intentionally avoids any proprietary brand colors or assets so the page is safe to
   ship in the Apache-2.0 repository. Light theme default, dark slate hero.
   (Variable names retained for stability; values are generic.) */

:root {
  --hc-blue:      #1e293b;
  --hc-blue-dk:   #0f172a;
  --hc-blue-lt:   #334155;
  --hc-orange:    #4f46e5;
  --hc-orange-dk: #4338ca;
  --hc-ocean:     #475569;
  --hc-midnight:  #0f172a;
  --hc-sky:       #4f46e5;

  /* neutral tints */
  --blue-wash:    #eef2ff;
  --orange-wash:  #eef2ff;

  --bg:        #ffffff;
  --surface:   #f9fafb;
  --tint:      #f3f7fc;
  --border:    #e6eaf0;

  --ink:       #1b2536;
  --ink-soft:  #4a5568;
  --ink-faint: #6b7689;

  --radius:    14px;
  --radius-lg: 22px;
  --maxw:      1180px;

  --font-sans: "Inter", "Segoe UI", "Roboto", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Consolas", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; color: var(--hc-blue); margin: 0; }
a { color: var(--hc-sky); text-decoration: none; }
a:hover { color: var(--hc-blue); }
code { font-family: var(--font-mono); font-size: 0.9em; }

:focus-visible { outline: 3px solid var(--hc-sky); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--hc-blue); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* mono kicker: technical-credibility label */
.kicker { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; color: #9cc0e8; margin: 0 0 18px; }
.kicker-ink { color: var(--hc-blue); }
.kicker-dark { color: #a5b4fc; }

/* columnar-bars signature mark: recurring fingerprint */
.col-mark { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 12px; margin-right: 9px; vertical-align: -1px; }
.col-mark i { width: 3px; border-radius: 1.5px; }
.col-mark i:nth-child(1) { height: 60%; background: var(--hc-orange); }
.col-mark i:nth-child(2) { height: 100%; background: var(--hc-blue-lt); }
.col-mark i:nth-child(3) { height: 78%; background: var(--hc-sky); }
/* wordmark columnar mark (replaces the logo): indigo shades, legible on light + dark */
.brand-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.brand-mark i { width: 4px; border-radius: 2px; }
.brand-mark i:nth-child(1) { height: 55%; background: #6366f1; }
.brand-mark i:nth-child(2) { height: 100%; background: #4f46e5; }
.brand-mark i:nth-child(3) { height: 78%; background: #818cf8; }
/* the hero signature subtly breathes; section marks stay static to avoid noise */
.hero .col-mark i { animation: colbreath 2.6s ease-in-out infinite; transform-origin: bottom; }
.hero .col-mark i:nth-child(2) { animation-delay: .25s; }
.hero .col-mark i:nth-child(3) { animation-delay: .5s; }
@keyframes colbreath { 0%, 100% { transform: scaleY(0.82); } 50% { transform: scaleY(1); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 5vw, 48px);
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-logo { border-radius: 7px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--hc-blue); }
.brand-sub { font-size: 0.68rem; color: var(--ink-faint); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.site-nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 26px); }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.94rem; }
.site-nav a:hover { color: var(--hc-blue); }
.nav-cta { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; background: var(--hc-blue); color: #fff !important; font-weight: 600; transition: background .18s ease, transform .18s ease; }
.nav-cta:hover { background: var(--hc-blue-dk); transform: translateY(-1px); }
.gh { display: block; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; justify-content: center; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease; cursor: pointer; border: 1.5px solid transparent; }
.btn:active { transform: scale(0.98); }
.btn-arrow { transition: transform .22s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-primary { background: var(--hc-orange); color: #fff !important; box-shadow: 0 10px 26px -10px rgba(79,70,229,0.7); }
.btn-primary:hover { background: var(--hc-orange-dk); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.06); color: #fff !important; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; color: var(--hc-blue) !important; border-color: var(--hc-blue); }
.btn-outline:hover { background: var(--blue-wash); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(135deg, var(--hc-blue-dk) 0%, var(--hc-blue) 50%, var(--hc-blue-lt) 100%);
  padding: clamp(56px, 9vw, 104px) clamp(16px, 5vw, 48px) 0;
}
.hero-glow { position: absolute; z-index: -1; width: 680px; height: 680px; border-radius: 50%; top: -200px; right: -120px; background: radial-gradient(circle, rgba(79,70,229,0.34) 0%, rgba(79,70,229,0) 66%); will-change: transform; }
.hero-grid {
  position: absolute; inset: 0; z-index: -2; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 28% 18%, #000 28%, transparent 72%);
          mask-image: radial-gradient(ellipse 90% 80% at 28% 18%, #000 28%, transparent 72%);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding-bottom: clamp(36px, 6vw, 64px); }
.hero-copy { min-width: 0; max-width: 820px; }
.kicker { color: #9cc0e8; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.6vw, 4.7rem); margin: 0 0 22px; }
.h1-thin { font-weight: 600; color: #e2edf9; letter-spacing: -0.02em; }
.h1-bold { font-weight: 900; }
.accent-underline { white-space: nowrap; }
.lede { max-width: 600px; font-size: clamp(1.04rem, 2vw, 1.24rem); line-height: 1.5; color: #dbe7f5; margin: 0 0 30px; }
.lede strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; color: #cfe0f2; padding: 5px 12px; border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; background: rgba(255,255,255,0.05); }

/* trust strip */
.trust-strip { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 20px 0 26px; border-top: 1px solid rgba(255,255,255,0.12); }
.trust-label { font-size: 0.82rem; color: #9cc0e8; font-weight: 500; }
.trust-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.trust-strip li { font-size: 0.9rem; font-weight: 600; color: #cfe0f2; letter-spacing: 0.01em; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(58px, 9vw, 104px) clamp(16px, 5vw, 48px); }
.section-tint { background: linear-gradient(180deg, var(--bg) 0%, var(--tint) 40%); }
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(58px, 9vw, 104px) clamp(16px, 5vw, 48px); }
.section-head { max-width: 760px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(1.95rem, 4.2vw, 3rem); margin-bottom: 16px; }
.section-sub { font-size: 1.1rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.accent { color: var(--hc-orange); }
#why { background: radial-gradient(130% 100% at 90% -6%, rgba(0,82,158,0.07) 0%, transparent 55%); }
/* headline weight modulation */
.w6 { font-weight: 600; color: var(--hc-ocean); } .w8 { font-weight: 800; } .w9 { font-weight: 900; }

/* ---------- Bento (asymmetric) ---------- */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feature { position: relative; overflow: hidden; grid-column: span 2; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 2px 16px -10px rgba(0,0,0,0.10); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.feature-lg { grid-column: span 4; }
.feature-wide { grid-column: span 6; }
.feature-rule { position: absolute; left: 0; top: 26px; width: 4px; height: 26px; background: linear-gradient(var(--hc-orange), var(--hc-blue)); border-radius: 0 3px 3px 0; transition: height .22s ease; }
.feature:hover { transform: translateY(-8px); box-shadow: 0 30px 80px -38px rgba(30,41,59,0.5), 0 14px 44px -20px rgba(79,70,229,0.22); border-color: var(--hc-blue); }
.feature:active { transform: scale(0.99); }
.feature:hover .feature-rule { height: 44px; }
.feature h3 { font-size: 1.2rem; margin: 0 0 10px; padding-left: 14px; }
.feature-lg h3 { font-size: 1.55rem; }
.feature p { margin: 0 0 0 14px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.65; }
.feature code { background: var(--blue-wash); padding: 1px 7px; border-radius: 5px; color: var(--hc-blue); font-weight: 600; }
.feature h3 code { font-size: 1em; }
.feature em { font-style: normal; color: var(--hc-blue); font-weight: 600; }

/* ---------- How it maps (dark) ---------- */
.section-dark { background: var(--hc-midnight); color: #d7dce9; padding: clamp(58px, 9vw, 104px) clamp(16px, 5vw, 48px); }
.section-dark h2 { color: #fff; }
.mapping-wrap { max-width: var(--maxw); margin: 0 auto; }
.mapping-head { max-width: 640px; margin-bottom: 44px; }
.mapping-head h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin-bottom: 14px; }
.mapping-head p { color: #aeb6cb; font-size: 1.05rem; }
.mapping-head code { color: #a5b4fc; background: rgba(255,255,255,0.06); padding: 1px 7px; border-radius: 5px; }
.transform { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 36px); align-items: center; }
.transform-arrow { color: var(--hc-orange); display: flex; justify-content: center; }
.table-out code { color: #8ee6a8; }
.transform-note { margin: 24px 0 0; font-size: 0.9rem; color: #9aa3bd; }
.transform-note code { color: #a5b4fc; background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 5px; }
.c-rule { color: #46506f; }
.c-key { color: #6fb3ff; }
.c-pun { color: #8893ad; }

/* ---------- Code card ---------- */
.code-card { background: #0f1426; border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius-lg); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.62); overflow: hidden; }
.code-card-wide { max-width: 760px; margin: 0 auto; }
.code-card-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.code-card-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #2c3550; }
.code-card-bar .dot:first-child { background: var(--hc-orange); }
.code-tab { margin-left: 6px; font-family: var(--font-mono); font-size: 0.74rem; color: #7e89a8; }
.copy-btn { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: #aeb9d6; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 7px; padding: 4px 11px; cursor: pointer; transition: background .16s ease, color .16s ease; }
.copy-btn:hover { background: rgba(79,70,229,0.18); color: #c7d2fe; }
.copy-btn.copied { background: rgba(142,230,168,0.16); color: #8ee6a8; border-color: rgba(142,230,168,0.4); }
.code { margin: 0; padding: 20px 22px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.7; color: #cdd6ea; counter-reset: ln; }
.code-card-wide .cl { display: block; }
.c-kw { color: #6fb3ff; font-weight: 600; }
.c-fn { color: #ffb784; }
.c-str { color: #8ee6a8; }
.c-num { color: #f7c66b; }
.c-com { color: #8c99af; font-style: italic; } /* AA contrast on #0f1426 */
.c-flag { color: #818cf8; font-weight: 600; }

/* ---------- What it's not ---------- */
.not-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.not-grid li { position: relative; overflow: hidden; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 2px 16px -10px rgba(0,0,0,0.10); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.not-grid li:hover { transform: translateY(-8px); box-shadow: 0 30px 80px -38px rgba(30,41,59,0.5), 0 14px 44px -20px rgba(79,70,229,0.22); border-color: var(--hc-blue); }
.not-grid li:active { transform: scale(0.99); }
.not-grid li:hover .feature-rule { height: 44px; }
.not-grid h3 { font-size: 1.18rem; margin: 0 0 8px; padding-left: 14px; }
.not-grid p { margin: 0 0 0 14px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.65; }

/* docs grid (link cards) */
.docs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.doc-card { position: relative; overflow: hidden; display: block; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; box-shadow: 0 2px 16px -10px rgba(0,0,0,0.10); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; color: var(--ink); }
.doc-card:hover { transform: translateY(-6px); box-shadow: 0 30px 80px -38px rgba(30,41,59,0.5), 0 14px 44px -20px rgba(79,70,229,0.22); border-color: var(--hc-blue); }
.doc-card:hover .feature-rule { height: 40px; }
.doc-card h3 { font-size: 1.12rem; margin: 0 0 8px; padding-left: 14px; display: flex; align-items: center; gap: 8px; color: var(--hc-blue); }
.doc-card p { margin: 0 0 0 14px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }
.doc-arrow { margin-left: auto; color: var(--hc-orange); transition: transform .2s ease; }
.doc-card:hover .doc-arrow { transform: translateX(4px); }

/* consent banner */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; padding: 16px clamp(16px, 5vw, 48px); background: var(--hc-midnight); color: #d7dce9; border-top: 1px solid rgba(255,255,255,0.12); box-shadow: 0 -12px 30px -20px rgba(0,0,0,0.55); }
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; font-size: 0.9rem; line-height: 1.5; max-width: 720px; }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-banner .btn { padding: 9px 20px; font-size: 0.9rem; }
.consent-banner .btn-outline { color: #fff !important; border-color: rgba(255,255,255,0.5); }
.consent-banner .btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ---------- Quickstart ---------- */
.quickstart-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--hc-midnight); color: #aeb6cb; padding: clamp(40px,7vw,66px) clamp(16px,5vw,48px) 40px; }
.footer-top { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: #bcd5f0; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.disclaimer { max-width: var(--maxw); margin: 26px auto 0; font-size: 0.84rem; color: #7e889f; line-height: 1.7; }
.copyright { max-width: var(--maxw); margin: 18px auto 0; font-size: 0.85rem; color: #9aa3ba; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: reveal .7s cubic-bezier(.2,.7,.3,1) forwards; animation-delay: var(--d, 0ms); }
/* JS-gated: without JS the .js class is never added, so content stays visible (no-JS safe) */
.js .reveal-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); transition-delay: var(--sd, 0ms); }
.js .transform-from { transform: translateX(-26px); }
.js .transform-to { transform: translateX(26px); }
.reveal-on-scroll.in, .js .transform-from.in, .js .transform-to.in { opacity: 1; transform: none; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal-on-scroll, .js .transform-from, .js .transform-to { animation: none; opacity: 1; transform: none; transition: none; }
  .hero .col-mark i { animation: none; }
  html { scroll-behavior: auto; }
  .hero-glow { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-lg, .feature { grid-column: span 3; }
  .feature-wide { grid-column: span 6; }
}
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .not-grid { grid-template-columns: 1fr; }
  .feature, .feature-lg, .feature-wide { grid-column: auto; }
  .transform { grid-template-columns: 1fr; }
  .transform-arrow { transform: rotate(90deg); }
  .site-nav a:not(.nav-cta) { display: none; }
}
