:root {
  --ink: #080c10;
  --panel: #0d1319;
  --panel-2: #111923;
  --line: rgba(157, 178, 199, 0.16);
  --muted: #8c9bab;
  --text: #edf4fa;
  --blue: #52a8ff;
  --blue-bright: #79bbff;
  --teal: #20d9bd;
  --red: #ff6b6b;
  --yellow: #ffd166;
  --max: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.sr-only, .skip-link {
  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:focus { width: auto; height: auto; clip: auto; margin: 12px; padding: 12px 16px; z-index: 100; background: white; color: black; }
.section-shell { width: min(var(--max), calc(100% - 80px)); margin-inline: auto; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  padding: 18px 0;
  transition: background .25s ease, border-color .25s ease, padding .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { padding: 10px 0; background: rgba(8, 12, 16, .86); border-color: var(--line); backdrop-filter: blur(18px); }
.nav-shell { width: min(var(--max), calc(100% - 80px)); margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.brand img { border-radius: 10px; }
.site-nav { display: flex; align-items: center; gap: 34px; color: #aebbc7; font-size: 13px; font-weight: 600; }
.site-nav > a { transition: color .2s; }
.site-nav > a:hover { color: white; }
.nav-github { display: inline-flex; align-items: center; gap: 9px; color: white !important; padding: 10px 15px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.035); }
.nav-github svg { width: 17px; fill: currentColor; }
.nav-toggle { display: none; }

.hero {
  position: relative;
  min-height: 940px;
  padding: 188px 0 80px;
}
.hero-grid {
  position: absolute;
  z-index: -2;
  left: 35%;
  top: 0;
  width: 65vw;
  height: 760px;
  opacity: .32;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 70%, transparent), linear-gradient(#000 60%, transparent);
}
.hero-glow { position: absolute; z-index: -1; width: 620px; height: 620px; right: -60px; top: 70px; background: radial-gradient(circle, rgba(46,139,235,.17), transparent 67%); filter: blur(5px); }
.hero-copy { width: 57%; position: relative; z-index: 2; }
.eyebrow, .section-kicker { font: 500 11px/1 "DM Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-bright); }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 1px; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 23px 0 28px; max-width: 860px; font-size: clamp(66px, 7.2vw, 112px); line-height: .91; letter-spacing: -.074em; font-weight: 700; }
h1 em { font-style: normal; color: var(--blue-bright); font-weight: 500; }
.hero-lede { max-width: 590px; color: #aab7c3; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 0 20px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-weight: 700; transition: transform .2s ease, border-color .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.button-primary { background: var(--blue); color: #06101a; border-color: var(--blue); box-shadow: 0 10px 32px rgba(82,168,255,.19); }
.button-primary:hover { background: #77bcff; border-color: #77bcff; }
.button-ghost { color: #c5d0da; background: rgba(255,255,255,.025); }
.button-ghost:hover { border-color: rgba(255,255,255,.35); }

.hero-visual { width: 70%; margin: -20px 0 0 auto; position: relative; z-index: 1; }
.app-window { padding: 8px; border: 1px solid rgba(118,157,195,.27); border-radius: 14px; background: #10161d; box-shadow: 0 45px 100px rgba(0,0,0,.62), 0 0 80px rgba(67,155,241,.08); transform: perspective(1800px) rotateY(-2deg) rotateX(1deg); transform-origin: right center; overflow: hidden; }
.window-bar { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; color: #7f8c99; font: 500 10px "DM Mono", monospace; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3c4650; }
.window-dots i:first-child { background: #ff6b6b; } .window-dots i:nth-child(2) { background: #ffd166; } .window-dots i:last-child { background: #44d27b; }
.window-status { display: flex; gap: 6px; align-items: center; color: #64dc92; text-transform: uppercase; }
.window-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.app-window > img { border-radius: 7px; border: 1px solid rgba(151,180,210,.12); }
.signal-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid rgba(104,171,238,.25); border-radius: 5px; background: rgba(12,20,28,.9); box-shadow: 0 10px 30px rgba(0,0,0,.3); backdrop-filter: blur(10px); color: #aebdca; font: 500 9px "DM Mono", monospace; letter-spacing: .08em; }
.signal-chip i { width: 6px; height: 6px; border-radius: 50%; background: #42df89; box-shadow: 0 0 9px currentColor; }
.signal-chip-one { left: -55px; top: 28%; } .signal-chip-two { right: -20px; top: 72%; }
.signal-chip-two i { background: var(--red); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 64px; }
.trust-row > div { padding: 24px 26px; border-right: 1px solid var(--line); }
.trust-row > div:first-child { padding-left: 0; }
.trust-row > div:last-child { border: 0; }
.trust-row strong { display: block; font-size: 13px; margin-bottom: 5px; }
.trust-row span { color: #667583; font: 400 10px "DM Mono", monospace; }

.mission { padding: 150px 0; }
.mission-layout { display: grid; grid-template-columns: 1.4fr .75fr; gap: 120px; margin-top: 35px; align-items: start; }
.mission h2, .projects-heading h2, .community h2 { font-size: clamp(48px, 5.5vw, 82px); line-height: 1; letter-spacing: -.06em; }
.mission h2 span, .community h2 span { color: #637383; }
.mission-copy { padding-top: 15px; }
.mission-copy p { color: #9aa8b5; font-size: 17px; line-height: 1.8; }
.mission-copy p:first-child { color: #d9e1e8; }
.text-link { display: inline-flex; gap: 18px; padding-bottom: 7px; border-bottom: 1px solid #3c4a56; color: var(--blue-bright); font-size: 13px; font-weight: 700; }
.text-link:hover { border-color: currentColor; }

.projects { padding: 90px 0 150px; }
.projects-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 55px; }
.projects-heading h2 { margin: 22px 0 0; }
.projects-heading > p { max-width: 400px; color: #8c9baa; line-height: 1.65; }
.project { overflow: hidden; border: 1px solid rgba(144,174,204,.16); border-radius: 12px; background: var(--panel); }
.project-featured { min-height: 680px; display: grid; grid-template-columns: 41% 59%; }
.project-copy { padding: 40px 42px; position: relative; z-index: 2; }
.project-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.project-number { color: #556575; font: 500 10px "DM Mono", monospace; }
.status { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(142,161,180,.16); border-radius: 4px; color: #7c8a97; font: 500 8px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: #43dd86; box-shadow: 0 0 8px #43dd86; }
.status-live { color: #70d99a; border-color: rgba(67,221,134,.2); background: rgba(67,221,134,.04); }
.product-mark { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 9px; font: 800 20px/1 "DM Mono", monospace; }
.hub-mark { color: #a9d4ff; background: #18334e; border: 1px solid #275f91; }
.product-name { margin-bottom: 30px; color: #8091a1; font: 500 11px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.project h3 { margin-bottom: 20px; font-size: clamp(38px, 4vw, 60px); line-height: 1.03; letter-spacing: -.055em; }
.project-description { max-width: 460px; color: #91a0ae; font-size: 15px; line-height: 1.7; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; list-style: none; padding: 18px 0 24px; border-top: 1px solid var(--line); color: #bec8d1; font: 400 10px "DM Mono", monospace; }
.feature-list li::before { content: "+"; color: var(--blue); margin-right: 9px; }
.button-light { color: #dbe8f2; background: rgba(255,255,255,.04); }
.project-media { position: relative; min-width: 0; display: flex; align-items: center; padding: 60px 0 60px 35px; background: radial-gradient(circle at 54% 45%, rgba(46,126,204,.15), transparent 56%), #0a1015; }
.project-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(96,137,174,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(96,137,174,.07) 1px, transparent 1px); background-size: 50px 50px; mask-image: linear-gradient(90deg, transparent, #000 30%); }
.project-media img { position: relative; z-index: 1; width: 120%; max-width: none; border: 1px solid rgba(132,171,207,.2); border-radius: 10px 0 0 10px; box-shadow: 0 40px 70px rgba(0,0,0,.4); }
.project-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.project-rta { min-height: 750px; display: flex; flex-direction: column; }
.project-rta .project-copy { flex: 0 0 430px; }
.rta-mark { padding: 0; object-fit: contain; background: transparent; border: 0; border-radius: 10px; }
.rta-screen { margin-top: auto; padding: 0 0 0 38px; overflow: hidden; }
.rta-screen img { width: 110%; max-width: none; border-radius: 9px 0 0; border: 1px solid rgba(64,219,191,.22); }
.text-link.light { color: #bdece4; margin-top: 14px; }
.coming-stack { display: grid; gap: 18px; }
.project-coming { position: relative; padding: 30px 34px; min-height: 366px; }
.project-coming .project-meta { margin-bottom: 38px; }
.coming-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .8fr; gap: 28px; }
.project-coming h3 { font-size: clamp(34px, 3vw, 46px); }
.project-coming .product-name { margin-bottom: 18px; }
.project-coming .coming-content > p { color: #8795a2; line-height: 1.7; font-size: 13px; padding-top: 62px; }
.caption-mark { position: relative; color: #d3b0ff; background: #2c1a45; border: 1px solid #5e368a; }
.caption-mark span { color: #ffcf69; }
.caption-lines { position: absolute; right: -20px; bottom: 20px; width: 52%; opacity: .16; transform: rotate(-5deg); }
.caption-lines span { display: block; height: 10px; margin: 13px 0; border-radius: 10px; background: #a16cff; }
.caption-lines span:nth-child(2) { width: 75%; } .caption-lines span:nth-child(3) { width: 42%; }
.graphics-card { background: linear-gradient(145deg, #111820, #0e141a); }
.graphics-mark { color: #ffd986; background: #352b13; border: 1px solid #776125; }
.surface-grid { position: absolute; right: -25px; bottom: -30px; width: 230px; height: 150px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; transform: perspective(500px) rotateX(20deg) rotateZ(-8deg); opacity: .22; }
.surface-grid i { border: 1px solid #ffd166; background: linear-gradient(135deg, rgba(255,209,102,.2), transparent); }

.principles { padding: 70px 0 150px; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 42px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.principle-grid article { min-height: 370px; padding: 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.principle-grid article:last-child { border: 0; }
.principle-grid article > span { color: #526170; font: 500 9px "DM Mono", monospace; }
.principle-grid svg { width: 43px; height: 43px; margin: 62px 0 auto; fill: none; stroke: var(--blue); stroke-width: 1.1; }
.principle-grid h3 { font-size: 19px; margin-bottom: 10px; }
.principle-grid p { color: #81909e; font-size: 13px; line-height: 1.65; margin: 0; }

.community { min-height: 600px; position: relative; display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(circle at 76% 45%, rgba(33,120,210,.14), transparent 40%), #0b1117; }
.community-copy { position: relative; z-index: 2; max-width: 680px; padding: 85px; }
.community h2 { margin: 25px 0 28px; }
.community p { max-width: 590px; color: #93a2b0; font-size: 16px; line-height: 1.75; }
.community-mesh { position: absolute; width: 54%; height: 100%; right: 0; opacity: .65; }
.community-mesh svg { width: 100%; height: 100%; overflow: visible; }
.community-mesh path { fill: none; stroke: rgba(82,168,255,.28); stroke-width: 1; }
.node { position: absolute; z-index: 2; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 8px rgba(82,168,255,.08), 0 0 25px rgba(82,168,255,.8); }
.n1 { left: 12%; top: 68%; } .n2 { left: 42%; top: 25%; } .n3 { left: 72%; top: 45%; background: var(--red); } .n4 { left: 50%; top: 78%; } .n5 { left: 78%; top: 79%; }

.site-footer { padding: 90px 0 28px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr; align-items: start; padding-bottom: 70px; }
.footer-brand { font-size: 25px; }
.footer-main > p { color: #697887; font: 400 11px/1.7 "DM Mono", monospace; }
.footer-main nav { display: grid; justify-content: end; gap: 12px; color: #aab6c0; font-size: 13px; }
.footer-main nav a:hover { color: var(--blue); }
.footer-base { padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #566574; font: 400 9px "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.system-status { display: flex; align-items: center; gap: 8px; }
.system-status i { width: 5px; height: 5px; border-radius: 50%; background: #41d982; box-shadow: 0 0 7px #41d982; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease var(--delay, 0s), transform .7s cubic-bezier(.22,.8,.25,1) var(--delay, 0s); }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .section-shell, .nav-shell { width: min(100% - 48px, var(--max)); }
  .hero { min-height: auto; }
  .hero-copy { width: 78%; }
  .hero-visual { width: 85%; margin-top: 45px; }
  .mission-layout { gap: 60px; }
  .project-featured { grid-template-columns: 1fr; }
  .project-media { min-height: 500px; }
  .project-row { grid-template-columns: 1fr; }
  .project-rta { min-height: 820px; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-grid article:nth-child(2) { border-right: 0; }
  .principle-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .community-copy { padding: 60px; }
}

@media (max-width: 720px) {
  .section-shell, .nav-shell { width: calc(100% - 36px); }
  .site-header { padding: 12px 0; }
  .site-header .brand img { width: 31px; height: 31px; }
  .nav-toggle { position: relative; z-index: 2; display: grid; gap: 6px; width: 40px; height: 40px; place-content: center; border: 1px solid var(--line); border-radius: 6px; color: white; background: var(--panel); }
  .nav-toggle span:not(.sr-only) { width: 17px; height: 1px; background: currentColor; transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 0; left: 0; width: 100%; padding: 88px 24px 28px; flex-direction: column; align-items: stretch; gap: 0; background: rgba(8,12,16,.98); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 14px 0; border-top: 1px solid var(--line); }
  .nav-github { margin-top: 12px; justify-content: center; }
  .hero { padding-top: 145px; }
  .hero-grid { left: 8%; width: 92vw; height: 600px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(57px, 18vw, 76px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-visual { width: 110%; margin: 55px 0 0 -5%; }
  .app-window { padding: 4px; border-radius: 9px; transform: none; }
  .window-bar { height: 30px; }
  .signal-chip { display: none; }
  .trust-row { grid-template-columns: 1fr 1fr; margin-top: 45px; }
  .trust-row > div { padding: 20px 12px; }
  .trust-row > div:nth-child(2) { border-right: 0; }
  .trust-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mission, .projects, .principles { padding: 105px 0; }
  .mission-layout { grid-template-columns: 1fr; gap: 18px; }
  .mission h2, .projects-heading h2, .community h2 { font-size: 48px; }
  .projects-heading { align-items: start; flex-direction: column; gap: 28px; }
  .project-copy { padding: 28px 24px; }
  .project-featured { min-height: 0; }
  .project-media { min-height: 290px; padding: 28px 0 28px 18px; }
  .project h3 { font-size: 41px; }
  .feature-list { grid-template-columns: 1fr; }
  .project-rta { min-height: 650px; }
  .project-rta .project-copy { flex-basis: auto; }
  .rta-screen { padding-left: 20px; margin-top: 35px; }
  .coming-content { grid-template-columns: 1fr; gap: 0; }
  .project-coming { min-height: 450px; padding: 25px; }
  .project-coming .coming-content > p { padding-top: 0; max-width: 85%; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article { min-height: 300px; border: 0; border-bottom: 1px solid var(--line) !important; }
  .principle-grid article:last-child { border-bottom: 0 !important; }
  .principle-grid svg { margin-top: 38px; }
  .community { width: calc(100% - 20px); min-height: 690px; align-items: end; }
  .community-copy { padding: 45px 24px; }
  .community-mesh { width: 100%; height: 55%; top: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .footer-main nav { justify-content: start; }
  .footer-base { gap: 18px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}
