:root {
  --bg: #060914;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.105);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7faff;
  --muted: #97a4ba;
  --muted-2: #c4cde0;
  --brand: #14d8ff;
  --brand-2: #7c5cff;
  --brand-3: #2cffb3;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: min(1140px, calc(100vw - 40px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 92, 255, 0.34), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(20, 216, 255, 0.2), transparent 26rem),
    radial-gradient(circle at 82% 72%, rgba(44, 255, 179, 0.13), transparent 30rem),
    var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(6, 9, 20, 0.68));
}

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

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

button, input, textarea { font: inherit; }

.container {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 20;
  pointer-events: none;
}

.navbar {
  width: var(--container);
  margin: 0 auto;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 9, 20, 0.62);
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.25);
}

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

.logo-link img { width: 174px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 14px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font-weight: 720;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand), var(--brand-3));
  color: #06101a;
  box-shadow: 0 18px 48px rgba(20, 216, 255, 0.2);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.btn-small { min-height: 40px; padding: 0 14px; font-size: 14px; }

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 132px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 680;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-3);
  box-shadow: 0 0 24px var(--brand-3);
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.075em;
  font-weight: 850;
}

.gradient-text {
  background: linear-gradient(120deg, #fff, #8fe9ff 42%, #72ffca 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted-2);
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.03em;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  background: rgba(255,255,255,0.05);
  font-size: 13px;
  font-weight: 650;
}

.pill svg { color: var(--brand); }

.visual-card {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: -60px;
  background:
    radial-gradient(circle at 50% 26%, rgba(20, 216, 255, 0.36), transparent 18rem),
    radial-gradient(circle at 24% 78%, rgba(124, 92, 255, 0.25), transparent 17rem),
    radial-gradient(circle at 84% 82%, rgba(44, 255, 179, 0.16), transparent 16rem);
  filter: blur(4px);
}

.orbit {
  position: absolute;
  inset: 74px 46px 84px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 42% 58% 49% 51% / 54% 45% 55% 46%;
  animation: float 12s ease-in-out infinite;
}

.orbit.two {
  inset: 108px 74px 118px;
  transform: rotate(34deg);
  border-color: rgba(20,216,255,0.22);
  animation-duration: 16s;
}

.core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(68%, 330px);
  aspect-ratio: 1;
  border-radius: 34px;
  background: rgba(5, 9, 20, 0.72);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px rgba(255,255,255,0.08), 0 25px 70px rgba(0,0,0,0.35);
}

.core-mark {
  width: 166px;
  height: 166px;
  border-radius: 45px;
  background: radial-gradient(circle at 28% 20%, rgba(255,255,255,0.24), transparent 36%), linear-gradient(135deg, var(--brand-2), var(--brand), var(--brand-3));
  display: grid;
  place-items: center;
  color: #06101a;
  font-size: 54px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.node {
  position: absolute;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(5, 9, 20, 0.72);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(16px);
  color: #dffaff;
  box-shadow: 0 15px 36px rgba(0,0,0,0.25);
}

.node svg { opacity: 0.9; }
.node.a { top: 72px; left: 64px; }
.node.b { top: 102px; right: 66px; }
.node.c { bottom: 112px; left: 58px; }
.node.d { right: 78px; bottom: 76px; }

.mini-panel {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: rgba(5, 9, 20, 0.72);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
}

.mini-panel strong { display: block; font-size: 14px; }
.mini-panel span { color: var(--muted); font-size: 13px; }
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand-3);
  box-shadow: 0 0 24px var(--brand-3);
}

.section {
  padding: 96px 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 32px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.section-lead {
  margin: 0;
  color: var(--muted-2);
  font-size: 17px;
}

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

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  min-height: 260px;
  overflow: hidden;
  box-shadow: 0 16px 46px rgba(0,0,0,0.2);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-5px);
  background: var(--panel-strong);
  border-color: rgba(20,216,255,0.28);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -18% -35% auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,216,255,0.17), transparent 70%);
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--brand);
}

.card h3 {
  margin: 22px 0 10px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

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

.card .tag {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--line);
}

.step::before {
  content: "0" counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(124,92,255,0.48), rgba(20,216,255,0.28));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.showcase {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 16px;
  align-items: stretch;
}

.showcase-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.045));
  padding: 28px;
  overflow: hidden;
}

.stat-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.stat {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  background: rgba(0,0,0,0.16);
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.dashboard {
  min-height: 430px;
  display: grid;
  gap: 12px;
}

.dash-top {
  display: flex;
  gap: 8px;
}

.dash-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  flex: 1;
}

.dash-tile {
  min-height: 74px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.dash-tile.wide { grid-column: span 4; }
.dash-tile.small { grid-column: span 2; }
.dash-tile.full { grid-column: span 6; min-height: 150px; position: relative; overflow: hidden; }

.wave {
  position: absolute;
  inset: 28px 20px 22px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(20,216,255,0.4) 49%, rgba(20,216,255,0.4) 51%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(44,255,179,0.28) 49%, rgba(44,255,179,0.28) 51%, transparent 52%);
  background-size: 42px 42px;
  opacity: 0.72;
  border-radius: 18px;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(20,216,255,0.08), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
}

.contact-info {
  padding: 18px;
}

.contact-info h2 { margin-bottom: 18px; }

.contact-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  color: var(--muted-2);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-row:first-of-type { border-top: 0; }
.contact-row svg { color: var(--brand); margin-top: 2px; }
.contact-row strong { display: block; color: var(--text); margin-bottom: 2px; }

.contact-form {
  padding: 20px;
  border-radius: 24px;
  background: rgba(5, 9, 20, 0.58);
  border: 1px solid rgba(255,255,255,0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label { display: grid; gap: 8px; color: var(--muted-2); font-size: 13px; font-weight: 700; }

input, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255,255,255,0.07);
  padding: 13px 14px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

textarea { min-height: 126px; resize: vertical; }

input:focus, textarea:focus {
  border-color: rgba(20,216,255,0.48);
  background: rgba(255,255,255,0.095);
}

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

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 34px 0 40px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

@media (max-width: 980px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(6, 9, 20, 0.92);
    backdrop-filter: blur(22px);
  }

  .nav-links.is-open { display: flex; }
  .menu-toggle { display: block; }
  .navbar { position: relative; }
  .nav-links .btn { width: 100%; }

  .hero-grid,
  .section-header,
  .showcase,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .visual-card { min-height: 510px; }
  .service-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --container: min(100vw - 24px, 1140px); }
  .site-header { top: 8px; }
  .navbar { border-radius: 24px; }
  .logo-link img { width: 154px; }
  .hero { padding-top: 112px; }
  h1 { font-size: clamp(46px, 15vw, 66px); }
  .hero-actions .btn { width: 100%; }
  .hero-proof { gap: 8px; }
  .visual-card { min-height: 430px; }
  .node { width: 58px; height: 58px; border-radius: 18px; }
  .node.a { top: 52px; left: 34px; }
  .node.b { top: 80px; right: 34px; }
  .node.c { bottom: 98px; left: 34px; }
  .node.d { right: 38px; bottom: 58px; }
  .core-mark { width: 128px; height: 128px; font-size: 42px; border-radius: 34px; }
  .mini-panel { left: 12px; right: 12px; bottom: 12px; }
  .section { padding: 72px 0; }
  .process { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
