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

/* ==========================================
   DESIGN TOKENS & PREMIUM VARIABLES
   ========================================== */
:root {
  --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Century Gothic', CenturyGothic, 'Outfit', AppleGothic, sans-serif;

  /* Color Palette - True Dark Mode */
  --bg-dark: #030712;
  --bg-dark-rgb: 3, 7, 18;
  --bg-card: #090e1a;
  --bg-card-hover: #111827;
  --border-color: rgba(255, 255, 255, 0.05);
  --border-color-glow: rgba(168, 85, 247, 0.2);

  /* Vibrant Accents */
  --primary-rgb: 168, 85, 247;
  /* Violet #a855f7 */
  --secondary-rgb: 244, 63, 94;
  /* Rose #f43f5e */
  --cyan-rgb: 6, 182, 212;
  /* Cyan #06b6d4 */
  --emerald-rgb: 16, 185, 129;
  /* Emerald #10b981 */
  --amber-rgb: 245, 158, 11;
  /* Amber #f59e0b */

  --primary: rgb(var(--primary-rgb));
  --secondary: rgb(var(--secondary-rgb));
  --cyan: rgb(var(--cyan-rgb));
  --emerald: rgb(var(--emerald-rgb));
  --amber: rgb(var(--amber-rgb));

  --text-primary: 210 40% 98%;
  --text-secondary: 215 20% 75%;
  --text-muted: 215 16% 55%;

  /* Shadows & Premium Glows */
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 24px -10px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 0 50px -10px rgba(var(--primary-rgb), 0.25);

  /* Layout */
  --container-max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

/* Dotted grid backdrop overlay */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.015) 1.5px, transparent 1.5px);
  background-size: 28px 28px, 56px 56px;
  background-position: 0 0, 14px 14px;
  pointer-events: none;
  z-index: -2;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--primary-rgb), 0.6);
}

/* Typography & Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}

p {
  color: hsl(var(--text-secondary));
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 40%, #c084fc 70%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-accent {
  background: linear-gradient(135deg, #38bdf8 0%, #a855f7 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  color: #c084fc;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: #fff;
  color: var(--bg-dark);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.2), 0 0 15px rgba(var(--primary-rgb), 0.3);
}

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

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

.btn-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5px;
}

/* Premium Card Layouts with Mouse Spotlight Glow */
.spotlight-card {
  position: relative;
  background: rgba(9, 14, 26, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(255, 255, 255, 0.06),
      transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.spotlight-card:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(var(--primary-rgb), 0.05);
  transform: translateY(-2px);
}

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

/* Ambient Background Lights */
.bg-glowing-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -5;
  pointer-events: none;
  opacity: 0.12;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background-color: var(--primary);
  top: -10%;
  right: 5%;
}

.blob-2 {
  width: 700px;
  height: 700px;
  background-color: var(--secondary);
  top: 40%;
  left: -20%;
}

.blob-3 {
  width: 600px;
  height: 600px;
  background-color: var(--cyan);
  bottom: 5%;
  right: -10%;
}

/* Dotted grid backdrop for hero */
.grid-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 850px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
  mask-image: radial-gradient(circle at 50% 35%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, black, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

/* Reveal on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   FLOATING CAPSULE HEADER
   ========================================== */
.header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1100px;
  height: 64px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  background: rgba(9, 14, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 1rem;
}

.header.scrolled {
  top: 0.75rem;
  background: rgba(3, 7, 18, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--primary-rgb), 0.05);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
}

.logo-mark {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-wordmark {
  display: block;
  height: 28px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
}

.logo-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5px;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--text-secondary));
  transition: color 0.2s ease;
  position: relative;
  padding: 0.35rem 0;
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta .btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* ==========================================
   CENTERED HERO SECTION
   ========================================== */
