:root {
  --bg-ink: #050816;
  --bg-panel: rgba(15, 23, 42, 0.72);
  --text-main: #f8fafc;
  --text-soft: #b6c2d4;
  --text-muted: #7f8da3;
  --line: rgba(30, 41, 59, 0.95);
  --line-soft: rgba(148, 163, 184, 0.14);
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --green: #34d399;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-ink);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(120deg, rgba(5, 8, 22, 0.94), rgba(13, 18, 37, 0.88)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 32%);
}

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

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

.container {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 16%, rgba(34, 211, 238, 0.16), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(139, 92, 246, 0.22), transparent 30%),
    radial-gradient(circle at 78% 62%, rgba(244, 114, 182, 0.1), transparent 28%),
    radial-gradient(circle at 18% 84%, rgba(52, 211, 153, 0.08), transparent 26%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 80%);
}

.section-shell {
  position: relative;
  padding: 80px 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 22, 0.82);
  backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 10px;
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.6));
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

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

.btn-nav,
.btn-footer {
  padding: 10px 16px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(96, 165, 250, 0.35);
}

.btn-nav:hover,
.btn-footer:hover {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(14, 116, 144, 0.15);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.1);
}

.btn-primary {
  padding: 14px 22px;
  font-size: 0.9375rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.95), rgba(96, 165, 250, 0.95) 45%, rgba(139, 92, 246, 0.95));
  box-shadow: 0 12px 32px rgba(96, 165, 250, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.28);
}

.btn-arrow {
  transition: transform 0.25s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10vw;
  top: 12vh;
  width: 36vw;
  height: 36vw;
  max-width: 420px;
  max-height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.14), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.2s ease-out infinite;
}

.hero h1,
.section-heading h2,
.team-copy h2 {
  margin: 0;
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.hero h1 {
  max-width: 640px;
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
}

.hero-text {
  max-width: 560px;
  margin: 20px 0 28px;
  color: var(--text-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 380px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 0 5%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 56%),
    radial-gradient(circle at 70% 30%, rgba(244, 114, 182, 0.1), transparent 50%);
  filter: blur(6px);
  pointer-events: none;
}

.signal-card {
  position: absolute;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.5));
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.signal-card-main {
  top: 40px;
  left: 0;
  right: 24px;
  min-height: 240px;
  border-radius: 20px;
  padding: 20px;
  transform: rotate(-1.5deg);
}

.card-topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.7);
}

.bot-window {
  display: grid;
  gap: 12px;
}

.bot-message {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-soft);
  font-size: 0.8125rem;
  line-height: 1.5;
  border: 1px solid var(--line-soft);
  background: rgba(2, 6, 23, 0.4);
}

.bot-message-user {
  justify-self: start;
}

.bot-message-system {
  justify-self: end;
  color: #e0f2fe;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.3), rgba(88, 28, 135, 0.28));
  border-color: rgba(34, 211, 238, 0.2);
}

.mini-card {
  display: grid;
  gap: 2px;
  width: 150px;
  padding: 14px;
  border-radius: 16px;
}

.mini-card strong {
  font-size: 1.375rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.mini-card span:last-child {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.mini-label {
  color: #bae6fd;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-card-left {
  left: -12px;
  bottom: 24px;
}

.mini-card-right {
  right: 0;
  top: 20px;
  border-color: rgba(244, 114, 182, 0.2);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  inset: 40px 20px 50px -16px;
  animation: float 7s ease-in-out infinite;
}

.orbit-two {
  inset: 70px -10px 80px 28px;
  animation: float 8s ease-in-out infinite reverse;
}

/* Process */
.process {
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.35) 30%, transparent);
}

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

.section-heading h2,
.team-copy h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
}

.section-heading p,
.team-copy p {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.process-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-map::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.35), rgba(139, 92, 246, 0.4), transparent);
}

.process-step,
.audience-card,
.team-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.45));
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.process-step {
  position: relative;
  padding: 22px;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.process-step::after,
.audience-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -50% 20%;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.14), transparent 68%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.process-step:hover,
.audience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
}

.process-step:hover::after,
.audience-card:hover::after {
  opacity: 1;
}

.process-step-critical {
  border-color: rgba(251, 113, 133, 0.28);
}

.process-step-critical:hover {
  border-color: rgba(251, 113, 133, 0.5);
}

.step-icon,
.audience-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(2, 6, 23, 0.3);
}

.step-icon svg,
.audience-icon svg {
  width: 28px;
  height: 28px;
}

.step-number {
  color: rgba(248, 250, 252, 0.15);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.process-step h3,
.audience-card h3 {
  position: relative;
  z-index: 1;
  margin: 12px 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.process-step p,
.audience-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Team */
.team {
  padding-top: 40px;
}

.team-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 24px;
  overflow: hidden;
}

.team-aside::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 30%, rgba(34, 211, 238, 0.16), transparent 56%),
    radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.12), transparent 58%);
  filter: blur(8px);
  pointer-events: none;
}

.team-aside {
  position: relative;
}

.code-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.4);
  transform: rotate(-1deg);
}

.code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(30, 41, 59, 0.8);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6875rem;
}

.code-row strong {
  color: #e0f2fe;
  font-weight: 600;
}

.team-copy {
  position: relative;
  z-index: 1;
}

/* Audience */
.audience {
  background:
    radial-gradient(circle at 15% 30%, rgba(96, 165, 250, 0.06), transparent 32%),
    linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.25) 45%, transparent);
}

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

.audience-card {
  position: relative;
  padding: 24px;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.audience-icon {
  color: var(--pink);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 22, 0.8);
  backdrop-filter: blur(18px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.delay-1 { transition-delay: 0.06s; }
.delay-2 { transition-delay: 0.12s; }
.delay-3 { transition-delay: 0.18s; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(6px, -8px, 0); }
}

/* Tablet */
@media (max-width: 980px) {
  .section-shell {
    padding: 64px 0;
  }

  .hero {
    padding: 108px 0 64px;
  }

  .hero-grid,
  .team-panel {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-visual {
    min-height: 320px;
    max-width: 480px;
    margin: 0 auto;
  }

  .process-map,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-map::before {
    display: none;
  }
}

/* Mobile */
@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, 1100px);
  }

  .brand span:last-child {
    font-size: 0.8125rem;
  }

  .btn-nav {
    padding: 9px 12px;
    font-size: 0.8125rem;
  }

  .section-shell {
    padding: 56px 0;
  }

  .hero {
    padding: 96px 0 48px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-text {
    font-size: 1rem;
    margin: 16px 0 24px;
  }

  .btn-hero {
    width: 100%;
  }

  .hero-visual {
    min-height: 280px;
  }

  .signal-card-main {
    top: 20px;
    right: 0;
    padding: 16px;
    min-height: 200px;
  }

  .mini-card {
    width: 130px;
    padding: 12px;
  }

  .mini-card-left {
    left: 0;
    bottom: 12px;
  }

  .mini-card-right {
    top: 0;
  }

  .process-map,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .team-panel {
    padding: 20px;
    border-radius: 18px;
  }

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
