/* ═══════════════════════════════════════════════════
   Tiginer Portal — Premium Design System v3
   ═══════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────── */
:root {
  --bg-primary: #050911;
  --bg-card: rgba(12,18,32,.65);
  --bg-card-hover: rgba(15,23,42,.85);
  --border-subtle: rgba(56,68,90,.3);
  --border-active: rgba(59,130,246,.35);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-emerald: #34d399;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-glow: 0 0 60px rgba(59,130,246,.08);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg-primary); color: #e2e8f0; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }
::selection { background: rgba(59,130,246,.3); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1200px, 92vw); margin: 0 auto; }
.text-center { text-align: center; }

/* ── Logo ─────────────────────────────────────────── */
.logo { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em; }
.logo-svg { flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(59,130,246,.2)); }
.logo-badge {
  font-size: 9px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; padding: 2px 7px; border-radius: 5px; margin-left: -2px;
  line-height: 1.4; animation: badge-pulse 3s ease-in-out infinite;
}
@keyframes badge-pulse { 0%,100% { opacity: 1; } 50% { opacity: .8; } }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; border: 1.5px solid transparent; border-radius: 12px;
  padding: 11px 24px; font-size: 14px; cursor: pointer;
  transition: all var(--transition);
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
  color: #fff; font-family: inherit;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
  opacity: 0; transition: opacity .3s;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,130,246,.35); }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent; border-color: rgba(148,163,184,.2); color: #e2e8f0;
  backdrop-filter: blur(4px);
}
.btn-outline::after { display: none; }
.btn-outline:hover { border-color: var(--accent-blue); color: #93c5fd; background: rgba(59,130,246,.06); box-shadow: 0 8px 30px rgba(59,130,246,.12); }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 15px 32px; font-size: 15px; border-radius: var(--radius-md); letter-spacing: -.01em; }
.btn-block { width: 100%; }
.btn-glow { box-shadow: 0 0 24px rgba(59,130,246,.25); }
.btn-glow:hover { box-shadow: 0 4px 40px rgba(59,130,246,.4); }
.btn-danger { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.btn-danger:hover { box-shadow: 0 8px 25px rgba(220,38,38,.3); }
.btn-success { background: linear-gradient(135deg, #16a34a, #15803d); }
.btn-success:hover { box-shadow: 0 8px 25px rgba(22,163,74,.3); }
.btn-warn { background: linear-gradient(135deg, #d97706, #b45309); }
.btn-warn:hover { box-shadow: 0 8px 25px rgba(217,119,6,.3); }

/* ── Text Gradient ────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Language Switcher ────────────────────────────── */
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  background: rgba(15,23,42,.8); border: 1px solid rgba(51,65,85,.5);
  border-radius: 8px; padding: 3px; margin-left: 8px;
}
.lang-btn {
  background: transparent; border: none; color: #64748b;
  font-size: 12px; font-weight: 600; font-family: inherit;
  padding: 4px 10px; border-radius: 6px; cursor: pointer;
  transition: all .2s;
}
.lang-btn:hover { color: #e2e8f0; }
.lang-btn.active {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
}

/* ── Navbar ───────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,9,17,.6);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(56,68,90,.2);
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.navbar.scrolled {
  background: rgba(5,9,17,.92);
  box-shadow: 0 4px 40px rgba(0,0,0,.4), 0 1px 0 rgba(59,130,246,.05);
  border-bottom-color: rgba(56,68,90,.35);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) {
  font-size: 14px; color: var(--text-muted); transition: color .25s; font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-indigo));
  border-radius: 2px; transition: width .3s cubic-bezier(.4,0,.2,1);
}
.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active { color: #fff; }
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn).active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; color: #e2e8f0; cursor: pointer; padding: 4px; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative; padding: 130px 0 80px; text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(8,12,21,1) 100%);
}
.hero-glow {
  position: absolute; top: -35%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, rgba(59,130,246,.14) 0%, rgba(99,102,241,.07) 40%, transparent 70%);
  pointer-events: none; filter: blur(40px);
}
.hero-glow-2 {
  position: absolute; top: 5%; right: -15%; width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(139,92,246,.09) 0%, transparent 70%);
  pointer-events: none; filter: blur(30px);
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .035;
  background-image:
    linear-gradient(rgba(148,163,184,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.3) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,.06); color: #93c5fd;
  padding: 8px 22px; border-radius: 28px; font-size: 13px; font-weight: 600;
  margin-bottom: 32px;
  border: 1px solid rgba(59,130,246,.12);
  backdrop-filter: blur(12px);
  transition: all .3s;
}
.hero-badge:hover { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.25); }
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-emerald); display: inline-block;
  box-shadow: 0 0 10px rgba(52,211,153,.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px); font-weight: 800;
  line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.035em;
  color: var(--text-primary);
}
.hero-sub { color: var(--text-secondary); font-size: 18px; max-width: 620px; margin: 0 auto 44px; line-height: 1.75; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: 56px; margin-top: 72px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 30px; color: var(--text-primary); font-weight: 800; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ── Hero Particles ───────────────────────────────── */
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%;
  background: rgba(59,130,246,.3);
  animation: float-particle linear infinite;
}
.p1 { width: 4px; height: 4px; left: 15%; top: 20%; animation-duration: 18s; }
.p2 { width: 3px; height: 3px; left: 75%; top: 30%; animation-duration: 22s; background: rgba(139,92,246,.3); }
.p3 { width: 5px; height: 5px; left: 40%; top: 70%; animation-duration: 15s; background: rgba(52,211,153,.3); }
.p4 { width: 3px; height: 3px; left: 85%; top: 60%; animation-duration: 20s; }
.p5 { width: 4px; height: 4px; left: 25%; top: 80%; animation-duration: 17s; background: rgba(245,158,11,.3); }
@keyframes float-particle {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-200px) translateX(40px); opacity: 0; }
}

/* ── Hero Dashboard Mockup ────────────────────────── */
.hero-mockup {
  margin-top: 64px; perspective: 1200px;
  opacity: 0; transform: translateY(50px) rotateX(10deg);
  transition: opacity 1s cubic-bezier(.4,0,.2,1), transform 1s cubic-bezier(.4,0,.2,1);
}
.hero-mockup.animate-in { opacity: 1; transform: translateY(0) rotateX(2deg); }
.mockup-browser {
  max-width: 880px; margin: 0 auto;
  background: rgba(12,18,32,.9);
  border: 1px solid rgba(56,68,90,.35);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 50px 100px rgba(0,0,0,.5),
    0 0 100px rgba(59,130,246,.07),
    inset 0 1px 0 rgba(255,255,255,.03);
}
.mockup-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: rgba(12,18,32,.98);
  border-bottom: 1px solid rgba(56,68,90,.3);
}
.mockup-dots { display: flex; gap: 7px; }
.mockup-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(56,68,90,.5);
  transition: all .2s;
}
.mockup-dots span:first-child { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #22c55e; }
.mockup-url {
  flex: 1; text-align: center;
  font-size: 12px; color: var(--text-muted); font-family: 'SF Mono', 'Cascadia Code', monospace;
  background: rgba(5,9,17,.7);
  padding: 6px 18px; border-radius: 8px;
  border: 1px solid rgba(56,68,90,.2);
}
.mockup-screen { display: flex; min-height: 300px; }
.mock-sidebar {
  width: 56px; flex-shrink: 0;
  background: rgba(5,9,17,.8);
  border-right: 1px solid rgba(56,68,90,.2);
  padding: 16px 10px;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.mock-logo-area {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  margin-bottom: 12px;
  box-shadow: 0 0 16px rgba(59,130,246,.3);
}
.mock-nav-item {
  width: 34px; height: 7px; border-radius: 4px;
  background: rgba(56,68,90,.35);
  transition: all .3s;
}
.mock-nav-item.active {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  box-shadow: 0 0 8px rgba(59,130,246,.3);
}
.mock-main { flex: 1; padding: 18px; }
.mock-topbar {
  height: 8px; width: 28%; border-radius: 4px;
  background: rgba(56,68,90,.25);
  margin-bottom: 18px;
}
.mock-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.mock-kpi {
  padding: 12px 14px; border-radius: 12px;
  background: rgba(12,18,32,.85);
  border: 1px solid rgba(56,68,90,.2);
  text-align: center;
  transition: all .3s;
}
.mock-kpi:hover { border-color: rgba(56,68,90,.4); }
.mock-kpi.green { border-left: 3px solid var(--accent-emerald); }
.mock-kpi.blue { border-left: 3px solid var(--accent-blue); }
.mock-kpi.orange { border-left: 3px solid #f59e0b; }
.mock-kpi.purple { border-left: 3px solid var(--accent-purple); }
.mock-kpi-val { font-size: 17px; font-weight: 800; color: var(--text-primary); letter-spacing: -.02em; }
.mock-kpi-lbl { font-size: 9px; color: var(--text-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .5px; }

.mock-charts { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.mock-chart-lg, .mock-chart-sm {
  padding: 14px; border-radius: 12px;
  background: rgba(12,18,32,.85);
  border: 1px solid rgba(56,68,90,.2);
}
.mock-chart-title { font-size: 10px; color: var(--text-muted); margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.mock-line-chart { width: 100%; height: 65px; }
.mock-donut { width: 72px; height: 72px; margin: 0 auto; }
.mock-donut svg { width: 100%; height: 100%; }

/* ── Sections ─────────────────────────────────────── */
.section { padding: 110px 0; }
.section-alt { background: rgba(12,18,32,.45); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin-bottom: 12px; color: var(--text-primary); letter-spacing: -0.025em; }
.section-header p { color: var(--text-secondary); font-size: 17px; max-width: 560px; margin: 0 auto; line-height: 1.7; }
.section-badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: #60a5fa; background: rgba(59,130,246,.06); border: 1px solid rgba(59,130,246,.12);
  padding: 7px 20px; border-radius: 24px; margin-bottom: 18px;
}

/* ── Trust Bar ────────────────────────────────────── */
.trust-bar {
  padding: 52px 0;
  background: rgba(12,18,32,.6);
  border-top: 1px solid rgba(56,68,90,.12);
  border-bottom: 1px solid rgba(56,68,90,.12);
  backdrop-filter: blur(8px);
}
.trust-label { text-align: center; font-size: 12px; color: var(--text-muted); margin-bottom: 32px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.trust-stats { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; }
.trust-item { text-align: center; padding: 0 40px; transition: transform .3s; }
.trust-item:hover { transform: translateY(-2px); }
.trust-item strong { display: block; font-size: 26px; color: var(--text-primary); font-weight: 800; letter-spacing: -.02em; }
.trust-item span { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.trust-divider { width: 1px; background: linear-gradient(180deg, transparent, rgba(56,68,90,.4), transparent); align-self: stretch; }

/* ── Features ─────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 34px 28px;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  backdrop-filter: blur(12px);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59,130,246,.07), transparent 60%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,.25), 0 0 40px rgba(59,130,246,.06);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.1);
  transition: all .3s;
}
.feature-card:hover .feature-icon { transform: scale(1.05); }
.feature-icon.icon-blue { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.12); color: #60a5fa; }
.feature-icon.icon-green { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.12); color: #34d399; }
.feature-icon.icon-orange { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.12); color: #f59e0b; }
.feature-icon.icon-cyan { background: rgba(6,182,212,.08); border-color: rgba(6,182,212,.12); color: #22d3ee; }
.feature-icon.icon-purple { background: rgba(139,92,246,.08); border-color: rgba(139,92,246,.12); color: #a78bfa; }
.feature-icon.icon-emerald { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.12); color: #34d399; }
.feature-icon.icon-pink { background: rgba(236,72,153,.08); border-color: rgba(236,72,153,.12); color: #f472b6; }
.feature-icon.icon-amber { background: rgba(217,119,6,.08); border-color: rgba(217,119,6,.12); color: #fbbf24; }
.feature-icon svg { stroke: currentColor; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
.feature-tags { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.feature-tags span {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  background: rgba(56,68,90,.25); padding: 4px 11px;
  border-radius: 7px; border: 1px solid rgba(56,68,90,.25);
  transition: all .2s;
}
.feature-card:hover .feature-tags span { border-color: rgba(59,130,246,.15); color: var(--text-secondary); }

/* ── Pricing ──────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: 40px 32px;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  backdrop-filter: blur(12px);
  position: relative;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,.25); }
.pricing-card.popular {
  border-color: rgba(59,130,246,.35);
  background: rgba(12,18,32,.85);
  box-shadow: 0 0 60px rgba(59,130,246,.08), 0 0 120px rgba(59,130,246,.03), inset 0 1px 0 rgba(59,130,246,.15);
  transform: scale(1.03);
}
.pricing-card.popular:hover { transform: scale(1.03) translateY(-6px); }
.pricing-card.popular::before {
  content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-purple), transparent);
}
.pricing-badge {
  display: inline-block;
  background: rgba(59,130,246,.08); color: #93c5fd;
  padding: 5px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
  margin-bottom: 16px; border: 1px solid rgba(59,130,246,.12);
}
.pricing-card.popular .pricing-badge {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo)); color: #fff; border-color: transparent;
  box-shadow: 0 4px 12px rgba(59,130,246,.25);
}
.pricing-header { margin-bottom: 20px; }
.pricing-popular-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 22px; border-radius: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(59,130,246,.3);
}
.pricing-limit { text-align: center; margin-bottom: 24px; font-size: 14px; color: var(--text-secondary); }
.pricing-limit strong { font-size: 48px; font-weight: 900; color: var(--text-primary); display: block; line-height: 1; margin-bottom: 6px; letter-spacing: -.03em; }
.pricing-card.enterprise {
  border-color: rgba(139,92,246,.25);
  background: rgba(12,18,32,.75);
}
.pricing-card.enterprise::before {
  content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), #a78bfa, transparent);
}
.pricing-card h3 { font-size: 28px; font-weight: 800; margin-bottom: 8px; color: var(--text-primary); letter-spacing: -.02em; }
.pricing-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
.pricing-features { margin-bottom: 32px; }
.pricing-features li { padding: 8px 0; font-size: 14px; color: #d1d5db; display: flex; align-items: center; gap: 10px; }
.pricing-features li .check { color: var(--accent-emerald); font-weight: 700; font-size: 15px; }
.pricing-features li .cross { color: #4b5563; }
.pricing-features li.disabled { color: #4b5563; }

/* ── Why Tiginer grid ─────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 34px 28px;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
  backdrop-filter: blur(12px);
}
.why-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0; transition: opacity .4s;
}
.why-card:hover::before { opacity: 1; }
.why-card:hover { border-color: var(--border-active); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.why-number {
  font-size: 44px; font-weight: 900; color: rgba(59,130,246,.08);
  position: absolute; top: 14px; right: 20px; line-height: 1; letter-spacing: -3px;
  transition: color .4s;
}
.why-card:hover .why-number { color: rgba(59,130,246,.15); }
.why-card h3 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ── Tech Band ────────────────────────────────────── */
.tech-band {
  padding: 40px 0; background: rgba(5,9,17,.6);
  border-top: 1px solid rgba(56,68,90,.12);
  border-bottom: 1px solid rgba(56,68,90,.12);
}
.tech-items { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; }
.tech-item {
  padding: 12px 32px; position: relative;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  transition: all .25s;
}
.tech-item:hover { color: var(--text-primary); text-shadow: 0 0 20px rgba(59,130,246,.3); }
.tech-item:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 25%; height: 50%;
  width: 1px; background: linear-gradient(180deg, transparent, rgba(56,68,90,.4), transparent);
}

/* ── CTA ──────────────────────────────────────────── */
.cta-section {
  padding: 130px 0; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(59,130,246,.07) 0%, transparent 100%);
}
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(59,130,246,.1) 0%, rgba(139,92,246,.04) 40%, transparent 70%);
  pointer-events: none; filter: blur(40px);
}
.cta-section h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; color: var(--text-primary); letter-spacing: -0.025em; }
.cta-section p { color: var(--text-secondary); font-size: 17px; margin-bottom: 40px; line-height: 1.7; }

/* ── Footer ───────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(56,68,90,.2); padding-top: 64px; padding-bottom: 28px;
  background: rgba(5,9,17,.5);
}
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; }
.footer-links { display: flex; gap: 72px; }
.footer-links div { display: flex; flex-direction: column; gap: 12px; }
.footer-links strong { color: var(--text-secondary); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px; font-weight: 700; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: all .25s; }
.footer-links a:hover { color: #60a5fa; transform: translateX(2px); }
.footer-bottom {
  border-top: 1px solid rgba(56,68,90,.2); padding-top: 22px; font-size: 13px; color: #4b5563;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-version {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: var(--text-muted); background: rgba(56,68,90,.25);
  padding: 4px 12px; border-radius: 7px; margin-top: 12px;
  border: 1px solid rgba(56,68,90,.2);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: #4b5563; transition: color .25s; }
.footer-legal a:hover { color: #60a5fa; }

/* ── Scroll Animations ────────────────────────────── */
.animate-on-scroll {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* stagger children */
.features-grid .animate-on-scroll:nth-child(2) { transition-delay: .08s; }
.features-grid .animate-on-scroll:nth-child(3) { transition-delay: .16s; }
.features-grid .animate-on-scroll:nth-child(4) { transition-delay: .24s; }
.features-grid .animate-on-scroll:nth-child(5) { transition-delay: .32s; }
.features-grid .animate-on-scroll:nth-child(6) { transition-delay: .40s; }
.features-grid .animate-on-scroll:nth-child(7) { transition-delay: .48s; }
.features-grid .animate-on-scroll:nth-child(8) { transition-delay: .56s; }
.features-grid .animate-on-scroll:nth-child(9) { transition-delay: .64s; }

.pricing-grid .animate-on-scroll:nth-child(2) { transition-delay: .10s; }
.pricing-grid .animate-on-scroll:nth-child(3) { transition-delay: .20s; }

.hero-stats .animate-on-scroll:nth-child(2) { transition-delay: .08s; }
.hero-stats .animate-on-scroll:nth-child(3) { transition-delay: .16s; }
.hero-stats .animate-on-scroll:nth-child(4) { transition-delay: .24s; }

/* ── Forms (demo page, admin) ─────────────────────── */
.form-card {
  background: rgba(15,23,42,.6); border: 1px solid rgba(51,65,85,.3);
  border-radius: 20px; padding: 44px; max-width: 600px; margin: 0 auto;
  backdrop-filter: blur(8px);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: #d1d5db; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1px solid rgba(51,65,85,.4); background: rgba(6,10,19,.6); color: #e2e8f0;
  font-size: 14px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 13px; color: #64748b; margin-top: 4px; }
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.alert-success { background: rgba(22,163,74,.1); color: #4ade80; border: 1px solid rgba(22,163,74,.15); }
.alert-error { background: rgba(220,38,38,.1); color: #f87171; border: 1px solid rgba(220,38,38,.15); }

/* ── Download page ────────────────────────────────── */
.dl-hero { padding: 100px 0 40px; text-align: center; position: relative; }
.dl-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 40px auto; }
.dl-card {
  background: rgba(15,23,42,.6); border: 1px solid rgba(51,65,85,.3);
  border-radius: 16px; padding: 36px; text-align: center;
  backdrop-filter: blur(8px);
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.dl-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0,0,0,.2); }
.dl-card h3 { margin-bottom: 10px; color: #f1f5f9; }
.dl-card p { color: #94a3b8; font-size: 14px; margin-bottom: 22px; }
.dl-steps { max-width: 700px; margin: 56px auto 0; text-align: left; }
.dl-steps h3 { text-align: center; margin-bottom: 28px; color: #f1f5f9; }
.dl-steps ol { counter-reset: step; padding-left: 0; }
.dl-steps li {
  counter-increment: step; padding: 16px 0 16px 52px;
  position: relative; color: #d1d5db; font-size: 15px;
  border-bottom: 1px solid rgba(51,65,85,.3);
}
.dl-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 16px;
  width: 34px; height: 34px;
  background: rgba(59,130,246,.1); color: #60a5fa;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  border: 1px solid rgba(59,130,246,.15);
}

/* ── Admin ────────────────────────────────────────── */
.admin-layout { min-height: 100vh; padding: 24px 0 60px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.admin-header h1 { font-size: 24px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: rgba(15,23,42,.6); border: 1px solid rgba(51,65,85,.3);
  border-radius: 14px; padding: 22px; backdrop-filter: blur(8px);
}
.stat-card .stat-value { font-size: 30px; font-weight: 800; color: #f1f5f9; }
.stat-card .stat-label { font-size: 13px; color: #64748b; margin-top: 4px; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(51,65,85,.3); margin-bottom: 24px; }
.tab-btn {
  padding: 12px 22px; font-size: 14px; font-weight: 600; color: #64748b;
  background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all .2s; font-family: inherit;
}
.tab-btn:hover { color: #e2e8f0; }
.tab-btn.active { color: #60a5fa; border-bottom-color: #3b82f6; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; padding: 12px 14px; color: #64748b; font-weight: 600;
  font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid rgba(51,65,85,.3);
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid rgba(15,23,42,.6); vertical-align: middle; }
.data-table tr:hover td { background: rgba(59,130,246,.03); }
.data-table code { background: rgba(51,65,85,.4); padding: 3px 8px; border-radius: 6px; font-size: 12px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.badge-green { background: rgba(22,163,74,.12); color: #4ade80; }
.badge-red { background: rgba(220,38,38,.12); color: #f87171; }
.badge-yellow { background: rgba(217,119,6,.12); color: #fbbf24; }
.badge-gray { background: rgba(100,116,139,.12); color: #94a3b8; }
.badge-blue { background: rgba(59,130,246,.12); color: #60a5fa; }

.admin-form-row {
  display: grid; grid-template-columns: repeat(5, 1fr) auto;
  gap: 10px; align-items: end; margin-bottom: 24px;
}
.admin-form-row input, .admin-form-row select {
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(51,65,85,.4); background: rgba(6,10,19,.6);
  color: #e2e8f0; font-size: 14px; font-family: inherit;
}
.admin-form-row input:focus, .admin-form-row select:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.toolbar input {
  flex: 1; max-width: 300px; padding: 9px 16px; border-radius: 10px;
  border: 1px solid rgba(51,65,85,.4); background: rgba(6,10,19,.6);
  color: #e2e8f0; font-size: 14px; font-family: inherit;
}
.toolbar input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.toolbar select {
  padding: 9px 16px; border-radius: 10px;
  border: 1px solid rgba(51,65,85,.4); background: rgba(6,10,19,.6);
  color: #e2e8f0; font-size: 14px; font-family: inherit;
}

.hidden { display: none !important; }

/* ── Modal ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px); z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: #0f172a; border: 1px solid rgba(51,65,85,.3);
  border-radius: 20px; padding: 36px; width: min(500px, 92vw);
}
.modal h3 { margin-bottom: 20px; color: #f1f5f9; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-form-row { grid-template-columns: 1fr 1fr; }
  .mock-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.popular { transform: scale(1); }
  .pricing-card.popular:hover { transform: translateY(-6px); }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(5,9,17,.97); backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(56,68,90,.3);
    flex-direction: column; padding: 28px; gap: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-toggle { display: block; }
  .lang-switch { margin-left: 0; }
  .hero { padding: 90px 0 60px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .hero-stats { gap: 28px; }
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 44px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .dl-cards { grid-template-columns: 1fr; }
  .admin-form-row { grid-template-columns: 1fr; }
  .form-inline { grid-template-columns: 1fr; }
  .footer-links { gap: 32px; flex-wrap: wrap; }
  .form-card { padding: 28px 20px; }
  .cta-section { padding: 80px 0; }
  .cta-section h2 { font-size: 26px; }
  .trust-stats { flex-direction: column; gap: 20px; }
  .trust-divider { display: none; }
  .tech-items { justify-content: center; gap: 4px; }
  .tech-item:not(:last-child)::after { display: none; }
  .mock-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .mock-charts { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
  .mockup-browser { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 480px) {
  .container { width: 94vw; }
  .hero h1 { font-size: 26px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
  .pricing-card { padding: 28px 22px; }
  .trust-item { padding: 0 20px; }
  .footer-links { flex-direction: column; gap: 24px; }
}
