/* ==========================================
   KlerkOne — Premium Light Blue Design System
   Precision Accounting. Intelligent Growth.
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==============================
   DESIGN TOKENS
   ============================== */
:root {
  /* Brand Colors */
  --primary-dark:    #002952;
  --primary-medium:  #1b6ca8;
  --accent-cyan:     #2e9ac6;
  --slate-gray:      #6b8496;

  /* Page / Surface */
  --bg:              #f0f7ff;
  --bg-subtle:       #e6f1fb;
  --white:           #ffffff;
  --light-gray:      #f4f7fa;

  /* Text */
  --text-primary:    #0f172a;
  --text-secondary:  #334155;
  --text-muted:      #64748b;

  /* Card / Glass */
  --card-bg:         #ffffff;
  --card-border:     rgba(27, 108, 168, 0.10);
  --glass-bg:        rgba(255, 255, 255, 0.80);
  --glass-border:    rgba(27, 108, 168, 0.15);
  --glass-shadow:    0 4px 24px rgba(0, 41, 82, 0.07);
  --glass-shadow-lg: 0 16px 48px rgba(0, 41, 82, 0.13);
  --glow-shadow:     0 0 24px rgba(46, 154, 198, 0.28);

  /* Nav */
  --nav-bg:          #ffffff;
  --nav-border:      rgba(27, 108, 168, 0.10);
  --nav-height:      72px;

  /* Transitions */
  --t-fast:   0.18s ease;
  --t-mid:    0.38s cubic-bezier(0.16, 1, 0.3, 1);
  --t-slow:   0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==============================
   RESET & BASE
   ============================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(46,154,198,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(27,108,168,0.07) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-subtle); }
::-webkit-scrollbar-thumb { background: var(--primary-medium); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* ==============================
   LAYOUT UTILITIES
   ============================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-sm { padding: 64px 0; }

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

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27,108,168,0.15), transparent);
  margin: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   BACKGROUND BLOBS
   ============================== */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  animation: float-blob 22s infinite ease-in-out alternate;
}

.blob-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(46,154,198,0.22) 0%, transparent 70%);
  top: 5%;
  right: -4%;
  opacity: 0.6;
}

.blob-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(27,108,168,0.18) 0%, transparent 70%);
  bottom: 8%;
  left: -8%;
  opacity: 0.55;
  animation-delay: -6s;
}

/* ==============================
   NAVIGATION HEADER
   ============================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 1px 12px rgba(0, 41, 82, 0.06);
  transition: box-shadow var(--t-fast);
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 41, 82, 0.10);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo-link {
  height: 44px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link svg {
  height: 100%;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

nav ul li a {
  font-family: 'Outfit', sans-serif;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--t-fast);
  position: relative;
  padding-bottom: 2px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: width var(--t-fast);
}

nav ul li a:hover { color: var(--primary-medium); }
nav ul li a:hover::after,
nav ul li.active a::after { width: 100%; }
nav ul li.active a { color: var(--primary-medium); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--primary-dark);
  border-radius: 2px;
  transition: all var(--t-fast);
}

/* ==============================
   BUTTONS
   ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-medium), var(--accent-cyan));
  color: #fff;
  box-shadow: 0 4px 14px rgba(27, 108, 168, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 154, 198, 0.38);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-dark);
  border: 1.5px solid rgba(0, 41, 82, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--primary-medium);
  color: var(--primary-medium);
  background: var(--bg);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* ==============================
   PAGE HERO BANNER (inner pages)
   ============================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 60%, var(--accent-cyan) 100%);
  padding: 140px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 40%, rgba(46,154,198,0.18) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  color: rgba(255,255,255,0.80);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ==============================
   HERO SECTION (homepage)
   ============================== */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 64px;
}

.hero-content {
  opacity: 0;
  transform: translateY(28px);
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 154, 198, 0.10);
  border: 1px solid rgba(46, 154, 198, 0.22);
  color: var(--primary-medium);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: 'Outfit', sans-serif;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-medium), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.13rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Visual (right side mockup) */
.hero-visual {
  position: relative;
  opacity: 0;
  transform: scale(0.96) translateY(18px);
  animation: fade-in-scale 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  perspective: 1000px;
}

