/* =========================================
   IFI — AI Agent Studio
   ========================================= */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0A0A0C;
  --bg-card:     #111114;
  --bg-elevated: #17171B;
  --bg-surface:  #1C1C21;
  --ink:         #E8E6E3;
  --ink-2:       #B0ADA8;
  --ink-muted:   #706D68;
  --accent:      #6EAAFF;
  --accent-glow: rgba(110, 170, 255, 0.15);
  --accent-2:    #FF6E6E;
  --success:     #6EFFA0;
  --white:       #FFFFFF;
  --border:      rgba(255,255,255,0.06);
  --border-2:    rgba(255,255,255,0.12);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', monospace;

  --nav-h: 72px;
  --container: 1200px;
  --gap: clamp(32px, 5vw, 80px);
  --section-pad: clamp(100px, 14vw, 180px);
  --radius: 8px;
  --radius-lg: 16px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; color: var(--ink); }
h1 { font-size: clamp(3rem, 7.5vw, 6.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.1rem; }
p  { font-size: clamp(0.9rem, 1.05vw, 1rem); line-height: 1.75; color: var(--ink-2); }
em { font-style: italic; color: var(--accent); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border: 1.5px solid var(--accent);
}
.btn--primary:hover {
  background: #8ABBFF;
  border-color: #8ABBFF;
  box-shadow: 0 0 30px rgba(110, 170, 255, 0.3);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-2);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(110, 170, 255, 0.1);
}
.btn--full { width: 100%; }
.btn svg { flex-shrink: 0; }

/* --- PARTICLE CANVAS --- */
.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* --- CUSTOM CURSOR --- */
.cursor, .cursor-ring {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    opacity: 0;
  }
  .cursor.visible { opacity: 1; }
  .cursor.hover {
    width: 10px;
    height: 10px;
    background: var(--accent);
    mix-blend-mode: normal;
  }
  .cursor-ring {
    display: block;
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(110, 170, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    opacity: 0;
  }
  .cursor-ring.visible { opacity: 1; }
  .cursor-ring.hover {
    width: 56px;
    height: 56px;
    border-color: rgba(110, 170, 255, 0.5);
  }
}

/* ═══════════════════════════════════
   PRELOADER
   ═══════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.exit {
  opacity: 0;
  visibility: hidden;
}
.preloader__inner {
  text-align: center;
}
.preloader__logo {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.15em;
  color: var(--ink);
  margin-bottom: 8px;
}
.preloader__text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 32px;
}
.preloader__bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}
.preloader__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  animation: preloaderFill 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes preloaderFill {
  to { width: 100%; }
}

/* ═══════════════════════════════════
   NAV
   ═══════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 48px);
  z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  position: relative;
}
.nav__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: super;
}
.nav__center {
  display: flex;
  gap: 36px;
}
.nav__center a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  transition: color 0.25s;
}
.nav__center a:hover { color: var(--accent); }
.nav__cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 10px 20px;
  border: 1px solid rgba(110, 170, 255, 0.25);
  border-radius: var(--radius);
  transition: all 0.25s;
}
.nav__cta:hover {
  background: rgba(110, 170, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(110, 170, 255, 0.15);
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul { text-align: center; }
.mobile-menu li { margin-bottom: 28px; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--ink);
  transition: color 0.25s;
}
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .nav__center, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) clamp(24px, 4vw, 48px) 60px;
  overflow: hidden;
}

/* Hero Video Background */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.7);
  object-fit: cover;
  filter: brightness(1.5) contrast(1.1);
}
.hero__video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.6) 0%, rgba(10,10,12,0.35) 40%, rgba(10,10,12,0.5) 70%, rgba(10,10,12,0.95) 100%),
    linear-gradient(90deg, rgba(10,10,12,0.7) 0%, transparent 50%);
  z-index: 1;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  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: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
}

.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 170, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.3s ease-out, top 0.3s ease-out;
  will-change: left, top;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid rgba(110, 170, 255, 0.2);
  border-radius: 100px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(110, 255, 160, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(110, 255, 160, 0); }
}

