:root {
  --bg-0: #020a1d;
  --bg-1: #071735;
  --bg-2: #0a244f;
  --ink: #e6f2ff;
  --ink-soft: #b6c8e3;
  --line: rgba(137, 181, 255, 0.2);
  --panel: linear-gradient(160deg, rgba(7, 25, 56, 0.9), rgba(4, 13, 30, 0.92));
  --accent-red: #ff2d56;
  --accent-cyan: #18b7ff;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(80vw 60vw at 14% 20%, rgba(255, 45, 86, 0.16), transparent 60%),
    radial-gradient(70vw 60vw at 90% 10%, rgba(24, 183, 255, 0.2), transparent 60%),
    linear-gradient(145deg, var(--bg-0), var(--bg-1) 50%, var(--bg-2));
  min-height: 100vh;
  line-height: 1.45;
}

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

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

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.06) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  z-index: -1;
}

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(2, 10, 29, 0.88), rgba(2, 10, 29, 0.38));
  border-bottom: 1px solid rgba(130, 166, 219, 0.14);
}

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

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

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(2, 14, 36, 0.9), rgba(15, 38, 77, 0.9));
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.brand-mark img {
  width: 140%;
  height: 140%;
  object-fit: cover;
  object-position: 50% 16%;
  transform: translate(-12%, -11%);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Sora", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}

.brand-copy em {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 26px;
}

.top-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.25s ease;
}

.top-nav a:hover {
  color: #fff;
}

.section {
  padding: 80px 0;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
}

.eyebrow {
  font-family: "Sora", sans-serif;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: #8fc3ff;
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(2.05rem, 4.8vw, 4rem);
  line-height: 1.04;
  text-wrap: balance;
}

h1 span {
  background: linear-gradient(90deg, var(--accent-red), #ff7a92 50%, var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 20px 0 26px;
  color: var(--ink-soft);
  max-width: 58ch;
  font-size: clamp(1rem, 2.1vw, 1.22rem);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-row span {
  border: 1px solid rgba(173, 212, 255, 0.2);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.85rem;
  color: #c5ddff;
  background: rgba(4, 19, 44, 0.68);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  min-height: 48px;
  padding: 0 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(98deg, var(--accent-red), #f9476a 52%, #dc1744);
  box-shadow: 0 12px 35px rgba(255, 45, 86, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(255, 45, 86, 0.45);
}

.btn-ghost {
  border: 1px solid rgba(151, 200, 255, 0.34);
  color: #d5e9ff;
  background: rgba(8, 30, 68, 0.55);
}

.hero-visual {
  display: grid;
  gap: 22px;
}

.core-orb {
  position: relative;
  width: min(460px, 86vw);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 35%, rgba(24, 183, 255, 0.8), rgba(24, 183, 255, 0.15) 30%, transparent 65%),
    radial-gradient(circle at 65% 72%, rgba(255, 45, 86, 0.9), rgba(255, 45, 86, 0.15) 35%, transparent 72%),
    radial-gradient(circle at center, rgba(5, 22, 49, 0.98), rgba(2, 8, 22, 1) 65%);
  border: 1px solid rgba(167, 209, 255, 0.2);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.core-orb::before,
.core-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.core-orb::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 48%);
  mix-blend-mode: soft-light;
}

.core-orb::after {
  background: linear-gradient(90deg, transparent 32%, rgba(255, 255, 255, 0.17) 50%, transparent 68%);
  transform: translateX(-110%);
  animation: scan 5s linear infinite;
}

.ring {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(180, 221, 255, 0.2);
}

.ring-1 {
  animation: spin 18s linear infinite;
}

.ring-2 {
  inset: 23%;
  border-style: dashed;
  animation: spin-reverse 12s linear infinite;
}

.ring-3 {
  inset: 31%;
  animation: pulse-ring 2.8s ease-in-out infinite;
}

.pulse {
  position: absolute;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(24, 183, 255, 0.72), transparent 70%);
  filter: blur(1px);
  top: 50%;
  left: 50%;
  animation: orbit 8s linear infinite;
}

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

.metric-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 22, 49, 0.72);
  padding: 14px;
}

