/* ============================================================
   Skyllarium — Futuristic design system
   Dark neon theme · glassmorphism · animated gradients
   ============================================================ */

:root {
  --bg: #06070f;
  --bg-2: #0b0d1c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(102, 227, 255, 0.35);
  --text: #e8ecf8;
  --text-dim: #9aa3c0;
  --accent: #ff7a45;        /* Claude coral */
  --accent-2: #66e3ff;      /* cyan */
  --accent-3: #a78bfa;      /* violet */
  --gradient: linear-gradient(100deg, #ff7a45, #ff4d8d 35%, #a78bfa 65%, #66e3ff);
  --radius: 18px;
  --nav-h: 72px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255, 122, 69, 0.4); }

img, svg { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Animated background layers ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(102,227,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102,227,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 56px, 56px 0; }
}

.bg-aurora {
  position: fixed; inset: -20%; z-index: -2; filter: blur(90px); opacity: .5;
  background:
    radial-gradient(35% 35% at 22% 28%, rgba(255,122,69,.30), transparent 70%),
    radial-gradient(30% 30% at 78% 20%, rgba(102,227,255,.22), transparent 70%),
    radial-gradient(40% 40% at 60% 80%, rgba(167,139,250,.20), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(4deg) scale(1.08); }
  100% { transform: rotate(-3deg) scale(1.02); }
}

#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(6, 7, 15, 0.65);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 8px 40px rgba(0,0,0,.55); }

