:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --surface2: #f1efe9;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --text: #0f0e0c;
  --text-muted: #6b6960;
  --text-faint: #a8a49c;
  --accent: #0057ff;
  --accent-light: #e8efff;
  --accent-hover: #0044cc;
  --green: #00875a;
  --green-light: #e3f5ee;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --red: #dc2626;
  --tag-bg: #0f0e0c;
  --tag-text: #f8f7f4;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.15;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ───── NAV ───── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248,247,244,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--text);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg { width: 18px; height: 18px; }

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.8; }

/* ───── HERO ───── */
.hero {
  padding: 140px 24px 100px;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 36px;
  line-height: 1.7;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.btn-primary:hover {
  background: #2a2927;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.18);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: 1.5px solid var(--border-strong);
  transition: all 0.2s;
}

.btn-secondary:hover { border-color: var(--text); background: var(--surface2); transform: translateY(-1px); }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-item { display: flex; flex-direction: column; }

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero visual */
.hero-visual { position: relative; }

/* ───── HERO 3D GLOBE ───── */
.globe-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  isolation: isolate;
}

/* Atmospheric outer ring — subtle blue halo around the canvas */
.globe-stage::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  box-shadow:
    0  0  80px 6px rgba(0, 87, 255, 0.18),
    0  0  140px 18px rgba(0, 87, 255, 0.08),
    inset 0 0 60px rgba(120, 180, 255, 0.10);
}

/* Crisp 1-px atmospheric stroke on the globe edge */
.globe-stage::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(120, 170, 255, 0.18);
  background:
    radial-gradient(circle at 30% 28%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 32%);
}

.globe-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  contain: layout paint size;
  cursor: grab;
  z-index: 2;
  filter: drop-shadow(0 28px 70px rgba(0, 87, 255, 0.22));
}

.globe-stage canvas:active { cursor: grabbing; }

.globe-glow {
  position: absolute;
  inset: -14%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center,
      rgba(0, 87, 255, 0.28) 0%,
      rgba(0, 87, 255, 0.10) 38%,
      transparent 72%);
  filter: blur(32px);
  animation: globeGlow 7s ease-in-out infinite alternate;
}

@keyframes globeGlow {
  from { opacity: 0.6; transform: scale(0.94); }
  to   { opacity: 1;   transform: scale(1.06); }
}

.globe-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at center, rgba(15,14,12,0.06) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
}

/* Satellite orbits — dashed rings with a moving "satellite" dot */
.globe-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 102%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotate(0deg);
  border-radius: 50%;
  border: 1px dashed rgba(0, 87, 255, 0.22);
  z-index: 2;
  pointer-events: none;
  animation: orbit 28s linear infinite;
}

.globe-orbit > i {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 3px rgba(0, 87, 255, 0.18),
    0 0 14px rgba(0, 87, 255, 0.6);
}

.globe-orbit-1 {
  width: 102%;
  border-style: dashed;
  border-color: rgba(0, 87, 255, 0.22);
  transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg);
  animation-duration: 32s;
}

.globe-orbit-2 {
  width: 110%;
  border-style: dotted;
  border-color: rgba(15, 14, 12, 0.10);
  transform: translate(-50%, -50%) rotateX(78deg) rotateZ(40deg);
  animation: orbit 52s linear reverse infinite;
}

.globe-orbit-2 > i {
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: var(--text);
  box-shadow:
    0 0 0 2px rgba(15, 14, 12, 0.12),
    0 0 10px rgba(15, 14, 12, 0.5);
}

@keyframes orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Override base orbit transform so tilt is preserved while we rotate
   via @keyframes — we apply rotate() ON TOP of the rotateX tilt */
.globe-orbit-1 { animation-name: orbitTilt1; }
.globe-orbit-2 { animation-name: orbitTilt2; }

@keyframes orbitTilt1 {
  from { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg); }
  to   { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); }
}

@keyframes orbitTilt2 {
  from { transform: translate(-50%, -50%) rotateX(78deg) rotateZ(40deg); }
  to   { transform: translate(-50%, -50%) rotateX(78deg) rotateZ(-320deg); }
}

.globe-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 4;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
}

.globe-pill strong { font-weight: 700; color: var(--text); }

.globe-pill-sep { color: var(--text-faint); }
.globe-pill-muted { color: var(--text-muted); }

.globe-pill-top {
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
}

.globe-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 135, 90, 0.18);
  animation: pulse 1.6s infinite;
  flex-shrink: 0;
}

.globe-pill-bottom {
  bottom: 6%;
  left: 4%;
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  font-size: 12px;
  padding: 7px 12px;
}

.globe-pill-bottom .float-badge-kicker { color: #5fe0a8; display: flex; }

/* Live tracking feed (right side overlay) */
.globe-feed {
  position: absolute;
  top: 20%;
  right: -12px;
  width: 232px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.globe-feed::before {
  content: 'LIVE FEED';
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--text-faint);
  padding: 8px 10px 4px;
}

.feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  position: relative;
  animation: feedIn 0.45s cubic-bezier(.2,.8,.2,1);
  transition: background 0.25s;
}