.hero {
  padding-top: 9rem;
  padding-bottom: 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto 5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-title {
  font-size: 4.25rem;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: hsl(var(--text-secondary));
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 640px) {
  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-ctas .btn {
    width: 100%;
  }
}

.hero-stats {
  display: flex;
  gap: 3.5rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 850px) {
  .hero-stats {
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .hero-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 1rem;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1 1 auto;
  min-width: 120px;
}

@media (max-width: 480px) {
  .stat-item {
    flex: 1 1 45%;
    min-width: auto;
  }
}

.stat-val {
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
}

.stat-lbl {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Massive Premium Dashboard Graphic (Isometric Look) */
.hero-preview {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard-wrapper {
  background: rgba(9, 14, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9), 0 0 50px rgba(var(--primary-rgb), 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 520px;
  width: 100%;
}

@media (max-width: 850px) {
  .dashboard-wrapper {
    height: 450px;
  }
}

@media (max-width: 640px) {
  .dashboard-wrapper {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .dashboard-wrapper {
    height: 320px;
    border-radius: 16px;
  }
}

.dashboard-header {
  height: 56px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-controls {
  display: flex;
  gap: 0.4rem;
}

.control-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.control-dot.red {
  background-color: var(--secondary);
}

.control-dot.yellow {
  background-color: var(--amber);
}

.control-dot.green {
  background-color: var(--emerald);
}

.dashboard-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.dashboard-tab {
  background: none;
  border: none;
  color: hsl(var(--text-secondary));
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dashboard-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dashboard-content {
  flex-grow: 1;
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

/* Floating HUD cards overlapping the main dashboard (Stripe-style) */
.floating-hud {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(9, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  text-align: left;
  z-index: 10;
  pointer-events: none;
  animation: floatHUD 6s ease-in-out infinite;
}

.hud-1 {
  bottom: 40px;
  left: -40px;
  width: 220px;
  animation-delay: 0s;
}

.hud-2 {
  top: 80px;
  right: -50px;
  width: 240px;
  animation-delay: 3s;
}

@keyframes floatHUD {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hud-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: hsl(var(--text-muted));
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hud-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.hud-desc {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
}

.hud-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.hud-indicator.pulse {
  animation: hudPulse 1.5s infinite alternate;
}

@keyframes hudPulse {
  to {
    transform: scale(1.4);
    opacity: 0.5;
  }
}

/* Panels */
.panel {
  display: none;
  height: 100%;
}

.panel.active {
  display: block;
}

/* Kanban Panel Custom Premium Styling */
.panel-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  height: 100%;
}

.kanban-col {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.col-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--text-muted));
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.5rem;
}

.col-header span.badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  color: #fff;
}

.kanban-item {
  background: rgba(3, 7, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem;
  text-align: left;
}

.kanban-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.kanban-item .item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
}

.item-tag {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

.item-tag.purple {
  background: rgba(var(--primary-rgb), 0.12);
  color: #d8b4fe;
}

.item-tag.blue {
  background: rgba(var(--cyan-rgb), 0.12);
  color: #67e8f9;
}

.item-tag.green {
  background: rgba(var(--emerald-rgb), 0.12);
  color: #34d399;
}

.item-tag.red {
  background: rgba(var(--secondary-rgb), 0.12);
  color: #fca5a5;
}

.item-avatars {
  display: flex;
}

.item-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-card);
  margin-left: -6px;
}

/* Timeline Gantt Styling */
.timeline-gantt {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gantt-row {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  text-align: left;
}

.gantt-label {
  width: 120px;
  font-weight: 600;
  color: #fff;
}

.gantt-track {
  flex-grow: 1;
  height: 32px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  position: relative;
}

.gantt-bar {
  position: absolute;
  height: 100%;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.gantt-bar.p1 {
  left: 10%;
  width: 50%;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.8), rgba(var(--cyan-rgb), 0.8));
}

.gantt-bar.p2 {
  left: 40%;
  width: 45%;
  background: linear-gradient(90deg, rgba(var(--secondary-rgb), 0.8), rgba(var(--primary-rgb), 0.8));
}

.gantt-bar.p3 {
  left: 20%;
  width: 65%;
  background: linear-gradient(90deg, rgba(var(--emerald-rgb), 0.8), rgba(var(--cyan-rgb), 0.8));
}

/* Dashboard Velocity */
.panel-dash {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 1.5rem;
  height: 100%;
}

.dash-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dash-card h5 {
  font-size: 0.85rem;
  color: hsl(var(--text-muted));
  margin-bottom: 1rem;
}

.chart-svg {
  width: 100%;
  height: 220px;
}

.chart-path {
  fill: none;
  stroke: url(#chart-grad);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* ==========================================
   LOGO MARQUEE
   ========================================== */
.trust {
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.005) 50%, transparent 100%);
  overflow: hidden;
}

.trust-title {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--text-muted));
  font-weight: 700;
  margin-bottom: 3rem;
}

.logo-slider {
  display: flex;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.logo-track {
  display: flex;
  width: calc(240px * 10);
  animation: scrollLogos 30s linear infinite;
  gap: 6rem;
}

.logo-item {
  width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.logo-item:hover {
  opacity: 0.8;
}

.logo-item svg {
  max-width: 100%;
  max-height: 100%;
  fill: #fff;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-240px * 5));
  }
}

/* ==========================================
   THE SANDBOX WORKSPACE
   ========================================== */
.sandbox {
  padding: 10rem 0;
  position: relative;
}

.sandbox-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 850px) {
  .sandbox-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 480px) {
  .sandbox-container {
    gap: 2rem;
  }
}

.sandbox-info h2 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.sandbox-info p {
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
}

.sandbox-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.sandbox-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.sandbox-features li svg {
  width: 18px;
  height: 18px;
  stroke: var(--emerald);
  fill: none;
  stroke-width: 2.5px;
}

.quick-add-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.quick-add-input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 0.65rem 1.25rem;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.quick-add-input:focus {
  outline: none;
  border-color: rgba(var(--primary-rgb), 0.5);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.1);
}

.btn-add {
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: #fff;
  color: var(--bg-dark);
  border: none;
  font-family: var(--font-primary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add:hover {
  background: rgba(255, 255, 255, 0.9);
}

.sandbox-board-wrapper {
  background: rgba(9, 14, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.board-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.board-title-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald);
}

.board-title h3 {
  font-size: 1.1rem;
}

.sandbox-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  min-height: 400px;
}

@media (max-width: 850px) {
  .sandbox-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sandbox-board {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.sandbox-column {
  background: rgba(255, 255, 255, 0.005);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sandbox-column.dragover {
  background: rgba(var(--primary-rgb), 0.02);
  border-color: rgba(var(--primary-rgb), 0.3);
  border-style: dashed;
}

.sandbox-col-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--text-muted));
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.5rem;
}

.sandbox-col-header span.count {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  color: #fff;
}

.sandbox-card {
  background: rgba(9, 14, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  cursor: grab;
  position: relative;
  transition: all 0.2s ease;
  user-select: none;
}

.sandbox-card:active {
  cursor: grabbing;
}

.sandbox-card.dragging {
  opacity: 0.4;
  transform: scale(0.96);
  border-color: var(--primary);
}

.sandbox-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.sandbox-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sandbox-card-tag {
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-card-delete {
  background: none;
  border: none;
  color: hsl(var(--text-muted));
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  padding: 0.2rem;
  border-radius: 4px;
}

.sandbox-card:hover .btn-card-delete {
  opacity: 1;
}

.btn-card-delete:hover {
  color: var(--secondary);
  background: rgba(244, 63, 94, 0.12);
}

.btn-card-delete svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5px;
}

.empty-col-message {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
  text-align: center;
  padding: 2.5rem 0;
  border: 1px dashed rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

/* ==========================================
   BENTO GRID FEATURES
   ========================================== */
.features {
  padding: 10rem 0;
}

.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 340px);
  gap: 1.5rem;
}

.feature-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  z-index: 1;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), z-index 0s;
}

.feature-card:hover {
  transform: scale(1.04);
  z-index: 10;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 50px rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.4);
}

.feature-card.alt-accent:hover {
  border-color: rgba(var(--cyan-rgb), 0.4);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 50px rgba(var(--cyan-rgb), 0.08);
}

.feature-card.alt-accent-rose:hover {
  border-color: rgba(var(--secondary-rgb), 0.4);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 50px rgba(var(--secondary-rgb), 0.08);
}

/* Expanded state – card breaks out of grid into a centered overlay */
.feature-card-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.feature-card-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.feature-card.expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 1000;
  width: 90vw;
  max-width: 720px;
  max-height: 85vh;
  overflow: visible;
  overflow-y: auto;
  padding: 3rem;
  background: rgba(9, 14, 26, 0.95);
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  border-radius: 20px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.95), 0 0 80px rgba(var(--primary-rgb), 0.12);
  animation: featureExpandIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  cursor: default;
}

