/* ==========================================================================
   Ideonia Web System - Design Tokens & Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Manrope:wght@400;500;600;700&family=Roboto+Mono:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  /* Color Tokens */
  --bg-dark: #050505;
  --bg-darker: #020202;
  --card-bg: #111111;
  --card-bg-radial: radial-gradient(75% 32% at 50% 0%, #212121 0%, #111111 100%);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-amber: rgba(239, 139, 46, 0.25);

  --text-primary: #ffffff;
  --text-secondary: #de2222;
  /* Fallback check */
  --text-secondary: #dedede;
  --text-muted: #afafaf;
  --text-dim: #626262;

  --accent-amber: #ef8b2e;
  --accent-light: #ffb168;
  --accent-orange: #e36d00;
  --accent-brown: #9e642e;
  --status-green: #13c71a;

  /* Typography */
  --font-heading: 'Satoshi', 'Inter', -apple-system, sans-serif;
  --font-body: 'Manrope', 'Inter', -apple-system, sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-pill: 9999px;

  /* Shadows & Glows */
  --shadow-glow: 0 0 40px rgba(228, 111, 3, 0.18);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  min-height: 100vh;
  position: relative;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  /* Global dotted grid background across entire site */
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  background-attachment: fixed;
}

/* Links & Buttons Reset */
a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  * {
    cursor: none !important;
  }
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.18s ease, height 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  mix-blend-mode: difference;
}

#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(239, 139, 46, 0.35) 0%, transparent 70%);
  transition: width 0.35s ease, height 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}

body.cursor-hover #custom-cursor {
  width: 20px;
  height: 20px;
  background: var(--accent-amber);
}

body.cursor-hover #cursor-glow {
  opacity: 1;
  width: 80px;
  height: 80px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header-outer {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1180px;
  z-index: 1000;
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Compact nav when scrolled past hero */
.header-outer.nav-compact {
  top: 10px;
  width: 58%;
  max-width: 640px;
}

.header-outer.nav-compact .nav-menu {
  display: none;
}

.header-outer.nav-compact .nav-container {
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  background: rgba(12, 12, 12, 0.92);
}

.nav-container {
  background: linear-gradient(180deg, rgba(33, 33, 33, 0.85) 0%, rgba(17, 17, 17, 0.7) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: padding 0.4s ease, background 0.4s ease;
}

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

.brand-logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition-fast);
}

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

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

/* Status Pill */
.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(19, 199, 26, 0.1);
  border: 1px solid rgba(19, 199, 26, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--status-green);
  white-space: nowrap;
  flex-shrink: 0;
}

.radar-dot {
  width: 8px;
  height: 8px;
  background-color: var(--status-green);
  border-radius: 50%;
  position: relative;
}

.radar-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 1.5px solid var(--status-green);
  border-radius: 50%;
  animation: radarPing 2s infinite ease-out;
}

@keyframes radarPing {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* CTA Button */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #151515;
  border: 1px solid rgba(239, 139, 46, 0.4);
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  overflow: hidden;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(239, 139, 46, 0.25), transparent 70%);
  opacity: 0.6;
  transition: var(--transition-fast);
}

.btn-cta:hover {
  transform: translateY(-2px);
  border-color: var(--accent-amber);
  color: var(--text-primary);
  box-shadow: 0 6px 24px rgba(239, 139, 46, 0.3);
}

.btn-cta:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-amber) 50%, var(--accent-orange) 100%);
  color: #000;
  border: none;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 14px;
  box-shadow: 0 4px 25px rgba(228, 111, 3, 0.4);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(228, 111, 3, 0.6);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 14px;
  transition: var(--transition-fast);
}

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 180px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Background Ambient Canvas Glows */
.hero-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.oval-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  animation: floatOval 10s infinite ease-in-out alternate;
}

.oval-1 {
  top: -10%;
  right: 15%;
  width: 450px;
  height: 450px;
  background: var(--accent-brown);
}

.oval-2 {
  top: 20%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: var(--accent-orange);
  animation-delay: -3s;
}

.oval-3 {
  top: 40%;
  right: 25%;
  width: 500px;
  height: 350px;
  background: var(--accent-amber);
  animation-delay: -5s;
}

@keyframes floatOval {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  100% {
    transform: translateY(30px) scale(1.1) rotate(15deg);
  }
}

.radial-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

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

.hero-badge-wrapper {
  margin-bottom: 24px;
  display: inline-block;
}

.hero-h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-h1 span.highlight {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Dashboard Mockup Container - scroll-driven parallax */
.hero-mockup-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  backdrop-filter: blur(10px);
  /* Initial "grow from bottom" state - JS drives the transform */
  transform-origin: bottom center;
  transform: scaleX(0.72) scaleY(0.68) translateY(60px);
  opacity: 0;
  transition: none;
  /* driven by scroll JS, not CSS transitions */
  will-change: transform, opacity;
}