.feed-row.feed-row--new {
  background: var(--accent-light);
}

.feed-row.feed-row--new::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 3px; height: 60%;
  transform: translateY(-50%);
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.feed-flag {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.feed-info { flex: 1; min-width: 0; line-height: 1.25; }

.feed-city {
  font-weight: 600;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-page {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-time {
  font-size: 10.5px;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.feed-row--new .feed-time { color: var(--green); font-weight: 600; }

.feed-time::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-faint);
}

.feed-row--new .feed-time::before {
  background: var(--green);
  animation: pulse 1.4s infinite;
}

@keyframes feedIn {
  from { opacity: 0; transform: translateY(-10px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0);   max-height: 60px; }
}

.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: box-shadow .25s, transform .25s;
}

.dashboard-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dashboard-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.dashboard-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.dashboard-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.kpi {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.kpi-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  margin-bottom: 6px;
}

.kpi-value {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1;
}

.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 100px;
  background: var(--green-light);
  color: var(--green);
  vertical-align: middle;
}

.kpi-delta.kpi-down {
  background: #fdecec;
  color: var(--red);
}

.dashboard-chart {
  position: relative;
  height: 84px;
  margin-bottom: 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 8px 10px;
}

.dashboard-chart svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 8px rgba(0,87,255,0.18));
}

.chart-area {
  fill: url(#beluga-area-grad);
  opacity: 0.85;
}

.dashboard-rows {
  display: flex;
  flex-direction: column;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  border-radius: var(--radius-sm);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}

.metric-row:last-child { border-bottom: none; }

.metric-row:hover { background: var(--surface2); }

.metric-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-flag {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.metric-name {
  font-weight: 500;
  font-size: 13px;
}

.metric-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.metric-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-track {
  width: 70px;
  height: 6px;
  background: var(--surface2);
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #3d7dff);
  border-radius: 100px;
}

.metric-count {
  font-weight: 600;
  font-size: 13px;
  min-width: 44px;
  text-align: right;
}

/* Floating badges */
.float-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.float-badge-1 {
  top: -20px;
  right: -20px;
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.float-badge-1::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  animation: pulse 1.4s infinite;
}

.float-badge-2 {
  bottom: -16px;
  left: -20px;
}

.float-badge-kicker {
  color: var(--green);
  flex-shrink: 0;
  display: flex;
}

/* ───── MARQUEE ───── */
.marquee-section {
  background: var(--text);
  padding: 16px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 32s linear infinite;
  white-space: nowrap;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(248,247,244,0.5);
  font-size: 13px;
  font-weight: 500;
  padding: 0 24px;
}

.marquee-item > span:not(.marquee-dot) {
  color: rgba(248,247,244,0.9);
  font-weight: 600;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(248,247,244,0.2);
  flex-shrink: 0;
}

/* ───── SECTIONS ───── */
section {
  padding: 96px 0;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 520px;
}

.section-header {
  margin-bottom: 56px;
}

/* ───── TRUST STRIP ───── */
.trust-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-icon .ui-icon { color: var(--text-muted); }

.ui-icon { display: block; flex-shrink: 0; }

/* ───── CATEGORIES ───── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  cursor: pointer;
}

.cat-card:hover {
  border-color: var(--border-strong);
  border-top-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--text);
  opacity: 0.9;
}

.cat-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cat-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-tag {
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.cat-tag.new {
  background: var(--accent-light);
  color: var(--accent);
  border-color: transparent;
}

.cat-saving {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-top: 20px;
  display: block;
}

/* ───── FEATURES ───── */
.features-section { background: var(--surface2); }

.features-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.feature-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.feature-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0.92;
}

.feature-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.feature-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.new-badge {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: uppercase;
}

/* ───── HOW IT WORKS ───── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: var(--border);
}

.step {
  padding: 0 16px;
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--border);
  transition: background .2s, box-shadow .2s;
}

.step:hover .step-num {
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--accent);
}

.step-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ───── CODE SNIPPET ───── */
.snippet-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.snippet-code-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
}

.snippet-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(15,14,12,0.92);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
}

.snippet-tab {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  border: none;
  background: transparent;
  color: rgba(248,247,244,0.35);
  cursor: pointer;
  transition: all 0.15s;
}

.snippet-tab:hover { color: rgba(248,247,244,0.7); }

.snippet-tab.active {
  background: rgba(255,255,255,0.1);
  color: rgba(248,247,244,0.92);
}

.snippet-panel {
  border-radius: 0 0 var(--radius) var(--radius) !important;
}

.code-section {
  background: var(--text);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}

.code-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

pre {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  overflow-x: auto;
  white-space: pre;
  padding: 20px 24px 24px;
  margin: 0;
}

