:root {
  --bg: #050914;
  --bg-2: #08111f;
  --ink: #f7f9ff;
  --ink-soft: #c6cfdd;
  --muted: #8f9bae;
  --line: rgba(166, 183, 211, 0.18);
  --line-strong: rgba(166, 183, 211, 0.28);
  --surface: rgba(13, 23, 40, 0.82);
  --surface-strong: rgba(18, 31, 52, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --dark: #050914;
  --dark-2: #070d18;
  --dark-3: #0d1728;
  --text-on-dark: #f7f9ff;
  --muted-on-dark: #aeb9cb;
  --blue: #4d8dff;
  --blue-dark: #2166f3;
  --teal: #27d8c7;
  --violet: #a879ff;
  --amber: #f7c948;
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.28), 0 24px 80px rgba(0, 0, 0, 0.36);
  --glow-blue: 0 0 46px rgba(77, 141, 255, 0.18);
  --radius: 10px;
  --shell: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 16% 0%, rgba(77, 141, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 82% 18rem, rgba(39, 216, 199, 0.11), transparent 30rem),
    linear-gradient(180deg, var(--bg), #07101e 42%, var(--bg));
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(166, 183, 211, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 183, 211, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 72%);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0; }

.shell {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--blue);
  color: #030712;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 800;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 9, 20, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 42px;
  object-fit: contain;
  border-radius: 9px;
  background: rgba(5, 9, 20, 0.72);
  padding: 3px;
  box-shadow: 0 16px 42px rgba(39, 216, 199, 0.24);
}

.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.footer-links a:hover { color: var(--blue); }

.nav-cta {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}

.nav-cta:hover {
  text-decoration: none;
  border-color: rgba(77, 141, 255, 0.72);
  color: #dbe8ff;
  background: rgba(77, 141, 255, 0.1);
}

.section { padding: 96px 0; }

.section-dark,
.hero,
.infrastructure {
  color: var(--text-on-dark);
  background: transparent;
}

.hero {
  padding: 104px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 18px;
  color: #8fb6ff;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow.dark { color: #8fb6ff; }

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.04em;
  font-feature-settings: 'kern';
}

h1 {
  max-width: 760px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.99;
  font-weight: 850;
  text-wrap: balance;
}

.hero-lede {
  max-width: 660px;
  margin-top: 26px;
  color: var(--muted-on-dark);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 7px;
  font-weight: 850;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button-primary,
.button-primary.light {
  color: #030712;
  background: linear-gradient(135deg, #71a7ff, #27d8c7);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 44px rgba(77, 141, 255, 0.26);
}

.button-primary:hover,
.button-primary.light:hover {
  box-shadow: 0 22px 54px rgba(39, 216, 199, 0.22);
}

.button-secondary,
.button-secondary.light {
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line-strong);
}

.button-secondary:hover,
.button-secondary.light:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.085);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 44px 0 0;
}

.trust-row div,
.service-card,
.process-list article,
.contact-card,
.hero-panel,
.infra-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035));
  box-shadow: var(--shadow);
}

.trust-row div {
  padding: 16px;
  border-radius: var(--radius);
}

.trust-row dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-row dd {
  margin: 0;
  color: white;
  font-weight: 750;
  font-size: 14px;
}

.hero-panel {
  position: relative;
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow), var(--glow-blue);
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(77, 141, 255, 0.55), rgba(39, 216, 199, 0.12), rgba(168, 121, 255, 0.42));
}

.panel-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #d5dceb;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #26d07c;
  box-shadow: 0 0 0 6px rgba(38, 208, 124, 0.12), 0 0 28px rgba(38, 208, 124, 0.45);
}

.stack-map { display: grid; gap: 12px; }

.stack-card {
  padding: 20px;
  border: 1px solid rgba(166, 183, 211, 0.16);
  border-radius: 12px;
  background: rgba(5, 9, 20, 0.74);
}

.stack-card span,
.process-list span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent, var(--blue));
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 750;
}

.stack-card h2 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.12;
}

.stack-card p,
.terminal-card p { color: var(--muted-on-dark); line-height: 1.55; }

.accent-blue { --accent: #8fb6ff; }
.accent-teal { --accent: #65f3e4; }
.accent-violet { --accent: #c7a8ff; }

.terminal-card {
  margin-top: 12px;
  padding: 18px;
  border-radius: 12px;
  background: #030712;
  border: 1px solid rgba(166, 183, 211, 0.14);
}

.mono {
  display: block;
  margin-bottom: 8px;
  color: #8fb6ff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.light-section,
.split-section,
.contact-section {
  background: transparent;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading h2,
.split-grid h2,
.infra-grid h2,
.contact-card h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 850;
  text-wrap: balance;
}

.section-heading p:not(.eyebrow),
.section-copy,
.infra-grid p,
.contact-card p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 260px;
  padding: 26px;
  border-radius: var(--radius);
}

.service-card:hover,
.process-list article:hover,
.infra-card li:hover {
  border-color: rgba(77, 141, 255, 0.34);
}

.service-icon {
  display: inline-grid;
  min-width: 48px;
  height: 32px;
  place-items: center;
  margin-bottom: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(77, 141, 255, 0.12);
  color: #8fb6ff;
  border: 1px solid rgba(77, 141, 255, 0.18);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 850;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.18;
}

.service-card p { color: var(--muted-on-dark); line-height: 1.62; }

.split-grid,
.infra-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 64px;
  align-items: start;
}

.process-list { display: grid; gap: 14px; }

.process-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
}

.process-list span {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 8px;
  background: rgba(77, 141, 255, 0.12);
  border: 1px solid rgba(77, 141, 255, 0.18);
}

.process-list h3 { margin-bottom: 8px; font-size: 22px; }
.process-list p { color: var(--muted-on-dark); line-height: 1.6; }

.infrastructure {
  position: relative;
}

.infra-card {
  padding: 12px;
  border-radius: 16px;
}

.infra-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.infra-card li {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: 11px;
  background: rgba(5, 9, 20, 0.65);
  border: 1px solid rgba(166, 183, 211, 0.12);
}

.infra-card strong { color: white; font-size: 17px; }
.infra-card span { color: var(--muted-on-dark); line-height: 1.5; }

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: 16px;
  box-shadow: var(--shadow), 0 0 80px rgba(39, 216, 199, 0.08);
}

.contact-actions { justify-content: flex-end; margin: 0; }

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: rgba(5, 9, 20, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 750;
}

.copyright {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}

:focus-visible {
  outline: 3px solid rgba(77, 141, 255, 0.58);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .nav { min-height: 68px; }
  .nav-links { display: none; }
  .hero-grid,
  .split-grid,
  .infra-grid,
  .contact-card { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, var(--shell)); }
  .section { padding: 68px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { gap: 34px; }
  .hero-panel { padding: 14px; }
  .trust-row,
  .service-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .process-list article { grid-template-columns: 1fr; }
  .contact-card { padding: 28px; }
  .button { width: 100%; }
  .nav-cta { display: none; }
}

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