.feature-card.expanded:hover {
  transform: translate(-50%, -50%) scale(1);
}

@keyframes featureExpandIn {
  from {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.85);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.feature-card.col-span-2 {
  grid-column: span 2;
}

.feature-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-icon-wrapper svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5px;
}

.feature-card.alt-accent .feature-icon-wrapper {
  background: rgba(var(--cyan-rgb), 0.06);
  border-color: rgba(var(--cyan-rgb), 0.12);
  color: var(--cyan);
}

.feature-card.alt-accent-rose .feature-icon-wrapper {
  background: rgba(var(--secondary-rgb), 0.06);
  border-color: rgba(var(--secondary-rgb), 0.12);
  color: var(--secondary);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: hsl(var(--text-secondary));
  max-width: 450px;
}

.feature-visual {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 2rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: #c084fc;
}

/* Workflow nodes visual */
.workflow-editor {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  height: 70px;
}

.workflow-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #fff;
}

.workflow-node.active {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.15);
}

.workflow-arrow {
  color: hsl(var(--text-muted));
  font-weight: 700;
}

.cmd-bar-sim {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  color: hsl(var(--text-secondary));
}

.cmd-bar-sim span.cursor-line {
  width: 2px;
  height: 14px;
  background: var(--cyan);
  animation: cursorBlink 1.2s step-end infinite;
}