.nav-inner {
  width: min(1200px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.logo {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em;
  color: var(--text); text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--gradient);
  background-size: 300% 300%;
  animation: gradShift 6s ease infinite;
  display: grid; place-items: center;
  font-size: 1.05rem; color: #fff;
  box-shadow: 0 0 22px rgba(255, 122, 69, .5);
}
.logo-grad {
  background: var(--gradient);
  background-size: 300% 300%;
  animation: gradShift 6s ease infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button.drop-btn {
  display: flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; border-radius: 10px;
  color: var(--text-dim); font-size: .95rem; font-weight: 500;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  transition: color .2s, background .2s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links button.drop-btn:hover,
.nav-links a.active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-links a.active { color: var(--accent); }

.caret { transition: transform .25s; font-size: .7em; }
.dropdown.open .caret { transform: rotate(180deg); }

.drop-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
  background: rgba(13, 15, 30, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px; padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
  transition: opacity .22s, transform .22s, visibility .22s;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(102,227,255,.06);
}
.dropdown.open .drop-menu, .dropdown:focus-within .drop-menu {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.drop-menu a {
  display: flex; flex-direction: column; gap: .1rem;
  align-items: flex-start; text-align: left;
  padding: .6rem .8rem; border-radius: 10px; width: 100%;
}
.drop-menu a strong { color: var(--text); font-weight: 600; font-size: .92rem; }
.drop-menu a span { font-size: .78rem; color: var(--text-dim); font-weight: 400; }
.drop-menu a:hover { background: rgba(102,227,255,.08); }
.drop-menu a:hover strong { color: var(--accent-2); }

.lang-switch {
  display: flex; align-items: center; gap: .3rem;
  border: 1px solid var(--border); border-radius: 999px; padding: .25rem;
}
.lang-switch a {
  padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  color: var(--text-dim); text-decoration: none; transition: all .2s;
}
.lang-switch a.on { background: var(--gradient); color: #fff; }
.lang-switch a:not(.on):hover { color: var(--text); }

.burger {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 10px; width: 42px; height: 42px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Layout ---------- */
main { padding-top: var(--nav-h); }
.wrap { width: min(1200px, 92%); margin: 0 auto; }
section { padding: 4.5rem 0; }

/* ---------- Hero ---------- */
.hero { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; position: relative; padding: 3rem 0; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .95rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  border: 1px solid var(--border-glow); color: var(--accent-2);
  background: rgba(102,227,255,.06);
  animation: pulseBorder 3s ease-in-out infinite;
}
@keyframes pulseBorder {
  0%, 100% { box-shadow: 0 0 0 0 rgba(102,227,255,.25); }
  50% { box-shadow: 0 0 18px 2px rgba(102,227,255,.18); }
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.08; letter-spacing: -.03em; font-weight: 850;
  margin: 1.1rem 0;
}
.grad-text {
  background: var(--gradient); background-size: 300% 300%;
  animation: gradShift 7s ease infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 56ch; }

.typing { font-family: var(--mono); color: var(--accent-2); min-height: 1.6em; display: block; font-size: 1rem; margin-top: 1rem; }
.typing::after { content: "▌"; animation: blink 1s infinite; }

.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.7rem; border-radius: 12px; font-weight: 700; font-size: .98rem;
  text-decoration: none; transition: transform .2s, box-shadow .2s; cursor: pointer; border: 0;
}
.btn:hover { text-decoration: none; transform: translateY(-3px); }
.btn-primary {
  background: var(--gradient); background-size: 200% 200%; color: #fff;
  animation: gradShift 5s ease infinite;
  box-shadow: 0 8px 30px rgba(255, 90, 100, .35);
}
.btn-primary:hover { box-shadow: 0 14px 44px rgba(255, 90, 100, .5); }
.btn-ghost {
  border: 1px solid var(--border); color: var(--text); background: var(--surface);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--border-glow); box-shadow: 0 0 24px rgba(102,227,255,.18); }

/* Hero orb */
.orb-scene { position: relative; display: grid; place-items: center; min-height: 380px; }
.orb {
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.35), transparent 40%),
              conic-gradient(from 0deg, #ff7a45, #ff4d8d, #a78bfa, #66e3ff, #ff7a45);
  filter: blur(1px);
  animation: orbSpin 14s linear infinite, orbFloat 6s ease-in-out infinite;
  box-shadow: 0 0 90px rgba(255,110,90,.45), 0 0 180px rgba(102,227,255,.25), inset 0 0 60px rgba(6,7,15,.6);
}
@keyframes orbSpin { to { transform: rotate(360deg); } }
@keyframes orbFloat { 50% { translate: 0 -18px; } }
.ring {
  position: absolute; border: 1px solid rgba(102,227,255,.25); border-radius: 50%;
  animation: ringSpin linear infinite;
}
.ring-1 { width: 360px; height: 360px; animation-duration: 12s; border-top-color: rgba(255,122,69,.7); }
.ring-2 { width: 430px; height: 430px; animation-duration: 20s; animation-direction: reverse; border-bottom-color: rgba(167,139,250,.7); }
.ring-3 { width: 500px; height: 500px; animation-duration: 30s; border-left-color: rgba(102,227,255,.6); }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.orb-chip {
  position: absolute; padding: .45rem .8rem; border-radius: 10px; font-size: .75rem; font-weight: 700;
  font-family: var(--mono);
  background: rgba(13,15,30,.85); border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  animation: chipFloat 5s ease-in-out infinite;
}
.orb-chip:nth-of-type(1) { top: 8%; left: 4%; color: var(--accent); animation-delay: 0s; }
.orb-chip:nth-of-type(2) { bottom: 14%; left: 0; color: var(--accent-2); animation-delay: 1.2s; }
.orb-chip:nth-of-type(3) { top: 22%; right: 0; color: var(--accent-3); animation-delay: 2.4s; }
.orb-chip:nth-of-type(4) { bottom: 4%; right: 8%; color: #34d399; animation-delay: 3.1s; }
@keyframes chipFloat { 50% { transform: translateY(-12px); } }

/* ---------- Section headers ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.sec-head .kicker {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.sec-head h2, h2.big { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -.02em; margin: .6rem 0; line-height: 1.15; }
.sec-head p { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; backdrop-filter: blur(12px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255,122,69,.5), transparent 40%, transparent 60%, rgba(102,227,255,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; letter-spacing: -.01em; }
.card p { color: var(--text-dim); font-size: .94rem; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(255,122,69,.16), rgba(102,227,255,.14));
  border: 1px solid var(--border);
}
.card-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 600; font-size: .9rem; }
.card-link::after { content: "→"; transition: transform .2s; }
.card-link:hover::after { transform: translateX(4px); }

.tag {
  display: inline-block; padding: .22rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  border: 1px solid var(--border); color: var(--text-dim); margin-right: .35rem; margin-bottom: .35rem;
}
.tag.hot { color: var(--accent); border-color: rgba(255,122,69,.4); background: rgba(255,122,69,.08); }
.tag.free { color: #34d399; border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); }
.tag.paid { color: var(--accent-3); border-color: rgba(167,139,250,.4); background: rgba(167,139,250,.08); }
.tag.cyan { color: var(--accent-2); border-color: rgba(102,227,255,.4); background: rgba(102,227,255,.08); }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; }
.news-card time { font-family: var(--mono); font-size: .75rem; color: var(--accent-2); letter-spacing: .05em; }
.news-card h3 { margin: .5rem 0; }
.news-card .src { margin-top: auto; padding-top: 1rem; font-size: .8rem; color: var(--text-dim); }
.news-featured { grid-column: span 2; background: linear-gradient(135deg, rgba(255,122,69,.10), rgba(167,139,250,.07)); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat {
  text-align: center; padding: 1.8rem 1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.stat .num { font-size: 2.3rem; font-weight: 850; letter-spacing: -.03em; font-family: var(--mono); }
.stat .lbl { color: var(--text-dim); font-size: .85rem; margin-top: .3rem; }

/* ---------- Code blocks ---------- */
.code {
  background: #0a0c18; border: 1px solid var(--border); border-radius: 14px;
  padding: 1.2rem 1.4rem; font-family: var(--mono); font-size: .85rem;
  overflow-x: auto; line-height: 1.7; position: relative; margin: 1.2rem 0;
}
.code .cm { color: #5b6383; }
.code .kw { color: var(--accent); }
.code .st { color: #7ee787; }
.code .fn { color: var(--accent-2); }
.code-title {
  position: absolute; top: 0; right: 0; font-size: .68rem; padding: .3rem .8rem;
  color: var(--text-dim); border-left: 1px solid var(--border); border-bottom: 1px solid var(--border);
  border-radius: 0 14px 0 10px; background: rgba(255,255,255,.03);
}

/* ---------- Steps / timeline ---------- */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 60px 1fr; gap: 1.2rem; align-items: start;
  padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s, transform .3s;
}
.step:hover { border-color: var(--border-glow); transform: translateX(6px); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 1.4rem; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--text-dim); font-size: .94rem; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
th { text-align: left; padding: 1rem 1.2rem; background: rgba(255,255,255,.05); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
td { padding: .95rem 1.2rem; border-top: 1px solid var(--border); color: var(--text-dim); }
td strong { color: var(--text); }
tr { transition: background .2s; }
tbody tr:hover { background: rgba(102,227,255,.04); }

/* ---------- FAQ ---------- */
details.faq {
  border: 1px solid var(--border); border-radius: 14px; margin-bottom: 1rem;
  background: var(--surface); overflow: hidden; transition: border-color .3s;
}
details.faq[open] { border-color: var(--border-glow); }
details.faq summary {
  padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 650; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform .3s; flex-shrink: 0; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body { padding: 0 1.5rem 1.3rem; color: var(--text-dim); font-size: .95rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: .9rem 0; background: rgba(255,255,255,.02); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--mono); font-size: .85rem; color: var(--text-dim); white-space: nowrap; }
.marquee-track span b { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Ads ---------- */
.ad-slot {
  margin: 2.5rem auto; max-width: 970px; min-height: 110px;
  display: grid; place-items: center; border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.14);
  color: #4c5470; font-size: .75rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.015);
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 24px; padding: 3.5rem 2.5rem; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,122,69,.14), rgba(167,139,250,.10), rgba(102,227,255,.12));
  border: 1px solid var(--border);
}
.cta-band::before {
  content: ""; position: absolute; width: 200%; height: 200%; top: -50%; left: -50%;
  background: conic-gradient(transparent, rgba(102,227,255,.14), transparent 30%);
  animation: orbSpin 8s linear infinite;
}
.cta-band > * { position: relative; }

/* ---------- Newsletter ---------- */
.newsletter { display: flex; gap: .8rem; max-width: 480px; margin: 1.6rem auto 0; flex-wrap: wrap; justify-content: center; }
.newsletter input {
  flex: 1; min-width: 220px; padding: .85rem 1.2rem; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(6,7,15,.6); color: var(--text);
  font-family: inherit; font-size: .95rem; outline: none; transition: border-color .2s;
}
.newsletter input:focus { border-color: var(--accent-2); box-shadow: 0 0 18px rgba(102,227,255,.2); }

/* ---------- Footer ---------- */
footer {
  margin-top: 4rem; border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(11,13,28,.8));
  padding: 3.5rem 0 2rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.foot-grid h4 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1rem; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: .55rem; }
.foot-grid a { color: var(--text-dim); font-size: .92rem; }
.foot-grid a:hover { color: var(--text); }
.foot-desc { color: var(--text-dim); font-size: .9rem; max-width: 34ch; margin-top: .8rem; }
.foot-bottom {
  border-top: 1px solid var(--border); padding-top: 1.6rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  color: var(--text-dim); font-size: .82rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.65,.3,1), transform .8s cubic-bezier(.2,.65,.3,1); }
.reveal.vis { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }

/* ---------- Breadcrumbs & page hero ---------- */
.page-hero { padding: 4.5rem 0 2.5rem; text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.page-hero p { color: var(--text-dim); max-width: 62ch; margin: 0 auto; font-size: 1.08rem; }
.crumbs { font-size: .82rem; color: var(--text-dim); margin-bottom: 1.2rem; font-family: var(--mono); }
.crumbs a { color: var(--text-dim); } .crumbs a:hover { color: var(--accent-2); }

/* ---------- Prose ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; margin: 2.6rem 0 1rem; letter-spacing: -.01em; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 .8rem; }
.prose p { color: var(--text-dim); margin-bottom: 1.1rem; }
.prose ul, .prose ol { color: var(--text-dim); margin: 0 0 1.1rem 1.4rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--text); }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: .8rem 1.4rem; margin: 1.4rem 0;
  background: rgba(255,122,69,.06); border-radius: 0 12px 12px 0; color: var(--text-dim); font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .cta-row { justify-content: center; }
  .orb-scene { min-height: 320px; transform: scale(.8); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .news-featured { grid-column: span 1; }
  .burger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: rgba(8, 10, 22, .97); backdrop-filter: blur(24px);
    padding: 1.2rem 5%; border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform .35s cubic-bezier(.2,.65,.3,1);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .drop-menu { position: static; opacity: 1; visibility: hidden; transform: none; display: none; box-shadow: none; margin: .3rem 0 .5rem 1rem; }
  .dropdown.open .drop-menu { display: block; visibility: visible; }
  .step { grid-template-columns: 44px 1fr; padding: 1.2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Clickable cards & info modal ---------- */
.card.clickable { cursor: pointer; }
.card.clickable:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.card-more { display: none; }
.click-hint {
  text-align: center; font-family: var(--mono); font-size: .78rem; color: var(--text-dim);
  margin: -1.5rem auto 2rem; letter-spacing: .06em;
}
.click-hint b { color: var(--accent-2); }

.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(4, 5, 12, 0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: 1.2rem;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: min(600px, 100%); max-height: 82vh; overflow-y: auto;
  background: rgba(13, 15, 30, 0.97);
  border: 1px solid var(--border-glow); border-radius: 22px;
  padding: 2.2rem; position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,.75), 0 0 60px rgba(102,227,255,.08);
  transform: translateY(24px) scale(.96); transition: transform .35s cubic-bezier(.2,.65,.3,1);
}
.modal-overlay.open .modal { transform: none; }
.modal h3 {
  font-size: 1.45rem; margin-bottom: 1rem; padding-right: 2.5rem; letter-spacing: -.01em;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.modal .card-more { display: block; color: var(--text-dim); font-size: .95rem; }
.modal .card-more p { margin-bottom: .9rem; }
.modal .card-more ul { margin: 0 0 1rem 1.2rem; }
.modal .card-more li { margin-bottom: .45rem; }
.modal .card-more strong { color: var(--text); }
.modal .card-more a.btn { margin-top: .6rem; }
.modal-close {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 1.1rem; cursor: pointer;
  display: grid; place-items: center; transition: all .2s;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }
