/* 
         * DESIGN SYSTEM & VARIABLES 
         * Based on Plan.md colors but refined for SaaS aesthetic
         */
:root {
  /* Brand Colors */
  --primary: #ff6129;
  --primary-rgb: 255, 97, 41; /* Added for RGBA usage */
  --primary-hover: #fc3b00;
  --primary-glow: rgba(255, 97, 41, 0.4);

  /* Dark Theme Palette */
  --bg-body: #050812;
  --bg-surface: #0b1120;
  --bg-surface-2: #151e32;
  --border: #1e293b;
  --border-hover: #ff6129;
  --navbar-bg: rgba(11, 17, 32, 0.72);
  --navbar-bg-scrolled: rgba(11, 17, 32, 0.92);

  /* Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Background Effects */
  --bg-glow-a: rgba(255, 97, 41, 0.11);
  --bg-glow-b: rgba(252, 59, 0, 0.07);

  /* Utilities */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 32px;
  --container: 1400px;

  /* Transitions */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

:root:not(.dark) {
  --bg-body: #f8f7f4;
  --bg-surface: #ffffff;
  --bg-surface-2: #fff5ef;
  --border: #ece6df;
  --border-hover: #ff6129;
  --navbar-bg: rgba(255, 255, 255, 0.82);
  --navbar-bg-scrolled: rgba(255, 255, 255, 0.94);
  --text-main: #1e1a17;
  --text-muted: #6e6258;
  --text-dim: #9f9288;
  --bg-glow-a: rgba(255, 97, 41, 0.18);
  --bg-glow-b: rgba(252, 59, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

/* Background Gradients */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 50%, var(--bg-glow-a), transparent 25%),
    radial-gradient(circle at 85% 30%, var(--bg-glow-b), transparent 25%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Global Animation Utilities */
[data-reveal] {
  opacity: 0;
  transition: all 1s var(--ease);
}

[data-reveal="up"] {
  transform: translateY(30px);
}
[data-reveal="down"] {
  transform: translateY(-30px);
}
[data-reveal="left"] {
  transform: translateX(-30px);
}
[data-reveal="right"] {
  transform: translateX(30px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0);
}

@keyframes title-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes badge-slide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navbar-entrance {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.tech-stack-header {
  text-align: center;
  margin-top: 180px;
  margin-bottom: 24px;
}

.tech-stack-header .mono {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--primary);
  opacity: 0.7;
  display: block;
  margin-bottom: 8px;
}

.tech-stack-header p {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Tech Stack Marquee (Partner Section) */
.tech-stack {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  margin-top: 20px;
  margin-bottom: 100px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  z-index: 5;
  animation: title-reveal 1.2s var(--ease) 1s both;
}

.tech-stack::before,
.tech-stack::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tech-stack::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-body) 0%, transparent 100%);
}

.tech-stack::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-body) 0%, transparent 100%);
}

.tech-track {
  display: flex;
  gap: 80px;
  animation: scroll-seamless 40s linear infinite;
  width: max-content;
  white-space: nowrap;
}

.tech-item {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.8;
  transition:
    opacity 0.3s ease,
    color 0.3s ease;
  cursor: default;
}

.tech-item:hover {
  opacity: 1;
  color: var(--text-main);
}

@keyframes scroll-seamless {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 106, 0, 0.1),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 0.9;
}

.service-card:hover::after {
  opacity: 1;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--text-main) 0%,
    var(--text-muted) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #ff6129 0%, #fc3b00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--primary);
}

/* Layout Utilities */
.container {
  max-width: 100%; /* Remove fixed width restriction */
  margin: 0 auto;
  /* padding: 0 5%; */
}

.section-padding {
  padding: 120px;
}

#hero.container {
  padding-top: 180px;
  padding-bottom: 100px;
}

#services.section-padding,
.section-header2,
#process.section-padding,
#about.section-padding {
  max-width: 1400px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 24px;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.gap-2 {
  gap: 8px;
}
.gap-4 {
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.1);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1500px;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s var(--ease);
  animation: navbar-entrance 0.8s var(--ease) both;
}

.navbar.scrolled {
  top: 12px;
  padding: 8px 16px;
  background: var(--navbar-bg-scrolled);
  width: 90%;
  border-radius: 100px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
  position: relative;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.nav-extra {
  font-weight: 400;
  opacity: 0.8;
}

@media (max-width: 1100px) {
  .nav-extra {
    display: none;
  }
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.05);
}

.nav-status .dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

