:root {
  --bg: #07090d;
  --bg-soft: #0b0f16;
  --panel: rgba(16, 23, 33, 0.78);
  --panel-strong: #101721;
  --text: #f3f7fb;
  --muted: #8f9bab;
  --line: rgba(255,255,255,.10);
  --accent: #66f2c2;
  --accent-2: #88a8ff;
  --danger: #ff6b7a;
  --max: 1180px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 15%, rgba(76, 120, 255, .13), transparent 30%),
    radial-gradient(circle at 20% 10%, rgba(0, 255, 187, .08), transparent 22%),
    linear-gradient(180deg, #06080b 0%, #090d13 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .025;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    white 4px
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(7,9,13,.92), rgba(7,9,13,.62));
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(102,242,194,.45);
  border-radius: 12px;
  color: var(--accent);
  font-weight: 850;
  letter-spacing: -0.05em;
  background: rgba(102,242,194,.05);
  box-shadow: inset 0 0 24px rgba(102,242,194,.08);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-copy strong {
  font-size: 1rem;
  letter-spacing: .02em;
}
.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .62rem;
  letter-spacing: .28em;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-nav a, .footer-links a {
  color: #b7c2d0;
  text-decoration: none;
  font-size: .92rem;
}
.site-nav a:hover, .footer-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 28px;
}

.hero { padding-top: 120px; padding-bottom: 140px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.22fr .78fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 7vw, 6.7rem);
  line-height: .92;
  letter-spacing: -.065em;
  max-width: 900px;
}
h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(243,247,251,.58);
}
h2 {
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -.045em;
}
h3 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.hero-text {
  max-width: 690px;
  color: #aeb9c7;
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  color: #06120e;
  background: var(--accent);
  border-color: var(--accent);
}
.button.ghost { background: rgba(255,255,255,.025); }

.terminal-card {
  border: 1px solid rgba(136,168,255,.22);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16,23,33,.93), rgba(9,14,21,.93));
  box-shadow: 0 30px 90px rgba(0,0,0,.38);
  transform: rotate(1.4deg);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.terminal-top span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.terminal-top code {
  margin-left: auto;
  color: var(--muted);
  font-size: .72rem;
}

.terminal-body {
  padding: 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
}
.terminal-body p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255,255,255,.07);
}
.terminal-body .muted { color: #667487; }
.status { color: var(--accent); }
.meter {
  height: 7px;
  margin: 26px 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.meter i {
  display: block;
  width: 62%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px rgba(102,242,194,.35);
}
.terminal-note { color: var(--danger); font-size: .72rem; }

.section-heading { margin-bottom: 38px; }

.project-card, .contact-card, .policy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}

.project-card {
  padding: clamp(28px, 5vw, 54px);
  position: relative;
  overflow: hidden;
}
.project-card::after {
  content: "01";
  position: absolute;
  right: 28px;
  top: -34px;
  color: rgba(255,255,255,.025);
  font-size: 13rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: .82rem;
}
.badge {
  color: var(--accent);
  border: 1px solid rgba(102,242,194,.28);
  background: rgba(102,242,194,.06);
  padding: 7px 10px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  letter-spacing: .08em;
}
.project-card > p { color: #aeb9c7; max-width: 760px; font-size: 1.08rem; }

.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}
.project-stats div {
  background: #0c1118;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.project-stats span {
  color: var(--muted);
  font-size: .66rem;
  letter-spacing: .12em;
}
.project-stats strong { margin-top: 5px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.two-col p { color: #9eabba; }
.two-col .lead { color: var(--text); font-size: 1.28rem; line-height: 1.5; }

.contact-card {
  padding: 38px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.contact-card h2 { margin-bottom: 10px; }
.contact-card p:last-child { color: var(--muted); margin-bottom: 0; }
.contact-note {
  margin: 14px 4px 0;
  color: #6f7c8d;
  font-size: .8rem;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 28px 44px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
}
.site-footer > div:first-child {
  display: flex;
  flex-direction: column;
}
.site-footer strong { color: var(--text); }
.site-footer span { font-size: .8rem; }
.footer-links { display: flex; gap: 22px; }

.policy-shell {
  max-width: 940px;
  margin: 0 auto;
  padding: 86px 28px 110px;
}
.policy-card { padding: clamp(28px, 6vw, 64px); }
.policy-card h1 { font-size: clamp(2.9rem, 6vw, 5rem); margin-bottom: 15px; }
.policy-card h1 span { -webkit-text-stroke: 0; }
.policy-card h2 {
  margin-top: 44px;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.policy-card p, .policy-card li { color: #aeb9c7; }
.policy-card a { color: var(--accent); overflow-wrap: anywhere; }
.policy-date { color: var(--muted) !important; }
.legal-note {
  margin-top: 50px;
  padding: 20px 22px;
  border-left: 2px solid var(--accent);
  background: rgba(102,242,194,.05);
  color: #8fa69e;
  font-size: .85rem;
}

@media (max-width: 820px) {
  .site-header { padding: 16px 18px; }
  .nav-toggle { display: inline-flex; }
  .site-nav:not(.policy-nav) {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 76px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(10,14,20,.98);
  }
  .site-nav.open { display: flex; }
  .policy-nav { gap: 14px; }
  .section { padding: 74px 20px; }
  .hero { padding-top: 82px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 42px; }
  .terminal-card { transform: none; }
  .project-stats { grid-template-columns: 1fr; }
  .contact-card { align-items: flex-start; flex-direction: column; }
  .site-footer { padding-left: 20px; padding-right: 20px; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  h1 { font-size: 3.25rem; }
  .brand-copy small { letter-spacing: .2em; }
  .policy-nav a:last-child { display: none; }
  .project-card { padding: 24px; }
}
