/* ============================================
   HYPER INNOVATION LAB — style.css
   Palette: ink #14102B · paper #FCFBFF
   Trail: #53A7EE → #7B5CF5 → #FF5CA8
   ============================================ */

:root {
  --ink: #14102b;
  --ink-soft: #4a4468;
  --paper: #fcfbff;
  --card: #ffffff;
  --line: #e6e2f5;
  --sky: #53a7ee;
  --violet: #7b5cf5;
  --flare: #ff5ca8;
  --amber: #ffb454;
  --mint: #2ed3a0;
  --trail: linear-gradient(90deg, #53a7ee 0%, #7b5cf5 50%, #ff5ca8 100%);
  --accent: var(--violet); /* overridden per case-study page */
  --font-display: "Unbounded", sans-serif;
  --font-body: "Sora", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- trail motif ---------- */
.trail-rule {
  height: 4px; border: 0; border-radius: 2px;
  background: var(--trail);
  width: 72px; margin: 0;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 251, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1120px; margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { height: 34px; width: auto; }
.nav-brand span {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 8px 18px;
  border-radius: 999px; font-size: 0.88rem !important;
}
.nav-cta:hover { background: var(--violet); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 0; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .nav-links.nav-links-min { display: flex; gap: 16px; }
  .nav-links.nav-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 6px 24px 18px; box-shadow: 0 12px 24px rgba(20, 16, 43, 0.1);
  }
  .nav-links.nav-open li { border-top: 1px solid var(--line); }
  .nav-links.nav-open li:first-child { border-top: 0; }
  .nav-links.nav-open a { display: block; padding: 12px 0; }
  .nav-links.nav-open .nav-cta { display: inline-block; margin: 10px 0 4px; }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: center;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet);
  display: inline-block; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.14; letter-spacing: -0.01em; margin-bottom: 22px;
}
.hero h1 .grad {
  background: var(--trail);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 0.98rem;
  padding: 14px 28px; border-radius: 999px; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(123, 92, 245, 0.35); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.hero-art { position: relative; text-align: center; }
.hero-art img { width: min(420px, 90%); margin: 0 auto; animation: float 5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}
.hero-trail {
  position: absolute; left: -40%; bottom: 18%; width: 130%; height: 10px;
  background: var(--trail); opacity: 0.25; border-radius: 999px;
  transform: rotate(-14deg); filter: blur(2px); z-index: -1;
}

/* ---------- industry strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.strip-inner {
  display: flex; gap: 12px 28px; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-mono); font-size: 0.95rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.strip-inner span::before { content: "◆ "; font-size: 0.6rem; vertical-align: 2px; }
.strip-inner span:nth-child(1)::before { color: var(--mint); }
.strip-inner span:nth-child(2)::before { color: var(--sky); }
.strip-inner span:nth-child(3)::before { color: var(--flare); }
.strip-inner span:nth-child(4)::before { color: var(--amber); }
.strip-inner span:nth-child(5)::before { color: var(--violet); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-head { margin-bottom: 48px; max-width: 42em; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 14px 0 12px;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- case study cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 28px 26px; text-decoration: none; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--card-accent, var(--violet));
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(20, 16, 43, 0.12); }
.card .tag {
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--card-accent, var(--violet));
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 600;
  line-height: 1.35; margin-bottom: 12px;
}
.card p { color: var(--ink-soft); font-size: 0.95rem; flex-grow: 1; }
.card .card-link {
  margin-top: 20px; font-weight: 700; font-size: 0.9rem;
  color: var(--card-accent, var(--violet));
}
.c-mint { --card-accent: var(--mint); }
.c-sky { --card-accent: var(--sky); }
.c-flare { --card-accent: var(--flare); }
.c-amber { --card-accent: #e8940f; }
.c-violet { --card-accent: var(--violet); }

/* ---------- vault teaser ---------- */
.vault { background: var(--ink); color: #fff; border-radius: 24px; padding: 64px 48px; }
.vault .eyebrow { color: var(--flare); }
.vault h2 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin-bottom: 14px;
}
.vault p { color: #b9b3d6; max-width: 40em; margin-bottom: 30px; }
.vault-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.vault-chips span {
  font-family: var(--font-mono); font-size: 0.78rem; padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; color: #cfc9ea;
}
.vault-chips span.locked { opacity: 0.45; }
.vault .btn-primary { background: var(--trail); color: #fff; }
@media (max-width: 640px) { .vault { padding: 44px 26px; } }

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.tier {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-left: 6px solid var(--tier-accent, var(--violet));
  border-radius: 18px; padding: 30px 26px 28px;
  background: var(--card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tier:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(20, 16, 43, 0.12); }
.tier-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(160deg, var(--tier-accent, var(--violet)), color-mix(in srgb, var(--tier-accent, var(--violet)) 55%, #000));
  box-shadow: 0 4px 10px rgba(20, 16, 43, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-size: 1.4rem; margin-bottom: 16px;
}
.tier-badge {
  position: absolute; top: 22px; right: 22px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--tier-accent, var(--violet)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
}
.tier h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 10px; padding-right: 30px; }
.tier p { color: var(--ink-soft); font-size: 0.95rem; }
.tier-mint { --tier-accent: var(--mint); }
.tier-sky { --tier-accent: var(--sky); }
.tier-flare { --tier-accent: var(--flare); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-grid p { color: var(--ink-soft); margin-bottom: 16px; }
@media (max-width: 800px) { .about-grid, .hero-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { text-align: center; padding: 96px 0 110px; }
.contact h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin: 16px 0 14px;
}
.contact p { color: var(--ink-soft); max-width: 36em; margin: 0 auto 34px; }
.contact .trail-rule { margin: 0 auto; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: var(--ink-soft);
}
.footer-inner .disclaimer { font-size: 0.75rem; max-width: 46em; }

/* ============================================
   CASE STUDY PAGES
   ============================================ */
.cs-hero { padding: 80px 0 56px; position: relative; overflow: hidden; }
.cs-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}
.cs-hero .eyebrow { color: var(--accent); }
.cs-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 3.8vw, 2.7rem); line-height: 1.18;
  max-width: 22em; margin-bottom: 18px;
}
.cs-meta {
  display: flex; gap: 12px 26px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft);
}
.cs-meta strong { color: var(--accent); font-weight: 500; }

.cs-body { padding: 64px 0; max-width: 760px; margin: 0 auto; }
.cs-body h2 {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  margin: 52px 0 16px; position: relative; padding-left: 22px;
}
.cs-body h2::before {
  content: ""; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 5px;
  border-radius: 3px; background: var(--accent);
}
.cs-body h2:first-child { margin-top: 0; }
.cs-body p { color: var(--ink-soft); margin-bottom: 18px; }
.cs-body p strong { color: var(--ink); }
.cs-body ol, .cs-body ul { margin: 0 0 18px 22px; color: var(--ink-soft); }
.cs-body li { margin-bottom: 12px; }
.cs-body li strong { color: var(--ink); }

.cs-cta {
  background: var(--ink); color: #fff; border-radius: 22px;
  padding: 52px 44px; margin: 72px auto 0; max-width: 760px;
}
.cs-cta h2 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 26px; }
.cs-cta ol { list-style: none; display: grid; gap: 16px; margin-bottom: 30px; }
.cs-cta li { color: #b9b3d6; font-size: 0.95rem; }
.cs-cta li strong { color: #fff; display: block; font-size: 1rem; margin-bottom: 2px; }
.cs-cta .btn-primary { background: var(--trail); }
@media (max-width: 640px) { .cs-cta { padding: 36px 24px; } }

.cs-nav {
  display: flex; justify-content: space-between; gap: 16px;
  max-width: 760px; margin: 48px auto 0; padding: 0;
}
.cs-nav a {
  text-decoration: none; font-weight: 700; font-size: 0.92rem; color: var(--ink-soft);
}
.cs-nav a:hover { color: var(--accent); }


/* ---------- page header banner ---------- */
.cs-banner { max-width: 760px; margin: 44px auto 0; padding: 0 24px; }
.cs-banner svg { width: 100%; height: auto; border-radius: 18px; display: block; }

/* ---------- 4-step flow infographic ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 6px 0 28px; }
.flow-step {
  flex: 1 1 140px; background: #f5f4fb; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 12px; text-align: center;
}
.flow-step .fs-num {
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.14em;
  color: var(--accent); display: block; margin-bottom: 4px;
}
.flow-step h4 { font-family: var(--font-display); font-size: 0.88rem; margin: 0 0 3px; color: var(--ink); }
.flow-step p { font-size: 0.78rem; color: var(--ink-soft); margin: 0; line-height: 1.45; }
.flow-arrow { align-self: center; color: var(--accent); font-weight: 700; font-size: 1.1rem; }
@media (max-width: 640px) { .flow-arrow { display: none; } }

/* ============================================
   AURORA THEME OVERRIDES (dark nebula blend)
   ============================================ */

/* ---------- homepage hero: dark aurora ---------- */
.hero {
  background:
    radial-gradient(ellipse 60% 55% at 72% 18%, rgba(123, 92, 245, 0.55), transparent 65%),
    radial-gradient(ellipse 55% 60% at 18% 78%, rgba(83, 167, 238, 0.50), transparent 62%),
    radial-gradient(ellipse 45% 45% at 88% 72%, rgba(255, 92, 168, 0.42), transparent 60%),
    #0d0a24;
  color: #ffffff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.8;
  background-image:
    radial-gradient(circle 1.5px at 12% 22%, #fff 99%, transparent),
    radial-gradient(circle 1px   at 28% 64%, #fff 99%, transparent),
    radial-gradient(circle 1.5px at 44% 12%, #fff 99%, transparent),
    radial-gradient(circle 1px   at 58% 82%, #fff 99%, transparent),
    radial-gradient(circle 2px   at 70% 38%, #fff 99%, transparent),
    radial-gradient(circle 1px   at 82% 16%, #fff 99%, transparent),
    radial-gradient(circle 1.5px at 90% 58%, #fff 99%, transparent),
    radial-gradient(circle 1px   at 6%  86%, #fff 99%, transparent),
    radial-gradient(circle 1px   at 50% 50%, #fff 99%, transparent);
}
.hero .eyebrow { color: #c9b8ff; }
.hero p.lede { color: #c5bfe4; }
.hero .btn-primary { background: var(--trail); color: #fff; }
.hero .btn-ghost { border-color: #fff; color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }
.hero-trail { opacity: 0.45; }

/* ---------- case study heroes: accent-tinted aurora ---------- */
.cs-hero {
  background:
    radial-gradient(ellipse 60% 70% at 78% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 62%),
    radial-gradient(ellipse 50% 60% at 12% 100%, rgba(123, 92, 245, 0.32), transparent 58%),
    #0d0a24;
  color: #ffffff;
}
.cs-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.7;
  background-image:
    radial-gradient(circle 1.5px at 16% 30%, #fff 99%, transparent),
    radial-gradient(circle 1px   at 34% 74%, #fff 99%, transparent),
    radial-gradient(circle 1.5px at 62% 20%, #fff 99%, transparent),
    radial-gradient(circle 1px   at 78% 66%, #fff 99%, transparent),
    radial-gradient(circle 2px   at 92% 34%, #fff 99%, transparent),
    radial-gradient(circle 1px   at 8%  70%, #fff 99%, transparent);
}
.cs-hero .wrap { position: relative; }
.cs-meta { color: #b9b3d6; }

/* ---------- cards: colored side tab (infographic style) ---------- */
.card::before {
  top: 0; bottom: 0; left: 0; right: auto;
  width: 6px; height: auto;
}

/* ---------- flow steps: side-bar option cards ---------- */
.flow-step {
  text-align: left; padding: 14px 14px 14px 16px;
  border-left: 5px solid var(--accent);
  border-radius: 10px 12px 12px 10px;
}


/* ============================================
   THE VAULT (NDA area)
   ============================================ */
.nda-bar {
  background: #0d0a24; color: #ffb454; text-align: center;
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.12em;
  padding: 9px 16px; border-bottom: 1px solid rgba(255, 180, 84, 0.35);
}
.vault-hero .vault-intro { color: #c5bfe4; max-width: 44em; margin-top: 6px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.vbtn {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--card, #fff); border: 1px solid var(--line);
  border-left: 6px solid var(--accent); border-radius: 12px; padding: 16px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vbtn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 16, 43, 0.14); }
.vbtn-icon { font-size: 1.5rem; }
.vbtn-body { flex: 1; display: flex; flex-direction: column; }
.vbtn-body strong { font-family: var(--font-display); font-size: 0.92rem; line-height: 1.3; }
.vbtn-body em {
  font-style: normal; font-family: var(--font-mono); font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 3px;
}
.vbtn-go { color: var(--accent); font-weight: 700; }
