/* ============ Milqiway brand tokens ============ */
:root {
  /* Brand accent colors — shared across themes */
  --violet-100: #ede9fe;
  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;

  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #c084fc 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(192, 132, 252, 0.15));

  --radius: 14px;
  --radius-lg: 20px;
  --max-w: 1140px;

  /* Dark theme (default) */
  --bg: #050514;
  --bg-2: #0a0a1f;
  --bg-3: #10102b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(167, 139, 250, 0.18);
  --border-strong: rgba(167, 139, 250, 0.35);

  --text: #e9e7ff;
  --text-muted: #a8a4cf;
  --text-dim: #7c7aa8;

  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.25);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);

  --accent: var(--violet-300);

  --nav-bg: rgba(5, 5, 20, 0.7);
  --modal-backdrop: rgba(2, 2, 12, 0.75);
  --modal-panel-bg: linear-gradient(180deg, #0e0e26, #0a0a1f);
  --quote-fill: rgba(255, 255, 255, 0.04);
  --ai-panel-bg:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(99, 102, 241, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(192, 132, 252, 0.3), transparent 60%),
    linear-gradient(160deg, #14143a 0%, #0c0c26 60%, #1a0f2e 100%);
  --ai-stars-opacity: 0.6;
  --starfield-display: block;
  --logo-glow: drop-shadow(0 0 14px rgba(139, 92, 246, 0.45));
}

[data-theme="light"] {
  --bg: #fbfaff;
  --bg-2: #ece6ff;
  --bg-3: #ddd4ff;
  --surface: rgba(99, 102, 241, 0.06);
  --surface-2: rgba(99, 102, 241, 0.12);
  --border: rgba(99, 102, 241, 0.22);
  --border-strong: rgba(124, 58, 237, 0.45);

  --text: #1a1240;
  --text-muted: #4d4870;
  --text-dim: #807ca5;

  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.18);
  --shadow-card: 0 10px 30px rgba(99, 102, 241, 0.15);

  --accent: var(--violet-600);

  --nav-bg: rgba(251, 250, 255, 0.78);
  --modal-backdrop: rgba(20, 14, 50, 0.45);
  --modal-panel-bg: linear-gradient(180deg, #ffffff, #faf8ff);
  --quote-fill: rgba(255, 255, 255, 0.7);
  --ai-panel-bg:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(192, 132, 252, 0.18), transparent 60%),
    linear-gradient(160deg, #f3f0ff 0%, #faf6ff 60%, #fef0ff 100%);
  --ai-stars-opacity: 0;
  --starfield-display: none;
  /* Colorize the white brand logo to violet on light backgrounds, keep a soft halo */
  --logo-glow: brightness(0) saturate(100%) invert(22%) sepia(57%) saturate(3500%) hue-rotate(258deg) brightness(0.95) drop-shadow(0 4px 14px rgba(139, 92, 246, 0.22));
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ============ Starfield background ============ */
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: var(--starfield-display);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139, 92, 246, 0.25), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(99, 102, 241, 0.15), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(192, 132, 252, 0.1), transparent 60%);
}
.starfield::before,
.starfield::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 90% 90%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 10% 10%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 40%, rgba(196, 181, 253, 0.8), transparent),
    radial-gradient(1px 1px at 45% 55%, rgba(255, 255, 255, 0.4), transparent);
  background-size: 700px 700px;
  background-repeat: repeat;
  opacity: 0.5;
}
.starfield::after {
  background-size: 400px 400px;
  background-position: 100px 80px;
  opacity: 0.3;
}

/* ============ Navigation ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  filter: var(--logo-glow);
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { font-size: 14px; padding: 10px 20px; }

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.theme-toggle:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--violet-400);
  transform: translateY(-1px);
}
.theme-toggle .theme-icon-sun { display: block; }
.theme-toggle .theme-icon-moon { display: none; }
[data-theme="light"] .theme-toggle .theme-icon-sun { display: none; }
[data-theme="light"] .theme-toggle .theme-icon-moon { display: block; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  position: relative;
}
.btn-ghost:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--violet-400);
}
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--violet-400);
}
.btn-block { width: 100%; }
.badge-new {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.05em;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 100px 24px 120px;
  text-align: center;
  z-index: 1;
}
.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  max-width: 90vw;
  max-height: 90vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-orbit::before {
  content: '';
  position: absolute;
  inset: 30%;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 50%;
  transform: rotate(-12deg) scaleY(0.3);
}
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; }
.hero-title {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  margin-bottom: 56px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 540px;
  margin: 0 auto 48px;
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Sections ============ */
.section {
  position: relative;
  padding: 100px 0;
  z-index: 1;
}
.section-muted {
  background:
    linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.04) 50%, transparent),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(30px, 4.5vw, 48px);
  margin-bottom: 16px;
  max-width: 800px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 700px;
}

