/* ============================================================
   ADAPTIVE AI · Design System
   Dark editorial aesthetic with electric blue accents
   ============================================================ */

:root {
  /* Brand palette derived from logo */
  --ink:        #07090F;
  --ink-2:      #0C111C;
  --ink-3:      #131A28;
  --surface:    #1A2233;
  --surface-2:  #232D42;
  --line:       rgba(255, 255, 255, 0.08);
  --line-2:     rgba(255, 255, 255, 0.14);

  --blue:       #1973FF;
  --blue-glow:  #4DA5FF;
  --blue-deep:  #0B5BD9;
  --cyan:       #00D4FF;

  --white:      #FFFFFF;
  --bone:       #F2F4F8;
  --gray:       #8A92A6;
  --gray-light: #B8BFCF;
  --gray-dark:  #4A5163;

  --success:    #10B981;
  --warning:    #F59E0B;
  --danger:     #EF4444;

  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  --shadow-sm:  0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow:     0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-lg:  0 30px 80px rgba(11, 91, 217, 0.18);
  --shadow-blue: 0 12px 40px rgba(25, 115, 255, 0.35);

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-sans:    'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --max-w:      1280px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-sharp: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--bone);
  background: var(--ink);
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Persistent canvas background */
#neural-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* Atmospheric gradient overlays for depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(25, 115, 255, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(0, 212, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(11, 91, 217, 0.10), transparent 60%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

main, header, footer {
  position: relative;
  z-index: 2;
}

a {
  color: var(--blue-glow);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--cyan); }

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

/* ===== Typography ===== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 0.6em;
  color: var(--white);
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 96;
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--blue-glow);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 450;
}

h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-sans); letter-spacing: -0.01em; }

p { margin: 0 0 1em; color: var(--gray-light); }
p.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--bone);
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-glow);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.2em;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--blue-glow);
  display: inline-block;
}

code, pre, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  background: rgba(25, 115, 255, 0.12);
  border: 1px solid rgba(25, 115, 255, 0.25);
  color: var(--blue-glow);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85em;
}

pre {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  overflow-x: auto;
  color: var(--bone);
  line-height: 1.6;
  font-size: 0.85rem;
  position: relative;
}
pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
pre::before {
  content: attr(data-lang);
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== Layout ===== */

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

.section { padding: clamp(60px, 8vw, 120px) 0; }
.section-tight { padding: clamp(40px, 5vw, 70px) 0; }

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Header / Navigation ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 15, 0.65);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
}
.nav-brand img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu > li { position: relative; }

.nav-menu a, .nav-menu .nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--gray-light);
  font-weight: 500;
  font-size: 0.93rem;
  border-radius: 10px;
  transition: all 0.2s var(--ease);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-menu a:hover, .nav-menu .nav-link-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-menu a.active {
  color: var(--blue-glow);
}

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-blue);
}
.nav-cta:hover { background: var(--blue-deep) !important; color: var(--white) !important; }

/* Dropdown */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 720px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease);
  z-index: 110;
}

.nav-menu li:hover .dropdown-panel,
.nav-menu li:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

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

.dropdown-item {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--gray-light) !important;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent !important;
  transition: all 0.18s var(--ease);
  border: 1px solid transparent;
}
.dropdown-item:hover {
  color: var(--white) !important;
  background: rgba(25, 115, 255, 0.12) !important;
  border-color: rgba(25, 115, 255, 0.3);
}
.dropdown-item .item-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 3px;
  font-weight: 400;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: all 0.3s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ===== Persona Switcher ===== */

.persona-bar {
  position: sticky;
  top: 76px;
  z-index: 90;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(7,9,15,0.85) 0%, rgba(7,9,15,0.5) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.persona-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.persona-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}
.persona-label::after { content: ' →'; color: var(--blue-glow); }

.persona-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.persona-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gray-light);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: inherit;
}
.persona-chip:hover {
  background: rgba(25, 115, 255, 0.1);
  border-color: rgba(25, 115, 255, 0.4);
  color: var(--white);
  transform: translateY(-1px);
}
.persona-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.persona-chip svg { width: 16px; height: 16px; }

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  transition: all 0.22s var(--ease);
  box-shadow: var(--shadow-blue);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(25, 115, 255, 0.45);
}
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s var(--ease);
}
.btn:hover::after { left: 100%; }

.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid var(--line-2);
  box-shadow: none;
}
.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--blue-glow);
  color: var(--white);
}

.btn.ghost {
  background: transparent;
  color: var(--blue-glow);
  border: 1px solid rgba(77, 165, 255, 0.4);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(25, 115, 255, 0.1); }

