:root {
  --bg: #070b14;
  --bg2: #0c1220;
  --panel: #111a2c;
  --line: rgba(255,255,255,.08);
  --text: #e8ecf4;
  --muted: #9aa6bd;
  --teal: #4fe3c1;
  --violet: #8b7cff;
  --amber: #ffb35c;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
em { font-style: italic; }
strong { font-weight: 600; color: #fff; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.12; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.2rem; }
h2 em, h1 em { color: var(--teal); }
h3 { font-size: 1.45rem; font-weight: 500; margin-bottom: .5rem; }
p + p { margin-top: 1rem; }

.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber); font-weight: 500; margin-bottom: 1rem;
}

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.scrolled { background: rgba(7,11,20,.75); backdrop-filter: blur(14px); padding-block: .7rem; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.brand:hover { text-decoration: none; }
.brand em { color: var(--teal); }
.brand-eye { width: 34px; height: 20px; color: var(--teal); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text); font-size: .9rem; opacity: .8; }
.nav-links a:hover { opacity: 1; color: var(--teal); text-decoration: none; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -5%; background-size: cover; background-position: center;
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.02) translate(0,0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,11,20,.92) 0%, rgba(7,11,20,.6) 45%, rgba(7,11,20,.1) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-content { position: relative; max-width: 720px; padding: 8rem clamp(1.2rem, 6vw, 6rem) 6rem; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 7.5rem); margin-bottom: 1.5rem; }
.glow {
  font-style: italic; font-weight: 500;
  /* extra padding so the gradient (background-clip:text) covers italic overhangs like the i's dot */
  padding: .12em .14em .06em .04em; margin: 0 -.14em 0 -.04em;
  background: linear-gradient(100deg, var(--teal), var(--violet) 60%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(79,227,193,.35));
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #cdd5e4; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.btn {
  display: inline-block; padding: .9rem 1.6rem; border-radius: 999px; font-weight: 500; font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #04221b; box-shadow: 0 10px 30px -10px rgba(79,227,193,.6); }
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(79,227,193,.8); }
.btn-ghost { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.scroll-cue { position: absolute; bottom: 2rem; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal); animation: cue 2s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* LAYOUT */
section { padding: clamp(5rem, 10vw, 9rem) clamp(1.2rem, 5vw, 4rem); }
.split, .feature-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 900px) { .split, .feature-grid { grid-template-columns: 1fr; } }
.split > *, .feature-grid > * { min-width: 0; }
.split-media img, .feature-media img { border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.split-media { position: relative; }
.split-media::after {
  content: ""; position: absolute; inset: auto -6% -8% 20%; height: 60%; z-index: -1;
  background: radial-gradient(closest-side, rgba(139,124,255,.35), transparent); filter: blur(30px);
}
.split-text p, .feature-text p { color: #c3cbdb; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.stats strong, .spec-grid strong { display: block; font-family: var(--serif); font-weight: 300; font-size: 2.4rem; color: var(--teal); line-height: 1; margin-bottom: .4rem; }
.stats span, .spec-grid span { font-size: .85rem; color: var(--muted); }

.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.amp { font-style: italic; color: var(--amber); }

/* WAYS */
.ways { background: linear-gradient(180deg, var(--bg), var(--bg2)); }
.way-cards { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .way-cards { grid-template-columns: 1fr; } }
.way-card {
  position: relative; border-radius: var(--radius); overflow: hidden; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); transition: transform .35s, border-color .35s;
}
.way-card:hover { text-decoration: none; transform: translateY(-6px); border-color: rgba(79,227,193,.4); }
.way-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform .8s; }
.way-card:hover img { transform: scale(1.05); }
.way-card-body { padding: 1.8rem 2rem 2.2rem; }
.way-card-body p { color: var(--muted); }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(79,227,193,.35); padding: .25rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.more { display: inline-block; margin-top: 1.2rem; color: var(--amber); font-weight: 500; }

