/* ═══════════════════════════════════════════════════════════
   ndeip Landing Page — Design System
   Premium · Minimalistic · Glass-morphism · Dark Theme
   ═══════════════════════════════════════════════════════════ */

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

/* ─── CSS Variables ────────────────────────────────────── */
:root {
  /* Brand Colors */
  --teal: #1B4D3E;
  --teal-light: #2A7A5E;
  --teal-dark: #0F3329;
  --blue: #2563EB;
  --blue-soft: #3B82F6;
  --emerald: #10B981;
  --amber: #F59E0B;
  --rose: #F43F5E;
  --cyan: #06B6D4;
  --amethyst: #8B5CF6;

  /* Neutrals — Light Grey Theme */
  --bg: #F2F2F2;
  --bg-elevated: #FAFAFA;
  --surface: #FFFFFF;
  --surface-light: #F7F7F7;
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
  --text-primary: #1A1A1A;
  --text-secondary: #5A6B66;
  --text-muted: #8A9A95;

  /* Glass — Light */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-border-strong: rgba(0, 0, 0, 0.10);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #1B4D3E, #2563EB);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(27,77,62,0.6), rgba(37,99,235,0.4));
  --gradient-surface: linear-gradient(180deg, #FAFAFA, #F2F2F2);
  --gradient-mesh: linear-gradient(135deg, rgba(27,77,62,0.06), rgba(37,99,235,0.04), rgba(16,185,129,0.03));

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.10);
  --shadow-glow-teal: 0 4px 30px rgba(27,77,62,0.15);
  --shadow-glow-blue: 0 4px 30px rgba(37,99,235,0.10);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --section-padding: 100px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.4s;
  --duration-fast: 0.2s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── Utility Classes ──────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

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

/* ─── Navigation ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background var(--duration) var(--ease), 
              backdrop-filter var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.nav.scrolled {
  background: rgba(242, 242, 242, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color var(--duration-fast), background var(--duration-fast);
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--glass-bg);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
}

.nav-cta {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-brand);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
  margin-left: 8px;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-teal);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.nav-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* ─── Hero Section ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: meshFloat 20s ease-in-out infinite;
}

.hero-mesh-1 {
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(27,77,62,0.12), transparent 70%);
}

.hero-mesh-2 {
  bottom: -300px;
  left: -200px;
  background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 70%);
  animation-delay: -7s;
  animation-duration: 25s;
}

.hero-mesh-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16,185,129,0.06), transparent 70%);
  animation-delay: -14s;
  animation-duration: 30s;
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--emerald);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-brand);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-teal);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-strong);
}

/* Hero right side — phone mockup area */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-phone {
  width: 280px;
  height: 560px;
  background: var(--surface);
  border-radius: 36px;
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.hero-phone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #E8E8E8;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.hero-phone-screen {
  width: 100%;
  height: 100%;
  padding: 40px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 4px 8px;
}

.phone-chat-header {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.phone-chat-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: var(--glass-bg);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.phone-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.phone-chat-info {
  flex: 1;
  min-width: 0;
}

.phone-chat-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.phone-chat-msg {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-chat-time {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.phone-unread {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* Floating glow orbs around phone */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 200px;
  height: 200px;
  background: rgba(27,77,62,0.1);
  top: -40px;
  right: -60px;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 150px;
  height: 150px;
  background: rgba(37,99,235,0.08);
  bottom: 40px;
  left: -40px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

/* ─── Download Cards Section ───────────────────────────── */
.download-section {
  padding: 80px 0 100px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.download-card {
  position: relative;
  padding: 36px 28px 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  text-align: center;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.download-card:hover {
  border-color: var(--glass-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.download-card-content {
  position: relative;
  z-index: 1;
}

.download-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--glass-bg-hover);
  border: 1px solid var(--glass-border);
}

.download-icon svg {
  width: 32px;
  height: 32px;
}

.download-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.download-card-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.download-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-available {
  background: rgba(16,185,129,0.12);
  color: var(--emerald);
  border: 1px solid rgba(16,185,129,0.2);
}

.badge-coming-soon {
  background: rgba(245,158,11,0.12);
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.2);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.download-btn-primary {
  color: #fff;
  background: var(--gradient-brand);
}

.download-btn-primary:hover {
  box-shadow: var(--shadow-glow-teal);
  transform: translateY(-1px);
}

.download-btn-outline {
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--glass-border);
}

.download-btn-outline:hover {
  border-color: var(--glass-border-strong);
  color: var(--text-primary);
}

/* Lite card special styling */
.download-card.lite-card {
  border-style: dashed;
}

/* ─── Features Section ─────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  padding: 28px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all var(--duration) var(--ease);
}

.feature-card:hover {
  border-color: var(--glass-border-strong);
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 22px;
}

.feature-icon.teal { background: rgba(27,77,62,0.15); }
.feature-icon.blue { background: rgba(37,99,235,0.15); }
.feature-icon.emerald { background: rgba(16,185,129,0.15); }
.feature-icon.amber { background: rgba(245,158,11,0.15); }
.feature-icon.rose { background: rgba(244,63,94,0.15); }
.feature-icon.amethyst { background: rgba(139,92,246,0.15); }

.feature-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ─── Offline Messaging Section ────────────────────────── */
.offline-section {
  padding: 100px 0;
}

.offline-hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.offline-hero .section-title {
  font-size: 48px;
}

.offline-hero .section-subtitle {
  margin: 0 auto;
  font-size: 17px;
}

/* Backup notice */
.offline-notice {
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 20px 24px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.offline-notice-icon {
  flex-shrink: 0;
  font-size: 20px;
  margin-top: 2px;
}

.offline-notice-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.offline-notice-text strong {
  color: var(--amber);
  font-weight: 600;
}

/* How it works steps */
.offline-how-it-works {
  margin-bottom: 80px;
}

.offline-how-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

.offline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.offline-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--emerald), var(--amber));
  opacity: 0.3;
}

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

.offline-step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--glass-border-strong);
  font-size: 24px;
  font-weight: 700;
  color: var(--teal-light);
  position: relative;
  z-index: 1;
}

.offline-step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.offline-step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Decision tree visualization */
.offline-decision-tree {
  margin-bottom: 80px;
}

.decision-tree-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.decision-tree-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
}

.decision-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.decision-node {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition: all var(--duration-fast);
}

.decision-node:hover {
  border-color: var(--glass-border-strong);
  background: var(--glass-bg-hover);
}

.decision-node-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.decision-node-content {
  flex: 1;
}

.decision-node-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.decision-node-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.decision-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  padding: 0 0 0 28px;
}