/* ============ Grids & Cards ============ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card-icon,
.mini-icon,
.service-icon,
.info-icon,
.ai-feature-icon {
  font-variant-emoji: text;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text);
}
.card p { font-size: 14.5px; color: var(--text-muted); }

.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gradient-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 16px;
  margin-bottom: 14px;
}
.mini-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text);
}
.mini-card p { font-size: 14px; }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.2s, border-color 0.2s;
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.service-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.service-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}
.service-card p { font-size: 14.5px; }

.services-cta {
  margin-top: 56px;
  text-align: center;
}
.services-cta p {
  margin-bottom: 16px;
  font-size: 16px;
}

/* ============ AI Automations flagship section ============ */
.section-ai {
  padding: 80px 0 100px;
}
.ai-panel {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
}
.ai-panel-bg {
  position: absolute;
  inset: 0;
  background: var(--ai-panel-bg);
  z-index: -2;
}
.ai-panel-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 25% 35%, rgba(196, 181, 253, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 75% 65%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 50% 20%, rgba(196, 181, 253, 0.5), transparent),
    radial-gradient(1px 1px at 85% 30%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 15% 80%, rgba(196, 181, 253, 0.5), transparent);
  background-size: 600px 400px;
  background-repeat: repeat;
  opacity: var(--ai-stars-opacity);
}
.ai-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.6), rgba(99, 102, 241, 0.2) 30%, rgba(192, 132, 252, 0.5) 70%, rgba(167, 139, 250, 0.6));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}
.ai-panel-inner {
  padding: 64px 56px;
}
.ai-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.ai-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 7px 14px;
  border-radius: 999px;
}
.ai-badge-pulse {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
  animation: ai-pulse 2.4s ease-in-out infinite;
}
@keyframes ai-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(139, 92, 246, 0.7); }
}
.ai-badge-soft {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--accent);
}
.ai-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 760px;
  margin-top: 14px;
  margin-bottom: 48px;
}
.ai-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.ai-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ai-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}
.ai-feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--text);
}
.ai-feature p { font-size: 14.5px; color: var(--text-muted); }
.ai-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.ai-tagline {
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
  max-width: 560px;
}

@media (max-width: 960px) {
  .ai-features { grid-template-columns: 1fr; }
  .ai-panel-inner { padding: 44px 32px; }
}
@media (max-width: 640px) {
  .ai-panel-inner { padding: 36px 22px; }
  .ai-cta { flex-direction: column; align-items: flex-start; }
  .ai-cta .btn { width: 100%; }
}

/* ============ Case Study section ============ */
.section-case {
  background:
    radial-gradient(ellipse 70% 50% at 30% 0%, rgba(99, 102, 241, 0.10), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.case-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.case-left { position: sticky; top: 100px; }
.case-logo-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  margin: 18px 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.18), 0 0 0 1px var(--border);
}
.case-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
}
.case-stat {
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 24px 24px;
  margin-bottom: 20px;
}
.case-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.case-stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.case-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-tags li {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.case-right .section-title { margin-bottom: 24px; }
.case-body {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.7;
}
.case-body strong { color: var(--accent); font-weight: 600; }
.case-quote {
  position: relative;
  margin: 32px 0 0;
  padding: 32px 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  border-left: 3px solid transparent;
  background-image:
    linear-gradient(var(--quote-fill), var(--quote-fill)),
    var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.case-quote-mark {
  position: absolute;
  top: -10px;
  left: 24px;
  font-family: 'Space Grotesk', serif;
  font-size: 80px;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.case-quote-text {
  font-size: 17px;
  color: var(--text);
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 18px;
}
.case-quote-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.case-quote-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.5), 0 6px 16px rgba(139, 92, 246, 0.3);
}
.case-quote-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.case-quote-name {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}
.case-quote-title {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 960px) {
  .case-grid { grid-template-columns: 1fr; gap: 36px; }
  .case-left { position: static; }
}
@media (max-width: 640px) {
  .case-stat-num { font-size: 44px; }
  .case-quote { padding: 28px 22px 22px; }
}

/* ============ Contact section ============ */
.section-contact {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 92, 246, 0.15), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-top: 24px;
}
.contact-form,
.contact-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 0;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet-400);
  background: var(--surface-2);
}
.field textarea { resize: vertical; min-height: 100px; }
.field .req { color: #f87171; }
.field select option { background: var(--bg-2); color: var(--text); }

.input-prefix,
.input-suffix {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color 0.2s;
}
.input-prefix:focus-within,
.input-suffix:focus-within { border-color: var(--violet-400); }
.input-prefix > span,
.input-suffix > span {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}
.input-prefix input,
.input-suffix input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 8px;
}
.input-prefix input:focus,
.input-suffix input:focus {
  outline: none;
  background: transparent;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--accent);
  min-height: 20px;
}
.form-status.error { color: #f87171; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.info-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.info-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
a.info-value { color: var(--accent); }
.info-list { display: block; }
.info-label-lg {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 12px;
}
.info-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0 6px 22px;
  position: relative;
}
.info-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--violet-400);
  font-weight: 700;
}

/* ============ Footer ============ */
.footer {
  position: relative;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { height: 32px; opacity: 0.85; filter: var(--logo-glow); }
.footer-meta { text-align: right; }
.footer-meta p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 2px 0;
}

/* ============ Modal ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  background: var(--modal-panel-bg);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-glow), 0 30px 60px rgba(0, 0, 0, 0.6);
  margin: auto;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.modal-close:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--violet-400);
}
.modal-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
}
.modal-form {
  padding: 36px 40px;
  border-right: 1px solid var(--border);
}
.modal-form h2 {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--text);
}
.form-section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 24px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.form-section-title:first-of-type { margin-top: 0; }
.modal-aside {
  padding: 64px 32px 36px;
}
.aside-card {
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: 64px;
}
.aside-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text);
}
.aside-card > p { font-size: 14.5px; margin-bottom: 24px; }
.aside-list { list-style: none; padding: 0; margin: 0 0 20px; }
.aside-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  align-items: flex-start;
}
.aside-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.aside-list strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 2px;
}
.aside-list p { font-size: 13.5px; }
.aside-note {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--accent);
  text-align: center;
  line-height: 1.5;
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-form { border-right: none; border-bottom: 1px solid var(--border); padding: 28px; }
  .modal-aside { padding: 28px; }
  .aside-card { position: static; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { padding: 9px 16px; font-size: 13px; }
  .brand-logo { height: 32px; }
  .hero { padding: 60px 20px 80px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .contact-form { padding: 24px; }
  .modal { padding: 0; }
  .modal-panel { border-radius: 0; min-height: 100vh; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
  .service-card { flex-direction: column; }
}