.mockup-container {
  width: 100%;
  background: var(--primary-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: var(--glass-shadow-lg);
  overflow: hidden;
  transform: rotateY(-7deg) rotateX(4deg);
  transition: transform var(--t-slow);
}

.mockup-container:hover { transform: rotateY(-2deg) rotateX(1deg); }

.mockup-header {
  background: rgba(0, 20, 50, 0.95);
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-red    { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green  { background: #22c55e; }

.mockup-search {
  width: 58%;
  height: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  font-size: 0.68rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.mockup-body {
  padding: 20px;
  height: 340px;
  color: #e2e8f0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  font-size: 0.8rem;
}

.mockup-sidebar {
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 10px;
}

.sidebar-item { height: 8px; background: rgba(255,255,255,0.08); border-radius: 2px; }
.sidebar-item.active { background: var(--accent-cyan); }

.mockup-main { display: flex; flex-direction: column; gap: 16px; }

.mockup-dashboard-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }

.mockup-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 12px;
}

.mockup-card-title { font-size: 0.65rem; color: #94a3b8; margin-bottom: 6px; }
.mockup-card-value { font-size: 1.1rem; font-weight: 700; color: #fff; }

.mockup-chart-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-lines {
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 8px;
}

.chart-bar {
  width: 14%;
  background: linear-gradient(to top, var(--primary-medium), var(--accent-cyan));
  border-radius: 3px 3px 0 0;
  animation: bar-grow 1.4s ease-out forwards;
  transform-origin: bottom;
  height: 0;
}

/* ==============================
   METRICS / STATS BAR
   ============================== */
.metrics-section {
  padding: 48px 0;
  background: var(--white);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.metrics-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.metric-card h3 {
  font-size: 2.6rem;
  font-family: 'Outfit', sans-serif;
  color: var(--primary-medium);
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.metric-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.counter-val { display: inline; }

/* ==============================
   SECTION HEADER
   ============================== */
.section-header {
  max-width: 650px;
  margin: 0 auto 56px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==============================
   BENTO FEATURE CARDS
   ============================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 22px;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: all var(--t-mid);
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow-lg);
  border-color: var(--accent-cyan);
}

.bento-card .icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(46, 154, 198, 0.10);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-medium);
  position: absolute;
  top: 32px;
  left: 32px;
  transition: all var(--t-fast);
  font-size: 1.4rem;
}

.bento-card:hover .icon-wrapper {
  background: var(--primary-medium);
  color: #fff;
  transform: scale(1.1);
}

.bento-card-title { font-size: 1.3rem; margin-bottom: 10px; }
.bento-card-desc  { font-size: 0.9rem; color: var(--text-secondary); }

.bento-span-2-h { grid-column: span 2; }
.bento-span-2-v { grid-row: span 2; justify-content: flex-end; }
.bento-card.bento-span-2-v { padding-top: 120px; }

/* ==============================
   FEATURE CARDS (generic)
   ============================== */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--glass-shadow);
  transition: all var(--t-mid);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-medium), var(--accent-cyan));
  opacity: 0;
  transition: opacity var(--t-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-lg);
  border-color: rgba(27, 108, 168, 0.25);
}

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

/* ==============================
   DASHBOARD PREVIEW (tabbed)
   ============================== */
.dashboard-preview-section {
  background: linear-gradient(135deg, var(--primary-dark), #0a3a6b);
  color: #fff;
  overflow: hidden;
}

.dashboard-preview-section .section-header h2 { color: #fff; }
.dashboard-preview-section .section-header p  { color: rgba(255,255,255,0.65); }

.interactive-preview-container {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.preview-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.tab-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.55);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 22px;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--t-fast);
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.tab-btn.active {
  color: #fff;
  background: var(--primary-medium);
  box-shadow: 0 4px 14px rgba(27, 108, 168, 0.35);
}

.preview-screen {
  background: #0b1a35;
  border-radius: 12px;
  height: 480px;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}

.screen-tab-content {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: all var(--t-mid);
  display: grid;
  grid-template-columns: 1fr;
}

.screen-tab-content.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Pipeline (tab 1) */
.pipeline-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  height: 100%;
}