.collaboration-sim {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 70px;
}

.user-cursor {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px 10px 10px 10px;
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  animation: floatCursor 5s ease-in-out infinite;
}

.user-cursor.c1 {
  background: var(--primary);
  left: 20%;
  top: 15px;
  animation-delay: 0s;
}

.user-cursor.c2 {
  background: var(--cyan);
  right: 25%;
  bottom: 10px;
  animation-delay: 2.5s;
}

/* Secrets / Key Value store visual */
.secrets-store {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.secret-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  font-size: 0.7rem;
}

.secret-key {
  color: #fca5a5;
  font-weight: 600;
}

.secret-val {
  color: hsl(var(--text-muted));
}

/* Multi-chart Bento widget visual */
.bento-chart-container {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-evenly;
  height: 120px;
  padding-bottom: 0.5rem;
}

.bento-chart-bar {
  width: 32px;
  background: linear-gradient(180deg, var(--secondary) 0%, transparent 100%);
  border-radius: 6px 6px 0 0;
  height: 20%;
  animation: growBar 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes growBar {
  from {
    height: 0;
  }
}

/* ==========================================
   ROI CALCULATOR
   ========================================== */
.calculator {
  padding: 10rem 0;
  position: relative;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.slider-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.slider-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cyan);
  font-family: var(--font-display);
}

/* Premium Range styling overrides */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 5px rgba(var(--cyan-rgb), 0.5);
  transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: var(--cyan);
}

