/* ==========================================================================
   Retrograde — retrograde.space
   Design: Deep Space Observatory
   Dark navy background, teal accents, glassmorphism panels
   ========================================================================== */

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

:root {
  --bg: #0a0e1a;
  --bg-panel: rgba(18, 22, 38, 0.8);
  --fg: #e0e4ef;
  --fg-muted: #7a82a0;
  --teal: #2dd4bf;
  --teal-dim: #1a9e8f;
  --gold: #e0b860;
  --gold-dim: #c49a3a;
  --magenta: #d946a8;
  --border: rgba(60, 70, 110, 0.4);
  --border-hover: rgba(45, 212, 191, 0.4);
  --panel-border: rgba(80, 90, 130, 0.35);
  --radius: 1.125rem;
  --radius-sm: 0.75rem;
  --radius-xl: 1.5rem;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-w: 1280px;
}

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

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

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

.text-gradient-teal {
  background: linear-gradient(135deg, #2dd4bf, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: linear-gradient(135deg, #f0c860, #d4a030);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
}
.glass-panel-hover:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px rgba(45, 212, 191, 0.08), inset 0 1px 0 rgba(255,255,255,0.05);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Section Label ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.section-label__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--teal);
}
.section-label__line {
  height: 1px;
  width: 2rem;
  background: rgba(45, 212, 191, 0.4);
}
.section-label__text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(45, 212, 191, 0.7);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--teal), #38bdf8);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.3);
  transform: scale(1.02);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}

/* ---------- Star Field ---------- */
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.35; }
}

/* ---------- Constellation Grid ---------- */
.constellation-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem 0;
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(14, 18, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 1.5rem;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.navbar__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--teal), #38bdf8);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.3);
}
.navbar__logo-icon svg {
  width: 1rem;
  height: 1rem;
  fill: var(--bg);
}
.navbar__logo-text {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.navbar__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.navbar__link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: all 0.2s;
}
.navbar__link:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.05);
}
.navbar__cta {
  display: none;
}
.navbar__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.navbar__mobile-toggle:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.05);
}
.navbar__mobile-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}
.navbar__mobile-menu {
  display: none;
  margin-top: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(16, 20, 34, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem;
}
.navbar__mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.navbar__mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: all 0.2s;
}
.navbar__mobile-link:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.05);
}

@media (min-width: 768px) {
  .navbar__links { display: flex; }
  .navbar__cta { display: flex; }
  .navbar__mobile-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__glow-1 {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.06);
  filter: blur(120px);
}
.hero__glow-2 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.05);
  filter: blur(100px);
}
.hero__content {
  position: relative;
  z-index: 10;
  padding-top: 8rem;
  padding-bottom: 5rem;
}
.hero__centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 13rem);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--fg-muted);
}
.hero__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .hero__buttons { flex-direction: row; justify-content: center; }
}
.hero__bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--bg), transparent);
}

/* ---------- Sections shared ---------- */
.section {
  position: relative;
  padding: 7rem 0;
}
.section--bordered {
  border-top: 1px solid rgba(255,255,255,0.04);
}
.section__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.section__subtext {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 42rem;
}

