/* ==========================================================================
   MYARC — DESIGN SYSTEM & INVESTOR PITCH STYLESHEET
   Aesthetics: Luxury Obsidian Dark Mode, Glassmorphism, Neon Accents, Fluid Typography
   Fully Responsive (Mobile First to 4K Displays), Zero Overflow, Robust Spacing
   ========================================================================== */

:root {
  /* Color Tokens */
  --bg-dark: #07080D;
  --bg-card: rgba(18, 21, 33, 0.72);
  --bg-card-hover: rgba(26, 31, 48, 0.85);
  --bg-card-solid: #111422;
  --bg-surface: #141829;
  --bg-surface-light: #1D233A;

  /* Accent Gradients & Hues */
  --primary: #6366F1;
  --primary-rgb: 99, 102, 241;
  --primary-light: #818CF8;
  --purple: #8B5CF6;
  --purple-rgb: 139, 92, 246;
  --cyan: #38BDF8;
  --emerald: #10B981;
  --emerald-rgb: 16, 185, 129;
  --amber: #F59E0B;
  --rose: #EC4899;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
  --grad-cyan: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%);
  --grad-emerald: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --grad-amber: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --grad-dark-surface: linear-gradient(180deg, rgba(26, 31, 50, 0.6) 0%, rgba(13, 16, 26, 0.8) 100%);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-dim: #475569;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.65), 0 0 20px rgba(99, 102, 241, 0.1);
  --glass-shadow-lg: 0 24px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.18);

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Base & Reset (Zero Horizontal Overflow Guarantee)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1E2438;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3.5vw, 24px);
  padding-right: clamp(16px, 3.5vw, 24px);
}

/* Background Ambient Glow Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.35;
  max-width: 100vw;
}

.glow-orb-1 {
  width: clamp(280px, 40vw, 550px);
  height: clamp(280px, 40vw, 550px);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
  top: -80px;
  left: 10%;
}

.glow-orb-2 {
  width: clamp(300px, 45vw, 600px);
  height: clamp(300px, 45vw, 600px);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 70%);
  top: 45%;
  right: -80px;
}

.glow-orb-3 {
  width: clamp(260px, 35vw, 500px);
  height: clamp(260px, 35vw, 500px);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
  bottom: 5%;
  left: -80px;
}

/* ==========================================================================
   Typography & Common Elements
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.badge-accent {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #A5B4FC;
}

.badge-primary {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #C4B5FD;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}

.section-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-full);
  color: #A5B4FC;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.85rem, 4.5vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: clamp(28px, 5vw, 48px);
}

/* Glassmorphism Surface */
.glassmorphism {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.55);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 700;
}

.btn-block {
  width: 100%;
}

.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.glow-effect:hover::after {
  opacity: 1;
}

/* ==========================================================================
   Header & Navigation (Fully Responsive With Hamburger Menu)
   ========================================================================== */
