/* ====================================
   CAPULA MEDIA & TECHNOLOGY
   Premium Dark Theme with Crimson Accent
   ==================================== */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border-color: rgba(229, 0, 79, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);

  --text-primary: #f0f0f5;
  --text-secondary: #9494a8;
  --text-tertiary: #6b6b80;

  --accent-primary: #E5004F;
  --accent-light: #FF4081;
  --accent-dark: #B8003F;
  --accent-glow: rgba(229, 0, 79, 0.3);
  --accent-subtle: rgba(229, 0, 79, 0.08);

  --gradient-brand: linear-gradient(135deg, #E5004F 0%, #FF4081 100%);
  --gradient-brand-wide: linear-gradient(135deg, #E5004F 0%, #FF4081 50%, #FF6B9D 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #111118 100%);

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-primary);
  color: white;
}

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

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

/* --- Cursor Glow --- */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

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

.navbar.scrolled .logo-img {
  height: 80px;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.3s var(--ease-out-expo);
}

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

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

.nav-link-cta {
  background: var(--gradient-brand);
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease-out-expo);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(229, 0, 79, 0.08) 0%, transparent 60%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--accent-subtle);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 32px;
}

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

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* --- Buttons --- */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--ease-out-expo);
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

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

.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: var(--accent-subtle);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.hero-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

/* --- Scroll Indicator --- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--gradient-brand);
  animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
  0% { top: -60px; }
  100% { top: 60px; }
}

/* --- Animation Classes --- */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
}

.animate-in.visible {
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
.animate-in:nth-child(5) { animation-delay: 0.4s; }

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

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section Base --- */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* --- About Section --- */
.about {
  background: var(--bg-secondary);
}

.section-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.about-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* --- Orbital Animation --- */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbital-system {
  position: relative;
  width: 380px;
  height: 380px;
}

.orbit {
  position: absolute;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 {
  width: 180px;
  height: 180px;
  animation: orbit-rotate 10s linear infinite;
}

.orbit-2 {
  width: 280px;
  height: 280px;
  animation: orbit-rotate 16s linear infinite reverse;
}

.orbit-3 {
  width: 370px;
  height: 370px;
  animation: orbit-rotate 22s linear infinite;
}

.orbit-dot {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

.orbit-2 .orbit-dot {
  background: var(--accent-light);
  top: auto;
  bottom: -5px;
}

.orbit-3 .orbit-dot {
  background: #FF6B9D;
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
}

@keyframes orbit-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  animation: float 4s ease-in-out infinite;
}

.orbit-center svg {
  width: 100%;
  height: 100%;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-12px); }
}

/* --- Services Section --- */
.services {
  background: var(--bg-primary);
}

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

.service-card {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  transition: all 0.5s var(--ease-out-expo);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color);
  background: var(--bg-card-hover);
}

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

.service-card.featured {
  border-color: var(--border-color);
  background: linear-gradient(180deg, rgba(229, 0, 79, 0.06) 0%, var(--bg-card) 100%);
}

.service-card.featured .card-glow {
  opacity: 1;
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  color: var(--accent-light);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.service-features li {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  padding-left: 20px;
  position: relative;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

/* --- Technologies Section --- */
.technologies {
  background: var(--bg-secondary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tech-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  text-align: center;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(229, 0, 79, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color);
}

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

.tech-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--accent-light);
  position: relative;
  z-index: 1;
}

.tech-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.tech-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.tech-tags span {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.tech-card:hover .tech-tags span {
  border-color: var(--border-color);
  color: var(--text-secondary);
}

/* --- Process Section --- */
.process {
  background: var(--bg-primary);
}

.process-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--gradient-brand);
  transition: height 0.6s var(--ease-out-expo);
}

.process-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-primary);
  position: relative;
  z-index: 2;
  transition: all 0.5s var(--ease-out-expo);
}

.process-step:hover .step-number {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px var(--accent-glow);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 4px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Marquee Section --- */
.marquee-section {
  padding: 40px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.marquee {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 24px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.marquee-track span:not(.marquee-dot):hover {
  color: var(--accent-primary);
}

.marquee-dot {
  color: var(--accent-primary) !important;
  font-size: 0.8rem !important;
  align-self: center;
}

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

/* --- Differentiators Section --- */
.differentiators {
  background: var(--bg-secondary);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.diff-card {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.diff-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

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

.diff-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.diff-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.diff-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- CTA / Contact Section --- */
.cta-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.cta-bg-animation {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.cta-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
  top: -200px;
  right: -100px;
  animation: orb-float-1 12s ease-in-out infinite;
}

.cta-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-light);
  bottom: -150px;
  left: -100px;
  animation: orb-float-2 15s ease-in-out infinite;
}

.cta-orb-3 {
  width: 300px;
  height: 300px;
  background: #FF6B9D;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orb-float-3 10s ease-in-out infinite;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, 50px); }
}

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, -40px); }
}

@keyframes orb-float-3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.3); }
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

/* --- Form --- */
.cta-form {
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 0;
}

.form-group + .form-group:not(.form-row .form-group) {
  margin-bottom: 16px;
}

.cta-form .form-group:last-of-type:not(.form-row .form-group) {
  margin-bottom: 24px;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.cta-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%239494a8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: var(--text-tertiary);
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

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

/* --- Footer --- */
.footer {
  padding: 80px 0 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

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

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand .logo-img {
  height: 96px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  padding: 6px 0;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

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

  .section-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    order: -1;
  }

  .orbital-system {
    width: 280px;
    height: 280px;
  }

  .orbit-1 { width: 140px; height: 140px; }
  .orbit-2 { width: 210px; height: 210px; }
  .orbit-3 { width: 275px; height: 275px; }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transition: right 0.5s var(--ease-out-expo);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

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

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

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

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 0;
  }

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

  .timeline-line {
    left: 24px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 0.9rem;
  }

  .process-step {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

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

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

  .tech-card {
    padding: 24px 20px;
  }

  .diff-card {
    padding: 28px 24px;
  }

  .service-card {
    padding: 28px 24px;
  }
}

/* --- Smooth Reveal Delay Utility --- */
[data-delay="50"] { transition-delay: 0.05s; }
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="250"] { transition-delay: 0.25s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="350"] { transition-delay: 0.35s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="450"] { transition-delay: 0.45s; }
