/* ============================================================
   NablaForge Landing Page — Design System & Styles
   Font: Space Grotesk | Theme: Dark | Layout: Responsive
   ============================================================ */

/* ---------- Google Fonts loaded in HTML ---------- */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-surface: rgba(255, 255, 255, 0.03);
  --bg-surface-hover: rgba(255, 255, 255, 0.06);
  --bg-surface-alt: rgba(255, 255, 255, 0.02);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text-primary: #f1f5f9;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);

  --violet: #7c3aed;
  --cyan: #06b6d4;
  --pink: #f472b6;
  --orange: #fb923c;
  --emerald: #10b981;
  --amber: #f59e0b;
  --indigo: #6366f1;
  --fuchsia: #d946ef;
  --rose: #f43f5e;
  --teal: #14b8a6;
  --blue: #3b82f6;

  --gradient-primary: linear-gradient(135deg, #7c3aed, #06b6d4);
  --gradient-accent: linear-gradient(135deg, #f472b6, #fb923c);
  --gradient-violet-indigo: linear-gradient(135deg, #7c3aed, #6366f1);
  --gradient-teal-emerald: linear-gradient(135deg, #14b8a6, #10b981);
  --gradient-amber-orange: linear-gradient(135deg, #f59e0b, #fb923c);
  --gradient-pink-rose: linear-gradient(135deg, #f472b6, #f43f5e);
  --gradient-blue-cyan: linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-purple-fuchsia: linear-gradient(135deg, #a855f7, #d946ef);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-section: 120px;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.25rem;
  --fs-hero: clamp(2.5rem, 5vw, 4.5rem);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 500ms ease;

  /* Shadows */
  --shadow-glow-violet: 0 0 60px rgba(124, 58, 237, 0.3);
  --shadow-glow-cyan: 0 0 60px rgba(6, 182, 212, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.6);

  /* Layout */
  --max-width: 1280px;
  --nav-height: 72px;
}


/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  position: relative;
  padding: var(--space-section) 0;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.overline {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }
.reveal-delay-6 { transition-delay: 600ms; }


/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  border-bottom-color: var(--border-subtle);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-lg);
  font-weight: 700;
  z-index: 1001;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

.nav-logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 1001;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 24px;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-surface);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6d28d9, #0891b2);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-lg {
  padding: 14px 32px;
  font-size: var(--fs-base);
  border-radius: var(--radius-lg);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-mobile-overlay.active {
  display: flex;
  opacity: 1;
}

.nav-mobile-overlay a {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-mobile-overlay a:hover {
  color: var(--text-primary);
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

/* Ambient glow blobs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--violet);
  top: -10%;
  left: -5%;
  animation: floatBlob1 8s ease-in-out infinite;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: var(--cyan);
  bottom: -10%;
  right: -5%;
  animation: floatBlob2 10s ease-in-out infinite;
}

.hero-glow-3 {
  width: 300px;
  height: 300px;
  background: var(--pink);
  top: 40%;
  right: 20%;
  opacity: 0.15;
  animation: floatBlob3 12s ease-in-out infinite;
}

@keyframes floatBlob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes floatBlob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 20px) scale(1.08); }
  66% { transform: translate(20px, -25px) scale(0.92); }
}

@keyframes floatBlob3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 30px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 840px;
  padding: var(--space-3xl) var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(124, 58, 237, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 20px rgba(124, 58, 237, 0.9); }
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero Dashboard Mockup */
.hero-mockup {
  position: relative;
  margin-top: var(--space-4xl);
  padding: 2px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-mockup-inner {
  background: var(--bg-primary);
  border-radius: calc(var(--radius-xl) - 2px);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-md);
  min-height: 280px;
}

.mockup-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mockup-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mockup-stat-value {
  font-size: var(--fs-2xl);
  font-weight: 700;
}

.mockup-chart {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mockup-chart-title {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.mockup-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
  min-height: 100px;
}

.mockup-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  min-height: 20px;
  transition: height var(--transition-slow);
}

.mockup-mini-chart {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mockup-line {
  width: 100%;
  height: 60px;
  position: relative;
  overflow: hidden;
}

.mockup-line svg {
  width: 100%;
  height: 100%;
}


/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
.social-proof {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.social-proof-label {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.social-proof-track {
  display: flex;
  gap: var(--space-3xl);
  animation: marquee 30s linear infinite;
  width: max-content;
}

.social-proof-track:hover {
  animation-play-state: paused;
}

.social-proof-item {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  letter-spacing: 2px;
  user-select: none;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-surface-hover);
  box-shadow: var(--shadow-card-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 24px;
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}


/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
}

/* Connecting line */
.steps-container::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: var(--fs-xl);
  font-weight: 700;
  background: var(--gradient-primary);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-glow-violet);
}

.step-card h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.step-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}


/* ============================================================
   INDUSTRY PORTFOLIO
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.portfolio-card-gradient {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay on gradient */
.portfolio-card-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px, 40px 40px;
}

.portfolio-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-card-body {
  padding: var(--space-xl);
}

.portfolio-card-body h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.portfolio-card-body p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.portfolio-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--cyan);
  transition: gap var(--transition-fast);
}

.portfolio-card:hover .portfolio-card-link {
  gap: var(--space-md);
}


/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.testimonial-quote-icon {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-md);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testimonial-text {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  margin-bottom: var(--space-xl);
}

.testimonial-divider {
  width: 40px;
  height: 2px;
  background: var(--gradient-primary);
  margin-bottom: var(--space-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author-info h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.testimonial-author-info p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}


/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.blog-card-stripe {
  height: 4px;
}

.blog-card-body {
  padding: var(--space-xl);
}

.blog-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.blog-card h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.blog-card-meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.blog-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--cyan);
  transition: gap var(--transition-fast);
}

.blog-card:hover .blog-card-link {
  gap: var(--space-md);
}


/* ============================================================
   BOOK A DEMO
   ============================================================ */
.demo-section {
  position: relative;
  overflow: hidden;
}

.demo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.08));
  z-index: 0;
}