.hero__title {
  margin-bottom: 28px;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .line__inner {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: lineReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero__title .line:nth-child(1) .line__inner { animation-delay: 1.7s; }
.hero__title .line:nth-child(2) .line__inner { animation-delay: 1.85s; }
.hero__title .line:nth-child(3) .line__inner { animation-delay: 2.0s; }

@keyframes lineReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero__sub {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0;
  animation: fadeUp 0.7s 2.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero__stat-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  display: block;
  letter-spacing: -0.02em;
}
.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-top: 4px;
}
.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-2);
}

/* HERO VISUAL — Terminal */
.hero__visual {
  position: absolute;
  right: clamp(24px, 6vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(320px, 30vw, 440px);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero__terminal {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 80px rgba(110, 170, 255, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal__header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal__dot--r { background: #FF5F57; }
.terminal__dot--y { background: #FFBD2E; }
.terminal__dot--g { background: #28CA41; }
.terminal__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
  margin-left: auto;
}

.terminal__body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 2;
}
.terminal__line {
  opacity: 0;
  transform: translateY(4px);
}
.terminal__line.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s, transform 0.4s;
}
.t-prompt { color: var(--success); }
.t-cmd { color: var(--ink); }
.t-muted { color: var(--ink-muted); }
.t-accent { color: var(--accent); }
.t-success { color: var(--success); }
.t-cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

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

/* HERO SCROLL INDICATOR */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.7s 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero__scroll span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ═══════════════════════════════════
   MARQUEE
   ═══════════════════════════════════ */
.marquee {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-muted);
  padding: 0 20px;
  white-space: nowrap;
}
.marquee__sep {
  font-size: 0.5rem !important;
  font-style: normal !important;
  color: var(--accent) !important;
  display: flex;
  align-items: center;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════
   AGENTS / WORK
   ═══════════════════════════════════ */
.agents {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) clamp(24px, 4vw, 48px);
  max-width: var(--container);
  margin: 0 auto;
}

.agents__header {
  margin-bottom: 80px;
}
.agents__header h2 { max-width: 500px; }

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

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}
.agent-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(110, 170, 255, 0.04);
  transform: translateY(-4px);
}

.agent-card__visual {
  position: relative;
  height: 220px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.agent-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.agent-card__icon {
  color: var(--ink-muted);
  opacity: 0.3;
}
.agent-card__screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s;
  filter: brightness(0.85) saturate(0.9);
}
.agent-card:hover .agent-card__screenshot {
  transform: scale(1.04);
  filter: brightness(1) saturate(1.05);
}

/* Visual accent per agent */
.agent-card__visual--cstudent { background: linear-gradient(135deg, #1a1410 0%, #111114 100%); }
.agent-card__visual--signal   { background: linear-gradient(135deg, #0d1420 0%, #111114 100%); }
.agent-card__visual--radar    { background: linear-gradient(135deg, #0d1a14 0%, #111114 100%); }
.agent-card__visual--pulse    { background: linear-gradient(135deg, #1a0d18 0%, #111114 100%); }
.agent-card__visual--pipeline { background: linear-gradient(135deg, #0d1a0d 0%, #111114 100%); }
.agent-card__visual--scout    { background: linear-gradient(135deg, #1a140d 0%, #111114 100%); }
.agent-card__visual--chart     { background: linear-gradient(135deg, #0d1520 0%, #111114 100%); }
.agent-card__visual--broadcast { background: linear-gradient(135deg, #1a1208 0%, #111114 100%); }
.agent-card__visual--forge     { background: linear-gradient(135deg, #1a1008 0%, #111114 100%); }
.agent-card__visual--comply    { background: linear-gradient(135deg, #0a1020 0%, #111114 100%); }

.agent-card__status {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--success);
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 100px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.agent-card__body { padding: 28px; }
.agent-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.agent-card__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.agent-card__industry {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.agent-card__name {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.agent-card__desc {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.agent-card__tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.agent-card__tasks span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  background: var(--bg-elevated);
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.agent-card:hover .agent-card__tasks span:last-child {
  color: var(--accent);
  border-color: rgba(110, 170, 255, 0.2);
}

/* ═══════════════════════════════════
   SERVICES
   ═══════════════════════════════════ */
.services {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) clamp(24px, 4vw, 48px);
  max-width: var(--container);
  margin: 0 auto;
}

.services__header { margin-bottom: 80px; }
.services__header h2 { max-width: 520px; }

.services__orbit { position: relative; }

.orbit__center {
  background: var(--bg-card);
  border: 1px solid rgba(110, 170, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.orbit__center::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(110, 170, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.orbit__core { position: relative; z-index: 1; max-width: 600px; }
.orbit__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 16px;
}
.orbit__center h3 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}
.orbit__center p { font-size: 1rem; max-width: 540px; }

.orbit__ring {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.orbit__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.orbit__item:hover {
  border-color: var(--border-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.orbit__item-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 20px;
}
.orbit__item h4 {
  font-family: var(--font-display);
  margin-bottom: 12px;
  color: var(--ink);
}
.orbit__item p { font-size: 0.85rem; }

/* ═══════════════════════════════════
   PROCESS / TIMELINE
   ═══════════════════════════════════ */
.process {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) clamp(24px, 4vw, 48px);
  max-width: var(--container);
  margin: 0 auto;
}

.process__header { margin-bottom: 80px; }

.process__timeline { position: relative; }

.process__step {
  display: flex;
  gap: 40px;
  padding-bottom: 60px;
}
.process__step:last-child { padding-bottom: 0; }

.process__step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 60px;
}
.process__step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  background: var(--bg-card);
  border: 1px solid rgba(110, 170, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.process__step-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, rgba(110, 170, 255, 0.2), var(--border));
  margin-top: 12px;
}
.process__step:last-child .process__step-line { display: none; }

.process__step-content {
  padding-top: 10px;
  max-width: 520px;
}
.process__step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.process__step-content p {
  font-size: 0.9rem;
}

/* ═══════════════════════════════════
   WHY / ABOUT
   ═══════════════════════════════════ */
.why {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) clamp(24px, 4vw, 48px);
}

.why__statement {
  max-width: var(--container);
  margin: 0 auto;
  padding-bottom: 100px;
}
.why__statement blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 800px;
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--accent);
}

.why__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.why__story h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 24px;
}
.why__story p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.why__proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.3s;
}
.proof-card:hover { border-color: var(--border-2); }
.proof-card__num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.proof-card__label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}
.proof-card__detail {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--ink-muted);
  display: block;
  line-height: 1.5;
}

/* ═══════════════════════════════════
   PRICING
   ═══════════════════════════════════ */
.pricing {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) clamp(24px, 4vw, 48px);
  max-width: var(--container);
  margin: 0 auto;
}

.pricing__header { margin-bottom: 80px; }

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
}
.pricing-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: rgba(110, 170, 255, 0.25);
  background: linear-gradient(180deg, rgba(110, 170, 255, 0.04) 0%, var(--bg-card) 50%);
}
.pricing-card--featured:hover {
  border-color: rgba(110, 170, 255, 0.4);
  box-shadow: 0 20px 60px rgba(110, 170, 255, 0.08);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__head {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.pricing-card__tier {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 12px;
}
.pricing-card__price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--ink);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.pricing-card__period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.pricing-card__features {
  margin-bottom: 36px;
}
.pricing-card__features li {
  font-size: 0.85rem;
  color: var(--ink-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-card__features li::before {
  content: '→';
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.pricing-card__features li:last-child { border-bottom: none; }

/* ═══════════════════════════════════
   CONTACT
   ═══════════════════════════════════ */
.contact {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) clamp(24px, 4vw, 48px);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.contact__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact__left h2 {
  margin-bottom: 20px;
}
.contact__left > p {
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 400px;
}

.contact__info { margin-bottom: 32px; }
.contact__email {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent) !important;
  margin-bottom: 8px;
}
.contact__avail {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted) !important;
  letter-spacing: 0.05em;
}

.contact__social {
  display: flex;
  gap: 24px;
}
.contact__social a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  transition: color 0.25s;
}
.contact__social a:hover { color: var(--accent); }

/* FORM */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.9rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110, 170, 255, 0.1);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23706D68' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--success);
  opacity: 0;
  transition: opacity 0.3s;
}
.form-success.visible { opacity: 1; }

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  padding: 80px clamp(24px, 4vw, 48px) 40px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.footer__top {
  max-width: var(--container);
  margin: 0 auto 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  display: block;
  margin-bottom: 12px;
}
.footer__brand p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.footer__nav {
  display: flex;
  gap: 80px;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.footer__col li { margin-bottom: 12px; }
.footer__col a {
  font-size: 0.85rem;
  color: var(--ink-2);
  transition: color 0.25s;
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.footer__bottom p {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.footer__ghost {
  position: absolute;
  bottom: -60px;
  right: 48px;
  font-family: var(--font-display);
  font-size: 20rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.03);
  pointer-events: none;
  user-select: none;
  line-height: 0.8;
}

/* ═══════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.agents__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.agents__grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.agents__grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.orbit__ring .reveal:nth-child(2) { transition-delay: 0.1s; }
.orbit__ring .reveal:nth-child(3) { transition-delay: 0.2s; }
.orbit__ring .reveal:nth-child(4) { transition-delay: 0.3s; }

.pricing__cards .reveal:nth-child(2) { transition-delay: 0.1s; }
.pricing__cards .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding-bottom: 100px;
  }
  .hero__visual {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 480px;
    margin-top: 60px;
    animation-delay: 2.4s;
  }
  .hero__content { max-width: 100%; }

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

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

  .why__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .pricing__cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .hero__stats { flex-wrap: wrap; gap: 20px; }
  .hero__stat-divider { display: none; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .orbit__ring { grid-template-columns: 1fr; }
  .orbit__center { padding: 36px 28px; }

  .process__step { gap: 24px; }
  .process__step-marker { width: 48px; }

  .why__statement blockquote { font-size: 1.5rem; }
  .why__proof { grid-template-columns: 1fr; }

  .footer__top { flex-direction: column; gap: 40px; }
  .footer__nav { gap: 48px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer__ghost { font-size: 10rem; right: 16px; }
}

@media (max-width: 480px) {
  .hero__badge { font-size: 0.6rem; }
  h1 { font-size: 2.5rem; }
  .hero__terminal { display: none; }
  .agent-card__visual { height: 160px; }
}

/* ═══════════════════════════════════
   SELECTION & SCROLLBAR
   ═══════════════════════════════════ */
::selection {
  background: rgba(110, 170, 255, 0.25);
  color: var(--ink);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }

/* ═══════════════════════════════════
   DRAMATIC VIDEO REVEAL
   ═══════════════════════════════════ */
.hero__video-wrap {
  opacity: 0;
  transition: opacity 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero__video-wrap.revealed {
  opacity: 1;
}

/* ═══════════════════════════════════
   CHAT WIDGET
   ═══════════════════════════════════ */

/* FAB Button */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 24px rgba(110, 170, 255, 0.3);
  transition: transform 0.25s, box-shadow 0.25s;
}
.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(110, 170, 255, 0.45);
}
.chat-fab__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: fabPulse 2.5s infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
.chat-fab.hidden { display: none; }

/* Chat Panel */
.chat {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 9001;
  width: 380px;
  max-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(110, 170, 255, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}
.chat.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.chat__header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat__status {
  display: flex;
  align-items: center;
}
.chat__name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  display: block;
}
.chat__subtitle {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
}
.chat__close {
  color: var(--ink-muted);
  padding: 4px;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
}
.chat__close:hover { color: var(--ink); }

/* Messages */
.chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 340px;
  min-height: 200px;
}
.chat__messages::-webkit-scrollbar { width: 4px; }
.chat__messages::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

.chat__msg {
  max-width: 88%;
  animation: msgIn 0.3s ease-out;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat__msg--agent {
  align-self: flex-start;
}
.chat__msg--agent p {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 12px 16px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.chat__msg--agent p:last-child { margin-bottom: 0; }

.chat__msg--user {
  align-self: flex-end;
}
.chat__msg--user p {
  background: var(--accent);
  color: var(--bg);
  border-radius: 12px 12px 4px 12px;
  padding: 12px 16px;
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Typing indicator */
.chat__typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  width: fit-content;
}
.chat__typing span {
  width: 6px;
  height: 6px;
  background: var(--ink-muted);
  border-radius: 50%;
  animation: typingDot 1.4s infinite;
}
.chat__typing span:nth-child(2) { animation-delay: 0.2s; }
.chat__typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* Input */
.chat__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.chat__input input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.chat__input input:focus {
  border-color: var(--accent);
}
.chat__input input::placeholder {
  color: var(--ink-muted);
}
.chat__input button {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.chat__input button:hover {
  background: #8ABBFF;
}

/* Chat responsive */
@media (max-width: 480px) {
  .chat {
    right: 12px;
    left: 12px;
    bottom: 90px;
    width: auto;
    max-height: 70vh;
  }
  .chat-fab {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}