:root:not(.dark) .theme-toggle {
  box-shadow: 0 6px 20px rgba(255, 97, 41, 0.12);
}

.mobile-menu-btn {
  display: none;
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 100px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 97, 41, 0.1);
  border: 1px solid rgba(255, 97, 41, 0.2);
  border-radius: 100px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: badge-slide 0.8s var(--ease) both;
}

.hero h1 {
  animation: title-reveal 1s var(--ease) 0.2s both;
}

.hero p {
  animation: title-reveal 1s var(--ease) 0.4s both;
}

.hero .flex {
  animation: title-reveal 1s var(--ease) 0.6s both;
}

.hero-stats {
  animation: title-reveal 1s var(--ease) 0.8s both;
}

.hero-badge > span:first-child {
  display: inline-block;
  color: var(--primary);
  animation: hero-badge-dot-blink 1s steps(1, end) infinite;
}

.hero-badge-text {
  display: inline-block;
}

.hero-badge-text::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 3px;
  vertical-align: -0.08em;
  background: currentColor;
  animation: hero-badge-caret-blink 0.85s steps(1, end) infinite;
}

@keyframes hero-badge-dot-blink {
  0%,
  49% {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 97, 41, 0.55);
  }
  50%,
  100% {
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
  }
}

@keyframes hero-badge-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge > span:first-child,
  .hero-badge-text::after {
    animation: none;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

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

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text-main);
}
.stat-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section Headers */
.section-header {
  margin-bottom: 60px;
}
.section-tag {
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-muted);
  max-width: 500px;
}

/* Bento Grid Capabilities */
.capabilities-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, auto);
}

.bento-priority {
  grid-column: 1 / span 8;
  grid-row: 1;
}

.bento-top-right {
  grid-column: 9 / -1;
  grid-row: 1;
}

.bento-mid-left {
  grid-column: 1 / span 4;
  grid-row: 2;
}

.bento-mid-right {
  grid-column: 5 / span 4;
  grid-row: 2;
}

.bento-infra {
  grid-column: 9 / -1;
  grid-row: 2;
}

.cap-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.3s ease,
    filter 0.3s ease,
    box-shadow 0.3s ease;
}

.team-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.2rem;
  background: radial-gradient(
    circle at 30% 40%,
    rgba(255, 255, 255, 0.2),
    transparent 50%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .team-media {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 20px 45px rgba(255, 106, 0, 0.2);
}

.team-card:hover .team-media::after {
  opacity: 1;
}

.cap-card::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 97, 41, 0.18), transparent 65%);
  pointer-events: none;
}

.cap-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px) scale(1.01);
}

.cap-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 97, 41, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.cap-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cap-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Work Carousel */
/* Cinematic Project Showcase 2.0 - Fixed Overlap */
.projects-stack {
  display: flex;
  flex-direction: column;
  gap: 150px; /* Increased vertical spacing */
  padding: 100px 0;
}

.project-row {
  display: flex;
  justify-content: space-between; /* Spread them to the edges of the container */
  align-items: center;
  position: relative;
  width: 100%;
  padding: 100px 0;
  gap: 0;
}

/* Desktop Style Project - Cinematic 70/30 or 65/35 Split */
.desktop-project .project-info-card {
  flex: 0 0 32%; /* Increased from 25% for more space */
}

.desktop-project .project-visual-wrapper {
  flex: 0 0 65%; /* Adjusted slightly for balance */
}

/* Mobile Style Project - Balanced 50/40 Split */
.mobile-project .project-info-card {
  flex: 0 0 40%;
}

.mobile-project .project-visual-wrapper {
  flex: 0 0 50%;
}

.project-info-card {
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 60px; /* Massively increased padding */
  z-index: 20;
  transition: all 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 32px; /* Increased gap between elements */
  position: relative;
}

.project-visual-wrapper {
  position: relative;
  transition: all 0.6s var(--ease);
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-row:nth-child(even) {
  flex-direction: row-reverse;
}

/* Alternating Layout - Flip for balance */
.project-row:nth-child(even) {
  flex-direction: row-reverse;
}

/* Simple hover animations for work section */
.project-row:hover .project-info-card {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.project-row:hover .screenshot-container {
  transform: scale(1.015);
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.35);
}

.more-projects-teaser {
  justify-content: center;
  gap: 160px; /* Stronger separation to prevent overlap */
  max-width: 1400px;
  margin: 160px auto;
  align-items: center;
}

.more-projects-teaser .project-info-card {
  flex: 0 0 540px;
  padding: 80px 60px;
  z-index: 100;
  border-radius: 40px;
}

.more-projects-teaser .project-visual-wrapper {
  flex: 0 0 600px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 50;
}

.more-projects-visual {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 2000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.more-projects-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.12;
  filter: blur(80px);
  z-index: -1;
}

.visual-stack {
  position: relative;
  width: 400px;
  height: 250px;
  transform-style: preserve-3d;
}

.stack-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center center;
}

