/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #09090b;
  color: #fafafa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Variables ──────────────────────────────── */
:root {
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --red-400: #f87171;
  --red-500: #ef4444;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --gray-950: #0a0a0a;
  --surface: #111113;
  --surface-2: #18181b;
  --surface-3: #1e1e22;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --glass-bg: rgba(17,17,19,0.7);
  --glass-border: rgba(255,255,255,0.08);
}

/* ── Typography ────────────────────────────── */
h1 { font-size: clamp(2.75rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p { color: var(--gray-400); font-size: 1.1rem; line-height: 1.7; }

/* ── Layout ─────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 7rem 0; position: relative; }

/* ── Gradient text ──────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--blue-400), var(--violet-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.6rem; border-radius: 10px; font-weight: 600;
  font-size: 0.95rem; transition: all 0.2s ease; border: none; cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue-500); color: #fff;
  box-shadow: 0 0 20px rgba(59,130,246,0.25);
}
.btn-primary:hover {
  background: var(--blue-600); transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(59,130,246,0.4);
}
.btn-ghost {
  border: 1px solid var(--border-hover); color: var(--gray-400);
  background: transparent;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2); color: #fff;
  background: rgba(255,255,255,0.03);
}
.btn-lg { padding: 0.85rem 2.2rem; font-size: 1.05rem; border-radius: 12px; }

/* ── Navigation ─────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0; transition: all 0.3s ease;
}
.nav-scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 1.3rem; font-weight: 700; color: #fff;
}
.nav-logo-icon {
  width: 36px; height: 36px; background: var(--blue-500); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.1rem;
}
.nav-links { display: flex; gap: 2.25rem; align-items: center; }
.nav-link {
  font-size: 0.9rem; font-weight: 500; color: var(--gray-400);
  transition: color 0.2s; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--blue-500);
  transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { margin-left: 0.5rem; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; cursor: pointer; z-index: 110; }
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--gray-400);
  transition: all 0.3s ease; border-radius: 1px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0;
  background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 5rem 2rem 2rem; flex-direction: column; gap: 0;
  z-index: 99;
  transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  display: block; padding: 1rem 0; font-size: 1.1rem; font-weight: 500;
  color: var(--gray-400); border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s;
}
.mobile-menu.open a {
  opacity: 1; transform: translateY(0);
}
.mobile-menu a:hover { color: #fff; }
.mobile-menu .btn { margin-top: 1rem; justify-content: center; }

/* ── Hero ────────────────────────────────────── */
.hero {
  padding: 12rem 0 7rem; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 32px 32px;
}
.hero-glow-1 {
  position: absolute; top: -200px; left: 50%; transform: translateX(-70%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 65%);
  z-index: 0;
}
.hero-glow-2 {
  position: absolute; top: -100px; right: -200px;
  width: 600px; height: 500px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.08) 0%, transparent 65%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
  color: var(--blue-400); padding: 0.4rem 1.2rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 2rem;
}
.hero-badge svg { width: 16px; height: 16px; }
.hero h1 { margin-bottom: 1.5rem; color: #fff; }
.hero-sub {
  font-size: 1.25rem; color: var(--gray-400); max-width: 640px;
  margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Scroll reveal ──────────────────────────── */
[data-animate] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate].is-visible { opacity: 1; transform: translateY(0); }

/* Hero entrance (CSS only, no observer) */
.hero-enter { opacity: 0; transform: translateY(20px); animation: heroFadeIn 0.8s ease forwards; }
.hero-enter-1 { animation-delay: 0.1s; }
.hero-enter-2 { animation-delay: 0.25s; }
.hero-enter-3 { animation-delay: 0.4s; }
.hero-enter-4 { animation-delay: 0.55s; }
@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Stats Bar ──────────────────────────────── */
.stats-bar {
  padding: 3rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; text-align: center;
}
.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
  content: ''; position: absolute; right: -1rem; top: 15%; height: 70%;
  width: 1px; background: var(--border);
}
.stat-number {
  font-size: 2.5rem; font-weight: 800; line-height: 1.1;
  background: linear-gradient(135deg, var(--blue-400), var(--violet-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label {
  font-size: 0.8rem; color: var(--gray-500); margin-top: 0.4rem;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}

/* ── Problem ─────────────────────────────────── */
.problem { background: var(--gray-950); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { color: #fff; margin-bottom: 1rem; }
.section-header p { max-width: 600px; margin: 0 auto; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.problem-card {
  background: var(--surface); border-radius: 16px; padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.problem-card:hover {
  border-color: var(--border-hover); transform: translateY(-3px);
}
.problem-card:nth-child(1):hover { box-shadow: 0 8px 40px rgba(239,68,68,0.08); }
.problem-card:nth-child(2):hover { box-shadow: 0 8px 40px rgba(249,115,22,0.08); }
.problem-card:nth-child(3):hover { box-shadow: 0 8px 40px rgba(139,92,246,0.08); }
.problem-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 1.1rem;
}
.problem-card:nth-child(1) .problem-icon { background: rgba(239,68,68,0.1); color: var(--red-400); }
.problem-card:nth-child(2) .problem-icon { background: rgba(249,115,22,0.1); color: var(--orange-400); }
.problem-card:nth-child(3) .problem-icon { background: rgba(139,92,246,0.1); color: var(--violet-400); }
.problem-card h3 { color: #fff; margin-bottom: 0.5rem; }
.problem-card p { font-size: 0.95rem; }

/* ── Fleet Chart Showcase ────────────────────── */
.showcase { background: #09090b; }
.browser-chrome {
  background: var(--surface-2); border-radius: 16px;
  border: 1px solid var(--border); overflow: hidden;
  max-width: 1040px; margin: 0 auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.browser-bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.25rem; background: var(--surface-3);
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #22c55e; }
.browser-url {
  flex: 1; background: var(--surface); border-radius: 6px;
  padding: 0.35rem 0.85rem; font-size: 0.8rem; color: var(--gray-500);
  font-family: 'JetBrains Mono', monospace;
}
.browser-content { padding: 1.75rem; overflow-x: auto; }

/* Gantt Mock */
.gantt-mock { min-width: 680px; }
.gantt-header {
  display: grid; grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; margin-bottom: 0.25rem;
}
.gantt-header-label {
  font-size: 0.7rem; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.06em; text-align: left;
}
.gantt-dates { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.gantt-dates span {
  font-size: 0.7rem; font-weight: 600; color: var(--gray-600); text-align: center;
}
.gantt-group { margin-top: 0.5rem; }
.gantt-group-header {
  display: grid; grid-template-columns: 160px 1fr; align-items: center;
  background: rgba(59,130,246,0.06); border-radius: 8px;
  padding: 0.45rem 0.75rem; margin-bottom: 2px;
}
.gantt-group-name {
  font-size: 0.8rem; font-weight: 700; color: var(--blue-400);
  display: flex; align-items: center; gap: 0.5rem;
}
.gantt-group-name .count {
  font-size: 0.65rem; background: rgba(59,130,246,0.15); color: var(--blue-400);
  padding: 0.1rem 0.5rem; border-radius: 100px; font-weight: 600;
}
.gantt-row {
  display: grid; grid-template-columns: 160px 1fr; align-items: center;
  padding: 0.3rem 0.75rem; border-bottom: 1px solid var(--border);
}
.gantt-asset { font-size: 0.75rem; color: var(--gray-500); font-weight: 500; font-family: 'JetBrains Mono', monospace; }
.gantt-timeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; height: 26px; position: relative; }
.gantt-bar {
  border-radius: 5px; height: 22px; position: absolute; top: 2px;
  display: flex; align-items: center; padding: 0 0.5rem;
  font-size: 0.6rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden;
  width: 0; transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gantt-bar.animate-bar { /* width set by inline style after observer triggers */ }
.bar-rental { background: var(--blue-500); }
.bar-rental.animate-bar { box-shadow: 0 0 12px rgba(59,130,246,0.3); }
.bar-reservation { background: var(--orange-500); }
.bar-confirmed { background: var(--green-500); }
.bar-maintenance { background: var(--gray-600); }
.gantt-legend {
  display: flex; gap: 1.5rem; margin-top: 1.25rem; padding-top: 1rem;
  border-top: 1px solid var(--border); justify-content: center; flex-wrap: wrap;
}
.gantt-legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; color: var(--gray-500); }
.gantt-legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* Bar pulse animation */
@keyframes barPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(59,130,246,0.2); }
  50% { box-shadow: 0 0 16px rgba(59,130,246,0.4); }
}
.bar-rental.bar-pulsing { animation: barPulse 3s ease-in-out infinite; }

/* ── Features Grid ──────────────────────────── */
.features { background: var(--gray-950); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card {
  background: var(--surface); border-radius: 16px; padding: 2rem;
  border: 1px solid var(--border); transition: all 0.3s ease;
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.feature-card.feature-wide { grid-column: span 2; }
.feature-icon-wrap {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.fi-blue { background: rgba(59,130,246,0.1); color: var(--blue-400); }
.fi-green { background: rgba(34,197,94,0.1); color: var(--green-400); }
.fi-orange { background: rgba(249,115,22,0.1); color: var(--orange-400); }
.fi-violet { background: rgba(139,92,246,0.1); color: var(--violet-400); }
.fi-red { background: rgba(239,68,68,0.1); color: var(--red-400); }
.feature-card h3 { color: #fff; margin-bottom: 0.4rem; font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; line-height: 1.6; }
/* Mini gantt inside featured card */
.mini-gantt { display: flex; gap: 4px; margin-top: 1rem; }
.mini-gantt-bar {
  height: 6px; border-radius: 3px; flex-shrink: 0;
}

/* ── Comparison Table ────────────────────────── */
.comparison { background: var(--gray-950); }
.comparison-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table {
  width: 100%; border-collapse: collapse; min-width: 640px;
}
.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem; text-align: left; font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.comparison-table thead th {
  font-weight: 700; color: #fff; font-size: 0.95rem;
  background: var(--surface-2);
}
.comparison-table thead th:first-child { border-radius: 12px 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 12px 0 0; }
.comparison-table thead th:nth-child(2) {
  color: var(--blue-400);
}
.comparison-table tbody td { color: var(--gray-400); }
.comparison-table tbody td:first-child { color: #fff; font-weight: 500; }
.comparison-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.check-yes { color: var(--green-400); font-weight: 700; }
.check-no { color: var(--red-400); }
.check-partial { color: var(--gray-500); font-style: italic; }

/* ── How It Works ────────────────────────────── */
.how-it-works { background: #09090b; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.steps-line {
  position: absolute; top: 28px; left: 56px; right: 56px;
  height: 2px; background: linear-gradient(90deg, var(--blue-500), var(--violet-500));
  opacity: 0.3; z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; margin: 0 auto 1.25rem;
  box-shadow: 0 0 24px rgba(59,130,246,0.25);
}
.step h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.05rem; }
.step p { font-size: 0.9rem; }

/* ── Pricing ──────────────────────────────────── */
.pricing { background: var(--gray-950); }
.pricing-toggle {
  display: flex; justify-content: center; gap: 0.25rem;
  margin-bottom: 3rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 0.3rem; max-width: 480px; margin-left: auto; margin-right: auto;
}
.pricing-toggle-btn {
  flex: 1; padding: 0.65rem 1.5rem; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; color: var(--gray-500);
  background: transparent; border: none; cursor: pointer;
  transition: all 0.3s ease; font-family: 'Inter', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.pricing-toggle-btn.active {
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(139,92,246,0.08));
  color: #fff; box-shadow: 0 0 20px rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
}
.pricing-toggle-btn:not(.active):hover { color: var(--gray-400); background: rgba(255,255,255,0.02); }
.pricing-toggle-icon { width: 18px; height: 18px; }
.pricing-tab { display: none; }
.pricing-tab.active { display: block; }
.pricing-module-desc {
  text-align: center; margin-bottom: 2.5rem;
}
.pricing-module-desc p { max-width: 600px; margin: 0 auto; font-size: 0.95rem; }
.pricing-bundle-note {
  text-align: center; margin-top: 2.5rem; padding: 1.25rem 2rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(139,92,246,0.04));
  border: 1px solid rgba(59,130,246,0.12); border-radius: 12px;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.pricing-bundle-note p { font-size: 0.95rem; color: var(--gray-400); margin: 0; }
.pricing-bundle-note strong { color: var(--blue-400); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1rem; align-items: start;
}
.pricing-card {
  background: var(--surface); border-radius: 16px;
  padding: 2rem 1.5rem; border: 1px solid var(--border);
  text-align: center; position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pricing-card.featured {
  border: 1px solid rgba(59,130,246,0.3);
  background: linear-gradient(135deg, rgba(59,130,246,0.04), var(--surface));
  box-shadow: 0 0 40px rgba(59,130,246,0.08);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-500), var(--violet-500));
  color: #fff; padding: 0.2rem 1rem; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; white-space: nowrap;
}
.pricing-tier {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--blue-400); margin-bottom: 0.4rem;
}
.pricing-vehicles { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 1.25rem; }
.pricing-amount { font-size: 2.75rem; font-weight: 800; color: #fff; line-height: 1; }
.pricing-amount .currency { font-size: 1.4rem; vertical-align: top; margin-right: 2px; color: var(--gray-400); }
.pricing-period { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.3rem; margin-bottom: 1.5rem; }
.pricing-features { text-align: left; margin-bottom: 1.5rem; }
.pricing-features li {
  font-size: 0.85rem; color: var(--gray-400); padding: 0.35rem 0;
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.pricing-features li::before {
  content: '\2713'; color: var(--green-400); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}
.pricing-card .btn { width: 100%; justify-content: center; }

/* ── Technology ───────────────────────────────── */
.open-source { background: var(--gray-950); }
.oss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.oss-content h2 { color: #fff; margin-bottom: 1rem; }
.oss-content > p { color: var(--gray-400); margin-bottom: 2rem; }
.oss-features li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0; font-size: 1rem; color: var(--gray-400);
}
.oss-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(34,197,94,0.1); color: var(--green-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; flex-shrink: 0;
  box-shadow: 0 0 8px rgba(34,197,94,0.15);
}
.oss-ctas { display: flex; gap: 1rem; margin-top: 2rem; }

/* Terminal mock */
.terminal {
  background: var(--surface-2); border-radius: 14px;
  border: 1px solid var(--border); overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 0.7rem 1rem; background: var(--surface-3);
  border-bottom: 1px solid var(--border);
}
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; }
.terminal-bar span:nth-child(1) { background: #ef4444; }
.terminal-bar span:nth-child(2) { background: #f59e0b; }
.terminal-bar span:nth-child(3) { background: #22c55e; }
.terminal-bar .terminal-title {
  flex: 1; text-align: center; font-size: 0.75rem;
  color: var(--gray-500); font-family: 'JetBrains Mono', monospace;
}
.terminal-body { padding: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; line-height: 1.8; }
.terminal-line { display: flex; gap: 0.5rem; margin-bottom: 0.15rem; min-height: 1.5em; }
.t-prompt { color: var(--green-400); user-select: none; }
.t-cmd { color: var(--gray-400); }
.t-comment { color: var(--gray-600); }
.t-flag { color: var(--orange-400); }
.t-cursor {
  display: inline-block; width: 8px; height: 16px;
  background: var(--green-400); margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── FAQ Accordion ───────────────────────────── */
.faq { background: #09090b; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; font-size: 1.05rem; font-weight: 600; color: #fff;
  cursor: pointer; background: none; border: none; text-align: left;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--blue-400); }
.faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0; color: var(--gray-500);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-answer-inner { padding-bottom: 1.25rem; }
.faq-answer-inner p { font-size: 0.95rem; color: var(--gray-400); line-height: 1.7; }

/* ── CTA ──────────────────────────────────────── */
.cta-section {
  padding: 6rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(59,130,246,0.15), transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(139,92,246,0.12), transparent 60%);
  animation: meshShift 20s ease-in-out infinite alternate;
}
@keyframes meshShift {
  0% { background-position: 0% 50%, 100% 50%; }
  100% { background-position: 100% 50%, 0% 50%; }
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { max-width: 500px; margin: 0 auto 2.5rem; font-size: 1.15rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────── */
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 4rem 0 2rem; position: relative;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.9rem; color: var(--gray-500); margin-top: 0.75rem; line-height: 1.6; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface-3); display: flex;
  align-items: center; justify-content: center;
  color: var(--gray-400); transition: all 0.2s;
}
.footer-social a:hover { color: #fff; background: var(--surface-2); }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.9rem; color: var(--gray-400); padding: 0.3rem 0; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--gray-600);
}

/* ── Marquee ──────────────────────────────────── */
.marquee-section {
  overflow: hidden; padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--gray-950);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0 2.5rem; white-space: nowrap;
  font-size: 0.9rem; font-weight: 500; color: var(--gray-600);
  transition: color 0.3s;
}
.marquee-item:hover { color: var(--gray-400); }
.marquee-item svg { flex-shrink: 0; }
.marquee-sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gray-700); flex-shrink: 0;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Text reveal (clip-path) ─────────────────── */
.text-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-reveal.revealed { clip-path: inset(0 0 0% 0); }

/* ── Hero word stagger ───────────────────────── */
.hero-word {
  display: inline-block;
  opacity: 0; transform: translateY(40px) rotateX(30deg);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-word.visible {
  opacity: 1; transform: translateY(0) rotateX(0);
}

/* ── Magnetic button ─────────────────────────── */
.btn-magnetic {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, box-shadow 0.2s;
}

/* ── Parallax elements ───────────────────────── */
.hero-glow-1, .hero-glow-2, .hero-bg {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── Gantt row hover ─────────────────────────── */
.gantt-row { transition: background 0.2s; }
.gantt-row:hover { background: rgba(59,130,246,0.03); }

/* ── Scroll progress bar ─────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 101;
  background: linear-gradient(90deg, var(--blue-500), var(--violet-500));
  transform-origin: left; transform: scaleX(0);
  width: 100%;
}

/* ── Section heading line accent ─────────────── */
.section-header h2 { position: relative; }
.h2-line {
  display: block; width: 0; height: 3px; margin: 0.75rem auto 0;
  background: linear-gradient(90deg, var(--blue-500), var(--violet-500));
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.is-visible .h2-line, .revealed .h2-line { width: 60px; }

/* ── Card hover glow ─────────────────────────── */
.feature-card { position: relative; overflow: hidden; }
.feature-card::before {
  content: ''; position: absolute; width: 200px; height: 200px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(59,130,246,0.08), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.3s;
  left: var(--mouse-x, 50%); top: var(--mouse-y, 50%);
}
.feature-card:hover::before { opacity: 1; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1280px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card.feature-wide { grid-column: span 1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-line { display: none; }
  .oss-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  section { padding: 5rem 0; }
  h1 { font-size: 2.25rem; }
  .hero { padding: 9rem 0 4rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-item:not(:last-child)::after { display: none; }
  .stat-item:nth-child(odd)::after {
    display: block; right: -0.75rem;
  }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-toggle {
    flex-wrap: wrap; max-width: 320px;
  }
  .pricing-toggle-btn { flex: 1 1 calc(50% - 0.25rem); }
  .pricing-toggle-btn:last-child { flex: 0 1 auto; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .comparison-table-wrap { margin: 0 -1rem; padding: 0 1rem; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
}

/* ══════════════════════════════════════════════
   Contact Page
   ══════════════════════════════════════════════ */

.contact-page {
  padding: 10rem 0 6rem;
  min-height: 100vh;
}
.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}
.contact-header p {
  max-width: 500px;
  margin: 1rem auto 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info {
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.contact-info h2 {
  margin-bottom: 1rem;
}
.contact-info > p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.contact-detail-icon {
  width: 40px; height: 40px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--blue-400);
}
.contact-detail-icon svg { width: 18px; height: 18px; }
.contact-detail h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}
.contact-detail p {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin: 0;
}

/* ── Contact Form ─────────────────────────────── */
.contact-form-card {
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 0.4rem;
}
.form-group label .required {
  color: var(--blue-400);
  margin-left: 2px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-600);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 0 3px rgba(59,130,246,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' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group select option {
  background: var(--gray-900);
  color: #fff;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  width: 100%;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Success/error states */
.form-status {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-status.show { display: block; }
.form-status-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}
.form-status-icon.success {
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.2);
  color: var(--green-400);
}
.form-status h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.form-status p {
  font-size: 0.95rem;
}

/* ── Contact Page Responsive ──────────────────── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 1.5rem; }
  .contact-info { padding: 1.5rem; }
}

/* ── Feature Detail Pages ────────────────────── */
.feature-hero {
  padding: 10rem 0 5rem; position: relative; overflow: hidden;
  background: #09090b;
}
.feature-hero .container { position: relative; z-index: 1; max-width: 800px; text-align: center; }
.feature-hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
  color: var(--blue-400); padding: 0.4rem 1.2rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.feature-hero h1 { color: #fff; margin-bottom: 1.25rem; font-size: clamp(2.25rem, 4vw, 3.25rem); }
.feature-hero-sub {
  font-size: 1.2rem; color: var(--gray-400); max-width: 620px;
  margin: 0 auto 2.5rem; line-height: 1.7;
}
.feature-hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.feature-hero-glow {
  position: absolute; top: -150px; left: 50%; transform: translateX(-60%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.1) 0%, transparent 65%);
  z-index: 0;
}

/* Feature Overview */
.feature-overview { background: var(--gray-950); }
.feature-overview-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.feature-overview-content h2 { color: #fff; margin-bottom: 1rem; }
.feature-overview-content p { margin-bottom: 1rem; }
.feature-overview-visual {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
}

/* Capabilities Grid */
.feature-capabilities { background: #09090b; }
.capabilities-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.capability-card {
  background: var(--surface); border-radius: 16px; padding: 2rem;
  border: 1px solid var(--border); transition: all 0.3s ease;
}
.capability-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.capability-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; background: rgba(59,130,246,0.1); color: var(--blue-400);
}
.capability-card h3 { color: #fff; margin-bottom: 0.4rem; font-size: 1.05rem; }
.capability-card p { font-size: 0.9rem; line-height: 1.6; }

/* Feature Highlight (alternating sections) */
.feature-highlight { background: var(--gray-950); }
.feature-highlight:nth-of-type(even) { background: #09090b; }
.highlight-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.highlight-grid.reversed { direction: rtl; }
.highlight-grid.reversed > * { direction: ltr; }
.highlight-content h2 { color: #fff; margin-bottom: 1rem; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.highlight-content p { margin-bottom: 1rem; }
.highlight-content ul { list-style: none; margin-top: 1.25rem; }
.highlight-content ul li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.4rem 0; font-size: 0.95rem; color: var(--gray-400);
}
.highlight-content ul li::before {
  content: '\2713'; color: var(--green-400); font-weight: 700;
  flex-shrink: 0; margin-top: 2px;
}
.highlight-visual {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem; min-height: 240px;
}

/* Related Features */
.feature-related { background: var(--gray-950); }
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.related-card {
  display: block; background: var(--surface); border-radius: 16px; padding: 1.75rem;
  border: 1px solid var(--border); transition: all 0.3s ease; text-decoration: none;
}
.related-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.related-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.related-card h3 { color: #fff; font-size: 1rem; margin-bottom: 0.35rem; }
.related-card p { font-size: 0.85rem; color: var(--gray-400); line-height: 1.6; margin: 0; }
.related-card-arrow {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.85rem; font-weight: 600; color: var(--blue-400); margin-top: 0.75rem;
}

/* Feature Link on homepage cards */
.feature-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.85rem; font-weight: 600; color: var(--blue-400);
  margin-top: 0.75rem; transition: gap 0.2s;
}
.feature-link:hover { gap: 0.5rem; }

/* API code block */
.api-code-block {
  background: var(--surface-2); border-radius: 12px;
  border: 1px solid var(--border); overflow: hidden;
}
.api-code-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; background: var(--surface-3);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 600; color: var(--gray-500);
  font-family: 'JetBrains Mono', monospace;
}
.api-code-method {
  padding: 0.15rem 0.5rem; border-radius: 4px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.api-code-method.get { background: rgba(34,197,94,0.15); color: var(--green-400); }
.api-code-method.post { background: rgba(59,130,246,0.15); color: var(--blue-400); }
.api-code-body {
  padding: 1.25rem; font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; line-height: 1.8; color: var(--gray-400);
  overflow-x: auto;
}
.api-code-body .key { color: var(--blue-400); }
.api-code-body .string { color: var(--green-400); }
.api-code-body .number { color: var(--orange-400); }
.api-code-body .comment { color: var(--gray-600); }

/* ── Feature Page Responsive ─────────────────── */
@media (max-width: 1024px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid .related-card:nth-child(3) { display: none; }
}
@media (max-width: 768px) {
  .feature-hero { padding: 8rem 0 3rem; }
  .feature-overview-grid { grid-template-columns: 1fr; gap: 2rem; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; gap: 2rem; }
  .highlight-grid.reversed { direction: ltr; }
  .related-grid { grid-template-columns: 1fr; }
  .related-grid .related-card:nth-child(3) { display: block; }
}