.code-comment { color: rgba(255,255,255,0.28); }
.code-string { color: #89d185; }
.code-key { color: #9cdcfe; }
.code-num { color: #b5cea8; }
.code-func { color: #dcdcaa; }
.code-kw { color: #c586c0; }
.code-tag { color: #f08080; }
.code-attr { color: #9cdcfe; }

.snippet-copy-btn {
  position: absolute;
  top: 52px;
  right: 14px;
  z-index: 10;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  color: rgba(255,255,255,0.4);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .2s, color .2s;
}

.snippet-copy-btn:hover {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
}

.snippet-copy-btn.copied { color: #56d364; }

.snippet-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.snippet-check-item:last-child { border-bottom: none; }

.snippet-check-item .check {
  flex-shrink: 0;
  margin-top: 2px;
}

.snippet-check-text { line-height: 1.5; }

.snippet-check-text strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
}

.snippet-check-text span {
  font-size: 13px;
  color: var(--text-muted);
}

.check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
}

.check .ui-icon { display: block; }

/* ───── COMPARISON TABLE ───── */
.compare-section { padding: 96px 0; }

.compare-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  background: var(--surface2);
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.compare-table thead th.compare-head-us {
  background: var(--text);
  color: var(--bg);
  position: relative;
}

.compare-table thead th.compare-head-us::before {
  content: 'BEST';
  position: absolute;
  top: -1px;
  right: 12px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 0 0 6px 6px;
}

.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover td { background: var(--surface2); }

.compare-table tbody td.col-us { background: rgba(0,87,255,0.04); font-weight: 600; }

.compare-row-label {
  font-weight: 500;
  color: var(--text);
}

.compare-yes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 600;
}

.compare-no {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 500;
  opacity: 0.85;
}

.compare-meh {
  color: var(--text-muted);
  font-weight: 500;
}

/* ───── PRICING ───── */
.growth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  margin-bottom: 24px;
  align-items: center;
}

.growth-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.growth-name {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.growth-badge {
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}

.growth-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.growth-features {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.growth-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.growth-features li:last-child { border-bottom: none; }

.enterprise-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  margin-bottom: 20px;
}

.enterprise-callout > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.enterprise-callout-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.enterprise-callout-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.billing-units {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.billing-unit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.billing-unit-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 10px;
}

.billing-unit-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.billing-unit-rate {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.billing-unit-rate strong { color: var(--accent); font-weight: 800; }

.billing-unit-example {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 4px;
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

.pricing-note a {
  color: var(--accent);
  text-decoration: none;
}

.pricing-note a:hover { text-decoration: underline; }

/* ───── TESTIMONIALS ───── */
.testimonials-section { background: var(--surface2); }

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

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 14px;
  color: var(--amber);
  font-size: 14px;
}

.star-rating { display: block; }

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.author-name {
  font-weight: 600;
  font-size: 14px;
}

.author-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ───── FAQ ───── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  gap: 16px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: white; }

/* ───── CTA BANNER ───── */
.cta-banner {
  background: var(--text);
  border-radius: var(--radius-lg);
  padding: 72px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(0,87,255,0.12);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(0,87,255,0.08);
}

.cta-banner h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: white;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-banner h2 em {
  font-style: normal;
  color: var(--accent);
}

.cta-banner p {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary {
  background: white;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary:hover { opacity: 0.9; background: white; color: var(--text); }

/* ───── FOOTER ───── */
footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
}

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

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-faint);
}

.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ───── ANIMATIONS ───── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* ───── RESPONSIVE ───── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 120px 24px 80px;
  }
  .categories-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .billing-units { grid-template-columns: 1fr; }
  .growth-card { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
  .enterprise-callout { flex-direction: column; align-items: flex-start; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .snippet-grid { grid-template-columns: 1fr; gap: 40px; }
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 13px; }
  .cta-banner { padding: 48px 28px; }
}

@media (max-width: 900px) {
  .globe-stage { max-width: 460px; }
  .globe-feed  { width: 200px; right: -4px; top: 18%; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 18px; }
  .stat-value { font-size: 22px; }
  .float-badge-1 { right: 0; top: -14px; }
  .float-badge-2 { left: 0; bottom: -14px; }
  .dashboard-kpis { grid-template-columns: 1fr 1fr; }
  .globe-stage  { max-width: 360px; }
  .globe-feed   { width: 180px; right: -8px; top: 14%; padding: 4px; }
  .globe-feed::before { font-size: 9px; padding: 6px 8px 2px; }
  .feed-row    { padding: 6px 8px; gap: 8px; }
  .feed-flag   { width: 20px; height: 20px; font-size: 12px; }
  .feed-city   { font-size: 11px; }
  .feed-page   { font-size: 10px; }
  .globe-pill-top { font-size: 11px; padding: 6px 11px; }
  .globe-pill-bottom { font-size: 10.5px; padding: 6px 10px; }
}
