:root {
  color-scheme: dark;
  --ink: #f7f8ff;
  --muted: #aeb7cc;
  --canvas: #090d18;
  --surface: #11182a;
  --surface-2: #172139;
  --line: #293552;
  --accent: #ffbd4a;
  --accent-2: #ff6b6b;
  --cyan: #62dbd4;
  --max: 1180px;
  --reading: 760px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); line-height: 1.7; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 420px; pointer-events: none; z-index: -1; background: radial-gradient(circle at 78% 0%, rgba(98,219,212,.1), transparent 34%), radial-gradient(circle at 20% 8%, rgba(255,107,107,.1), transparent 30%); }
a { color: var(--cyan); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: #a4fffa; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .75rem 1rem; color: #080b13; background: var(--accent); font-weight: 800; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(9,13,24,.9); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.header-inner { width: min(calc(100% - 2rem), var(--max)); min-height: 74px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; min-height: 48px; }
.brand img { width: 85px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-size: 1.08rem; letter-spacing: .02em; }
.brand small { margin-top: .28rem; color: var(--muted); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.nav-toggle { min-width: 48px; min-height: 44px; border: 1px solid var(--line); border-radius: .6rem; background: var(--surface); color: var(--ink); font: inherit; font-weight: 750; }
.primary-nav { position: absolute; display: none; inset: 74px 0 auto; padding: .75rem 1rem 1rem; background: #0d1322; border-bottom: 1px solid var(--line); box-shadow: 0 15px 30px rgba(0,0,0,.35); }
.primary-nav.is-open { display: grid; }
.primary-nav a { color: var(--muted); padding: .72rem .5rem; text-decoration: none; font-weight: 700; border-radius: .4rem; }
.primary-nav a:hover { color: var(--ink); background: var(--surface-2); }

.page-shell { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; padding-bottom: 5rem; }
.breadcrumbs { padding-top: 1.4rem; color: var(--muted); font-size: .82rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: #66718a; margin: 0 .55rem; }
.breadcrumbs a { color: var(--muted); }
.page-hero { max-width: 930px; padding: clamp(3.8rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.page-hero h1 { margin: 0; max-width: 900px; font-size: clamp(2.65rem, 9vw, 6.4rem); line-height: .95; letter-spacing: -.055em; text-wrap: balance; }
.page-hero .dek { max-width: 750px; margin: 1.5rem 0 0; color: #c9d0df; font-size: clamp(1.1rem, 2.3vw, 1.45rem); line-height: 1.55; }
.editorial-media { min-width: 0; margin: 2rem 0 0; }
.editorial-media-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 1.15rem; background: var(--surface); }
.editorial-media-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.editorial-media img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow { margin: 0 0 .8rem; color: var(--accent); font-size: .75rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.dragon-page .page-hero h1 { background: linear-gradient(100deg, #fff 15%, #ffce6d 58%, #ff7c65); -webkit-background-clip: text; background-clip: text; color: transparent; }

.editorial-body { max-width: var(--reading); }
.home-page .editorial-body, .dragon-page .editorial-body { max-width: none; }
.content-section { margin: 0 0 clamp(3.5rem, 8vw, 6.5rem); }
.content-section > h2, .spotlight h2, .feature-panel h2 { margin: 0 0 1.2rem; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.content-section > p { max-width: var(--reading); color: #cad1e0; font-size: 1.06rem; }
.content-section > p + p { margin-top: 1.15rem; }
.card-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { min-width: 0; padding: 1.45rem; border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(145deg, rgba(23,33,57,.94), rgba(13,19,34,.94)); box-shadow: 0 16px 45px rgba(0,0,0,.16); }
.card h3 { margin: 0 0 .65rem; font-size: 1.22rem; line-height: 1.25; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { color: var(--muted); margin: 0 0 1rem; }
.text-link { display: inline-block; font-size: .87rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.feature-panel, .spotlight { display: grid; gap: 2rem; align-items: center; padding: clamp(1.5rem, 5vw, 3.5rem); margin: 0 0 clamp(3.5rem, 8vw, 6.5rem); border-radius: 1.25rem; border: 1px solid var(--line); background: linear-gradient(125deg, #17213a, #10182b 60%, #202340); overflow: hidden; }
.feature-panel p:not(.eyebrow), .spotlight p { color: #cbd3e5; max-width: 700px; }
.orb { width: min(56vw, 260px); aspect-ratio: 1; margin: auto; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff3be 0 5%, #ffbd4a 13%, #ff766c 46%, #5f2b82 70%, #11182a 71%); box-shadow: 0 0 0 18px rgba(255,189,74,.08), 0 30px 80px rgba(0,0,0,.4); transform: rotate(-8deg); }
.orb span { color: white; font-size: clamp(3rem, 13vw, 6.4rem); line-height: 1; font-weight: 950; letter-spacing: -.08em; text-shadow: 0 4px 15px rgba(20,8,22,.35); }
.button { justify-self: start; display: inline-flex; align-items: center; min-height: 48px; padding: .7rem 1.1rem; border-radius: .65rem; background: var(--accent); color: #151009; text-decoration: none; font-weight: 850; }
.button:hover { background: #ffd27a; color: #151009; }
.back-link { margin: 4rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 750; }
.faq-list { display: grid; gap: .8rem; margin-bottom: 4rem; }
.faq-list details { border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); padding: 0 1rem; }
.faq-list summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; color: var(--ink); font-weight: 800; }
.faq-list p { color: var(--muted); margin-top: 0; }
.feature-landing .page-hero h1 { background: linear-gradient(105deg, #fff7dc 8%, #ffcc67 48%, #ff795f 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature-landing .editorial-media-frame { border-color: rgba(255,189,74,.45); box-shadow: 0 24px 70px rgba(95,24,18,.28); }
.feature-landing .editorial-body { max-width: none; }
.feature-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.feature-actions .button { min-width: 10.5rem; }
.feature-button-secondary { border: 1px solid rgba(255,189,74,.68); background: rgba(16,20,34,.74); color: #ffd27a; }
.feature-button-secondary:hover { border-color: #ffd27a; }
.feature-grid { display: grid; gap: 1rem; }
.feature-cta { padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid rgba(255,189,74,.38); border-radius: 1.2rem; background: linear-gradient(135deg, rgba(40,27,37,.96), rgba(18,24,42,.96)); }
.feature-cta .button { margin-top: 1rem; }
.feature-note { padding: 1rem 1.15rem; border-left: 3px solid var(--accent); background: rgba(255,189,74,.07); color: #cfd5e4; font-size: .9rem; }
.feature-note a { font-weight: 800; }

.site-footer { border-top: 1px solid var(--line); background: #070a12; }
.footer-grid { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; padding: 3.8rem 0 2.5rem; display: grid; gap: 2.2rem; }
.footer-grid > div:first-child p { max-width: 330px; color: var(--muted); }
.footer-brand { color: var(--ink); font-size: 1.4rem; font-weight: 900; text-decoration: none; }
.footer-grid h2 { margin: 0 0 .7rem; color: var(--muted); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid div:not(:first-child) a { color: #d3d8e5; padding: .27rem 0; text-decoration: none; }
.footer-grid div:not(:first-child) a:hover { color: var(--accent); }
.footer-base { border-top: 1px solid #171e2e; }
.footer-base p { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 1.2rem 0; color: #7f899f; font-size: .78rem; }

@media (max-width: 520px) {
  .brand img { width: 72px; height: 42px; }
  .feature-actions { flex-direction: column; }
  .feature-actions .button { width: 100%; }
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.7fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { position: static; display: flex; align-items: center; padding: 0; background: none; border: 0; box-shadow: none; }
  .primary-nav a { padding: .6rem .68rem; font-size: .9rem; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-panel { grid-template-columns: 1.7fr .8fr; }
  .spotlight { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: auto; }
  .editorial-hero { max-width: none; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); grid-template-rows: auto auto 1fr; column-gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
  .editorial-hero > .eyebrow { grid-column: 1; grid-row: 1; align-self: end; }
  .editorial-hero > h1 { grid-column: 1; grid-row: 2; }
  .editorial-hero > .dek { grid-column: 1; grid-row: 3; }
  .editorial-hero > .editorial-media { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
  .feature-landing .editorial-hero { grid-template-rows: auto auto auto 1fr; }
  .feature-landing .editorial-hero > .feature-actions { grid-column: 1; grid-row: 4; }
  .feature-landing .editorial-hero > .editorial-media { grid-row: 1 / span 4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