/* ---------- Features / Capabilities ---------- */
.features__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  padding: 2rem;
  transition: all 0.3s;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-4px);
}
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.feature-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--bg);
}
.feature-card__icon--teal { background: linear-gradient(135deg, #2dd4bf, #38bdf8); }
.feature-card__icon--gold { background: linear-gradient(135deg, #e0b860, #d4a030); }
.feature-card__icon--magenta { background: linear-gradient(135deg, #d946a8, #c026a0); }
.feature-card__icon--blue { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.feature-card__icon--green { background: linear-gradient(135deg, #2dd4bf, #10b981); }
.feature-card__icon--amber { background: linear-gradient(135deg, #e0b860, #f59e0b); }

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.feature-card__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* ---------- How It Works ---------- */
.how-it-works__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) { .how-it-works__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .how-it-works__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .how-it-works__grid--5col { grid-template-columns: repeat(5, 1fr); } }

.step-card {
  text-align: center;
  position: relative;
}
.step-card__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(45, 212, 191, 0.4);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.step-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: all 0.3s;
}
.step-card:hover .step-card__icon {
  border-color: rgba(45, 212, 191, 0.3);
  background: rgba(45, 212, 191, 0.06);
  box-shadow: 0 0 30px rgba(45, 212, 191, 0.1);
}
.step-card__icon svg {
  width: 2rem;
  height: 2rem;
  color: rgba(45, 212, 191, 0.7);
  transition: color 0.3s;
}
.step-card:hover .step-card__icon svg {
  color: var(--teal);
}
.step-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.step-card__desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---------- Audience Cards ---------- */
.audience__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .audience__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .audience__grid { grid-template-columns: repeat(3, 1fr); } }

.audience-card {
  padding: 2rem;
  transition: all 0.3s;
}
.audience-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 0 30px rgba(45, 212, 191, 0.08);
}
.audience-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.audience-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--bg);
}
.audience-card__icon--teal { background: linear-gradient(135deg, #2dd4bf, #38bdf8); }
.audience-card__icon--blue { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.audience-card__icon--gold { background: linear-gradient(135deg, #e0b860, #d4a030); }

.audience-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.audience-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.audience-card__list li {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
}
.audience-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.6;
}

/* ---------- World Components ---------- */
.world-components {
  padding: 3rem 2rem;
}
.world-components__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 640px) { .world-components__inner { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .world-components__inner { grid-template-columns: repeat(6, 1fr); } }

.world-component {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.world-component svg {
  width: 2rem;
  height: 2rem;
  color: var(--teal);
  opacity: 0.7;
}
.world-component span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
}

/* ---------- Events Type Grid ---------- */
.events-type__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .events-type__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .events-type__grid { grid-template-columns: repeat(4, 1fr); } }

.event-type-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s;
}
.event-type-card:hover {
  transform: translateY(-2px);
}
.event-type-card svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--teal);
  opacity: 0.7;
  flex-shrink: 0;
}
.event-type-card span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ---------- Dashboard Features ---------- */
.dashboard-features__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 32rem;
}
@media (min-width: 640px) {
  .dashboard-features__grid { grid-template-columns: repeat(2, 1fr); max-width: 48rem; }
}

.dashboard-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
}
.dashboard-feature__check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.15);
}
.dashboard-feature__check svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--teal);
}
.dashboard-feature span {
  font-size: 0.9375rem;
  color: var(--fg-muted);
}

/* ---------- Tech Stack ---------- */
.tech-stack__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .tech-stack__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tech-stack__grid { grid-template-columns: repeat(5, 1fr); } }

.tech-stack-item {
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}
.tech-stack-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.06);
}
.tech-stack-item__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.tech-stack-item__value {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

/* ---------- Architecture Diagram ---------- */
.architecture-diagram {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.arch-level {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.arch-connector {
  width: 2px;
  height: 1.5rem;
  background: linear-gradient(to bottom, rgba(45,212,191,0.4), rgba(45,212,191,0.15));
  margin: 0 auto;
}
.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s;
}
.arch-node:hover {
  border-color: rgba(45, 212, 191, 0.3);
  background: rgba(45, 212, 191, 0.04);
}
.arch-node span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}
.arch-node--primary {
  background: linear-gradient(135deg, rgba(45,212,191,0.15), rgba(56,189,248,0.1));
  border-color: rgba(45, 212, 191, 0.3);
  font-family: var(--font-display);
  font-size: 1.125rem;
  padding: 1rem 2rem;
}
.arch-node--accent {
  border-color: rgba(45, 212, 191, 0.25);
  background: rgba(45, 212, 191, 0.06);
}
.arch-node--muted {
  border-color: rgba(255,255,255,0.06);
  color: var(--fg-muted);
  font-size: 0.8125rem;
}

/* ---------- Roadmap ---------- */
.roadmap__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 36rem;
  position: relative;
  padding-left: 2rem;
}
.roadmap__grid::before {
  content: '';
  position: absolute;
  left: 0.4375rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), rgba(45,212,191,0.1));
}
.roadmap-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
}
.roadmap-item__dot {
  position: absolute;
  left: -2rem;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal);
  transform: translateX(0);
}
.roadmap-item__content h4 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 400;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}
.cta-banner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(45,212,191,0.08), rgba(56,189,248,0.06), rgba(217,70,168,0.05));
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cta-banner__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.06);
  filter: blur(100px);
}
.cta-banner__content {
  position: relative;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}