/* Tiers / Roadmap */
.offline-tiers {
  margin-top: 60px;
}

.offline-tier {
  margin-bottom: 48px;
}

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

.tier-badge {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.tier-badge.mvp {
  background: rgba(16,185,129,0.12);
  color: var(--emerald);
  border: 1px solid rgba(16,185,129,0.2);
}

.tier-badge.future {
  background: rgba(37,99,235,0.12);
  color: var(--blue-soft);
  border: 1px solid rgba(37,99,235,0.2);
}

.tier-badge.advanced {
  background: rgba(139,92,246,0.12);
  color: var(--amethyst);
  border: 1px solid rgba(139,92,246,0.2);
}

.tier-badge.partnership {
  background: rgba(245,158,11,0.12);
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.2);
}

.tier-title {
  font-size: 22px;
  font-weight: 700;
}

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

.tier-card {
  padding: 22px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition: all var(--duration-fast);
}

.tier-card:hover {
  border-color: var(--glass-border-strong);
}

.tier-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.tier-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tier-card-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.status-available {
  background: rgba(16,185,129,0.12);
  color: var(--emerald);
}

.status-coming {
  background: rgba(245,158,11,0.12);
  color: var(--amber);
}

.tier-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tier-card-tech {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── About Section ────────────────────────────────────── */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-stat {
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-align: center;
}

.about-stat-value {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
}

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

/* ─── Footer ───────────────────────────────────────────── */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

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

/* ─── Tab Content Visibility ───────────────────────────── */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.5s var(--ease);
}

/* ─── Animations ───────────────────────────────────────── */
@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(10px, 30px) scale(1.02); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -20px); }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Element enter animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-title { font-size: 48px; }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .section-title { font-size: 34px; }

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

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

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(242, 242, 242, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .nav-links.open .nav-link {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
  }

  .nav-links.open .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .hero-title { font-size: 36px; letter-spacing: -1px; }
  .hero-description { font-size: 16px; }

  .download-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .offline-steps {
    grid-template-columns: 1fr;
  }

  .offline-hero .section-title {
    font-size: 32px;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .fcb-stats {
    flex-direction: column;
    gap: 24px;
  }

  .fcb-divider {
    width: 40px;
    height: 1px;
  }

  .feature-highlight-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 30px; }
  .section-title { font-size: 28px; }
  .download-grid { max-width: 100%; }
  .feature-cat-header { flex-direction: column; text-align: center; }
}

/* ═══ New Feature Section Styles ═══════════════════════════ */

/* Feature Highlight Banner */
.feature-highlight-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(27,77,62,0.06), rgba(37,99,235,0.04));
  border: 1px solid rgba(27,77,62,0.12);
  border-radius: 20px;
  margin-top: 40px;
  margin-bottom: 48px;
  overflow: hidden;
}

.fhb-glow {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,77,62,0.08), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: meshFloat 12s ease-in-out infinite;
}

.fhb-content {
  position: relative;
  z-index: 1;
}

.fhb-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 10px;
}

.fhb-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.fhb-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

/* Feature Category */
.feature-category {
  margin-bottom: 56px;
}

.feature-cat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.feature-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feature-cat-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.feature-cat-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

/* Feature NEW Badge */
.feature-new-badge {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--emerald), var(--teal-light));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 6px;
  margin-bottom: 8px;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Feature card with badge — position relative so badge is within */
.feature-card {
  position: relative;
}

/* Feature Count Banner */
.feature-count-banner {
  margin-top: 48px;
  padding: 36px 40px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

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

.fcb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fcb-number {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
}

.fcb-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fcb-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}