.stack-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}

.more-projects-teaser:hover .stack-item img {
  opacity: 1;
}

/* Tighter Initial Stack */
.item-1 {
  z-index: 30;
  transform: translate3d(0, 0, 40px);
  border-color: var(--primary);
}
.item-2 {
  z-index: 25;
  transform: translate3d(-10px, -10px, 30px);
  opacity: 0.95;
}
.item-3 {
  z-index: 20;
  transform: translate3d(-20px, -20px, 20px);
  opacity: 0.9;
}
.item-4 {
  z-index: 15;
  transform: translate3d(-30px, -30px, 10px);
  opacity: 0.85;
}
.item-5 {
  z-index: 10;
  transform: translate3d(-40px, -40px, 0);
  opacity: 0.8;
}
.item-6 {
  z-index: 5;
  transform: translate3d(-50px, -50px, -10px);
  opacity: 0.75;
}
.item-7 {
  z-index: 1;
  transform: translate3d(-60px, -60px, -20px);
  opacity: 0.7;
}

/* Elegant Arc Fan Spread on Hover - No wide overlap */
.more-projects-teaser:hover .item-1 {
  transform: translate3d(-100px, -80px, 100px) rotate(-12deg);
}
.more-projects-teaser:hover .item-2 {
  transform: translate3d(-30px, -120px, 80px) rotate(-6deg);
}
.more-projects-teaser:hover .item-3 {
  transform: translate3d(50px, -140px, 60px) rotate(0deg);
}
.more-projects-teaser:hover .item-4 {
  transform: translate3d(140px, -110px, 40px) rotate(6deg);
}
.more-projects-teaser:hover .item-5 {
  transform: translate3d(180px, -30px, 20px) rotate(12deg);
}
.more-projects-teaser:hover .item-6 {
  transform: translate3d(150px, 60px, 0px) rotate(18deg);
}
.more-projects-teaser:hover .item-7 {
  transform: translate3d(50px, 120px, -20px) rotate(24deg);
}