/* ROI Output Dashboard Card */
.calc-output-card {
  padding: 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.output-value-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.output-label {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.output-number {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.output-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2.5rem;
}

.metric-box {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
}

.metric-lbl {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
  margin-top: 0.25rem;
}

/* ==========================================
   PRICING
   ========================================== */
.pricing {
  padding: 10rem 0;
}

.pricing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 5rem;
}

.pricing-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(var(--text-secondary));
  transition: color 0.3s ease;
}

.pricing-label.active {
  color: #fff;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.05);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.toggle-slider {
  background-color: var(--primary);
  border-color: rgba(var(--primary-rgb), 0.3);
}

input:checked+.toggle-slider:before {
  transform: translateX(24px);
}

.pricing-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(var(--emerald-rgb), 0.12);
  color: #34d399;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(var(--emerald-rgb), 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: rgba(var(--primary-rgb), 0.45);
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.04) 0%, rgba(9, 14, 26, 0.5) 100%);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(var(--primary-rgb), 0.05);
  overflow: visible;
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.pricing-tier {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--text-muted));
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.pricing-price span.amount {
  transition: opacity 0.15s ease;
}

.pricing-price span.term {
  font-size: 0.95rem;
  color: hsl(var(--text-muted));
  font-weight: 500;
  margin-left: 0.35rem;
  font-family: var(--font-primary);
  letter-spacing: 0;
}

.pricing-desc {
  font-size: 0.95rem;
  margin-bottom: 2.25rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 3rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: hsl(var(--text-secondary));
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 3px;
}

.pricing-card.popular .pricing-features li svg {
  stroke: var(--secondary);
}

.pricing-features li.disabled {
  opacity: 0.35;
}

.pricing-features li.disabled svg {
  stroke: hsl(var(--text-muted));
}

.pricing-card .btn {
  width: 100%;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials {
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
}

.testimonials-carousel-wrapper {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  padding: 4rem;
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1.75rem;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--amber);
}

.testimonial-text {
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 2.25rem;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.testimonial-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.testimonial-meta h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.testimonial-meta p {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-carousel {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-carousel:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.btn-carousel svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5px;
}

/* ==========================================
   FAQ ACCORDIONS
   ========================================== */
.faq {
  padding: 10rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: rgba(var(--primary-rgb), 0.2);
  background: rgba(var(--primary-rgb), 0.01);
}

.faq-question {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.2s ease;
  font-family: var(--font-primary);
  letter-spacing: -0.01em;
}

.faq-item:hover .faq-question h3 {
  color: var(--cyan);
}

.faq-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
}

.faq-item.active .faq-icon-wrapper {
  transform: rotate(180deg);
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
}

.faq-icon-wrapper svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding: 0 2rem 1.75rem 2rem;
  color: hsl(var(--text-secondary));
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: #01040a;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 7rem 0 3rem 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 5rem;
  margin-bottom: 5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 1.5rem;
}

.footer-logo-wordmark {
  display: block;
  width: auto;
  height: 26px;
  max-width: 112px;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.9rem;
  margin-bottom: 2.25rem;
  max-width: 320px;
}

.footer-newsletter h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 340px;
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  padding: 0.65rem 1.25rem;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  width: 100%;
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(var(--primary-rgb), 0.5);
}

.newsletter-btn {
  background: #fff;
  color: var(--bg-dark);
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.newsletter-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-nav h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: hsl(var(--text-secondary));
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 2.5rem;
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a {
  color: hsl(var(--text-muted));
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: #fff;
}

.footer-socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================
   THEME TOGGLE FAB (Bottom-Right)
   ========================================== */
.theme-toggle-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 14, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--primary-rgb), 0.1);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  color: #fff;
}

.theme-toggle-fab:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.theme-toggle-fab:active {
  transform: scale(0.95);
}

.theme-icon {
  width: 22px;
  height: 22px;
  transition: opacity 0.3s ease, transform 0.4s ease;
  position: absolute;
}

/* Default (dark mode): show moon, hide sun */
.theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-icon-sun {
  opacity: 0;
  transform: rotate(-90deg);
}