.pipeline-col {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pipeline-header {
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 8px;
}

.pipeline-card {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--accent-cyan);
  padding: 12px;
  border-radius: 4px;
  cursor: grab;
  transition: transform var(--t-fast);
}

.pipeline-card:hover { transform: scale(1.03); background: rgba(255,255,255,0.07); }
.pipeline-card-title { font-weight: 600; font-size: 0.82rem; margin-bottom: 4px; }
.pipeline-card-desc  { font-size: 0.73rem; color: #94a3b8; }

/* Automation (tab 2) */
.automation-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.flow-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 16px 24px;
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: '↓';
  position: absolute;
  bottom: -22px; left: 50%;
  transform: translateX(-50%);
  color: var(--accent-cyan);
  font-size: 1.4rem;
}

.step-info { display: flex; align-items: center; gap: 12px; }

.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse-glow 2s infinite;
}

/* Analytics (tab 3) */
.analytics-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  height: 100%;
}

.analytics-metrics { display: flex; flex-direction: column; gap: 16px; }

.analytic-box {
  background: rgba(255,255,255,0.04);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.analytics-charts {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==============================
   PRICING
   ============================== */
.pricing-section { background: var(--bg-subtle); }

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.toggle-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-secondary);
}

.toggle-switch { position: relative; display: inline-block; width: 56px; height: 30px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--slate-gray);
  transition: .35s;
  border-radius: 30px;
}

.slider::before {
  content: '';
  position: absolute;
  height: 22px; width: 22px;
  left: 4px; bottom: 4px;
  background: #fff;
  transition: .35s;
  border-radius: 50%;
}

input:checked + .slider { background: var(--primary-medium); }
input:checked + .slider::before { transform: translateX(26px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 56px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--t-mid);
}

.pricing-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--glass-shadow-lg);
}

.pricing-card.popular { border-color: var(--primary-medium); }

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-medium), var(--accent-cyan));
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 100px;
  box-shadow: var(--glow-shadow);
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-name { font-size: 1.5rem; margin-bottom: 12px; }

.plan-price-box { margin-bottom: 24px; display: flex; align-items: baseline; }

.plan-price {
  font-size: 3rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--primary-dark);
  transition: opacity var(--t-fast);
}

.plan-period { color: var(--text-muted); font-weight: 500; margin-left: 4px; }

.plan-features {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.plan-features li svg { color: var(--accent-cyan); flex-shrink: 0; }

/* ==============================
   DOWNLOADS
   ============================== */
.download-section { background: var(--bg); }

.downloads-wrapper {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow-lg);
  padding: 48px;
}

.downloads-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.download-card {
  background: var(--bg-subtle);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all var(--t-mid);
  border: 1px solid transparent;
}

.download-card:hover {
  background: var(--white);
  border-color: var(--primary-medium);
  box-shadow: var(--glass-shadow);
  transform: translateY(-4px);
}

/* legacy alias — same styles as .download-card */
.download-option {
  background: var(--bg-subtle);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all var(--t-mid);
  border: 1px solid transparent;
}

.download-option:hover {
  background: var(--white);
  border-color: var(--primary-medium);
  box-shadow: var(--glass-shadow);
  transform: translateY(-4px);
}

.download-icon-box {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-medium);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all var(--t-fast);
}

.download-card:hover .download-icon-box,
.download-option:hover .download-icon-box {
  background: var(--primary-medium);
  color: #fff;
}

/* Download Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 41, 82, 0.45);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid);
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  padding: 40px;
  box-shadow: var(--glass-shadow-lg);
  position: relative;
  transform: scale(0.92);
  transition: transform var(--t-mid);
}

.modal-overlay.active .modal-content { transform: scale(1); }

.modal-close-btn {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.4rem;
}

.progress-container {
  width: 100%;
  background: var(--bg-subtle);
  height: 8px;
  border-radius: 4px;
  margin: 22px 0;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-medium), var(--accent-cyan));
  border-radius: 4px;
  transition: width 0.1s linear;
}

/* ==============================
   LOGIN / PORTAL SIMULATION
   ============================== */
.portal-tabs {
  display: flex;
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 22px;
}

.portal-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 9px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--t-fast);
}

.portal-tab-btn.active {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(0, 41, 82, 0.07);
}