.btn-arrow { transition: transform 0.22s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ===== Hero ===== */

.hero {
  padding: clamp(70px, 9vw, 130px) 0 clamp(60px, 8vw, 110px);
  position: relative;
}

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

.hero-headline {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  margin-bottom: 0.5em;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--gray-light);
  margin-bottom: 2.2rem;
  max-width: 52ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta-item .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--white);
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-meta-item .num em {
  font-style: italic;
  font-weight: 300;
  color: var(--blue-glow);
}
.hero-meta-item .label {
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 6px;
  display: block;
  letter-spacing: 0.01em;
}

/* Hero visual - the adaptive interface preview */
.hero-visual {
  position: relative;
  height: 540px;
  perspective: 1400px;
}

.adaptive-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.adaptive-screen {
  position: absolute;
  width: 92%;
  height: 78%;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all 0.6s var(--ease);
  backdrop-filter: blur(20px);
}

.screen-back {
  top: 0;
  right: 0;
  transform: rotateY(-8deg) rotateX(2deg);
  opacity: 0.55;
}
.screen-front {
  bottom: 0;
  left: 0;
  transform: rotateY(8deg) rotateX(-2deg);
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.screen-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-dark);
}
.screen-bar .dot:nth-child(1) { background: #ff5f56; }
.screen-bar .dot:nth-child(2) { background: #ffbd2e; }
.screen-bar .dot:nth-child(3) { background: #27c93f; }
.screen-bar .tab {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.1em;
}

.screen-body { padding: 22px; }

.screen-line {
  height: 8px;
  background: linear-gradient(90deg, var(--surface-2), transparent);
  border-radius: 4px;
  margin-bottom: 12px;
  animation: line-shimmer 3s var(--ease) infinite;
}
.screen-line.w-90 { width: 90%; }
.screen-line.w-70 { width: 70%; }
.screen-line.w-50 { width: 50%; }
.screen-line.blue {
  background: linear-gradient(90deg, var(--blue), rgba(25,115,255,0.2));
}

@keyframes line-shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.screen-card {
  background: rgba(25, 115, 255, 0.08);
  border: 1px solid rgba(25, 115, 255, 0.25);
  border-radius: 10px;
  padding: 14px;
  margin: 16px 0;
}

.screen-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.screen-mini {
  background: var(--surface);
  border-radius: 8px;
  height: 56px;
  position: relative;
  overflow: hidden;
}
.screen-mini::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(25,115,255,0.15), transparent);
}

/* ===== Section: Common ===== */

.section-head {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head.left {
  text-align: left;
  margin: 0 0 60px;
}

/* ===== Cards / Modules ===== */

.cardstack {
  display: grid;
  gap: 20px;
}

.module {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.module::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.module:hover {
  border-color: var(--line-2);
  background: linear-gradient(180deg, rgba(25,115,255,0.05), rgba(255,255,255,0.01));
  transform: translateY(-3px);
}
.module:hover::before { opacity: 1; }

.module .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 115, 255, 0.12);
  border: 1px solid rgba(25, 115, 255, 0.3);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--blue-glow);
}
.module .icon svg { width: 22px; height: 22px; }

.module h3 { margin-bottom: 10px; }
.module p { font-size: 0.95rem; color: var(--gray-light); margin-bottom: 0; }

/* Numbered modules */
.module .num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-dark);
  letter-spacing: 0.1em;
}

/* ===== Adaptive Diagram (the loop) ===== */

.diagram-wrap {
  position: relative;
  padding: 48px;
  background: linear-gradient(135deg, rgba(25,115,255,0.06), rgba(0,212,255,0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.diagram-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(25,115,255,0.18), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0,212,255,0.12), transparent 50%);
  pointer-events: none;
}

/* ===== Persona Content Cards ===== */

.persona-content { display: none; }
.persona-content.active { display: block; animation: persona-in 0.5s var(--ease); }

@keyframes persona-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.persona-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(25, 115, 255, 0.08);
  border: 1px solid rgba(25, 115, 255, 0.25);
  border-radius: var(--radius);
  margin-bottom: 30px;
}
.persona-callout .pc-icon {
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.persona-callout .pc-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-glow);
  margin-bottom: 3px;
}
.persona-callout .pc-text strong {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
}

/* ===== Industry Use Case Cards ===== */