.more-projects-teaser h3 {
  background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.more-projects-teaser .project-number {
  top: -100px;
  left: -20px;
  font-size: 20rem;
  opacity: 0.03;
}

.more-projects-teaser .feature-list li {
  margin-bottom: 16px;
  font-size: 1.15rem;
  color: var(--text-dim);
}

.btn-primary-ghost {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.btn-primary-ghost:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(var(--primary-rgb), 0.3);
}

/* Project Numbering - Subtle Background Watermark */
.project-number {
  position: absolute;
  top: -60px;
  left: -20px;
  font-size: 16rem;
  font-weight: 950;
  line-height: 0.8;
  color: var(--text-main);
  opacity: 0.04; /* Very subtle water-mark */
  font-family: "Bricolage Grotesque", sans-serif;
  z-index: -1;
  pointer-events: none;
  letter-spacing: -0.05em;
}

.project-row:nth-child(even) .project-number {
  left: auto;
  right: -20px;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-bottom: 8px;
}

.status-badge.live {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.halted {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.dev {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.project-info-card h3 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
  color: var(--text-main);
}

.project-info-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 10px 0;
  list-style: none;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0; /* Remove margin as requested */
  opacity: 0.9;
}

.tech-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-main);
  background: rgba(var(--primary-rgb), 0.08); /* Unified discrete pill */
  padding: 4px 12px; /* Slightly tighter */
  border-radius: 6px;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

.feature-list li i {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 900;
}

.project-cta-group {
  /* padding-top: 40px; */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px; /* Extreme gap for breathing room */
}

.dev-meta {
  display: flex;
  flex-direction: column;
  gap: 4px; /* Space between title and count */
}

/* Engineering Dev Stack */
.dev-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dev-stack {
  display: flex;
}

.dev-orb {
  width: 40px;
  height: 40px;
  background: var(--bg-surface-2);
  border: 3px solid var(--bg-body);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-left: -12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    z-index 0s;
  cursor: help;
}

.dev-orb:hover {
  transform: translateY(-5px) scale(1.1);
  z-index: 10;
  border-color: var(--primary);
}

.dev-orb:first-child {
  margin-left: 0;
}

.dev-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dev-title {
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.dev-count {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 700;
}

/* Immersive Screen Wrapper - Removed White Border/Gradient */
.screenshot-container {
  position: relative;
  border-radius: 32px; /* Increased border radius */
  padding: 0;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.25); /* Lighter shadow */
  transition: all 0.6s var(--ease);
}

.browser-mockup {
  background: #fff;
  border-radius: 32px; /* Increased border radius */
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

html.dark .browser-mockup {
  background: #000;
  border-color: #1a1a1b;
}

/* New Mobile Device Mockup - Generic */
.mobile-mockup {
  /* background: #fff; */
  border-radius: 15px;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  /* aspect-ratio: 9 / 21; Increased again to give absolute max vertical space for docks */
  /* display: flex; */
  /* flex-direction: column; */
  /* border: 4px solid #333; */
  /* position: relative; */
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  /* padding: 4px; */
}

.mobile-mockup .browser-nav {
  display: none; /* Mobile apps start from the very top */
  /* padding: 5px; */
}

.dynamic-island {
  display: none; /* Removed iPhone feature */
}

.mobile-mockup .address-bar {
  display: none; /* Mobile apps don't have URL bars usually */
}

.mobile-mockup .viewport::after {
  background-size: 16px 16px; /* Denser grid for mobile */
}

.browser-nav {
  height: 32px;
  background: #111;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.address-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 5px 16px;
  font-family: inherit;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}

.viewport {
  flex: 1;
  position: relative;
  /* background: #fff; */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.3s ease;
}

html.dark .viewport {
  background: #000;
}

.mobile-mockup .viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fill the portrait frame width */
  object-position: top center; /* Ensure head/top is always visible */
  display: block;
}

.aura {
  display: none; /* Removed gradient aura */
}

.viewport::after {
  display: none; /* Removed background grid/gradient */
}

.explore-link {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s var(--ease);
}

.explore-link i {
  color: var(--primary);
  transition: transform 0.3s var(--ease);
}

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

.explore-link:hover i {
  transform: translateX(6px);
}

/* Marquee handled above in global section */

/* Process Section */
.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.process-lead {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.process-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.process-step-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.process-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deliverable-tag {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.process-step.active .deliverable-tag {
  border-color: rgba(var(--primary-rgb), 0.3);
  color: var(--text-main);
}

.process-steps::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: color-mix(in srgb, var(--border) 75%, transparent);
  pointer-events: none;
}

.process-step {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 24px;
  width: 600px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}

.process-step.active {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  transform: translateX(10px);
}

.process-step:hover:not(.active) {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(5px);
}

.process-step-index {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-dim);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.process-step.active .process-step-index {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.process-step h4 {
  color: var(--text-main);
  margin-bottom: 6px;
  font-size: 1rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.process-step:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.process-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  height: 500px;
  display: flex;
  flex-direction: column;
}

.visual-deck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.visual-deck-content {
  position: relative;
  flex: 1;
}

.process-code {
  position: relative;
  z-index: 10;
  font-size: 0.9rem;
  line-height: 1.8;
  opacity: 0.8;
}

/* phase visuals */
.phase-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: all 0.8s var(--ease);
  transform: scale(0.9);
}

[data-visual-state="1"] .audit-view,
[data-visual-state="2"] .sprint-view,
[data-visual-state="3"] .launch-view {
  opacity: 1;
  transform: scale(1);
}

/* audit radar */
.audit-radar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--primary-rgb), 0.1) 0%,
    transparent 70%
  );
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  position: relative;
}

.audit-radar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform-origin: left;
  animation: radar-sweep 4s linear infinite;
}

@keyframes radar-sweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* sprint pulse */
.pulse-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: pulse-out 2s infinite;
}

@keyframes pulse-out {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* launch status */
.status-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(40px);
  animation: orb-breathe 3s ease-in-out infinite;
}

@keyframes orb-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

.code-accent {
  color: var(--primary);
}

.code-muted {
  color: var(--text-dim);
}

.code-ok {
  color: #10b981;
}

.process-glow {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  background: var(--primary);
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
}

/* Team Section - 'Shifter' Cinematic Redesign */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Founder Card */
.founder-card {
  display: flex;
  margin: 0 auto;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  min-height: 550px;
}

.founder-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.founder-image-side {
  width: 42%;
  position: relative;
  overflow: hidden;
}