/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg);
}

/* ==========================================
   LIGHT THEME OVERRIDES
   ========================================== */
[data-theme="light"] {
  --bg-dark: #f5f5f7;
  --bg-dark-rgb: 245, 245, 247;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f5;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-glow: rgba(168, 85, 247, 0.15);

  --text-primary: 220 15% 15%;
  --text-secondary: 220 10% 45%;
  --text-muted: 220 8% 60%;

  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 24px -10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 50px -10px rgba(var(--primary-rgb), 0.15);
}

/* Body & Background */
[data-theme="light"] body {
  background-color: var(--bg-dark);
}

[data-theme="light"] body::before {
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.03) 1.5px, transparent 1.5px);
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: #f0f0f5;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-color: #f0f0f5;
}

/* Typography */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: #1a1a2e;
}

/* Gradient Text */
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #1a1a2e 0%, #7c3aed 40%, #a855f7 70%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .gradient-text-accent {
  background: linear-gradient(135deg, #0284c7 0%, #7c3aed 50%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Tag */
[data-theme="light"] .section-tag {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.15);
  color: #7c3aed;
}

/* Buttons */
[data-theme="light"] .btn-primary {
  background: #1a1a2e;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-primary:hover {
  background: #2d2d4e;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2), 0 0 15px rgba(var(--primary-rgb), 0.2);
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a2e;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Spotlight Cards */
[data-theme="light"] .spotlight-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .spotlight-card::before {
  background: radial-gradient(450px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(0, 0, 0, 0.03),
      transparent 40%);
}

[data-theme="light"] .spotlight-card:hover {
  border-color: rgba(var(--primary-rgb), 0.25);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1), 0 0 30px rgba(var(--primary-rgb), 0.06);
}

/* Background Blobs */
[data-theme="light"] .bg-glowing-blob {
  opacity: 0.06;
}

/* Grid Backdrop */
[data-theme="light"] .grid-backdrop {
  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);
}

/* Header */
[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08), 0 0 20px rgba(var(--primary-rgb), 0.04);
}

[data-theme="light"] .logo {
  color: #1a1a2e;
}

[data-theme="light"] .nav-links a {
  color: #555;
}

[data-theme="light"] .nav-links a:hover {
  color: #1a1a2e;
}

/* Menu toggle */
[data-theme="light"] .menu-toggle span {
  background: #1a1a2e;
}

/* Hero stats */
[data-theme="light"] .stat-val {
  color: #1a1a2e;
}

/* Dashboard */
[data-theme="light"] .dashboard-wrapper {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1), 0 0 50px rgba(var(--primary-rgb), 0.04);
}

[data-theme="light"] .dashboard-header {
  background: rgba(0, 0, 0, 0.02);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .dashboard-tabs {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .dashboard-tab.active {
  background: rgba(0, 0, 0, 0.07);
  color: #1a1a2e;
}

/* Floating HUD */
[data-theme="light"] .floating-hud {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hud-title {
  color: #1a1a2e;
}

/* Kanban */
[data-theme="light"] .kanban-col {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .col-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .col-header span.badge {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a2e;
}

[data-theme="light"] .kanban-item {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.06);
}

/* Gantt */
[data-theme="light"] .gantt-label {
  color: #1a1a2e;
}

[data-theme="light"] .gantt-track {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .gantt-bar {
  color: #fff;
}

/* Trust Logos */
[data-theme="light"] .trust {
  border-top-color: rgba(0, 0, 0, 0.05);
  border-bottom-color: rgba(0, 0, 0, 0.05);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.01) 50%, transparent 100%);
}

[data-theme="light"] .logo-item svg {
  fill: #1a1a2e;
}

[data-theme="light"] .logo-item svg text {
  fill: #1a1a2e;
}

[data-theme="light"] .logo-item svg circle,
[data-theme="light"] .logo-item svg path,
[data-theme="light"] .logo-item svg rect,
[data-theme="light"] .logo-item svg polygon,
[data-theme="light"] .logo-item svg line {
  stroke: #1a1a2e;
}

/* Sandbox */
[data-theme="light"] .quick-add-input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a2e;
}

[data-theme="light"] .btn-add {
  background: #1a1a2e;
  color: #fff;
}

[data-theme="light"] .btn-add:hover {
  background: #2d2d4e;
}

[data-theme="light"] .sandbox-board-wrapper {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .sandbox-column {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .sandbox-col-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .sandbox-col-header span.count {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a2e;
}

[data-theme="light"] .sandbox-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .sandbox-card-title {
  color: #1a1a2e;
}

[data-theme="light"] .empty-col-message {
  border-color: rgba(0, 0, 0, 0.06);
}

/* Feature Cards */
[data-theme="light"] .feature-card:hover {
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.12), 0 0 50px rgba(var(--primary-rgb), 0.06);
}

[data-theme="light"] .feature-card.alt-accent:hover {
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.12), 0 0 50px rgba(var(--cyan-rgb), 0.06);
}

[data-theme="light"] .feature-card.alt-accent-rose:hover {
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.12), 0 0 50px rgba(var(--secondary-rgb), 0.06);
}

