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

:root {
  --bg-dark: #08090d;
  --bg-card: #11131a;
  --bg-soft: #151824;
  --text-main: #f4f7fb;
  --text-muted: #a4adbb;
  --brand-primary: #3b82f6;
  --brand-strong: #2563eb;
  --brand-gradient: linear-gradient(90deg, #3b82f6, #8b5cf6);
  --border-color: #282d39;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-dark);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.16), transparent 34%),
    radial-gradient(circle at 5% 35%, rgba(139, 92, 246, 0.11), transparent 32%),
    var(--bg-dark);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(16px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-gradient);
  color: white;
  font-weight: 800;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
}

.highlight {
  color: var(--brand-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text-main);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 7px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  border: 1px solid var(--brand-primary);
  background: var(--brand-primary);
  color: white !important;
}

.btn-primary:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  gap: 56px;
  align-items: center;
  padding: 118px 5% 70px;
}

.eyebrow {
  margin-bottom: 14px;
  color: #8bb7ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  max-width: 920px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-copy,
.split p,
.contact p {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #171923;
  box-shadow: var(--shadow);
}

.window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  background: #202331;
}

.window-title {
  margin-left: 8px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

pre {
  overflow-x: auto;
  padding: 26px;
  color: #d9deea;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}

.keyword { color: #74b3ff; }
.string { color: #c6a0ff; }
.number { color: #9bdc9f; }
.comment { color: #7b8495; }

.section {
  padding: 96px 5%;
}

.services,
.architecture {
  border-top: 1px solid var(--border-color);
  background: rgba(17, 19, 26, 0.72);
}

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

.section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.grid-services,
.routes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.routes-grid article {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(8, 9, 13, 0.82);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.routes-grid article:hover {
  border-color: rgba(59, 130, 246, 0.74);
  transform: translateY(-3px);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.service-card p,
.routes-grid span {
  color: var(--text-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: 48px;
  align-items: center;
}

.stack-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stack-list span {
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 700;
}

.routes-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.routes-grid article {
  min-height: 150px;
}

.routes-grid strong,
.routes-grid span {
  display: block;
}

.routes-grid strong {
  margin-bottom: 10px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(440px, 0.9fr);
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(17, 19, 26, 0.84);
}

.contact-form label,
.contact-form .full {
  grid-column: auto;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  background: #0b0d13;
  color: var(--text-main);
  font: inherit;
  padding: 12px 13px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.form-status {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-status[data-state="ok"] { color: #78d88f; }
.form-status[data-state="error"] { color: #ff8a8a; }

footer {
  padding: 38px 5%;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  text-align: center;
}

.footer-small {
  margin-top: 8px;
  font-size: 0.82rem;
  opacity: 0.72;
}

.arg-unlocked {
  background: #000;
  color: #00ff66;
}

@media (max-width: 1080px) {
  .hero,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-graphics {
    width: 100%;
  }

  .grid-services,
  .routes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .navbar {
    padding: 14px 5%;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 5% 18px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(8, 9, 13, 0.96);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
  }

  .hero {
    padding-top: 102px;
  }

  .hero-buttons,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .grid-services,
  .routes-grid,
  .stack-list,
  .contact-form {
    grid-template-columns: 1fr;
  }
}