.industry-detail {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-top: 40px;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.usecase {
  padding: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
}
.usecase:hover {
  border-color: rgba(25, 115, 255, 0.4);
  background: rgba(25, 115, 255, 0.05);
}
.usecase .uc-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blue-glow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.usecase h4 { margin-bottom: 8px; color: var(--white); }
.usecase p { font-size: 0.92rem; margin-bottom: 12px; }
.usecase .uc-steps {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}
.usecase .uc-steps::before {
  content: '→';
  color: var(--blue-glow);
}

/* ===== Locked/Premium Content ===== */

.locked-section {
  position: relative;
  padding: 40px;
  background: linear-gradient(180deg, transparent, rgba(7,9,15,0.95) 70%);
  margin-top: -80px;
  border-radius: var(--radius-xl);
  text-align: center;
}
.locked-content {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
  margin-bottom: -200px;
}

.unlock-prompt {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 40px;
  background: var(--ink-2);
  border: 1px solid rgba(25, 115, 255, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  margin: 0 auto;
}
.unlock-prompt .lock-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

/* ===== Forms ===== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
}

.field input, .field select, .field textarea {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray-dark); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(25, 115, 255, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }

.form-feedback {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.form-feedback.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}
.form-feedback.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

/* ===== Footer ===== */

.site-footer {
  margin-top: 100px;
  padding: 70px 0 30px;
  background: linear-gradient(180deg, transparent, var(--ink-2));
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 16px;
  max-width: 30ch;
}
.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--gray-light);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--blue-glow); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray);
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Specific Layouts ===== */

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.policy-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 0;
}
.policy-page h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.policy-page h2 {
  font-size: 1.6rem;
  margin-top: 2.5em;
  padding-top: 0.6em;
  border-top: 1px solid var(--line);
  color: var(--white);
}
.policy-page p, .policy-page li { color: var(--gray-light); }
.policy-page strong { color: var(--white); }

.contact-info-grid {
  display: grid;
  gap: 20px;
}
.contact-tile {
  padding: 22px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s var(--ease);
}
.contact-tile:hover {
  border-color: rgba(25, 115, 255, 0.4);
  background: rgba(25, 115, 255, 0.06);
}
.contact-tile .ct-icon {
  width: 44px;
  height: 44px;
  background: rgba(25, 115, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-glow);
}
.contact-tile small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 3px;
}
.contact-tile strong { color: var(--white); font-size: 1rem; font-weight: 600; }

/* ===== FAQ / Accordion ===== */

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  font-weight: 600;
  color: var(--white);
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue-glow);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--blue-glow); }
.faq-item p { padding: 0 0 24px; }

/* ===== Page transitions ===== */

.fade-in {
  animation: fadeUp 0.7s var(--ease) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Staggered children */
.stagger > * { animation: fadeUp 0.6s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.15s; }
.stagger > *:nth-child(3) { animation-delay: 0.25s; }
.stagger > *:nth-child(4) { animation-delay: 0.35s; }
.stagger > *:nth-child(5) { animation-delay: 0.45s; }
.stagger > *:nth-child(6) { animation-delay: 0.55s; }

/* ===== Responsive ===== */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { height: 420px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
  .dropdown-panel { min-width: 560px; }
  .dropdown-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--ink);
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    z-index: 99;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu > li { width: 100%; }
  .nav-menu a, .nav-menu .nav-link-btn {
    padding: 14px 16px;
    width: 100%;
    font-size: 1.05rem;
  }
  .nav-menu .nav-cta { justify-content: center; margin-top: 8px; }

  .dropdown-panel {
    position: static;
    transform: none;
    min-width: 100%;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 6px 0 6px 16px;
    margin-top: 4px;
    display: none;
  }
  .nav-menu li.mobile-open .dropdown-panel { display: block; }
  .dropdown-grid { grid-template-columns: 1fr; gap: 4px; }
  .dropdown-item { padding: 10px 12px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .industry-detail { padding: 28px 22px; }
  .usecase-grid { grid-template-columns: 1fr; }
  .module { padding: 24px; }

  .persona-bar { padding: 12px 0; }
  .persona-bar-inner { gap: 10px; }
  .persona-label { font-size: 0.68rem; width: 100%; }
  .persona-options { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .persona-options::-webkit-scrollbar { display: none; }
  .persona-chip { white-space: nowrap; flex-shrink: 0; padding: 8px 14px; font-size: 0.82rem; }

  .nav-brand img { height: 30px; }
  .hero { padding: 50px 0 60px; }
  .hero-visual { height: 360px; }
  .section { padding: 60px 0; }
  .diagram-wrap { padding: 24px 18px; }
}

@media (max-width: 480px) {
  .hero-meta { gap: 18px; }
  .hero-meta-item .num { font-size: 1.7rem; }
  .btn { padding: 12px 18px; font-size: 0.92rem; }
  .nav-brand img { height: 26px; }
  .container { width: min(100% - 28px, var(--max-w)); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #neural-bg { opacity: 0.2; }
}
