/* ==========================================================================
   INCOMPATIBLE MOONS — DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Colors */
  --bg-deep: #06070b;
  --bg-surface: #0c0e17;
  --bg-card: rgba(18, 22, 36, 0.75);
  --bg-card-hover: rgba(25, 30, 48, 0.85);
  --bg-input: rgba(12, 14, 24, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-focus: rgba(168, 85, 247, 0.6);

  --moon-violet: #a855f7;
  --moon-cyan: #06b6d4;
  --moon-violet-glow: rgba(168, 85, 247, 0.35);
  --moon-cyan-glow: rgba(6, 182, 212, 0.35);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --success: #10b981;
  --danger: #f43f5e;
  --warning: #f59e0b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow-violet: 0 0 25px rgba(168, 85, 247, 0.3);
  --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Background Canvas */
#cosmic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: auto;
}

/* Ambient Radial Glows */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-violet {
  top: 10%;
  left: -100px;
  background: var(--moon-violet);
}

.glow-cyan {
  bottom: 10%;
  right: -100px;
  background: var(--moon-cyan);
  animation-delay: -9s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.15); }
  100% { transform: translate(-40px, -60px) scale(0.95); }
}

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

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

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

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

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

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 7, 11, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(6, 7, 11, 0.92);
  border-bottom: 1px solid var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon svg {
  width: 38px;
  height: 38px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: #fff;
  display: inline-flex;
  align-items: center;
}

.brand-entity {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--moon-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.28);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  line-height: 1.2;
}

.brand-text span {
  color: var(--moon-cyan);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--moon-violet), var(--moon-cyan));
  transition: width 0.25s ease;
}

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

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.25s ease;
}

.nav-cta-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--moon-violet);
  box-shadow: 0 0 15px var(--moon-violet-glow);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
  padding: 110px 0 90px;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 28px;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.02);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--moon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--moon-cyan);
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 40px;
  font-weight: 400;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.55);
}

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

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

/* Metrics Strip */
.metrics-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 20px 36px;
  background: rgba(18, 22, 36, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.metric-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* Common Section Headers */
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moon-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* About / Duality Section */
.about-section {
  padding: 100px 0;
  position: relative;
}

.duality-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}

.duality-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.duality-card:hover {
  transform: translateY(-4px);
}

.card-violet:hover {
  border-color: var(--moon-violet);
  box-shadow: var(--shadow-glow-violet);
}

.card-cyan:hover {
  border-color: var(--moon-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-violet .card-icon {
  background: rgba(168, 85, 247, 0.12);
  color: var(--moon-violet);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.card-cyan .card-icon {
  background: rgba(6, 182, 212, 0.12);
  color: var(--moon-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.orbit-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-bullets li {
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-bullets li::before {
  content: '✦';
  font-size: 0.8rem;
}

.card-violet .feature-bullets li::before {
  color: var(--moon-violet);
}

.card-cyan .feature-bullets li::before {
  color: var(--moon-cyan);
}

.duality-nexus {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 20px;
}

.nexus-core {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #a855f7 60%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06070b;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), 0 0 50px rgba(6, 182, 212, 0.4);
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  animation: pulseCore 4s ease-in-out infinite;
}

@keyframes pulseCore {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.2); }
}

.nexus-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  margin-top: -65px;
  margin-left: -55px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  animation: rotateRing 20s linear infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nexus-caption {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  max-width: 100px;
}

/* Services Section */
.services-section {
  padding: 100px 0;
  position: relative;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  backdrop-filter: blur(12px);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

.service-number {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--moon-cyan);
  margin-bottom: 20px;
  opacity: 0.8;
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
}

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

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

/* Philosophy Section */
.philosophy-section {
  padding: 90px 0;
  position: relative;
}

.philosophy-container {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  backdrop-filter: blur(16px);
  max-width: 960px;
}

.quote-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moon-violet);
  margin-bottom: 24px;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
  margin-bottom: 32px;
}

.manifesto-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.author-avatar {
  position: relative;
  width: 36px;
  height: 36px;
}

.mini-moon {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.mini-moon.moon-violet {
  top: 0;
  left: 0;
  background: var(--moon-violet);
  box-shadow: 0 0 10px var(--moon-violet);
}

.mini-moon.moon-cyan {
  bottom: 0;
  right: 0;
  background: var(--moon-cyan);
  box-shadow: 0 0 10px var(--moon-cyan);
  mix-blend-mode: screen;
}

.author-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.author-info strong {
  font-size: 0.95rem;
  color: #fff;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

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

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: start;
}

/* Contact Left Column */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.status-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.82rem;
  color: #6ee7b7;
  font-weight: 500;
  align-self: flex-start;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulseBeacon 2s infinite;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}

.contact-subheading {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.meta-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--moon-cyan);
}

.meta-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
}

.meta-value:hover {
  color: var(--moon-cyan);
}

.transmission-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.guarantee-icon {
  color: var(--moon-violet);
  font-size: 1.2rem;
}

.transmission-guarantee p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Contact Form Container */
.contact-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.contact-form-container::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(6, 182, 212, 0.1), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

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

.required {
  color: var(--moon-violet);
}

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

.char-counter {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-family: inherit;
  transition: all 0.25s ease;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
  background: rgba(15, 18, 30, 0.95);
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  font-size: 1rem;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
}

.form-select option {
  background-color: #0d101a;
  color: #fff;
}

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

/* Budget Selector Pills */
.budget-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.budget-pill {
  cursor: pointer;
}

.budget-pill input {
  display: none;
}

.budget-pill span {
  display: block;
  text-align: center;
  padding: 10px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
  user-select: none;
}

.budget-pill input:checked + span {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--moon-violet);
  color: #fff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.budget-pill:hover span {
  border-color: var(--border-hover);
  color: #fff;
}

/* Form Validation Indicators */
.error-msg {
  font-size: 0.8rem;
  color: var(--danger);
  min-height: 18px;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(-2px);
}

.form-group.has-error .error-msg {
  opacity: 1;
  transform: translateY(0);
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
  border-color: var(--danger);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
  animation: shake 0.35s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.validation-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.form-group.is-valid .validation-icon {
  display: flex;
  background-color: var(--success);
  color: #fff;
}

.form-group.is-valid .validation-icon::after {
  content: '✓';
}

/* Submit Button */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(135deg, #a855f7 0%, #38bdf8 100%);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 8px;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.55);
}

.submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

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

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
  display: none;
}

.submit-btn.loading .btn-spinner {
  display: block;
}

/* Feedback Box */
.form-feedback {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-top: 10px;
  animation: fadeIn 0.3s ease;
}

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

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.form-feedback.error {
  display: block;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fecdd3;
}

.transmission-id-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: #fff;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 7, 11, 0.95);
  padding: 60px 0 30px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-brand {
  max-width: 360px;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--moon-cyan);
}

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

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: var(--moon-violet);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 992px) {
  .duality-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .duality-nexus {
    order: 2;
    padding: 10px;
  }

  .duality-card.card-violet {
    order: 1;
  }

  .duality-card.card-cyan {
    order: 3;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .metrics-strip {
    gap: 24px;
    padding: 16px 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(6, 7, 11, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
  }

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

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-section {
    padding: 70px 0 60px;
  }

  .metrics-strip {
    flex-direction: column;
    gap: 18px;
    width: 100%;
  }

  .metric-divider {
    width: 60%;
    height: 1px;
  }

  .budget-pills {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form-container {
    padding: 30px 22px;
  }

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