.demo-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
  position: relative;
  z-index: 1;
}

.demo-info h2 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.demo-info > p {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.demo-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.demo-checklist-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--fs-base);
  color: var(--text-secondary);
}

.demo-checklist-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-checklist-icon svg {
  width: 14px;
  height: 14px;
}

.demo-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
}

.demo-form-card h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  transition: border-color var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.45)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background: #1a1a2e;
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.demo-form-submit {
  width: 100%;
  margin-top: var(--space-lg);
}

/* Form success state */
.demo-form-success {
  display: none;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.demo-form-success.active {
  display: block;
}

.demo-form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.demo-form-success h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.demo-form-success p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}


/* ============================================================
   CONTACT & FOOTER
   ============================================================ */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--border-subtle);
}

.contact-item {
  text-align: center;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

.contact-item h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.contact-item p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.contact-item-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.contact-item-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.contact-item-social a:hover {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
}

.contact-item-social svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

/* Footer Links Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.footer-col h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer-gradient-line {
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.4;
  margin-bottom: var(--space-section);
}


/* ============================================================
   HERO — AMBIENT NABLA SYMBOL
   ============================================================ */
.hero-nabla {
  position: absolute;
  font-size: clamp(200px, 30vw, 400px);
  font-weight: 700;
  color: rgba(124, 58, 237, 0.04);
  z-index: 0;
  user-select: none;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: nablaFloat 8s ease-in-out infinite;
  font-family: 'Space Grotesk', serif;
  line-height: 1;
}

@keyframes nablaFloat {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 0.04;
  }
  33% {
    transform: translate(-50%, -52%) scale(1.03) rotate(2deg);
    opacity: 0.06;
  }
  66% {
    transform: translate(-50%, -48%) scale(0.97) rotate(-1deg);
    opacity: 0.03;
  }
}


/* ============================================================
   HERO — ROTATING TAGLINES
   ============================================================ */
.hero-taglines {
  position: relative;
  height: 60px;
  max-width: 620px;
  margin: 0 auto var(--space-2xl);
  overflow: hidden;
}

.hero-tagline {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-tagline.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-tagline.exit {
  opacity: 0;
  transform: translateY(-20px);
}


/* ============================================================
   NUMBERS COUNTER
   ============================================================ */
.numbers-section {
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.number-card {
  padding: var(--space-xl);
}

.number-value {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.number-suffix {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}

.number-label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  font-weight: 500;
}


/* ============================================================
   ABOUT NABLANORTH AI
   ============================================================ */
.nablanorth-section {
  position: relative;
  overflow: hidden;
}

.nablanorth-wrapper {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.nabla-large {
  font-size: clamp(120px, 18vw, 200px);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  user-select: none;
  animation: nablaPulse 4s ease-in-out infinite;
}

@keyframes nablaPulse {
  0%, 100% {
    filter: brightness(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.2);
    transform: scale(1.03);
  }
}

.nabla-meanings {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.nabla-meaning {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.nabla-meaning:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
  transform: translateX(8px);
}

.nabla-meaning-symbol {
  font-size: var(--fs-2xl);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}

.nabla-meaning-content h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.nabla-meaning-content p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  :root {
    --space-section: 80px;
  }

  .features-grid,
  .portfolio-grid,
  .testimonials-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nablanorth-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nabla-large {
    font-size: clamp(100px, 15vw, 160px);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-mockup-inner {
    grid-template-columns: 1fr 1fr;
  }

  .steps-container {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }

  .steps-container::before {
    left: 10%;
    right: 10%;
  }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  :root {
    --space-section: 64px;
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-mockup-inner {
    grid-template-columns: 1fr;
  }

  .mockup-chart {
    grid-column: span 1;
  }

  .features-grid,
  .portfolio-grid,
  .testimonials-grid,
  .blog-grid,
  .steps-container {
    grid-template-columns: 1fr;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nablanorth-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nabla-meaning {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .nabla-meaning:hover {
    transform: translateY(-4px);
  }

  .hero-taglines {
    height: 80px;
  }

  .steps-container::before {
    display: none;
  }

  .contact-strip {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .section-title {
    font-size: var(--fs-2xl);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile — 480px */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .numbers-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .hero-badge {
    font-size: var(--fs-xs);
    padding: 6px 14px;
  }

  .portfolio-card-gradient {
    height: 140px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