.login-form-group {
  margin-bottom: 16px;
}

.login-form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
}

.login-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(0, 41, 82, 0.13);
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  color: var(--text-primary);
  background: var(--white);
  transition: all var(--t-fast);
}

.login-input:focus {
  border-color: var(--primary-medium);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 108, 168, 0.13);
  background: #fff;
}

/* Post-login Portal Console */
.portal-console {
  display: none;
  animation: fade-in-up 0.5s ease forwards;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.console-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.console-card {
  background: var(--bg-subtle);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
}

/* ==============================
   ABOUT SECTION
   ============================== */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-visual { position: relative; }

.about-img-box {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glass-shadow-lg);
  border: 4px solid var(--white);
  height: 400px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-features-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.about-feature-item  { display: flex; gap: 14px; }
.about-feature-item svg { flex-shrink: 0; color: var(--accent-cyan); }

/* ==============================
   FAQ ACCORDION
   ============================== */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: border-color var(--t-fast);
}

.faq-item:hover { border-color: rgba(27, 108, 168, 0.25); }
.faq-item.active { border-color: var(--primary-medium); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 24px;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-arrow {
  color: var(--slate-gray);
  transition: transform var(--t-mid);
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-mid) ease-out;
  background: var(--bg-subtle);
}

.faq-answer-inner {
  padding: 22px 24px;
  color: var(--text-secondary);
  border-top: 1px solid var(--card-border);
  font-size: 0.97rem;
  line-height: 1.7;
}

.faq-item.active .faq-arrow { transform: rotate(180deg); color: var(--primary-medium); }

/* ==============================
   CONTACT / DEMO BOOKING
   ============================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--glass-shadow-lg);
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.contact-info-panel {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-panel h3 { color: #fff; font-size: 2rem; margin-bottom: 14px; }

.contact-details { display: flex; flex-direction: column; gap: 22px; margin: 36px 0; }

.contact-detail-item { display: flex; gap: 14px; align-items: center; }
.contact-detail-item svg { color: var(--accent-cyan); }

.contact-form-panel { padding: 48px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

/* ==============================
   FOOTER
   ============================== */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.60);
  padding: 72px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand h4 { color: #fff; font-size: 1.3rem; margin-bottom: 14px; }
.footer-description { font-size: 0.88rem; line-height: 1.65; margin-bottom: 22px; }

.footer-col h5 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: color var(--t-fast); }
.footer-col ul li a:hover { color: var(--accent-cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* ==============================
   CARD STYLES (generic premium)
   ============================== */
.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--glass-shadow);
  transition: all var(--t-mid);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-lg);
}

.card-accent {
  border-top: 3px solid var(--accent-cyan);
}

/* ==============================
   ANIMATIONS / KEYFRAMES
   ============================== */
@keyframes float-blob {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-28px) scale(1.07); }
  100% { transform: translateY(18px) scale(0.93); }
}

@keyframes fade-in-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-scale {
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes bar-grow {
  to { height: 100%; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,154,198,0.40); }
  50%       { box-shadow: 0 0 0 9px rgba(46,154,198,0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-description { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .mockup-container { transform: none !important; max-width: 580px; margin: 0 auto; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto 40px; gap: 36px; }
  .about-wrapper { grid-template-columns: 1fr; }
  .downloads-grid { grid-template-columns: 1fr; gap: 18px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .metrics-wrapper { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 120px 0 48px; }
  .page-hero h1 { font-size: 2.2rem; }

  .menu-toggle { display: flex; }

  nav {
    position: fixed;
    top: 0; right: -100%;
    width: 270px;
    height: 100vh;
    background: var(--white);
    box-shadow: -8px 0 28px rgba(0,0,0,0.07);
    z-index: 1000;
    transition: right var(--t-mid);
    padding: 96px 36px 36px;
  }

  nav.active { right: 0; }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .nav-cta { display: none; }

  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-span-2-h { grid-column: span 1; }
  .bento-span-2-v { grid-row: span 1; padding-top: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .analytics-layout { grid-template-columns: 1fr; }
  .pipeline-layout { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .metrics-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-title { font-size: 2.4rem; }
  .downloads-grid { grid-template-columns: 1fr; }
}
