:root {
  --bg: #050a11;
  --bg-soft: #0a1320;
  --surface: rgba(14, 29, 47, .72);
  --text: #f4f9ff;
  --muted: #9bafc2;
  --line: rgba(177, 220, 255, .16);
  --ice: #7dd3fc;
  --ice-bright: #d8f4ff;
  --ink: #07111f;
  --header: rgba(5, 10, 17, .62);
  --shadow: 0 32px 90px rgba(0, 0, 0, .38);
  --radius: 1.5rem;
}

html[data-theme="light"] {
  --bg: #eef8ff;
  --bg-soft: #dcefff;
  --surface: rgba(255, 255, 255, .7);
  --text: #081525;
  --muted: #536a80;
  --line: rgba(5, 38, 65, .15);
  --ice: #0878bd;
  --ice-bright: #075f95;
  --header: rgba(238, 248, 255, .72);
  --shadow: 0 32px 90px rgba(30, 93, 135, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  transition: color .45s ease, background .45s ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: #06111d; background: var(--ice); }

.noise {
  position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed; z-index: 0; width: 34rem; height: 34rem; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none; opacity: .17;
  background: radial-gradient(circle, #2aaeea 0, transparent 67%); filter: blur(16px);
}

.site-header {
  position: fixed; z-index: 20; top: 1rem; left: 50%; transform: translateX(-50%);
  width: min(94%, 82rem); height: 4.25rem; padding: .55rem .7rem .55rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  border: 1px solid var(--line); border-radius: 1.3rem; background: var(--header);
  backdrop-filter: blur(22px); box-shadow: 0 10px 40px rgba(0,0,0,.12);
}

.brand { display: inline-flex; align-items: center; gap: .75rem; font-size: .9rem; font-weight: 800; letter-spacing: .16em; }
.brand-mark {
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center; color: var(--ink);
  background: var(--ice); border-radius: .65rem; font-weight: 950; letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 0 28px rgba(125,211,252,.2);
}
.desktop-nav { display: flex; gap: 2.1rem; color: var(--muted); font-size: .86rem; }
.desktop-nav a { transition: color .2s ease; }
.desktop-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.theme-toggle {
  width: 2.8rem; height: 2.8rem; border-radius: .9rem; border: 1px solid var(--line);
  color: var(--text); background: transparent; cursor: pointer; font-size: 1.15rem;
}

.button {
  min-height: 3.6rem; padding: 0 1.35rem; display: inline-flex; align-items: center;
  justify-content: center; gap: 1.2rem; border-radius: 1rem; border: 1px solid var(--line);
  font-weight: 750; font-size: .9rem; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.button:hover { transform: translateY(-3px); }
.button-small { min-height: 2.8rem; border-radius: .85rem; background: var(--text); color: var(--bg); }
.button-primary { background: var(--ice); color: #06111d; border-color: transparent; box-shadow: 0 15px 45px rgba(54, 179, 235, .24); }

.hero { min-height: 100svh; position: relative; display: grid; align-items: end; padding: 9rem max(4vw, 1.5rem) 4rem; isolation: isolate; }
.hero-media { position: absolute; z-index: -4; inset: 0; background: url("assets/faciens-world.png") center 46% / cover no-repeat; transform: scale(1.045); }
.hero-shade { position: absolute; z-index: -3; inset: 0; background: linear-gradient(90deg, rgba(2,7,13,.92) 0%, rgba(3,9,17,.64) 43%, rgba(2,7,13,.08) 72%), linear-gradient(0deg, var(--bg) 0%, transparent 42%, rgba(2,7,13,.4) 100%); }
html[data-theme="light"] .hero-shade { background: linear-gradient(90deg, rgba(227,244,255,.92) 0%, rgba(221,240,255,.6) 42%, rgba(5,10,17,.03) 72%), linear-gradient(0deg, var(--bg) 0%, transparent 46%, rgba(235,248,255,.2) 100%); }
.hero-content { width: min(57rem, 75%); position: relative; z-index: 2; }
.eyebrow { margin: 0 0 1.2rem; text-transform: uppercase; letter-spacing: .19em; font-size: .73rem; font-weight: 800; color: var(--ice); }
.eyebrow.dark { color: #0a4b70; }
.hero h1, h2 { margin: 0; letter-spacing: -.065em; line-height: .9; font-weight: 780; }
.hero h1 { font-size: clamp(4rem, 8.6vw, 9rem); }
.hero h1 span { display: block; }
.ice-text { color: var(--ice-bright); text-shadow: 0 0 55px rgba(125,211,252,.18); }
.hero-copy { max-width: 38rem; margin: 1.7rem 0 0; font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: #c3d5e6; }
html[data-theme="light"] .hero-copy { color: #183a56; }
.hero-actions { margin-top: 2.1rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; gap: .6rem; color: #d9ecfa; border: 0; background: transparent; cursor: pointer; }
html[data-theme="light"] .text-link { color: #123751; }
.copy-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #5eeaa8; box-shadow: 0 0 16px #5eeaa8; }

.launch-card {
  position: absolute; z-index: 2; right: max(4vw, 1.5rem); bottom: 4rem; width: min(28rem, 38vw);
  padding: 1.25rem; border: 1px solid rgba(196,229,255,.22); border-radius: 1.4rem;
  display: grid; gap: 1.2rem; background: rgba(4,12,21,.56); backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.launch-card > div:first-child { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.meta { color: #95abc0; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.launch-card strong { font-size: 1.1rem; }
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.countdown span { padding: .8rem .6rem; text-align: center; border-radius: .9rem; background: rgba(155,211,250,.09); }
.countdown b { display: block; font-size: 1.55rem; line-height: 1.1; }
.countdown small { color: #9ab0c4; }
.scroll-cue { position: absolute; bottom: 1.4rem; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: .7rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #9fb0c0; }
.scroll-cue i { width: 2.5rem; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.scroll-cue i::after { content:""; position:absolute; inset:0; background:#fff; animation: slide 2s infinite; }
@keyframes slide { from { translate:-100% 0; } to { translate:100% 0; } }

.section { padding: 8rem max(4vw, 1.5rem); position: relative; }
.section-number { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .7rem; letter-spacing: .16em; }
.manifesto { padding-top: 10rem; }
.manifesto-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8vw; padding-top: 5rem; }
.sticky-title { align-self: start; position: sticky; top: 8rem; }
h2 { font-size: clamp(3.4rem, 7.2vw, 7.7rem); }
.large-copy { margin: 0; color: var(--muted); font-size: clamp(1.55rem, 3vw, 3.2rem); line-height: 1.25; letter-spacing: -.035em; }
.metric-row { margin-top: 5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.metric { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.metric strong { display: block; font-size: clamp(1.7rem, 3vw, 3rem); letter-spacing: -.055em; }
.metric span { color: var(--muted); font-size: .85rem; }

.world-window { padding-top: 1rem; }
.window-frame { height: min(76vh, 54rem); position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.window-frame img { width: 100%; height: 115%; object-fit: cover; position: absolute; top: -7%; transition: transform .15s linear; }
.window-frame::after { content:""; position:absolute; inset:0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); border-radius: inherit; background: linear-gradient(0deg, rgba(2,8,16,.48), transparent 38%); }
.window-overlay { position: absolute; z-index: 2; inset: auto 1.5rem 1.5rem; display: flex; justify-content: space-between; gap: 1rem; color: #eaf7ff; font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; }

.principles-head { padding: 5rem 0 4rem; display: flex; align-items: flex-end; justify-content: space-between; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { min-height: 29rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface), transparent); display: flex; flex-direction: column; transition: transform .35s ease, border-color .35s ease; }
.feature-card:hover { transform: translateY(-8px); border-color: rgba(125,211,252,.55); }
.card-index { color: var(--muted); font-size: .75rem; }
.card-icon { width: 4rem; height: 4rem; margin: auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 1rem; font-size: 2rem; color: var(--ice); rotate: -8deg; }
.feature-card h3 { margin: 0 0 .7rem; font-size: 1.75rem; letter-spacing: -.04em; }
.feature-card p { margin: 0; color: var(--muted); }

.access { margin: 3rem max(1vw, .5rem); padding-inline: max(3vw, 1rem); color: #06111d; background: linear-gradient(135deg, #c9efff, #78c9f0 62%, #aee5fa); border-radius: 2.2rem; overflow: hidden; }
.section-number.light { color: #366984; border-color: rgba(6,17,29,.18); }
.access-layout { padding-top: 5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.access-intro > p:last-child { max-width: 30rem; margin-top: 2rem; color: #20475d; font-size: 1.1rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem; padding: 1.7rem 0; border-top: 1px solid rgba(6,17,29,.2); }
.steps li > span { font-size: .75rem; font-weight: 800; }
.steps h3 { margin: 0 0 .45rem; font-size: 1.35rem; }
.steps p { margin: 0; color: #28536a; }
.access-cta { margin-top: 5rem; padding: 2.2rem 0 0; border-top: 1px solid rgba(6,17,29,.2); display: flex; justify-content: space-between; align-items: center; font-size: clamp(1.55rem, 4vw, 4.5rem); font-weight: 750; letter-spacing: -.05em; }
.access-cta b { width: 5.5rem; height: 5.5rem; display: grid; place-items: center; border-radius: 50%; background: #06111d; color: #bcecff; font-size: 1.8rem; transition: rotate .3s ease, transform .3s ease; }
.access-cta:hover b { rotate: 45deg; transform: scale(1.07); }

.faq-layout { padding-top: 5rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; }
.faq-heading { align-self: start; position: sticky; top: 8rem; }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { padding: 1.6rem 0; list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 1.25rem; font-weight: 650; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary i { font-style: normal; color: var(--ice); font-size: 1.6rem; transition: rotate .25s ease; }
.accordion details[open] summary i { rotate: 45deg; }
.accordion details p { max-width: 42rem; margin: -.5rem 0 1.7rem; color: var(--muted); }

.final-cta { min-height: 85vh; padding: 8rem 1.5rem; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.final-cta h2 { position: relative; z-index: 1; }
.final-cta h2 span { color: var(--ice); }
.final-cta .button { margin-top: 2.5rem; position: relative; z-index: 1; }
.cta-orb { position: absolute; width: min(65vw, 52rem); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 45% 40%, rgba(121,213,255,.33), rgba(9,83,125,.12) 48%, transparent 68%); filter: blur(8px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .7; } }

footer { padding: 2rem max(4vw, 1.5rem); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center; gap: 2rem; color: var(--muted); font-size: .78rem; }
footer p { text-align: center; }
footer > div { justify-self: end; display: flex; gap: 1.5rem; }
footer a:hover { color: var(--text); }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 2rem; translate: -50% 2rem; padding: .8rem 1rem; color: #06111d; background: var(--ice); border-radius: .75rem; font-weight: 700; opacity: 0; pointer-events: none; transition: .3s ease; }
.toast.show { translate: -50% 0; opacity: 1; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .hero { padding-bottom: 3rem; align-items: center; }
  .hero-content { width: 100%; margin-top: 8rem; }
  .hero h1 { font-size: clamp(3.8rem, 15vw, 7rem); }
  .launch-card { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 3rem; }
  .scroll-cue { display: none; }
  .manifesto-grid, .access-layout, .faq-layout { grid-template-columns: 1fr; gap: 4rem; }
  .sticky-title, .faq-heading { position: static; }
  .cards { grid-template-columns: 1fr; }
  .feature-card { min-height: 22rem; }
  .metric-row { margin-top: 3rem; }
  .access-cta b { width: 4.2rem; height: 4.2rem; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer p { text-align: left; }
  footer > div { justify-self: start; }
}

@media (max-width: 560px) {
  .site-header { top: .55rem; width: calc(100% - 1rem); }
  .site-header .brand > span:last-child { display: none; }
  .button-small { padding-inline: .9rem; }
  .hero { padding-inline: 1rem; }
  .hero h1 { font-size: clamp(3.35rem, 17vw, 5.5rem); }
  .hero-copy { font-size: 1rem; }
  .section { padding: 6rem 1rem; }
  h2 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .manifesto-grid, .faq-layout { padding-top: 3.5rem; }
  .large-copy { font-size: 1.5rem; }
  .metric-row { grid-template-columns: 1fr; }
  .window-frame { height: 65vh; border-radius: 1.1rem; }
  .window-overlay { flex-direction: column; }
  .access { margin-inline: .4rem; border-radius: 1.4rem; }
  .access-cta { align-items: flex-end; gap: 1rem; }
  .access-cta b { flex: 0 0 auto; }
  .final-cta { min-height: 75vh; }
}

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