.hero-mockup-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Section Components & Cards
   ========================================================================== */
.section {
  padding: 100px 20px;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-amber);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 28px;
}

.glass-card {
  background: var(--card-bg-radial);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Spotlight cursor glow overlay */
.glass-card::after,
.project-card::after,
.pricing-card::after,
.pipeline-step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(239, 139, 46, 0.12),
      transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.glass-card:hover::after,
.project-card:hover::after,
.pricing-card:hover::after,
.pipeline-step:hover::after {
  opacity: 1;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--card-border-amber);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(239, 139, 46, 0.15);
}

/* Icon Box Animation & Glow */
.card-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(239, 139, 46, 0.28), rgba(20, 20, 20, 0.95));
  border: 1px solid rgba(239, 139, 46, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(239, 139, 46, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: iconFloat 4s ease-in-out infinite alternate;
  position: relative;
  z-index: 3;
}

@keyframes iconFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-5px);
  }
}

.glass-card:hover .card-icon-box {
  transform: scale(1.12) rotate(5deg) translateY(-4px);
  border-color: var(--accent-amber);
  background: radial-gradient(circle at 30% 30%, rgba(239, 139, 46, 0.5), rgba(30, 30, 30, 0.98));
  box-shadow: 0 0 30px rgba(239, 139, 46, 0.5), inset 0 0 20px rgba(239, 139, 46, 0.3);
}

.card-icon-box svg {
  width: 28px;
  height: 28px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.glass-card:hover .card-icon-box svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 177, 104, 0.9));
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.card-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Projects Showcase Section
   ========================================================================== */
.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(239, 139, 46, 0.15);
  border-color: var(--accent-amber);
  color: var(--text-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--card-bg-radial);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-amber);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(239, 139, 46, 0.15);
}

.project-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-cat-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 400;
  margin-bottom: 8px;
}

.country-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(239, 139, 46, 0.35);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(239, 139, 46, 0.15);
  letter-spacing: 0.5px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--accent-light);
  transition: var(--transition-fast);
}

.project-link-btn:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.coming-soon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 139, 46, 0.15);
  border: 1px solid var(--accent-amber);
  color: var(--accent-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(239, 139, 46, 0.2);
}

/* ==========================================================================
   Mission Section
   ========================================================================== */
.mission-banner {
  background: linear-gradient(180deg, rgba(33, 33, 33, 0.5) 0%, rgba(13, 13, 13, 0.8) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission-banner::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 150px;
  background: var(--accent-amber);
  filter: blur(100px);
  opacity: 0.2;
  pointer-events: none;
}

.mission-text {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text-primary);
  max-width: 860px;
  margin: 0 auto 32px;
  line-height: 1.6;
  font-weight: 500;
}

/* ==========================================================================
   Process Pipeline (Interactive)
   ========================================================================== */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
}

.pipeline-step {
  background: var(--card-bg-radial);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.pipeline-step:hover {
  border-color: var(--accent-amber);
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-amber);
  margin-bottom: 8px;
  font-weight: 700;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.pricing-card {
  background: var(--card-bg-radial);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-smooth);
}

.pricing-card.featured {
  border-color: var(--accent-amber);
  box-shadow: 0 0 40px rgba(228, 111, 3, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 32px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-amber));
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 44px;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.plan-features li svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-amber);
  flex-shrink: 0;
}

/* ==========================================================================
   Contact & Footer
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info-box {
  background: var(--card-bg-radial);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  /* Height matched by grid align-items: stretch */
}

.contact-illustration {
  width: 100%;
  line-height: 0;
  flex-shrink: 0;
  margin-top: auto;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  /* Two-column: image left, text right */
  display: flex;
  align-items: flex-end;
}

.contact-illus-left {
  flex: 0 0 58%;
  line-height: 0;
}

.contact-illus-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left bottom;
  mix-blend-mode: lighten;
  opacity: 0.95;
  max-height: 230px;
}

.contact-illus-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 20px 24px 8px;
  gap: 8px;
  line-height: 1;
}

.contact-arrow-svg {
  rotate: 90deg;
  width: 58px;
  height: auto;
  opacity: 0.95;
  margin-left: 20px;
  filter: drop-shadow(0 0 6px rgba(239, 139, 46, 0.3));
}

.contact-illus-tagline {
  font-family: var(--font-heading);
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: -0.2px;
}

.contact-illus-tagline span {
  color: var(--accent-amber);
  font-style: normal;
  font-weight: 700;
}

.contact-info-content {
  padding: 36px 40px 24px;
  display: flex;
  flex-direction: column;
}

