:root {
  --bg: #0b1220;
  --bg-soft: #101a2d;
  --surface: #151f36;
  --surface-soft: #121b30;
  --text: #edf2fa;
  --muted: #96a5bf;
  --accent: #3ecbff;
  --accent-2: #6b5bff;
  --success: #41d38a;
  --line: #2c3f63;
  --shadow: 0 16px 40px rgba(4, 10, 20, 0.25);
  --radius: 16px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

*,
*:before,
*:after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background:
    linear-gradient(180deg, #090f1c 0%, #0c1323 52%, #09101d 100%);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% -6%, rgba(62, 203, 255, 0.28), transparent 32%),
    radial-gradient(circle at 85% 8%, rgba(107, 91, 255, 0.16), transparent 30%);
}

a { color: inherit; }

.ambient-layer {
  display: none;
}

#neonCanvas {
  display: none;
}

.pointer { display: none; }

.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  background: rgba(11, 18, 34, 0.86);
  backdrop-filter: blur(8px);
  border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid rgba(67, 84, 124, 0.36);
  border-top: 0;
  z-index: 9;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.06em;
  font-size: 0.98rem;
}

.brand-tag {
  font-size: 0.76rem;
  color: var(--muted);
}

.top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 0.5rem 0.82rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
}

.top-nav a.active,
.top-nav a:hover {
  color: #fff;
  background: linear-gradient(120deg, rgba(62, 203, 255, 0.22), rgba(107, 91, 255, 0.2));
  border: 1px solid rgba(62, 203, 255, 0.4);
}

.btn {
  border-radius: 999px;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #091020;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(62, 203, 255, 0.5);
}

.btn-mini {
  padding: 0.5rem 0.85rem;
}

.menu-toggle {
  display: none;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(75, 92, 127, 0.6);
  color: var(--text);
  border-radius: 10px;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  background: linear-gradient(140deg, rgba(25, 36, 60, 0.8), rgba(14, 23, 39, 0.74));
  box-shadow: var(--shadow);
}

.eyebrow {
  letter-spacing: 0.12em;
  color: var(--success);
  font-size: 0.78rem;
  margin: 0;
  text-transform: uppercase;
}

.hero-core {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.12;
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); }

p { color: var(--muted); }

.hero h1 { margin-bottom: 0.8rem; }

.hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.system-status {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.system-status span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #d8e8ff;
  border: 1px solid rgba(62, 203, 255, 0.38);
  padding: 0.36rem 0.6rem;
  border-radius: 999px;
  background: rgba(7, 13, 25, 0.84);
}

.system-status i { width: 7px; height: 7px; background: var(--success); border-radius: 50%; }

.hero-terminal {
  background: #0b1425;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
}

.term-head {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--success);
  margin-bottom: 0.45rem;
}

.term-body {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #c8d8f0;
}

.term-body .good { color: #4ce89b; }
.term-body .ok { color: #8ee5ff; }
.term-body .warn { color: #ffd27d; }

.stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.stats > div {
  border: 1px solid rgba(64, 85, 123, 0.44);
  border-radius: 12px;
  padding: 0.8rem;
  background: rgba(11, 18, 34, 0.84);
}

.stats span.metric {
  display: block;
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 700;
}

.stats p { margin: 0.35rem 0 0; font-size: 0.85rem; }

.stats small { color: var(--muted); }

.feature-cascade,
.service-list,
.grid-3,
.timeline,
.steps,
.service-strip,
.contact-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.8rem;
}

.feature-cascade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: 1.2fr 0.8fr; }

.feature-block,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 1.05rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-block:hover,
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-block h2,
.card h2,
.page-hero h1 {
  margin-bottom: 0.55rem;
}

.label {
  font-size: 0.74rem;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.feature-block a,
.card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.feature-block p,
.card p,
.lead,
.timeline p,
.service-strip p {
  font-size: 0.95rem;
  color: var(--muted);
}

.feature-block ul,
.card ul {
  padding-left: 1.1rem;
  color: var(--muted);
}

.architecture {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(130deg, rgba(29, 42, 72, 0.85), rgba(14, 23, 39, 0.9));
  padding: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.05fr .95fr;
}

.architecture ul { margin: 0.6rem 0 0; }

.arch-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.arch-diagram div {
  border: 1px solid rgba(62, 203, 255, 0.4);
  color: #daf2ff;
  padding: 0.9rem 0.6rem;
  text-align: center;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
}

.showcase {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(130deg, rgba(24, 39, 68, 0.9), rgba(14, 22, 39, 0.88));
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0.8rem;
}

.showcase-quote {
  border: 1px dashed rgba(65, 211, 138, 0.35);
  padding: 0.8rem;
  border-radius: 12px;
  color: #d7efe2;
}

.section-heading h2 { margin: 0 0 0.3rem; }

.step {
  border: 1px solid rgba(67, 84, 124, 0.46);
  border-radius: var(--radius);
  padding: 0.8rem;
  background: rgba(14, 22, 36, 0.82);
}

.step span {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--success);
  margin-bottom: 0.35rem;
  display: block;
  font-weight: 700;
}

.step b {
  display: block;
  margin-bottom: 0.3rem;
}

.timeline article,
.strip-item,
.highlight-banner,
.card {
  background: rgba(18, 27, 46, 0.85);
}

.strip-item,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
}

.strip-item strong,
.timeline article h2 {
  color: #e7f0ff;
}

.strip-item p,
.timeline p { margin: 0.35rem 0 0; }

.highlight-banner {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.highlight-banner p { margin-bottom: 0.85rem; }

.page-hero {
  margin: 0.2rem 0 1rem;
}

.lead {
  max-width: 72ch;
}

.contact-grid .card,
.contact-grid aside,
form.card {
  padding: 1.05rem;
}

.contact-grid label {
  display: block;
  margin-bottom: 0.6rem;
  color: #d4e1f7;
  font-size: 0.88rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.contact-grid input,
.contact-grid textarea,
.contact-grid select {
  margin-top: 0.35rem;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0d1524;
  color: #ecf2ff;
  padding: 0.68rem;
}

.contact-grid ul {
  padding-left: 1rem;
  color: #d7e1f4;
}

.contact-grid ul li { margin-bottom: 0.45rem; }

.contact-grid ul span { color: var(--muted); }

.site-footer {
  max-width: 1200px;
  margin: 1.8rem auto 1rem;
  text-align: center;
  border-top: 1px solid rgba(67, 84, 124, 0.42);
  color: var(--muted);
  font-size: 0.85rem;
  padding-top: 1rem;
}

.site-footer p + p { margin-top: 0.45rem; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-core,
  .architecture,
  .showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .top-nav {
    position: absolute;
    right: 1rem;
    top: 68px;
    flex-direction: column;
    width: min(86vw, 250px);
    border: 1px solid var(--line);
    background: rgba(11, 18, 34, 0.98);
    padding: 0.5rem;
    border-radius: 12px;
    display: none;
  }

  .top-nav.show {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }

  .feature-cascade,
  .service-list,
  .grid-3,
  .timeline,
  .steps,
  .service-strip,
  .stats,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    flex-wrap: wrap;
  }

  .hero { padding: 1.2rem; }

  h1 { font-size: clamp(1.9rem, 9vw, 2.5rem); }

  .stats {
    grid-template-columns: 1fr 1fr;
  }
}