.founder-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition:
    filter 0.5s ease,
    transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.founder-card:hover .founder-image-side img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.founder-text-side {
  width: 58%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02) 0%,
    transparent 100%
  );
}

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

.founder-badge {
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.founder-socials {
  display: flex;
  gap: 16px;
}

.founder-socials a {
  color: var(--text-dim);
  transition: all 0.3s ease;
}

.founder-socials a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.founder-text-side h3 {
  font-size: 2.8rem;
  margin-bottom: 24px;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.founder-bio {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 95%;
}

.founder-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.link-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 8px;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.link-btn:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

@media (max-width: 600px) {
  .founder-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .link-btn {
    margin-left: 0;
    margin-top: 8px;
  }
}

.founder-extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.founder-extra-item h4 {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
}

.founder-extra-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .founder-card {
    flex-direction: column;
    max-width: 600px;
  }
  .founder-image-side,
  .founder-text-side {
    width: 100%;
  }
  .founder-image-side {
    height: 450px;
  }
  .founder-text-side {
    padding: 40px;
  }
  .founder-extra-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Light mode refinements */
html.light .team-card:hover .team-card-bg {
  background: #fff;
}

/* Contact / CTA Redesign */
.cta-section {
  position: relative;
  background: var(--bg-body);
  overflow: hidden;
  padding-bottom: 220px;
}

.cta-outer {
  max-width: 1000px;
  margin: 0 auto;
}

.cta-box {
  position: relative;
  border-radius: 48px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 100px 60px;
  text-align: center;
  transition: transform 0.8s var(--ease);
}

.cinematic-glare {
  background: radial-gradient(
    circle at 30% 20%,
    rgba(var(--primary-rgb), 0.12) 0%,
    rgba(var(--bg-surface), 1) 50%
  );
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.4);
}

.cta-glow-orb {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: var(--primary);
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  animation: orb-float 10s infinite alternate;
}

@keyframes orb-float {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.15;
  }
  33% {
    transform: translate(30px, -50px) rotate(10deg);
    opacity: 0.2;
  }
  66% {
    transform: translate(-20px, 20px) rotate(-5deg);
    opacity: 0.12;
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.15;
  }
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-tag {
  display: inline-block;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.cta-title {
  color: var(--text-main);
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.text-glow {
  color: var(--primary);
  text-shadow: 0 0 40px rgba(var(--primary-rgb), 0.4);
}

.cta-description {
  color: var(--text-muted);
  font-size: 1.35rem;
  max-width: 600px;
  margin: 0 auto 52px;
}

.cta-action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.btn-primary-massive {
  display: inline-flex;
  background: var(--primary);
  color: var(--text-main);
  padding: 24px 64px;
  border-radius: 20px;
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.5s var(--ease);
  box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.4);
}

.btn-primary-massive:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 70px rgba(var(--primary-rgb), 0.5);
  background: var(--primary-hover);
}

.cta-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
}

.status-dot-green {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 15px #10b981;
}

/* Light Mode Overrides for CTA */
html.light .cta-box {
  background: #fff;
  border-color: #eee;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.08);
}

html.light .cta-title {
  color: var(--text-main);
}

html.light .text-glow {
  text-shadow: none;
}

html.light .cta-description {
  color: var(--text-muted);
}

html.light .btn-primary-massive:hover {
  box-shadow: 0 30px 60px rgba(var(--primary-rgb), 0.3);
}

/* Footer Overhaul */
.site-footer {
  padding: 0px 0 0px;
  /* margin-top: 180px; */
}

.footer-shell {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  /* border-radius: 40px; */
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.4);
}

.footer-hero {
  padding: 80px 40px;
  background: radial-gradient(
    circle at top left,
    rgba(var(--primary-rgb), 0.15),
    transparent 50%
  );
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.footer-hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 24px;
}

.footer-hero h3 {
  font-size: 3.2rem;
  line-height: 1.1;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 40px;
}

.footer-lead-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
  border-radius: 24px;
  border: 1px solid var(--border);
}

.input-glow-wrapper {
  flex: 1;
  position: relative;
}

.footer-lead-form input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 20px;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
}

.footer-lead-form button {
  background: var(--primary);
  color: var(--text-main);
  border: none;
  padding: 0 32px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.footer-lead-form button:hover {
  background: var(--primary-hover);
  transform: translateX(4px);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding: 60px 40px;
}

.footer-brand .logo {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 28px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 24px;
}

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

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

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--bg-surface-2);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-4px);
}

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