/* FEATURE */
.feature { background: var(--bg2); }
.feature.alt { background: var(--bg); }
.ticks { list-style: none; margin-top: 1.6rem; }
.ticks li { position: relative; padding-left: 1.8rem; margin: .55rem 0; color: #c3cbdb; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }

.scope { position: relative; border-radius: var(--radius); overflow: hidden; background: #02040a; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 6px rgba(255,255,255,.02); }
.scope canvas { display: block; width: 100%; height: auto; }
.scope-label { display: flex; justify-content: space-between; padding: .5rem 1rem; font-family: var(--mono); font-size: .72rem; color: var(--muted); border-top: 1px solid var(--line); }
.caption { font-size: .82rem; color: var(--muted); margin-top: .8rem; text-align: center; font-style: italic; }

.code-card { max-width: 820px; margin: 4rem auto 0; background: #050810; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.code-head { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.code-head span { width: 11px; height: 11px; border-radius: 50%; background: #2a3448; }
.code-head span:first-child { background: #ff6b6b; } .code-head span:nth-child(2) { background: var(--amber); } .code-head span:nth-child(3) { background: var(--teal); }
.code-head em { margin-left: auto; font-size: .75rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-style: normal; }
pre { padding: 1.4rem 1.6rem; overflow-x: auto; font-family: var(--mono); font-size: .88rem; line-height: 1.8; color: #dfe6f3; }
pre .c { color: #66748f; }

.stack { position: relative; padding-bottom: 18%; }
.stack-a { width: 82%; }
.stack-b { position: absolute; width: 56%; right: 0; bottom: 0; border: 6px solid var(--bg); }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; margin: 2rem 0; padding: 1.6rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.spec-grid strong { font-size: 1.9rem; }

/* BANNER */
.banner { position: relative; min-height: 70vh; display: grid; place-items: center; background-size: cover; background-position: center; background-attachment: fixed; text-align: center; }
@media (max-width: 900px) { .banner { background-attachment: scroll; } }
.banner-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(7,11,20,.35), rgba(7,11,20,.85)), linear-gradient(180deg, var(--bg2), transparent 20%, transparent 80%, var(--bg)); }
.banner blockquote { position: relative; font-family: var(--serif); font-size: clamp(2.2rem, 5.5vw, 4.5rem); font-weight: 300; line-height: 1.15; text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.banner em { color: var(--amber); }

/* GALLERY / GUIDE */
.guide { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .guide { grid-template-columns: 1fr; } }
.guide-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, border-color .3s; }
.guide-item:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); }
.guide-item h3, .guide-item p { padding: 0 1.6rem; }
.guide-item h3 { margin-top: 1.3rem; }
.guide-item p { color: var(--muted); font-size: .95rem; padding-bottom: 1.6rem; }
.guide-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .8s; }
.guide-item:hover .guide-img { transform: scale(1.05); }

/* STEPS */
.start { background: linear-gradient(180deg, var(--bg), var(--bg2)); }
.steps { list-style: none; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.steps li { border-top: 1px solid rgba(79,227,193,.4); padding-top: 1.5rem; }
.steps p { color: var(--muted); font-size: .95rem; }
.num { font-family: var(--serif); font-size: 2.6rem; color: var(--teal); opacity: .6; display: block; margin-bottom: .6rem; }

/* ETHICS */
.ethics { background: var(--bg2); padding-top: 0; }
.ethics-card { max-width: 900px; margin: 0 auto; display: flex; gap: 2rem; align-items: flex-start; padding: 2.4rem; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,179,92,.08), rgba(139,124,255,.06)); border: 1px solid rgba(255,179,92,.25); }
.ethics-card svg { flex: none; width: 56px; color: var(--amber); margin-top: .4rem; }
.ethics-card p { color: #c3cbdb; }
@media (max-width: 600px) { .ethics-card { flex-direction: column; } }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 3.5rem clamp(1.2rem, 5vw, 4rem); text-align: center; }
.footer-inner { max-width: 760px; margin: 0 auto; display: grid; justify-items: center; gap: 1rem; }
.domains { font-family: var(--mono); font-size: .85rem; color: var(--teal); letter-spacing: .03em; }
.small { font-size: .8rem; color: var(--muted); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}
