:root {
  --navy-950: #050a14;
  --navy-900: #07111f;
  --navy-800: #0b182c;
  --navy-700: #102038;
  --navy-600: #17304f;
  --line: rgba(148, 197, 232, 0.14);
  --line-strong: rgba(34, 211, 238, 0.28);
  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --text: #f4f8fc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --header-h: 76px;
  --max: 1140px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 100;
  background: var(--cyan);
  color: var(--navy-950);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(16px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 17, 31, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--white);
}

.logo-word span {
  font-weight: 500;
  color: var(--cyan-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a:not(.btn) {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav a:not(.btn):hover,
.nav a:not(.btn).is-active {
  color: var(--white);
}

.nav a:not(.btn).is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.header-cta {
  margin-left: 8px;
}

.nav-cta {
  display: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--navy-950);
  background: linear-gradient(135deg, #5eead4 0%, var(--cyan) 42%, var(--blue) 100%);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.32);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(34, 211, 238, 0.06);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(37, 99, 235, 0.16), transparent 50%),
    linear-gradient(rgba(34, 211, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1 {
  margin-top: 20px;
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 700;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
}

h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.lead {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.hero-visual {
  position: relative;
  min-height: 420px;
}

.visual-glow {
  position: absolute;
  inset: 12% 10%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 68%);
  filter: blur(8px);
}

.infra-svg {
  position: relative;
  width: 100%;
  height: auto;
}

.flow-line {
  stroke-dasharray: 6 10;
  animation: flow 8s linear infinite;
}

.delay-1 { animation-delay: 0.6s; }
.delay-2 { animation-delay: 1.2s; }
.delay-3 { animation-delay: 1.8s; }

.node.pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: pulse 4.5s ease-in-out infinite;
}

.deploy-arrow {
  animation: bob 2.8s ease-in-out infinite;
}

@keyframes flow {
  to { stroke-dashoffset: -120; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(16, 32, 56, 0.55), rgba(7, 17, 31, 0));
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-intro {
  margin-top: 14px;
  color: var(--muted);
}

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

.card {
  background: linear-gradient(180deg, rgba(20, 42, 70, 0.45), rgba(10, 22, 40, 0.7));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.16);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.tech-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(8, 20, 36, 0.7);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
}

.tech-badge:hover {
  border-color: var(--line-strong);
}

.tech-icon {
  width: 32px;
  height: 32px;
  color: var(--cyan-soft);
  flex-shrink: 0;
}

.tech-icon svg {
  width: 32px;
  height: 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-lead {
  max-width: none;
}

.about-points {
  list-style: none;
  display: grid;
  gap: 16px;
}

.about-points li {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(12, 28, 50, 0.45);
  color: var(--muted);
}

.about-points strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
  font-family: var(--display);
}

.cta-band {
  position: relative;
  padding: 88px 0;
  background:
    radial-gradient(ellipse at center, rgba(34, 211, 238, 0.16), transparent 60%),
    linear-gradient(135deg, #07111f 0%, #0b2240 50%, #082033 100%);
  border-block: 1px solid var(--line-strong);
}

.cta-inner {
  text-align: center;
  max-width: 680px;
}

.cta-inner p {
  margin: 16px 0 28px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-details {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.contact-details span {
  display: block;
  color: var(--muted-2);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-details a {
  color: var(--cyan-soft);
  font-weight: 600;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 36, 60, 0.7), rgba(8, 18, 32, 0.85));
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #cbd5e1;
}

.field input,
.field textarea {
  width: 100%;
  color: var(--text);
  background: rgba(5, 12, 22, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #fb7185;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--cyan-soft);
}

.form-status.is-error {
  color: #fda4af;
}

.site-footer {
  padding: 40px 0 28px;
  border-top: 1px solid var(--line);
  background: #050a14;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 28px;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted-2);
  font-size: 0.86rem;
}

.legal-page {
  padding: 72px 0 96px;
}

.legal-page h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-page .lead {
  margin-bottom: 32px;
}

.legal-page h2 {
  margin: 28px 0 10px;
  font-size: 1.3rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  max-width: 72ch;
}

.legal-page ul {
  margin: 8px 0 0 18px;
}

@media (max-width: 1024px) {
  .card-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding: 48px 0 64px;
  }

  h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: 0;
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px 16px 20px;
    background: rgba(7, 17, 31, 0.97);
    border-bottom: 1px solid var(--line);
  }

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

  .nav a:not(.btn) {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    display: inline-flex;
    width: calc(100% - 16px);
    margin: 16px 8px 4px;
  }

  .section {
    padding: 64px 0;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .card-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-form .btn {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .header-inner .logo + .nav + .btn {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .flow-line,
  .node.pulse,
  .deploy-arrow,
  .btn,
  .card {
    animation: none;
    transition: none;
  }
}
