/* ============================================================================
   WikiNG — landing design system
   Direction: "Knowledge Graph" — dark, technical, grounded.
   Palette is multi-dimensional (indigo/violet brand + cyan for data/graph +
   amber for citations) instead of a single purple hue.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* Surfaces */
  --bg-900: #070a18;
  --bg-800: #0b1024;
  --bg-700: #0e1330;
  --bg-600: #12183a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text-100: #f4f7ff;
  --text-300: #c3cbe4;
  --text-500: #8a93b2;
  --text-600: #7b83a0;

  /* Brand */
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #667eea;
  --brand-600: #5568e0;
  --violet-500: #8b5cf6;
  --violet-700: #764ba2;

  /* Accents (data / citations) */
  --cyan-400: #22d3ee;
  --teal-400: #2dd4bf;
  --amber-400: #f5a524;
  --pink-400: #f093fb;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  /* Darker variant used behind white text to keep >=4.5:1 contrast. */
  --grad-brand-btn: linear-gradient(135deg, #5568e0 0%, #6d3f97 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(139, 92, 246, 0.9));
  --grad-data: linear-gradient(135deg, #22d3ee 0%, #818cf8 100%);
  --grad-warm: linear-gradient(135deg, #f5a524 0%, #f093fb 100%);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --nav-h: 70px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s var(--ease);
  --t: 0.3s var(--ease);
  --t-slow: 0.6s var(--ease);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
  --glow-brand: 0 0 0 1px rgba(129, 140, 248, 0.25), 0 18px 50px -18px rgba(102, 126, 234, 0.65);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-300);
  background-color: var(--bg-900);
  background-image:
    radial-gradient(1100px 680px at 12% -12%, rgba(102, 126, 234, 0.20) 0%, transparent 58%),
    radial-gradient(980px 620px at 92% -4%, rgba(139, 92, 246, 0.16) 0%, transparent 55%),
    radial-gradient(900px 620px at 50% 118%, rgba(34, 211, 238, 0.10) 0%, transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Faint technical grid over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(90% 70% at 50% 30%, #000 0%, transparent 88%);
  mask-image: radial-gradient(90% 70% at 50% 30%, #000 0%, transparent 88%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-100);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1rem; }

a {
  color: var(--brand-300);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: #fff; }

img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(129, 140, 248, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------ structure -- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-500);
  font-size: 1.0625rem;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 14px;
}

.gradient-text {
  background: linear-gradient(120deg, #a5b4fc 0%, #c4b5fd 45%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t-fast);
}
.btn i { font-size: 0.9em; }

.btn-primary {
  color: #fff;
  background: var(--grad-brand-btn);
  box-shadow: 0 14px 34px -14px rgba(102, 126, 234, 0.9);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -16px rgba(139, 92, 246, 0.95);
}

.btn-outline {
  color: var(--text-100);
  background: var(--surface);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  color: #fff;
  background: var(--surface-2);
  border-color: rgba(129, 140, 248, 0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-100);
  background: transparent;
  border-color: var(--border);
}
.btn-ghost:hover { color: #fff; background: var(--surface); }

.btn-large { padding: 15px 28px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* ----------------------------------------------------------------- badge -- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-300);
  font-size: 0.82rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.16);
}
.badge i { color: var(--brand-300); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-500);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ------------------------------------------------------------------ card -- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: var(--shadow);
}

.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.icon-tile.brand { background: var(--grad-brand); box-shadow: 0 10px 24px -10px rgba(102, 126, 234, 0.9); }
.icon-tile.data { background: var(--grad-data); box-shadow: 0 10px 24px -10px rgba(34, 211, 238, 0.8); }
.icon-tile.warm { background: var(--grad-warm); box-shadow: 0 10px 24px -10px rgba(245, 165, 36, 0.8); }
.icon-tile.violet { background: linear-gradient(135deg, #8b5cf6, #d946ef); box-shadow: 0 10px 24px -10px rgba(139, 92, 246, 0.9); }

/* -------------------------------------------------------------- nav bar -- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(7, 10, 24, 0.55);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(140%);
  transition: background var(--t), border-color var(--t);
}
.navbar.scrolled {
  background: rgba(7, 10, 24, 0.86);
  border-bottom-color: var(--border);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.nav-brand .logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  box-shadow: 0 8px 20px -8px rgba(102, 126, 234, 0.9);
}
.nav-brand .logo-badge svg { width: 20px; height: 20px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.nav-link {
  position: relative;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--text-500);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--text-100); background: var(--surface); }
.nav-link.active { color: #fff; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text-100);
  transition: transform var(--t), opacity var(--t);
}

/* ------------------------------------------------------------------ hero -- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-badge { margin-bottom: 22px; }

.hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-500);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Knowledge-graph backdrop: documents -> assistant */
.hero-graph {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
.hero-graph svg { width: 100%; height: 100%; }
.hero-graph .gnode { fill: rgba(165, 180, 252, 0.9); }
.hero-graph .gnode.data { fill: rgba(103, 232, 249, 0.9); }
.hero-graph .gedge {
  stroke: rgba(129, 140, 248, 0.28);
  stroke-width: 1;
  stroke-dasharray: 5 7;
  animation: dash 14s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -240; } }

/* Answer card — the memorable "sources -> grounded answer" motif */
.answer-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(18, 24, 58, 0.92), rgba(11, 16, 36, 0.92));
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(129, 140, 248, 0.08);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.answer-card__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.answer-card__dots { display: flex; gap: 6px; }
.answer-card__dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.answer-card__dots span:nth-child(1) { background: #ff5f57; }
.answer-card__dots span:nth-child(2) { background: #febc2e; }
.answer-card__dots span:nth-child(3) { background: #28c840; }
.answer-card__title { margin-left: 8px; font-size: 0.82rem; color: var(--text-500); }

.answer-card__body { padding: 20px; display: grid; gap: 16px; }

.qa { display: grid; gap: 8px; }
.qa__label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-600); font-weight: 600; }
.bubble {
  border-radius: 13px;
  padding: 12px 15px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.bubble--user {
  justify-self: end;
  max-width: 85%;
  background: var(--grad-brand);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.bubble--bot {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-300);
  border-bottom-left-radius: 5px;
}
.bubble--bot strong { color: var(--text-100); }

.citations { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.citation {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--amber-400);
  background: rgba(245, 165, 36, 0.10);
  border: 1px solid rgba(245, 165, 36, 0.28);
}
.citation i { font-size: 0.8em; }

.answer-card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-500);
  background: rgba(255, 255, 255, 0.02);
}
.answer-card__foot .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* -------------------------------------------------------------- channels -- */
.channels { padding: 40px 0 8px; }
.channels__label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-600);
  margin-bottom: 20px;
}
.channels__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-300);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color var(--t), transform var(--t), color var(--t-fast);
}
.channel-pill:hover { border-color: rgba(129, 140, 248, 0.45); transform: translateY(-2px); color: #fff; }
.channel-pill i { color: var(--brand-300); font-size: 1.05rem; }

/* --------------------------------------------------------------- features -- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card { display: flex; flex-direction: column; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-500); font-size: 0.94rem; margin: 0; }

.feature-card--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}
.feature-card--wide .feature-card__text { flex: 1 1 0; min-width: 0; }
.feature-card--wide .feature-card__media {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-700);
}
.feature-card--wide img { width: 100%; height: auto; }

/* --------------------------------------------------------------- steps -- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.step {
  position: relative;
  padding-top: 34px;
}
.step::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(129,140,248,0.5), rgba(34,211,238,0.35), rgba(129,140,248,0.08));
}
.step:last-child::before { background: linear-gradient(90deg, rgba(129,140,248,0.5), transparent); }
.step__num {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 8px 18px -8px rgba(102, 126, 234, 0.9);
}
.step h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.step p { color: var(--text-500); font-size: 0.92rem; margin: 0; }

/* ----------------------------------------------------------------- demo -- */
.demo-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-700);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.demo-frame__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.demo-frame__dots { display: flex; gap: 6px; }
.demo-frame__dots span { width: 10px; height: 10px; border-radius: 50%; }
.demo-frame__dots span:nth-child(1) { background: #ff5f57; }
.demo-frame__dots span:nth-child(2) { background: #febc2e; }
.demo-frame__dots span:nth-child(3) { background: #28c840; }
.demo-frame__url {
  flex: 1;
  margin-left: 8px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--bg-900);
  border: 1px solid var(--border);
  color: var(--text-500);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-embed-frame {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
  background: var(--bg-900);
}
.demo-note {
  text-align: center;
  color: var(--text-600);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* ------------------------------------------------------------ use cases -- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.usecase h3 { font-size: 1.02rem; margin-bottom: 8px; }
.usecase p { color: var(--text-500); font-size: 0.9rem; margin: 0; }
.usecase .icon-tile { width: 42px; height: 42px; font-size: 1rem; border-radius: 12px; }

/* ---------------------------------------------------------------- stats -- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label { display: block; margin-top: 8px; color: var(--text-500); font-size: 0.86rem; }

/* ------------------------------------------------------------------ faq -- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 20px;
  transition: border-color var(--t), background var(--t);
}
.faq details[open] { border-color: rgba(129, 140, 248, 0.4); background: var(--surface-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 30px 18px 0;
  position: relative;
  color: var(--text-100);
  font-weight: 600;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-500);
  font-size: 0.8rem;
  transition: transform var(--t);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); color: var(--brand-300); }
.faq p { margin: 0 0 18px; color: var(--text-500); font-size: 0.94rem; }

/* -------------------------------------------------------------- contact -- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-300);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--bg-900);
  color: var(--text-100);
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-600); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.18);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 11px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--teal-400);
  font-size: 0.9rem;
}
.form-success.show { display: block; }

.contact-info { display: grid; gap: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--t), transform var(--t);
}
.contact-item:hover { border-color: rgba(129, 140, 248, 0.4); transform: translateX(3px); }
.contact-item .icon-tile { margin: 0; width: 42px; height: 42px; font-size: 1rem; border-radius: 12px; }
.contact-item__label { display: block; font-size: 0.78rem; color: var(--text-600); }
.contact-item__value { color: var(--text-100); font-weight: 600; font-size: 0.95rem; }

/* --------------------------------------------------------------- footer -- */
.footer {
  position: relative;
  margin-top: 40px;
  padding: 64px 0 30px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  z-index: 1;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-description { color: var(--text-500); font-size: 0.9rem; max-width: 320px; }
.footer-title { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-600); margin-bottom: 14px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--text-300); font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-600);
  font-size: 0.84rem;
}
.footer-bottom a { color: var(--text-500); }

/* ----------------------------------------------------------- page hero -- */
.page-hero {
  padding: calc(var(--nav-h) + 84px) 0 20px;
}
.page-hero .section-header { margin-bottom: 8px; }

/* --------------------------------------------------------------- motion -- */[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-animate].animated { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-content { max-width: 680px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--wide { grid-column: span 2; }
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .step:nth-child(2)::before { background: linear-gradient(90deg, rgba(129,140,248,0.4), transparent); }
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 22px;
    background: rgba(7, 10, 24, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
  }
  .nav-menu.active { display: flex; }
  .nav-link { padding: 12px 14px; }
  .nav-link.active::after { display: none; }
  .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: auto; flex-direction: column; align-items: stretch; gap: 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step::before { display: none; }
  .usecase-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .demo-embed-frame { height: 520px; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .footer-content { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-band { grid-template-columns: 1fr; }
  .hero-buttons .btn { width: 100%; }
}

/* --------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gedge, .answer-card__foot .pulse { animation: none !important; }
  [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover, .channel-pill:hover, .contact-item:hover { transform: none !important; }
}
