:root {
  color-scheme: dark;
  --bg: #070b10;
  --panel: #0c1218;
  --panel-2: #111922;
  --text: #edf4f7;
  --muted: #8d9aa6;
  --line: rgba(184, 220, 221, .12);
  --accent: #7ee0c3;
  --accent-2: #4cae95;
  --warn: #e6bd6e;
  --radius: 22px;
  --shadow: 0 26px 90px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 75% 5%, rgba(69,154,133,.12), transparent 31rem),
    radial-gradient(circle at 8% 30%, rgba(58,107,126,.08), transparent 27rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -2;
}
.noise { position: fixed; inset: 0; opacity: .025; pointer-events: none; z-index: -1; 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='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"); }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  padding: 0 max(22px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(7,11,16,.78);
  backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .08em; width: fit-content; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(126,224,195,.55); border-radius: 10px; display: grid; place-items: center; font: 600 11px/1 JetBrains Mono, monospace; color: var(--accent); box-shadow: inset 0 0 18px rgba(126,224,195,.07); }
.nav { display: flex; gap: 30px; color: #a9b5bd; font-size: 14px; }
.nav a:hover { color: var(--text); }
.ghost-btn { justify-self: end; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 700; }
.ghost-btn:hover { border-color: rgba(126,224,195,.42); color: var(--accent); }

.section-shell { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }
.hero { min-height: 680px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; padding: 86px 0 74px; }
.eyebrow, .kicker { font: 600 12px/1.5 JetBrains Mono, monospace; letter-spacing: .14em; color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(126,224,195,.5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(126,224,195,0); } 100% { box-shadow: 0 0 0 0 rgba(126,224,195,0); } }
.hero h1 { margin: 20px 0 24px; max-width: 720px; font-size: clamp(50px, 7vw, 86px); line-height: .95; letter-spacing: -.055em; }
.hero h1 span { color: #7e8b93; }
.hero-text { max-width: 660px; margin: 0; color: #a8b3bb; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; gap: 24px; align-items: center; margin-top: 34px; }
.primary-btn { background: var(--accent); color: #06110e; padding: 14px 20px; border-radius: 12px; font-weight: 800; box-shadow: 0 14px 35px rgba(77,181,151,.15); }
.primary-btn:hover { transform: translateY(-1px); background: #91ead0; }
.text-btn { color: #bcc7cd; font-weight: 700; }
.text-btn span { color: var(--accent); margin-left: 5px; }
.hero-proof { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { font-size: 13px; margin-bottom: 6px; }
.hero-proof span { font-size: 12px; line-height: 1.5; color: #788690; }

.hero-console { position: relative; min-height: 505px; overflow: hidden; border: 1px solid rgba(126,224,195,.16); border-radius: 28px; background: linear-gradient(145deg, rgba(17,26,34,.9), rgba(7,12,17,.96)); box-shadow: var(--shadow); }
.console-top { height: 48px; display: flex; align-items: center; gap: 7px; padding: 0 17px; border-bottom: 1px solid var(--line); color: #6f7d86; }
.console-top > span { width: 7px; height: 7px; border-radius: 50%; background: #36434b; }
.console-top b { margin-left: auto; font: 600 10px JetBrains Mono, monospace; letter-spacing: .09em; }
.radar { position: relative; width: 360px; height: 360px; margin: 28px auto 0; border: 1px solid rgba(126,224,195,.13); border-radius: 50%; background: radial-gradient(circle, rgba(126,224,195,.06), transparent 66%); overflow: hidden; }
.radar::before, .radar::after { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px solid rgba(126,224,195,.08); }
.radar::after { inset: 0 auto 0 50%; border-left: 1px solid rgba(126,224,195,.08); border-top: 0; }
.ring { position: absolute; inset: 50%; translate: -50% -50%; border: 1px solid rgba(126,224,195,.12); border-radius: 50%; }
.r1 { width: 72%; height: 72%; } .r2 { width: 46%; height: 46%; } .r3 { width: 20%; height: 20%; }
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 78%, rgba(126,224,195,.17) 93%, rgba(126,224,195,.4) 100%); animation: sweep 7s linear infinite; }
@keyframes sweep { to { rotate: 360deg; } }
.node { position: absolute; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #0c1719; border: 1px solid rgba(126,224,195,.28); color: var(--accent); font: 600 9px JetBrains Mono, monospace; box-shadow: 0 0 24px rgba(126,224,195,.08); }
.node.core { inset: 50%; translate: -50% -50%; width: 68px; height: 68px; background: #112522; }
.n1 { left: 50px; top: 96px; } .n2 { right: 41px; top: 72px; } .n3 { left: 76px; bottom: 53px; } .n4 { right: 55px; bottom: 68px; }
.console-log { position: absolute; inset: auto 19px 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.console-log span { border: 1px solid var(--line); border-radius: 999px; background: rgba(10,15,20,.85); padding: 7px 10px; color: #87949c; font: 500 9px JetBrains Mono, monospace; }
.console-log i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }

.apps-section, .ecosystem-section, .about-section { padding: 95px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 9px 0 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.04em; }
.section-head.compact { margin-bottom: 38px; }
.search-box { width: 250px; height: 44px; padding: 0 14px; display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(14,20,27,.72); color: #75838c; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-box input::placeholder { color: #697780; }
.filters { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.filter { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 13px; font-size: 12px; cursor: pointer; }
.filter:hover, .filter.active { background: rgba(126,224,195,.09); border-color: rgba(126,224,195,.3); color: var(--accent); }

.app-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.app-card { min-height: 285px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(17,25,34,.88), rgba(9,14,19,.92)); transition: .2s ease; cursor: pointer; }
.app-card:hover { translate: 0 -3px; border-color: rgba(126,224,195,.28); box-shadow: 0 20px 45px rgba(0,0,0,.18); }
.app-top { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.app-symbol { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(126,224,195,.18); border-radius: 14px; background: rgba(126,224,195,.05); color: var(--accent); font: 700 11px JetBrains Mono, monospace; }
.app-category { padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.035); color: #77858e; font: 600 9px JetBrains Mono, monospace; text-transform: uppercase; letter-spacing: .08em; }
.app-card h3 { margin: 25px 0 8px; font-size: 24px; letter-spacing: -.025em; }
.app-card p { margin: 0; color: #87949d; line-height: 1.65; font-size: 14px; }
.app-meta { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: #66747d; font: 500 10px JetBrains Mono, monospace; }
.app-meta .learn { color: var(--accent); }
.empty { grid-column: 1/-1; padding: 55px 20px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; color: var(--muted); }

.ecosystem-section { border-top: 1px solid var(--line); }
.ecosystem-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.ecosystem-grid article { min-height: 240px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12,18,24,.66); }
.step { color: var(--accent); font: 600 11px JetBrains Mono, monospace; }
.ecosystem-grid h3 { margin: 50px 0 10px; font-size: 22px; }
.ecosystem-grid p { margin: 0; color: #839099; font-size: 14px; line-height: 1.75; }

.about-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; padding: 48px; border-radius: 28px; border: 1px solid rgba(126,224,195,.18); background: radial-gradient(circle at 92% 5%, rgba(126,224,195,.09), transparent 24rem), #0c1218; }
.about-card h2 { max-width: 720px; margin: 10px 0 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; }
.about-card p { margin: 0; color: #8b99a2; line-height: 1.75; }

.footer { min-height: 125px; padding: 28px 0 max(28px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--line); color: #64727a; font-size: 12px; }
.footer .brand { color: #aeb9bf; font-size: 12px; }
.footer a { justify-self: end; }

.app-dialog { width: min(630px, calc(100% - 30px)); max-height: min(760px, calc(100dvh - 32px)); padding: 0; overflow: auto; border: 1px solid rgba(126,224,195,.22); border-radius: 24px; color: var(--text); background: #0a1016; box-shadow: 0 30px 120px rgba(0,0,0,.65); }
.app-dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(8px); }
.dialog-close { position: sticky; float: right; top: 16px; margin: 16px 16px 0 0; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #10171e; cursor: pointer; z-index: 2; }
.dialog-inner { padding: 52px 38px 38px; }
.dialog-inner .app-symbol { width: 58px; height: 58px; margin-bottom: 24px; }
.dialog-inner h2 { margin: 0 0 10px; font-size: 36px; letter-spacing: -.04em; }
.dialog-inner > p { color: #96a3ab; line-height: 1.75; }
.feature-list { display: grid; gap: 9px; margin: 26px 0; padding: 0; list-style: none; }
.feature-list li { padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; color: #adbac1; font-size: 13px; background: rgba(255,255,255,.018); }
.feature-list li::before { content: "✓"; margin-right: 10px; color: var(--accent); }
.dialog-actions { display: flex; align-items: center; gap: 12px; margin-top: 25px; }
.disabled-btn { padding: 12px 15px; border-radius: 11px; background: #172028; color: #70808a; font-weight: 700; font-size: 13px; }
.dialog-note { color: #65737b; font-size: 11px; }

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 55px; padding-top: 70px; }
  .hero-console { width: min(600px,100%); justify-self: center; }
  .app-grid { grid-template-columns: repeat(2,1fr); }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .site-header { height: 66px; }
  .ghost-btn { display: none; }
  .section-shell { width: min(100% - 28px, 1180px); }
  .hero { min-height: 0; padding: 56px 0 50px; }
  .hero h1 { font-size: clamp(46px, 15vw, 68px); }
  .hero-text { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-proof { grid-template-columns: 1fr; gap: 14px; }
  .hero-console { min-height: 385px; }
  .radar { width: 280px; height: 280px; margin-top: 25px; }
  .node { width: 48px; height: 48px; font-size: 8px; }
  .node.core { width: 58px; height: 58px; }
  .n1 { left: 35px; top: 73px; } .n2 { right: 28px; top: 58px; } .n3 { left: 58px; bottom: 35px; } .n4 { right: 38px; bottom: 50px; }
  .console-log { display: none; }
  .apps-section, .ecosystem-section, .about-section { padding: 65px 0; }
  .section-head { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 255px; }
  .about-card { padding: 30px 24px; }
  .footer { grid-template-columns: 1fr; gap: 16px; }
  .footer p { margin: 0; }
  .footer a { justify-self: start; }
  .dialog-inner { padding: 52px 24px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