.cta-banner__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .cta-banner__buttons { flex-direction: row; justify-content: center; }
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: 2fr 3fr; gap: 5rem; }
}
.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact__info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: rgba(45, 212, 191, 0.1);
  flex-shrink: 0;
}
.contact__info-icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--teal);
}
.contact__info-label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.125rem;
}
.contact__info-value {
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.contact__info-value a {
  color: var(--teal);
  transition: opacity 0.2s;
}
.contact__info-value a:hover {
  text-decoration: underline;
}
.contact__form {
  padding: 2rem;
}
@media (min-width: 640px) { .contact__form { padding: 2.5rem; } }

.contact__form-row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .contact__form-row { grid-template-columns: 1fr 1fr; } }

.contact__form-group {
  margin-bottom: 1.5rem;
}
.contact__form-group:last-of-type {
  margin-bottom: 0;
}
.contact__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.contact__input,
.contact__select,
.contact__textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--fg);
  transition: all 0.2s;
}
.contact__input::placeholder,
.contact__textarea::placeholder {
  color: rgba(122, 130, 160, 0.5);
}
.contact__input:focus,
.contact__select:focus,
.contact__textarea:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.15);
}
.contact__select option {
  background: #121626;
}
.contact__textarea {
  resize: none;
}
/* ---------- reCAPTCHA ---------- */
.contact__captcha-group {
  margin-top: 1rem;
  margin-bottom: 0;
}

.contact__captcha-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 82px;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.contact__captcha-wrap .g-recaptcha {
  transform-origin: left top;
}

@media (max-width: 640px) {
  .contact__captcha-wrap {
    justify-content: center;
  }

  .contact__captcha-wrap .g-recaptcha {
    transform-origin: center top;
  }
}

@media (max-width: 420px) {
  .contact__captcha-wrap .g-recaptcha {
    transform: scale(0.92);
  }
}

/* Status message after submit */
.form-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-status.success {
  color: var(--teal);
}

.form-status.error {
  color: #f87171;
}

.form-status.sending {
  color: var(--fg-muted);
}s
.contact__submit-row {
  margin-top: 1.5rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 0;
}
.footer__grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer__brand-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 24rem;
  margin-bottom: 1.5rem;
}
.footer__socials {
  display: flex;
  gap: 0.75rem;
}
.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--fg-muted);
  transition: all 0.2s;
}
.footer__social:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.06);
  border-color: rgba(45, 212, 191, 0.3);
}
.footer__social svg {
  width: 1rem;
  height: 1rem;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__col-link {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.footer__col-link:hover {
  color: var(--fg);
}
.footer__bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}
.footer__copyright {
  font-size: 0.75rem;
  color: rgba(122, 130, 160, 0.6);
}
.footer__legal {
  display: flex;
  gap: 1.5rem;
}
.footer__legal a {
  font-size: 0.75rem;
  color: rgba(122, 130, 160, 0.6);
  transition: color 0.2s;
}
.footer__legal a:hover {
  color: var(--fg-muted);
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal--left {
  transform: translateX(30px);
}
.reveal--right {
  transform: translateX(-30px);
}
.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------- Glow accents ---------- */
.glow-accent {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  background: rgba(18, 22, 38, 0.95);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: var(--fg);
  font-size: 0.875rem;
  z-index: 100;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s;
  backdrop-filter: blur(12px);
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast--success {
  border-color: rgba(45, 212, 191, 0.4);
}
.toast--info {
  border-color: rgba(56, 189, 248, 0.4);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(60, 70, 110, 0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(80, 90, 130, 0.6); }
