:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-dark: #0a1020;
  --bg-dark-2: #0f1830;
  --border: #e5e7eb;
  --border-dark: #1f2a44;
  --ink: #0a1020;
  --ink-2: #1f2937;
  --muted: #4b5563;
  --muted-dark: #94a3b8;
  --brand: #ff6b35;
  --brand-2: #ffa45c;
  --accent: #4f8cff;
  --accent-2: #7cc4ff;
  --grid-line: rgba(255, 255, 255, 0.06);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  background: var(--bg);
  color: var(--ink);
}

.font-display {
  font-family: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* ---------- Hero background ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 107, 53, 0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(79, 140, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #070b18 0%, #0a1020 60%, #0c1428 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
  pointer-events: none;
}

.dark-section {
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(79, 140, 255, 0.14), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(255, 107, 53, 0.10), transparent 60%),
    linear-gradient(180deg, #0a1020 0%, #0c1428 100%);
}

/* ---------- Pill / chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.18);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #ff7a3d 0%, #ff6b35 100%);
  color: #fff;
  box-shadow: 0 8px 28px -10px rgba(255, 107, 53, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -10px rgba(255, 107, 53, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 10px;
}

/* ---------- Card ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -24px rgba(15, 23, 42, 0.18);
  border-color: #d6dbe2;
}

.card-dark {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 28px;
  color: #e5e7eb;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.card-dark:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

.icon-square {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(79, 140, 255, 0.15));
  color: var(--brand);
  border: 1px solid rgba(255, 107, 53, 0.25);
}

.icon-square.alt {
  color: var(--accent);
  border-color: rgba(79, 140, 255, 0.28);
}

.icon-square.dark {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(79, 140, 255, 0.18));
  border-color: rgba(255, 107, 53, 0.28);
}

/* ---------- Section ---------- */
.section {
  padding: 96px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}

.section-eyebrow.alt {
  color: var(--accent);
}

/* ---------- Pipeline architecture ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  position: relative;
}

@media (max-width: 900px) {
  .pipeline {
    grid-template-columns: 1fr;
  }
}

.pipeline-node {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 22px 20px;
  color: #e5e7eb;
}

.pipeline-node .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 107, 53, 0.18);
  color: var(--brand-2);
  border: 1px solid rgba(255, 107, 53, 0.28);
  margin-bottom: 12px;
}

.pipeline-arrow {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.25);
  z-index: 2;
}

@media (max-width: 900px) {
  .pipeline-arrow {
    display: none;
  }
}

/* ---------- Case stat ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat .num {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -0.02em;
}

/* ---------- Use cases page ---------- */
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  border-color: var(--ink);
}

.tab-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tab-btn .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
}

.tab-btn.active .count {
  background: rgba(255, 255, 255, 0.18);
}

.use-case {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.use-case:hover {
  border-color: #c8d0db;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -22px rgba(15, 23, 42, 0.25);
}

.use-case .num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.22);
}

.use-case h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}

.use-case p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav-dark {
  background: rgba(10, 16, 32, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-dark a {
  color: #e5e7eb;
}

.nav a.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav a.nav-link:hover {
  color: var(--ink);
}

.nav-dark a.nav-link {
  color: #cbd5e1;
}

.nav-dark a.nav-link:hover {
  color: #fff;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff9b6a 60%, #ffd1a4 100%);
  position: relative;
  box-shadow: 0 6px 14px -6px rgba(255, 107, 53, 0.6);
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

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

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

/* ---------- Footer ---------- */
.footer {
  background: #070b18;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer a {
  color: #cbd5e1;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: #fff;
}

/* ---------- Misc ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.kbd {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.gradient-text {
  background: linear-gradient(90deg, #ff7a3d 0%, #ffb37a 50%, #7cc4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* mobile menu */
.mobile-menu {
  display: none;
}

.mobile-menu.open {
  display: block;
}