.footer-bottom {
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

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

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Light Mode Overrides for Footer */
html.light .footer-shell {
  background: #fff;
  border-color: #eee;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.08);
}

html.light .footer-hero {
  background: radial-gradient(
    circle at top left,
    rgba(var(--primary-rgb), 0.08),
    transparent 60%
  );
  border-bottom-color: #eee;
}

html.light .footer-hero h3 {
  color: var(--text-main);
}

html.light .footer-lead-form {
  background: #fcfcfc;
  border-color: #ddd;
}

html.light .footer-lead-form input {
  color: var(--text-main);
}

html.light .footer-lead-form input::placeholder {
  color: var(--text-dim);
}

html.light .footer-col h4 {
  color: var(--text-main);
}

html.light .footer-socials a {
  background: #f9f9f9;
  border-color: #eee;
  color: var(--text-muted);
}

html.light .footer-socials a:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}

html.light .footer-bottom {
  border-top-color: #eee;
  color: var(--text-muted);
}

html.light .footer-links a {
  color: var(--text-muted);
}

html.light .footer-links a:hover {
  color: var(--text-main);
}

html.light .footer-status-pill {
  background: rgba(16, 185, 129, 0.06);
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-hero h3 {
    font-size: 2.2rem;
  }
  .footer-lead-form {
    flex-direction: column;
    border-radius: 16px;
  }
  .footer-lead-form button {
    padding: 16px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Legal Pages Styling */
.legal-page {
  padding-top: 140px; /* Offset for navbar */
  padding-bottom: 120px;
}

.legal-header {
  max-width: 800px;
  margin-bottom: 60px;
}

.legal-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 24px;
}

.legal-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-content {
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.legal-content h2 {
  color: var(--text-main);
  font-size: 1.8rem;
  margin: 48px 0 24px;
}

.legal-content h3 {
  color: var(--text-main);
  font-size: 1.4rem;
  margin: 32px 0 16px;
}

.legal-content p {
  margin-bottom: 24px;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 12px;
}

.legal-content strong {
  color: var(--text-main);
}

@media (max-width: 768px) {
  .legal-title {
    font-size: 2.5rem;
  }
}
@media (max-width: 900px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .cap-card.large,
  .bento-priority,
  .bento-infra,
  .bento-top-right,
  .bento-mid-left,
  .bento-mid-right {
    grid-row: auto;
    grid-column: auto;
  }

  .process-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .projects-stack {
    gap: 80px;
  }

  .project-row,
  .project-row:nth-child(even) {
    flex-direction: column;
    gap: 40px;
    direction: ltr; /* Reset direction for mobile stacking */
  }

  .project-info-card,
  .project-visual-wrapper,
  .more-projects-teaser .project-info-card,
  .more-projects-teaser .project-visual-wrapper {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  /* CTA Responsive */
  .cta-title {
    font-size: clamp(2.4rem, 8vw, 3.8rem);
  }

  .cta-box {
    padding: 60px 24px;
    border-radius: 32px;
  }

  .btn-primary-massive {
    padding: 18px 40px;
    font-size: 1.15rem;
    width: 100%;
    justify-content: center;
  }

  .cta-description {
    font-size: 1.1rem;
  }

  .more-projects-teaser {
    padding: 0 20px;
    gap: 60px;
  }

  .more-projects-teaser h3 {
    font-size: 2.8rem;
  }

  .more-projects-visual {
    height: 300px;
  }

  .more-projects-teaser .project-visual-wrapper {
    order: 2;
  }

  .more-projects-teaser .project-info-card {
    order: 1;
  }

  .project-info .section-title {
    font-size: 2rem;
  }

  .project-screenshot {
    order: -1; /* Image always on top for mobile */
  }

  .process-steps::before {
    left: 26px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 32px 24px 26px;
  }

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

  .footer-hero {
    padding: 42px 18px;
  }

  .footer-lead-form {
    max-width: 100%;
  }

  .nav-actions .btn-primary,
  .nav-status {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    padding: 14px;
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    flex-direction: column;
    gap: 12px;
    z-index: 2;
  } /* Simplified mobile nav for demo */

  .navbar.mobile-open .nav-links {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
    color: var(--text-main);
    background: none;
    border: none;
    font-size: 1.5rem;
  }
}
@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .footer-lead-form {
    flex-direction: column;
    border-radius: 18px;
    padding: 12px;
  }

  .footer-lead-form input,
  .footer-lead-form button {
    width: 100%;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .tech-item {
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}