.contact-info-box::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(239, 139, 46, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.contact-form {
  background: var(--card-bg-radial);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Ensure both action buttons in contact section are same size/style */
.contact-form .btn-primary,
.contact-info-content .btn-primary {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 14px;
  width: 100%;
  text-align: center;
  display: block;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-amber);
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.info-value {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* .contact-form defined above in contact-grid block */

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

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-amber);
  box-shadow: 0 0 15px rgba(239, 139, 46, 0.2);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   Trendy Gradient Footer with Marquee
   ========================================================================== */
footer {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1a0900 35%, #ef8b2e 100%);
  border-top: 1px solid rgba(239, 139, 46, 0.2);
}

.footer-marquee-track {
  overflow: hidden;
  padding: 60px 0 0;
  white-space: nowrap;
  position: relative;
  background: transparent;
}

.footer-marquee-inner {
  display: inline-block;
  animation: footerMarquee 18s linear infinite;
  white-space: nowrap;
}

.footer-marquee-inner span.marquee-word {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 900;
  letter-spacing: -4px;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-transform: uppercase;
  margin: 0 24px;
  user-select: none;
  opacity: 0.92;
}

.footer-marquee-inner span.marquee-dot {
  font-size: clamp(3rem, 6vw, 5rem);
  color: rgba(255, 255, 255, 0.5);
  vertical-align: middle;
  margin: 0 8px;
  user-select: none;
}

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

  100% {
    transform: translateX(-50%);
  }
}

.footer-bottom {
  padding: 52px 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.5px;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  flex: 1;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Interactive Consultation Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

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

.modal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border-amber);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), var(--shadow-glow);
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-smooth);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #151515;
  border: 1px solid var(--accent-amber);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Impact Stats Counter Bar & Scroll Reveal Animations
   ========================================================================== */
.stats-counter-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  background: radial-gradient(80% 100% at 50% 0%, rgba(33, 33, 33, 0.7) 0%, rgba(13, 13, 13, 0.9) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border-amber);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  margin: 40px auto 0;
  max-width: 1040px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(239, 139, 46, 0.1);
  position: relative;
  z-index: 5;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-num {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

@media (max-width: 768px) {
  .stat-divider {
    display: none;
  }

  .stats-counter-bar {
    padding: 24px 20px;
    gap: 28px;
  }
}

/* Scroll Reveal CSS */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Info Icon Box Styling */
.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(239, 139, 46, 0.25), rgba(20, 20, 20, 0.9));
  border: 1px solid rgba(239, 139, 46, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.35s ease;
}

.info-item:hover .info-icon {
  transform: scale(1.1) rotate(6deg);
  border-color: var(--accent-amber);
  background: radial-gradient(circle at 30% 30%, rgba(239, 139, 46, 0.45), rgba(30, 30, 30, 0.95));
  box-shadow: 0 0 20px rgba(239, 139, 46, 0.4);
}

.info-icon svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Fixes
   ========================================================================== */
@media (max-width: 1024px) {
  .pipeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 992px) {
  .header-outer,
  .header-outer.nav-compact {
    width: 94% !important;
    max-width: 94% !important;
    top: 12px;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border-amber);
    border-radius: var(--radius-lg);
    padding: 24px;
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    z-index: 999;
  }

  .nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-toggle {
    display: flex;
  }

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

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

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

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

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

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

@media (max-width: 768px) {
  .header-outer,
  .header-outer.nav-compact {
    width: 94% !important;
    max-width: 94% !important;
    top: 10px;
  }

  .nav-container,
  .header-outer.nav-compact .nav-container {
    padding: 8px 16px;
    gap: 12px;
  }

  .brand-logo img {
    height: 24px;
  }

  .btn-cta {
    padding: 7px 16px;
    font-size: 0.82rem;
    border-radius: 10px;
    white-space: nowrap;
  }

  .section {
    padding: 70px 16px;
  }

  .glass-card {
    padding: 28px 20px;
  }

  .project-content {
    padding: 20px;
  }

  .mission-banner {
    padding: 40px 20px;
  }

  .contact-form {
    padding: 32px 20px;
  }

  .contact-info-content {
    padding: 28px 20px 16px;
  }

  .footer-bottom {
    padding: 36px 24px 24px;
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-copy {
    order: 3;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .modal-card {
    padding: 30px 20px;
  }

  .footer-marquee-inner span.marquee-word {
    font-size: clamp(3rem, 12vw, 6rem);
    margin: 0 14px;
  }
}

@media (max-width: 480px) {
  .header-outer,
  .header-outer.nav-compact {
    width: 94% !important;
    max-width: 94% !important;
    top: 8px;
  }

  .nav-container,
  .header-outer.nav-compact .nav-container {
    padding: 6px 12px;
    gap: 8px;
  }

  .brand-logo img {
    height: 22px;
  }

  .btn-cta {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .hero-section {
    padding: 130px 16px 50px;
  }

  .hero-h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.6rem);
    letter-spacing: -0.5px;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .stats-counter-bar {
    padding: 20px 16px;
    gap: 20px;
    flex-direction: column;
  }
}