[data-theme="light"] .feature-visual {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .workflow-node {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1a2e;
}

[data-theme="light"] .cmd-bar-sim {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .secret-row {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .secret-key {
  color: #e11d48;
}

/* Feature Card Expanded */
[data-theme="light"] .feature-card-backdrop {
  background: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .feature-card.expanded {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15), 0 0 80px rgba(var(--primary-rgb), 0.08);
}

/* ROI Calculator */
[data-theme="light"] input[type="range"] {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] input[type="range"]::-webkit-slider-thumb {
  background: #1a1a2e;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2), 0 0 5px rgba(var(--cyan-rgb), 0.3);
}

[data-theme="light"] input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--cyan);
}

[data-theme="light"] .slider-title {
  color: #1a1a2e;
}

[data-theme="light"] .output-number {
  color: #1a1a2e;
}

[data-theme="light"] .metric-val {
  color: #1a1a2e;
}

[data-theme="light"] .output-metrics {
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* Pricing */
[data-theme="light"] .pricing-label.active {
  color: #1a1a2e;
}

[data-theme="light"] .toggle-slider {
  background-color: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .toggle-slider:before {
  background-color: #1a1a2e;
}

[data-theme="light"] .pricing-card.popular {
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.06) 0%, rgba(255, 255, 255, 0.8) 100%);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.1), 0 0 40px rgba(var(--primary-rgb), 0.06);
}

[data-theme="light"] .popular-badge {
  background: #1a1a2e;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .pricing-price {
  color: #1a1a2e;
}

/* Testimonials */
[data-theme="light"] .testimonial-text {
  color: #1a1a2e;
}

[data-theme="light"] .testimonial-meta h4 {
  color: #1a1a2e;
}

[data-theme="light"] .btn-carousel {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1a2e;
}

[data-theme="light"] .btn-carousel:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
}

/* FAQ */
[data-theme="light"] .faq-item {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .faq-icon-wrapper {
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a2e;
}

/* Footer */
[data-theme="light"] .footer {
  background: #e8e8ec;
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .footer-newsletter h4 {
  color: #1a1a2e;
}

[data-theme="light"] .newsletter-input {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a2e;
}

[data-theme="light"] .newsletter-btn {
  background: #1a1a2e;
  color: #fff;
}

[data-theme="light"] .footer-nav a {
  color: #555;
}

[data-theme="light"] .footer-nav a:hover {
  color: #1a1a2e;
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .footer-socials a {
  color: #555;
}

[data-theme="light"] .footer-socials a:hover {
  color: #1a1a2e;
}

/* Theme Toggle FAB in Light Mode */
[data-theme="light"] .theme-toggle-fab {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 20px rgba(var(--primary-rgb), 0.06);
  color: #1a1a2e;
}

[data-theme="light"] .theme-toggle-fab:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 30px rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.2);
}

/* Mobile Nav in Light Mode */
[data-theme="light"] .nav-links.active,
@media (max-width: 640px) {
  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.98);
    border-left-color: rgba(0, 0, 0, 0.06);
  }
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */

/* Tablet & Small Laptop (1200px to 1024px) */
@media (max-width: 1200px) {
  .container {
    max-width: 95%;
  }

  h1 {
    font-size: 3.75rem;
  }

  .hero-title {
    font-size: 3.75rem;
  }
}

/* Tablet Landscape (1024px to 850px) */
@media (max-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .features-bento {
    grid-template-rows: repeat(2, 360px);
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .pricing-grid {
    max-width: 500px;
    margin: 0 auto;
  }

  .logo-slider {
    gap: 2rem;
  }
}

/* Tablet Portrait (850px to 640px) */
@media (max-width: 850px) {
  .header {
    width: calc(100% - 2rem);
    top: 1rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .section-header h2 {
    font-size: 2.25rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .floating-hud {
    font-size: 0.85rem;
  }

  .features-bento {
    grid-template-rows: auto;
    grid-template-columns: 1fr;
    height: auto;
  }

  .feature-card {
    height: auto;
    gap: 1.5rem;
  }

  .pricing-grid {
    max-width: 450px;
  }

  .section {
    padding: 5rem 0;
  }
}

/* Mobile Landscape & Large Phone (640px to 480px) */
@media (max-width: 640px) {

  /* Navigation mobile menu styles */
  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 280px;
    height: 100vh;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem 0;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .header-cta {
    display: none;
  }

  .nav-links .header-cta-mobile {
    display: flex;
    flex-direction: column;
    width: 85%;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1.05rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .floating-hud {
    display: none;
  }

  .panel-dash {
    grid-template-columns: 1fr;
  }

  .features-bento {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .feature-card {
    height: auto;
    gap: 1.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto;
  }

  .pricing-card {
    margin: 0 auto;
    max-width: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-nav {
    margin-top: 2rem;
  }

  .calc-output-card {
    padding: 2rem 1rem;
  }

  .output-number {
    font-size: 2.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

/* Mobile Portrait (under 480px) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 1rem;
  }

  .header {
    width: calc(100% - 1rem);
    top: 0.5rem;
    max-width: none;
    padding: 0 0.5rem;
  }

  .logo {
    gap: 0.4rem;
  }

  .logo-wordmark {
    height: 22px;
    width: auto;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  h4 {
    font-size: 0.95rem;
  }

  p {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .hero-ctas .btn {
    width: 100%;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }

  .hero-stats {
    gap: 0.75rem;
    justify-content: center;
  }

  .stat-item {
    flex: 1 1 45%;
    min-width: 0;
  }

  .stat-val {
    font-size: 1.25rem;
  }

  .stat-lbl {
    font-size: 0.65rem;
  }

  .section-tag {
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
    margin-bottom: 0.75rem;
  }

  .section-header {
    margin: 0 auto 3rem auto;
  }

  .dashboard-wrapper {
    height: 280px;
    border-radius: 12px;
  }

  .dashboard-header {
    padding: 0 1rem;
    height: 48px;
  }

  .dashboard-content {
    padding: 1rem;
  }

  .kanban-item {
    padding: 0.75rem;
  }

  .kanban-item h4 {
    font-size: 0.85rem;
  }

  .sandbox-board {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: auto;
  }

  .sandbox-column {
    padding: 0.75rem;
  }

  .pricing-card {
    max-width: 100%;
    padding: 1.5rem;
  }

  .pricing-label {
    font-size: 0.85rem;
  }

  .faq-item {
    margin-bottom: 1rem;
  }

  .faq-question {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .faq-answer-inner {
    padding: 1rem;
    font-size: 0.85rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section {
    padding: 2.5rem 0;
  }
}