/* ArchNexus AI CSS Design System - Apple-Inspired Premium Theme */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-primary: #050508;
  --bg-secondary: #0D0E15;
  --bg-card: rgba(18, 19, 29, 0.5);
  --bg-card-hover: rgba(26, 28, 42, 0.7);
  --border-light: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(0, 242, 254, 0.4);
  
  --text-primary: #F5F5F7;
  --text-secondary: #86868B;
  --text-muted: #51515A;
  
  /* Gradients */
  --accent-cyan: #00F2FE;
  --accent-blue: #4FACFE;
  --accent-purple: #9F7AEA;
  --gradient-primary: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
  --gradient-purple: linear-gradient(135deg, #4FACFE 0%, #9F7AEA 100%);
  --gradient-glow: linear-gradient(180deg, rgba(0, 242, 254, 0.15) 0%, rgba(159, 122, 234, 0.05) 100%);
  --gradient-dark: linear-gradient(180deg, #050508 0%, #0D0E15 100%);
  --gradient-text: linear-gradient(120deg, #F5F5F7 30%, #86868B 100%);
  --gradient-brand: linear-gradient(90deg, #00F2FE, #4FACFE, #9F7AEA, #00F2FE);
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: transparent;
  line-height: 1.6;
  position: relative;
}

/* Fixed full-screen interactive 3D background */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  display: block;
}

/* Subtle vignette/gradient over the 3D layer for readability */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 172, 254, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.35) 0%, rgba(5, 5, 8, 0.7) 100%);
}

/* Loading veil */
.loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--bg-primary);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent-cyan);
  border-right-color: var(--accent-purple);
  animation: spin 0.9s linear infinite;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 2000;
  background: var(--gradient-brand);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
  transition: width 0.1s linear;
}

/* Side dot navigator */
.dot-nav {
  position: fixed;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dot-nav .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  position: relative;
  transition: var(--transition-fast);
}

.dot-nav .dot::after {
  content: attr(data-label);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(5, 5, 8, 0.8);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
}

.dot-nav .dot:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.3);
}

.dot-nav .dot:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.dot-nav .dot.active {
  background: var(--gradient-primary);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.7);
  transform: scale(1.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

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

/* Header & Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-normal);
}

.header.scrolled {
  background: rgba(5, 5, 8, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.35));
  transition: var(--transition-fast);
}

.logo:hover .logo-img {
  filter: drop-shadow(0 0 18px rgba(0, 242, 254, 0.6));
}

.footer-logo-img {
  height: 44px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: inline-block;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  position: relative;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

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

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

/* Sliding gradient indicator under the active nav link */
.nav-indicator {
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--gradient-brand);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
  opacity: 0;
  transition: transform var(--transition-normal), width var(--transition-normal), opacity var(--transition-fast);
  pointer-events: none;
  list-style: none;
}

.magnetic {
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow var(--transition-normal), background var(--transition-fast);
}

.nav-cta {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(5px);
}

.nav-cta:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Scroll cue at bottom of hero */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  z-index: 2;
}

.scroll-cue-dot {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent-cyan);
  animation: scroll-bob 1.6s ease-in-out infinite;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

.hero-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

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

.badge {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  animation: pulse-glow 2s infinite;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.hero-title span {
  background: var(--gradient-brand);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-scroll 8s ease infinite;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #050508;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.4);
}

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

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

/* Interactive 3D Core Stage (hero centerpiece) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.core-stage {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.core-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-lg);
  background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.12) 0%, rgba(5, 5, 8, 0) 65%);
  pointer-events: none;
}

.core-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.core-canvas:active {
  cursor: grabbing;
}

.core-overlay {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(5, 5, 8, 0.55);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.core-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse-glow 1.5s infinite;
}

.core-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 5, 8, 0.55);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  z-index: 2;
}

/* Sections Global Structure */
.section {
  padding: 8rem 2rem;
  position: relative;
}

.section-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.section-subtitle {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-weight: 600;
  display: block;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Services Grid & Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  background: rgba(13, 14, 21, 0.55);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  transform-style: preserve-3d;
  will-change: transform;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 0%), rgba(0, 242, 254, 0.12) 0%, rgba(255, 255, 255, 0) 55%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

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

.service-card:hover {
  background: rgba(26, 28, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 242, 254, 0.08);
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition-normal);
  color: var(--accent-cyan);
}

.service-card:hover .service-icon-wrapper {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--text-primary);
}

.service-icon-wrapper svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-desc {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.service-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
}

/* Interactive ROI Calculator Section */
.calculator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.calculator-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(159, 122, 234, 0.05) 0%, rgba(5, 5, 8, 0) 70%);
  pointer-events: none;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

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

.calc-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.calc-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
  padding: 0.2rem 0.8rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0, 242, 254, 0.1);
}

/* Slider Custom Styling */
.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5), 0 0 0 2px var(--accent-cyan);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5), 0 0 0 2px var(--accent-cyan);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.calc-results {
  background: rgba(5, 5, 8, 0.5);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.result-card {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
}

.result-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.result-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.result-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.result-number.alt {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Process Section */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 2rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,242,254,0.1) 0%, rgba(159,122,234,0.1) 100%);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.step-number-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition-normal);
  position: relative;
}

.process-step:hover .step-number-wrapper {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9rem;
}

/* Contact & Form Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.contact-value {
  font-weight: 500;
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.form-input, .form-textarea {
  background: rgba(5, 5, 8, 0.5);
  border: 1px solid var(--border-light);
  padding: 0.9rem 1.2rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.15);
  background: rgba(5, 5, 8, 0.8);
}

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

/* Submit Success State */
.form-status {
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.form-status.success {
  display: flex;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10B981;
}

.form-status.error {
  display: flex;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

/* Footer styling */
.footer {
  border-top: 1px solid var(--border-light);
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  padding: 5rem 2rem 3rem 2rem;
  position: relative;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

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

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

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 2.5rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.footer-social-link {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

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

/* Animations */
@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
    box-shadow: 0 0 4px rgba(0, 242, 254, 0.4);
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.8);
  }
}

@keyframes gradient-scroll {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scroll linked animations (Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-title {
    font-size: 3.25rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .calculator-box {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem;
  }
  
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  
  .process-timeline::before {
    display: none;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding-top: 4rem;
    gap: 2.5rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    pointer-events: none;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 5rem 1.5rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Core stage sizing on small screens */
@media (max-width: 768px) {
  .core-stage {
    max-width: 320px;
  }

  .core-hint {
    font-size: 0.7rem;
  }

  .dot-nav {
    display: none;
  }

  .nav-indicator {
    display: none;
  }

  .logo-img {
    height: 32px;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-cue-dot,
  .badge-dot,
  .core-pulse,
  .hero-title span {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