.top-banner {
  background: linear-gradient(90deg, #181c30 0%, #201735 50%, #152233 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  padding: 7px 12px;
  font-size: 0.82rem;
  position: relative;
  z-index: 100;
  text-align: center;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-text {
  color: #E2E8F0;
  font-weight: 500;
}

.banner-link {
  color: #38BDF8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(7, 8, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.68rem;
  color: #A5B4FC;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
}

.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: #FFFFFF;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  z-index: 102;
  transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-toggle .bar {
  width: 18px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle.active .bar-1 {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .bar-2 {
  opacity: 0;
}

.mobile-menu-toggle.active .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Slide-out Drawer */
.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(10, 12, 22, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  padding: 24px;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s ease;
  z-index: 95;
}

.mobile-drawer.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.drawer-link {
  font-size: 1rem;
  font-weight: 600;
  color: #E2E8F0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-link:hover {
  color: #38BDF8;
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 8vw, 84px) 0 clamp(60px, 8vw, 90px);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: #CBD5E1;
  margin-bottom: 20px;
  align-self: flex-start;
  flex-wrap: wrap;
}

.pill-dot {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  flex-shrink: 0;
}

.pill-highlight {
  color: #38BDF8;
  font-weight: 700;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.035em;
  word-break: break-word;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 580px;
}

/* 4 Core Pillars */
.pillars-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}

.pillar-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.pillar-chip:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

.chip-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pillar-chip strong {
  display: block;
  font-size: 0.84rem;
  color: #F8FAFC;
  line-height: 1.2;
}

.pillar-chip small {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* ==========================================================================
   Phone Mockup Component (Hero & Live Demo)
   Fluid Width, Guaranteed Fit On Any Screen
   ========================================================================== */
.hero-preview-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.mockup-floating-badge {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(18, 22, 36, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  animation: floatBounce 4s ease-in-out infinite;
  max-width: 220px;
}

.top-badge {
  top: 30px;
  left: -14px;
  animation-delay: 0s;
}

.bottom-badge {
  bottom: 40px;
  right: -14px;
  animation-delay: 2s;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.badge-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.mockup-floating-badge strong {
  display: block;
  font-size: 0.8rem;
  color: #F8FAFC;
  line-height: 1.2;
}

.mockup-floating-badge small {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
}

/* Luxury Responsive Phone Frame */
.phone-frame {
  width: 100%;
  max-width: 360px;
  height: 700px;
  min-height: 600px;
  background: #090B12;
  border-radius: 42px;
  border: 7px solid #23283E;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(99, 102, 241, 0.18);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.phone-speaker {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: #181C2B;
  border-radius: 4px;
  z-index: 30;
}

.phone-camera {
  position: absolute;
  top: 11px;
  left: 36%;
  width: 7px;
  height: 7px;
  background: #121524;
  border-radius: 50%;
  z-index: 30;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-screen {
  flex: 1;
  background: #0B0E19;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 10px;
  position: relative;
  overflow: hidden;
  user-select: none;
  min-height: 0;
}

/* Phone Status Bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94A3B8;
  padding: 2px 4px 10px;
  flex-shrink: 0;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
}

/* Phone App Header */
.phone-app-header,
.interactive-app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.date-chip,
.app-date {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #818CF8;
  text-transform: uppercase;
  margin-bottom: 2px;
  display: block;
}

.dashboard-hero-title,
.app-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
}

.dashboard-hero-sub,
.app-sub {
  font-size: 0.74rem;
  color: #64748B;
  margin-top: 1px;
}

.avatar-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #6366F1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #191E33;
  font-size: 0.68rem;
  font-weight: 800;
  color: #A5B4FC;
  flex-shrink: 0;
}

.user-level-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.level-icon {
  font-size: 0.8rem;
}

.level-info {
  display: flex;
  flex-direction: column;
}

.lvl-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #C7D2FE;
  line-height: 1;
}

.lvl-rank {
  font-size: 0.58rem;
  color: #818CF8;
  text-transform: uppercase;
}

/* Daily Progress Widget */
.phone-progress-card,
.daily-progress-widget {
  background: linear-gradient(145deg, #161A2D 0%, #111425 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.card-head,
.widget-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.card-tag,
.widget-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #94A3B8;
  text-transform: uppercase;
}

.score-ratio {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.completed-big {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
}

.total-big {
  font-size: 0.9rem;
  color: #64748B;
  font-weight: 700;
}

.widget-percentage-bubble {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #A5B4FC;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}

.progress-bar-bg,
.widget-progress-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill,
.widget-progress-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-stats-row,
.widget-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.stat-chip,
.w-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 5px 3px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.stat-chip .val,
.w-stat-number {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
  white-space: nowrap;
}

.stat-chip .lbl,
.w-stat-name {
  font-size: 0.58rem;
  color: #64748B;
  margin-top: 1px;
  white-space: nowrap;
}

.highlight-box .w-stat-number {
  color: #FCD34D;
}

.streak-box .w-stat-number {
  color: #F97316;
}

/* Mini Habit List inside Hero Mockup */
.phone-habits-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  flex: 1;
  overflow: hidden;
}

.mini-habit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 7px 9px;
  border-radius: 9px;
}

.mini-habit-item.checked {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
}

.mini-habit-item .check-box {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid #4B5563;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: #FFFFFF;
  flex-shrink: 0;
}

.mini-habit-item.checked .check-box {
  background: #6366F1;
  border-color: #6366F1;
}

.mini-habit-item .m-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mini-habit-item .m-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #E2E8F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-habit-item .m-cat {
  font-size: 0.62rem;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-habit-item .xp-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #FCD34D;
  flex-shrink: 0;
}

.phone-scroll-prompt {
  margin-top: auto;
  text-align: center;
  font-size: 0.65rem;
  color: #818CF8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 0;
  flex-shrink: 0;
}

/* ==========================================================================
   Section Layouts & General Spacing
   ========================================================================== */
.section {
  padding: clamp(56px, 7vw, 96px) 0;
  position: relative;
  z-index: 2;
}

.dark-section {
  background: linear-gradient(180deg, rgba(10, 12, 19, 0.95) 0%, rgba(7, 8, 13, 0.98) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.card {
  padding: clamp(22px, 3.5vw, 32px) clamp(18px, 3vw, 26px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(18, 22, 35, 0.5);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.card:hover {
  transform: translateY(-3px);
}

.card-problem {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(30, 18, 22, 0.4);
}

.card-problem:hover {
  border-color: rgba(239, 68, 68, 0.5);
}

.card-accent-glow {
  background: linear-gradient(145deg, rgba(30, 27, 60, 0.6) 0%, rgba(18, 21, 38, 0.8) 100%);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 12px 35px -10px rgba(99, 102, 241, 0.25);
}

.card-investor {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(14, 28, 24, 0.4);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.red-icon { background: rgba(239, 68, 68, 0.15); color: #F87171; }
.gradient-icon { background: var(--grad-primary); color: #FFFFFF; }
.green-icon { background: rgba(16, 185, 129, 0.15); color: #34D399; }

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: #FFFFFF;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comparison-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.comparison-list li strong {
  color: #F1F5F9;
}

.check-list li::before {
  content: "✓ ";
  color: #38BDF8;
  font-weight: 800;
}

/* ==========================================================================
   Section 3: Interactive Live App Demo Section
   ========================================================================== */
.interactive-demo-section {
  background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
}

.demo-header-wrapper {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(30px, 5vw, 48px);
}

.demo-header-wrapper .section-subtitle {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(330px, 380px) 1fr;
  gap: clamp(32px, 4.5vw, 56px);
  align-items: center;
}

.interactive-phone-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.interactive-frame {
  height: 720px;
}

.interactive-screen {
  overflow: hidden;
  padding: 14px 12px 8px;
}

/* Habit section inside interactive phone */
.habits-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 2px;
  flex-shrink: 0;
}

.habits-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.habits-subtitle {
  font-size: 0.62rem;
  color: #64748B;
  display: block;
  margin-top: 2px;
}

.quick-add-btn {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #A5B4FC;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-add-btn:hover {
  background: #6366F1;
  color: #FFFFFF;
}

.habits-checklist-scroll {
  flex: 1;
  min-height: 180px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 2px;
  margin-bottom: 8px;
}

.habits-checklist-scroll::-webkit-scrollbar {
  width: 4px;
}
.habits-checklist-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

/* Habit Card in Interactive Phone */
.habit-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 26, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.habit-card:hover {
  background: rgba(28, 34, 56, 0.95);
  border-color: rgba(99, 102, 241, 0.35);
}

.habit-card.completed {
  background: rgba(18, 23, 38, 0.6);
  border-color: rgba(99, 102, 241, 0.2);
}

.habit-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.8px solid #4B5563;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-bounce);
  flex-shrink: 0;
  color: transparent;
}

.habit-card.completed .habit-checkbox {
  background: var(--grad-primary);
  border-color: #8B5CF6;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.check-svg {
  width: 12px;
  height: 12px;
}

.habit-details {
  flex: 1;
  min-width: 0;
}

.habit-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
}

.habit-card.completed .habit-name {
  color: #94A3B8;
  text-decoration: line-through;
  text-decoration-color: rgba(148, 163, 184, 0.4);
}

.habit-meta {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  color: #64748B;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-dot {
  color: #334155;
  flex-shrink: 0;
}

.cat-tag {
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 0.6rem;
  flex-shrink: 0;
}

.cat-academics { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }
.cat-fitness { background: rgba(239, 68, 68, 0.15); color: #F87171; }
.cat-mind { background: rgba(168, 85, 247, 0.15); color: #C084FC; }
.cat-business { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.cat-grooming { background: rgba(236, 72, 153, 0.15); color: #F472B6; }
.cat-personal { background: rgba(16, 185, 129, 0.15); color: #34D399; }

.habit-xp-pill {
  font-size: 0.65rem;
  font-weight: 800;
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.habit-card.completed .habit-xp-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #64748B;
}

/* Bottom Navigation Bar (5 Destinations) */
.phone-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.nav-dest {
  background: transparent;
  border: none;
  color: #64748B;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 7px;
  transition: all var(--transition-fast);
}

.nav-dest svg {
  width: 17px;
  height: 17px;
}

.nav-dest:hover,
.nav-dest.active {
  color: #A5B4FC;
}

.nav-dest.active svg {
  color: #6366F1;
}

.demo-caption {
  margin-top: 12px;
  font-size: 0.74rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.dot-live {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  flex-shrink: 0;
}

/* Demo Side Control Box */
.demo-controls-side {
  display: flex;
  flex-direction: column;
}

.control-box {
  padding: clamp(22px, 3.5vw, 36px) clamp(18px, 3vw, 32px);
}

.box-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #38BDF8;
  margin-bottom: 8px;
}

.control-box h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  margin-bottom: 12px;
}

.control-box p {
  font-size: 0.95rem;
  margin-bottom: 22px;
  line-height: 1.55;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.bullet-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.bullet-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #818CF8;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 2px 7px;
  border-radius: 5px;
  flex-shrink: 0;
}

.bullet-row strong {
  display: block;
  font-size: 0.9rem;
  color: #FFFFFF;
}

.bullet-row p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

.demo-actions-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.pro-tip-alert {
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid #6366F1;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: #CBD5E1;
  line-height: 1.45;
}

.pro-tip-alert strong {
  color: #A5B4FC;
}

/* ==========================================================================
   Section 4: The Six Main Sections (Interactive Tabs)
   ========================================================================== */
.tabs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 22, 35, 0.6);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: clamp(24px, 4vw, 36px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 9px 16px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.tab-btn .tab-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

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

.tab-btn.active {
  background: var(--grad-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.tab-btn.active .tab-num {
  background: rgba(0, 0, 0, 0.25);
  color: #FFFFFF;
}

.tab-content-wrapper {
  position: relative;
}

.tab-pane {
  display: none;
  animation: fadeInPane 0.3s ease;
}

.tab-pane.active {
  display: block;
}

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

.tab-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.tab-info h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin: 8px 0 14px;
}

.tag-accent {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #38BDF8;
  letter-spacing: 0.06em;
}

.lead-text {
  font-size: 0.96rem;
  color: #CBD5E1;
  margin-bottom: 20px;
  line-height: 1.55;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-checklist li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  position: relative;
  padding-left: 22px;
}

.feature-checklist li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #818CF8;
  font-size: 0.8rem;
}

.feature-checklist li strong {
  color: #FFFFFF;
}

/* Tab Visual Previews */
.tab-visual {
  padding: clamp(18px, 3vw, 24px);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mockup-header-fake {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #64748B;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.circle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  flex-shrink: 0;
}

.visual-card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Tab visual helpers */
.mock-dash-top {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  border-radius: 11px;
  margin-bottom: 12px;
}

.m-dash-date { font-size: 0.68rem; color: #818CF8; font-weight: 700; }
.m-dash-hero { font-size: 1.15rem; font-weight: 800; color: #FFFFFF; margin: 3px 0 8px; }
.m-dash-stat-row { display: flex; gap: 6px; flex-wrap: wrap; }
.m-stat-pill { background: rgba(255, 255, 255, 0.05); padding: 3px 8px; border-radius: 5px; font-size: 0.7rem; color: #94A3B8; }
.m-stat-pill.highlight { background: rgba(245, 158, 11, 0.15); color: #FCD34D; }

.mock-dash-list { display: flex; flex-direction: column; gap: 6px; }
.mock-row { padding: 8px 12px; border-radius: 7px; font-size: 0.8rem; display: flex; align-items: center; gap: 8px; }
.mock-row.check { background: rgba(99, 102, 241, 0.1); color: #C7D2FE; }
.mock-row.pending { background: rgba(255, 255, 255, 0.03); color: #64748B; }

.conf-item { margin-bottom: 14px; font-size: 0.85rem; color: #CBD5E1; }
.badge-group { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.mode-toggle { display: flex; flex-direction: column; gap: 5px; margin-top: 5px; font-size: 0.78rem; }
.mode-toggle .m-active { color: #38BDF8; font-weight: 600; }
.sm-txt { font-size: 0.76rem; color: #94A3B8; margin-top: 4px; }

.progression-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.level-badge-large { width: 62px; height: 62px; border-radius: 16px; background: var(--grad-primary); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(99, 102, 241, 0.35); flex-shrink: 0; }
.lvl-num { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.lvl-label { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.05em; }
.lvl-bar-box { flex: 1; min-width: 140px; }
.lvl-text-row { display: flex; justify-content: space-between; font-size: 0.78rem; margin-bottom: 5px; }
.badges-row-preview { display: flex; gap: 6px; flex-wrap: wrap; }
.b-chip { padding: 5px 10px; border-radius: 7px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.b-chip.unlocked { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); color: #6EE7B7; }
.b-chip.locked { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-subtle); color: #64748B; }

.goal-mock-card { background: rgba(255, 255, 255, 0.03); border-radius: 11px; padding: 14px; border: 1px solid var(--border-subtle); }
.goal-hdr { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.72rem; }
.goal-mock-card h4 { font-size: 1.05rem; margin-bottom: 10px; }
.milestones-sublist { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 0.76rem; }
.m-item.done { color: #34D399; }
.m-item.ongoing { color: #FCD34D; font-weight: 600; }

.heatmap-title { font-size: 0.78rem; font-weight: 700; color: #CBD5E1; margin-bottom: 12px; }
.mock-heatmap { display: flex; gap: 5px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 4px; }
.hm-col { display: flex; flex-direction: column; gap: 5px; }
.hm-sq { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.hm-sq.l0 { background: #151928; }
.hm-sq.l1 { background: #1E294B; }
.hm-sq.l2 { background: #3730A3; }
.hm-sq.l3 { background: #4F46E5; }
.hm-sq.l4 { background: #818CF8; }
.heatmap-legend { display: flex; align-items: center; gap: 5px; font-size: 0.68rem; color: #64748B; flex-wrap: wrap; }

.journal-entry-preview { background: rgba(255, 255, 255, 0.03); border-radius: 11px; padding: 14px; }
.j-header { display: flex; justify-content: space-between; font-size: 0.74rem; margin-bottom: 10px; color: #818CF8; }
.j-prompt-box { margin-bottom: 12px; }
.j-prompt { font-size: 0.76rem; color: #94A3B8; font-weight: 600; display: block; margin-bottom: 4px; }
.j-answer { font-size: 0.82rem; color: #F1F5F9; font-style: italic; }
.j-tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* ==========================================================================
   Section 5: Personal Growth Categories
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  margin-bottom: clamp(24px, 4vw, 36px);
}

.category-card {
  background: rgba(18, 22, 36, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 26px) clamp(16px, 2.5vw, 22px);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-4px);
  background: rgba(24, 30, 48, 0.85);
  border-color: rgba(99, 102, 241, 0.4);
}

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

.cat-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cat-academics-bg { background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.3); }
.cat-fitness-bg { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); }
.cat-grooming-bg { background: rgba(236, 72, 153, 0.15); border: 1px solid rgba(236, 72, 153, 0.3); }
.cat-business-bg { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.cat-mind-bg { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.3); }
.cat-personal-bg { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }

.cat-chip {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.category-card h3 {
  font-size: 1.22rem;
  margin-bottom: 6px;
}

.cat-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}

.cat-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ex-tag {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 3px 7px;
  border-radius: 5px;
  color: #CBD5E1;
  white-space: nowrap;
}

.philosophy-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(18px, 3vw, 24px) clamp(18px, 3vw, 30px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: linear-gradient(90deg, rgba(24, 28, 48, 0.8) 0%, rgba(18, 21, 35, 0.9) 100%);
}

.philosophy-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.philosophy-content h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #FFFFFF;
}

.philosophy-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Section 6: Competitive Moat Grid
   ========================================================================== */
.moat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

.moat-card {
  background: rgba(18, 22, 36, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 30px) clamp(18px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-smooth);
}

.moat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
}

.highlight-moat {
  background: linear-gradient(150deg, rgba(28, 26, 56, 0.7) 0%, rgba(16, 20, 36, 0.85) 100%);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.15);
}

.full-width-moat {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.moat-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #818CF8;
  margin-bottom: 10px;
}

.moat-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.moat-card h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.moat-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.moat-pill {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Section 7: Phased Roadmap
   ========================================================================== */
.phases-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 28px);
}

.phase-card {
  background: rgba(18, 22, 36, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 32px) clamp(18px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.phase-card.active-phase {
  border-color: rgba(99, 102, 241, 0.6);
  background: linear-gradient(160deg, rgba(28, 32, 60, 0.7) 0%, rgba(15, 18, 30, 0.9) 100%);
  box-shadow: 0 14px 35px -10px rgba(99, 102, 241, 0.3);
  position: relative;
}

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

.phase-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: #818CF8;
}

.phase-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.phase-status.in-progress { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.phase-status.upcoming { background: rgba(56, 189, 248, 0.15); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.3); }
.phase-status.future { background: rgba(255, 255, 255, 0.05); color: #94A3B8; border: 1px solid var(--border-subtle); }

.phase-title-group {
  margin-bottom: 12px;
}

.phase-title-group h3 {
  font-size: 1.35rem;
  margin-bottom: 2px;
}

.phase-horizon {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.phase-lead {
  font-size: 0.88rem;
  color: #CBD5E1;
  margin-bottom: 18px;
  line-height: 1.45;
}

.phase-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  flex: 1;
}

.phase-deliverables li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.d-icon {
  font-weight: 800;
  color: #38BDF8;
  flex-shrink: 0;
}

.phase-kpi {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: #94A3B8;
}

.phase-kpi strong {
  color: #FFFFFF;
}

/* ==========================================================================
   Section 8: Next.js Architecture
   ========================================================================== */
.arch-container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 3.5vw, 36px);
}

.arch-code-block {
  padding: clamp(16px, 2.5vw, 22px);
  background: #090B14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  max-width: 100%;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.code-dots {
  display: flex;
  gap: 5px;
}

.code-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334155;
}

.code-dots span:nth-child(1) { background: #EF4444; }
.code-dots span:nth-child(2) { background: #F59E0B; }
.code-dots span:nth-child(3) { background: #10B981; }

.code-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #94A3B8;
}

.tree-pre {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.8vw, 0.78rem);
  line-height: 1.5;
  color: #E2E8F0;
  white-space: pre;
  overflow-x: auto;
}

.folder { color: #818CF8; font-weight: 600; }
.file { color: #38BDF8; }
.comment { color: #64748B; font-style: italic; }

.arch-details-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stack-box,
.principles-box {
  padding: clamp(20px, 3vw, 26px);
}

.stack-box h4,
.principles-box h4 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.stack-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stack-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  border-radius: 9px;
}

.st-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stack-badge strong {
  display: block;
  font-size: 0.78rem;
  color: #FFFFFF;
  line-height: 1.2;
}

.stack-badge small {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
}

.principles-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.pr-check {
  color: #10B981;
  font-weight: 800;
  flex-shrink: 0;
}

.principle-item strong {
  color: #F8FAFC;
}

/* ==========================================================================
   Section 9: Business Model & Valuation Calculator
   ========================================================================== */
.pricing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 28px);
  margin-bottom: clamp(32px, 5vw, 48px);
}

.pricing-card {
  background: rgba(18, 22, 36, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 32px) clamp(18px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-smooth);
}

.featured-tier {
  background: linear-gradient(160deg, rgba(30, 28, 64, 0.8) 0%, rgba(17, 21, 38, 0.95) 100%);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: var(--glass-shadow-lg);
}

.featured-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
  white-space: nowrap;
}

.tier-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #818CF8;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.pricing-card h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 6px;
}

.tier-price span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tier-price small {
  display: block;
  font-size: 0.78rem;
  color: #38BDF8;
  margin-top: 3px;
  font-weight: 600;
}

.tier-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.45;
  min-height: 38px;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  flex: 1;
}

.tier-features li {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.funnel-metric {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  font-weight: 600;
  color: #A5B4FC;
  text-align: center;
}

/* Calculator Component */
.calculator-wrapper {
  padding: clamp(20px, 4vw, 36px) clamp(16px, 3.5vw, 32px);
}

.calc-header {
  margin-bottom: 24px;
}

.calc-header h3 {
  font-size: clamp(1.4rem, 2.8vw, 1.75rem);
  margin: 8px 0 4px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 36px);
  align-items: center;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #E2E8F0;
}

.val-display {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #38BDF8;
}

.styled-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 9px;
  border-radius: 5px;
  background: #1E2338;
  outline: none;
  transition: background 0.2s;
  cursor: pointer;
}

.styled-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
  border: 2px solid #FFFFFF;
}

.styled-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
  border: 2px solid #FFFFFF;
}

.calc-outputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.out-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.out-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 3px;
}

.out-num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  word-break: break-word;
}

.out-num.highlight {
  color: #38BDF8;
}

.out-num.val-large {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  color: #10B981;
}

/* ==========================================================================
   Section 10: Investor Call to Action / Terms
   ========================================================================== */
.cta-section {
  padding-bottom: clamp(60px, 8vw, 100px);
}

.cta-card {
  padding: clamp(36px, 6vw, 56px) clamp(18px, 4vw, 44px);
  position: relative;
  overflow: hidden;
  text-align: center;
  border-color: rgba(99, 102, 241, 0.4);
}

.cta-glow-bg {
  position: absolute;
  top: -50%;
  left: 20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.85rem, 4.5vw, 2.8rem);
  margin: 14px 0 16px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cta-lead {
  font-size: clamp(0.96rem, 2vw, 1.15rem);
  color: #CBD5E1;
  margin-bottom: 30px;
  line-height: 1.55;
}

.cta-lead strong {
  color: #FFFFFF;
}

.investment-terms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: rgba(14, 17, 30, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 30px;
}

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

.term-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.term-val {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 800;
  color: #FFFFFF;
}

.cta-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #05060A;
  border-top: 1px solid var(--border-subtle);
  padding: clamp(48px, 6vw, 70px) 0 36px;
  position: relative;
  z-index: 10;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: clamp(32px, 5vw, 60px);
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  font-size: 1.4rem;
}

.footer-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 380px;
  line-height: 1.55;
}

.dribbble-attribution {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dribbble-attribution a {
  color: #EC4899;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dribbble-attribution a:hover {
  color: #F472B6;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: #38BDF8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.privacy-terms {
  display: flex;
  gap: 10px;
  align-items: center;
}

.privacy-terms a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Investor Pitch Deck Request Modal (Fluid Mobile Fit)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 34px) clamp(18px, 3.5vw, 28px);
  background: #111425;
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.25);
  transform: scale(0.95);
  transition: transform var(--transition-bounce);
  position: relative;
  border-radius: var(--radius-lg);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94A3B8;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.modal-header {
  margin-bottom: 18px;
}

.modal-header h3 {
  font-size: 1.45rem;
  margin: 8px 0 4px;
}

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

.investor-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #CBD5E1;
}

.form-group input,
.form-group select {
  background: #0B0E1B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 10px 12px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.modal-success-state {
  text-align: center;
  padding: 16px 0;
}

.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid #10B981;
  color: #10B981;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.modal-success-state h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.modal-success-state p {
  font-size: 0.86rem;
  margin-bottom: 20px;
}

/* ==========================================================================
   Floating Investor Quick Action Bar
   ========================================================================== */
.floating-invest-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  background: rgba(18, 22, 38, 0.94);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 12px 8px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: slideUpFloat 0.7s ease-out;
  max-width: calc(100vw - 40px);
}

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

.float-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulseGreen 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.float-text strong {
  display: block;
  font-size: 0.8rem;
  color: #FFFFFF;
  line-height: 1.1;
  white-space: nowrap;
}

.float-text small {
  font-size: 0.68rem;
  color: #38BDF8;
  display: block;
  white-space: nowrap;
}

/* ==========================================================================
   Responsive Breakpoints & Space Collision Protections
   ========================================================================== */

/* Tablet & Smaller Desktop Screens (<= 1080px) */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .nav-hide-mobile {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 44px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-lead, .section-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-pill {
    align-self: center;
  }
  .pillars-row {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group, .hero-stats {
    justify-content: center;
  }
  .top-badge,
  .bottom-badge {
    display: none; /* Prevent horizontal bleed on tablets */
  }
  .demo-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .demo-controls-side {
    max-width: 580px;
    width: 100%;
  }
  .tab-grid {
    grid-template-columns: 1fr;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .moat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .full-width-moat {
    grid-column: span 2;
  }
  .phases-timeline {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin: 0 auto;
  }
  .arch-container {
    grid-template-columns: 1fr;
  }
  .pricing-tiers-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto 36px;
  }
  .featured-tier {
    transform: none; /* Remove transform so cards never collide */
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .investment-terms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Medium Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .moat-grid {
    grid-template-columns: 1fr;
  }
  .full-width-moat {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
  .phone-frame,
  .interactive-frame {
    max-width: 340px;
    height: 670px;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
  }
  .stat-divider {
    display: none;
  }
  .stat-number {
    font-size: 1.4rem;
  }
  .stat-label {
    font-size: 0.65rem;
  }
  .floating-invest-bar {
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: space-between;
    max-width: calc(100vw - 28px);
  }
  .footer-links-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Small Smartphone Displays (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero-section {
    padding-top: 36px;
    padding-bottom: 48px;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .pillars-row {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .phone-frame,
  .interactive-frame {
    max-width: 310px;
    height: 640px;
    border-width: 5px;
    border-radius: 34px;
  }
  .phone-screen {
    padding: 10px 8px 6px;
  }
  .stack-badges-grid {
    grid-template-columns: 1fr;
  }
  .investment-terms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
  }
  .cta-buttons-row .btn {
    width: 100%;
  }
  .floating-invest-bar {
    padding: 6px 10px 6px 12px;
  }
  .float-text small {
    display: none; /* Hide subtitle on very small screens */
  }
  .footer-links-group {
    grid-template-columns: 1fr;
  }
  .philosophy-box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .demo-actions-cluster {
    flex-direction: column;
    align-items: stretch;
  }
  .demo-actions-cluster .btn {
    width: 100%;
  }
}
