:root {
  --bg: #0a0a0d;
  --bg-alt: #111116;
  --surface: #16161d;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f6;
  --text-dim: #a3a3ad;
  --accent: #ff2d55;
  --accent-2: #ff6a3d;
  --accent-purple: #a855f7;
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-purple) 100%);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3, h4, .brand-mark { font-family: var(--font-display); letter-spacing: -0.02em; }

section[id], header[id] { scroll-margin-top: 90px; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(10, 10, 13, 0.7);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
  padding-top: 14px;
  padding-bottom: 14px;
}

.navbar.navbar-scrolled {
  background: rgba(10, 10, 13, 0.9);
  border-bottom-color: var(--border);
}

.navbar-brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.brand-sub {
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.navbar-nav .nav-link {
  color: var(--text-dim);
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.navbar-nav .nav-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.navbar-nav .nav-link.active {
  color: var(--text) !important;
  background: rgba(255, 45, 85, 0.14);
}

.nav-link-flow { color: var(--accent-2) !important; font-weight: 700; }
.nav-link-flow:hover, .nav-link-flow.active { color: #fff !important; }

.navbar-toggler {
  border-color: var(--border);
  padding: 6px 10px;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(244,244,246,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 20px;
  margin-top: 12px;
  border: 1px solid var(--border);
}

@media (min-width: 992px) {
  .navbar-collapse { background: none; border: none; padding: 0; margin-top: 0; }
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gradient);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 24px -8px rgba(255, 45, 85, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  --bs-btn-active-bg: transparent;
  --bs-btn-hover-bg: transparent;
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
  background: var(--gradient);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(255, 45, 85, 0.7);
}

.btn-outline-light {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
  color: var(--text);
  font-weight: 600;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border);
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 170px 0 90px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255,45,85,0.25) 0%, rgba(168,85,247,0.12) 45%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 620px;
  margin-top: 20px;
}

.hero-stats { max-width: 640px; border-color: var(--border) !important; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat strong { font-family: var(--font-display); font-size: 1.7rem; }
.stat span { font-size: 0.78rem; color: var(--text-dim); text-align: center; }

/* ===== FEATURES ===== */
.features { padding: 20px 0 90px; }

.feature-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover { transform: translateY(-4px); border-color: rgba(255, 45, 85, 0.4); }
.feature-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 0.93rem; margin-bottom: 0; }

/* ===== SECTIONS ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.section-lead {
  color: var(--text-dim);
  max-width: 560px;
  font-size: 1.05rem;
}

.grid-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.grid-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.4);
  background: linear-gradient(180deg, var(--surface), rgba(168,85,247,0.06));
}

.grid-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.grid-card h3 { margin: 14px 0 10px; font-size: 1.15rem; }
.grid-card p { color: var(--text-dim); font-size: 0.93rem; margin-bottom: 0; }

/* Flow spotlight */
.flow-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid rgba(255, 45, 85, 0.35);
  border-radius: 28px;
  padding: 56px;
  overflow: hidden;
  box-shadow: 0 20px 60px -24px rgba(255, 45, 85, 0.35);
}

.flow-glow {
  position: absolute;
  top: -35%;
  right: -12%;
  width: 480px;
  height: 480px;
  background: var(--gradient);
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.flow-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient);
  padding: 7px 18px;
  border-radius: 999px;
}

.flow-lead { color: var(--text-dim); font-size: 1.05rem; margin: 16px 0 32px; }

.flow-feature {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
}

.flow-feature-icon { font-size: 1.6rem; flex-shrink: 0; }
.flow-feature h4 { font-size: 1rem; margin-bottom: 6px; }
.flow-feature p { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 0; }

.flow-video {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  border: 1px solid rgba(255, 45, 85, 0.35);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.6);
  background: #000;
  object-fit: cover;
}

/* Tools list */
.tools-list {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.tool-row {
  position: relative;
  background: var(--bg-alt);
  padding: 30px;
  border: 1px solid var(--border);
  transition: background 0.25s ease;
}

.tool-row:hover { background: var(--surface); }
.tool-row h4 { font-size: 1.05rem; margin-bottom: 8px; }
.tool-row p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 0; }

/* Contact */
.contact-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 260px;
  height: 260px;
  background: var(--gradient);
  filter: blur(70px);
  opacity: 0.35;
}

.contact-card p {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.5;
  font-style: italic;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Back to top */
.to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border: none;
  background: var(--gradient);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px -6px rgba(255, 45, 85, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 90;
}

.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .hero { padding: 140px 0 60px; }
}

@media (max-width: 767.98px) {
  .flow-card { padding: 36px 22px; }
}