.metric-value {
  margin: 0 0 4px;
  font-family: "Sora", sans-serif;
  font-size: 1.55rem;
  color: #f3f8ff;
}

.metric-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.streamline {
  overflow: hidden;
  border-top: 1px solid rgba(144, 193, 255, 0.18);
  border-bottom: 1px solid rgba(144, 193, 255, 0.18);
  background: rgba(2, 13, 30, 0.65);
}

.streamline-track {
  white-space: nowrap;
  padding: 14px 0;
  display: inline-flex;
  gap: 24px;
  min-width: 100%;
  animation: marquee 22s linear infinite;
}

.streamline-track span {
  font-family: "Sora", sans-serif;
  letter-spacing: 0.11em;
  font-size: 0.83rem;
  color: #9ac8ff;
}

.section-head {
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.6rem);
}

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

.service-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
  transition: transform 0.26s ease, border-color 0.26s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 45, 86, 0.38);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
}

.service-card code {
  background: rgba(24, 183, 255, 0.16);
  border: 1px solid rgba(146, 205, 255, 0.3);
  border-radius: 7px;
  padding: 1px 6px;
  color: #d5eeff;
}

.stack-section {
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.stack-section::before {
  content: "";
  position: absolute;
  inset: 14% -20% -10% 35%;
  background:
    linear-gradient(120deg, rgba(24, 183, 255, 0.15), transparent 35%),
    repeating-linear-gradient(
      -14deg,
      rgba(138, 191, 255, 0.13) 0,
      rgba(138, 191, 255, 0.13) 1px,
      transparent 1px,
      transparent 26px
    );
  opacity: 0.45;
  pointer-events: none;
}

.stack-section > * {
  position: relative;
  z-index: 1;
}

.stack-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(130deg, rgba(5, 20, 42, 0.84), rgba(5, 20, 42, 0.42)),
    radial-gradient(circle at top right, rgba(24, 183, 255, 0.18), transparent 50%);
  padding: 20px 20px 12px;
}

.panel h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  display: grid;
  gap: 10px;
}

.proof-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.proof-card {
  border-radius: var(--radius);
  border: 1px solid rgba(170, 214, 255, 0.22);
  padding: 18px 20px;
  background:
    linear-gradient(130deg, rgba(7, 25, 54, 0.88), rgba(3, 12, 27, 0.9)),
    radial-gradient(circle at top right, rgba(255, 45, 86, 0.18), transparent 40%);
}

.proof-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.proof-card p {
  margin: 0 0 8px;
  color: var(--ink-soft);
}

.proof-card p:last-child {
  margin-bottom: 0;
}

.architecture-note {
  margin: 18px 0 0;
  border-left: 3px solid rgba(255, 45, 86, 0.8);
  padding: 8px 0 8px 14px;
  color: #d3e9ff;
  max-width: 76ch;
}

.contact-card {
  border: 1px solid rgba(170, 210, 255, 0.24);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(22px, 4vw, 38px);
  background:
    radial-gradient(circle at 84% -10%, rgba(24, 183, 255, 0.28), transparent 48%),
    linear-gradient(145deg, rgba(8, 28, 60, 0.94), rgba(4, 16, 37, 0.93));
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-card h2 {
  margin: 0 0 12px;
}

.contact-card p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 56ch;
}

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid rgba(147, 191, 248, 0.14);
  background: rgba(2, 10, 29, 0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.94rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner span {
  color: var(--ink-soft);
  margin: 0 4px;
}

.muted {
  color: #9cb8dc;
}

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

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

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes spin-reverse {
  to {
    transform: rotate(-1turn);
  }
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.28;
  }
}

@keyframes orbit {
  from {
    transform: translate(-50%, -50%) rotate(0deg) translateX(130px) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg) translateX(130px) rotate(-360deg);
  }
}

@keyframes scan {
  to {
    transform: translateX(110%);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    min-height: auto;
  }

  .hero-visual {
    width: min(620px, 100%);
    margin-inline: auto;
  }

  .service-grid,
  .stack-panels,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 72px;
  }

  .top-nav {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

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

  .service-grid,
  .stack-panels,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
