/* ============================================================
   Auspicious — Professional Computer Systems Design
   Design System: "Layered Precision"
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-bg-deep: #080c14;
  --color-bg-surface: #0f1520;
  --color-bg-elevated: #141c2a;
  --color-bg-highlight: #1a2335;
  --color-text-primary: #f0f2f5;
  --color-text-secondary: #b0b8c4;
  --color-text-muted: #6b7385;
  --color-accent: #00e5a0;
  --color-accent-glow: #00e5a040;
  --color-accent-alt: #0098db;
  --color-accent-alt-glow: #0098db40;
  --color-border: #1e2a3a;
  --color-border-light: #2a384c;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace;
  --max-width: 1240px;
  --max-width-narrow: 860px;
  --nav-height: 72px;
}

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

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

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

/* --- Selection --- */
::selection {
  background: var(--color-accent);
  color: var(--color-bg-deep);
}

/* --- Focus --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-accent-alt);
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-accent);
  color: var(--color-bg-deep);
  padding: 8px 16px;
  z-index: 10000;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--color-bg-deep);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-nav.scrolled {
  background: #080c14f2;
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-accent-glow);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

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

.nav-links a {
  color: var(--color-text-secondary);
  font-size: 0.925rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-text-primary);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-accent);
  color: var(--color-bg-deep);
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-cta:hover {
  background: #00f0b0;
  color: var(--color-bg-deep);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--color-bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 32px 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--color-border);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-toggle {
    display: flex;
  }
}

/* --- Section Base --- */
.section {
  padding: 100px 32px;
  position: relative;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 20px;
}

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

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: var(--color-bg-surface);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg-deep);
}
.btn-primary:hover {
  background: #00f0b0;
  color: var(--color-bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--color-accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-light);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-geo {
  width: 380px;
  height: 380px;
  position: relative;
}

.hero-geo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  animation: geoSpin 30s linear infinite;
}
.hero-geo-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.hero-geo-ring:nth-child(2) {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-color: var(--color-accent);
  animation-duration: 20s;
  animation-direction: reverse;
}
.hero-geo-ring:nth-child(3) {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  border-color: var(--color-accent-alt);
  animation-duration: 15s;
}

.hero-geo-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent-glow);
}

.hero-geo-dot:nth-child(4) { top: 8%; left: 52%; }
.hero-geo-dot:nth-child(5) { top: 78%; left: 25%; background: var(--color-accent-alt); box-shadow: 0 0 12px var(--color-accent-alt-glow); }
.hero-geo-dot:nth-child(6) { top: 22%; left: 82%; }
.hero-geo-dot:nth-child(7) { top: 62%; left: 72%; background: var(--color-accent-alt); box-shadow: 0 0 12px var(--color-accent-alt-glow); }

.hero-geo-line {
  position: absolute;
  height: 1px;
  background: var(--color-border);
  transform-origin: left center;
}
.hero-geo-line:nth-child(8) {
  width: 35%;
  top: 12%;
  left: 56%;
  transform: rotate(25deg);
}
.hero-geo-line:nth-child(9) {
  width: 28%;
  top: 66%;
  left: 29%;
  transform: rotate(-15deg);
  background: var(--color-accent);
  opacity: 0.4;
}

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

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-eyebrow {
    justify-content: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-geo {
    width: 240px;
    height: 240px;
  }
  .hero::before {
    display: none;
  }
}

/* --- About Section --- */
.about {
  background: var(--color-bg-surface);
  position: relative;
}

.about::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.about-layout {
  display: flex;
  gap: 0;
  position: relative;
}

.about-primary {
  flex: 1;
  padding-right: 48px;
  border-right: 1px solid var(--color-border);
}

.about-secondary {
  flex: 0 0 340px;
  padding-left: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-stat-block {
  background: var(--color-bg-elevated);
  padding: 28px 24px;
  border-left: 3px solid var(--color-accent);
}

.about-stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.about-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.about-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.about-feature-list li::before {
  content: '⟡';
  color: var(--color-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 860px) {
  .about-layout {
    flex-direction: column;
  }
  .about-primary {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 32px;
    margin-bottom: 32px;
  }
  .about-secondary {
    flex: auto;
    padding-left: 0;
  }
}

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

.services-timeline {
  position: relative;
  padding-left: 0;
}

.services-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 36px;
  width: 1px;
  background: var(--color-border);
}

.service-entry {
  position: relative;
  padding-left: 80px;
  padding-bottom: 48px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.service-entry:last-child {
  padding-bottom: 0;
}

.service-node {
  position: absolute;
  left: 28px;
  top: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--color-bg-deep);
  border: 2px solid var(--color-border-light);
  z-index: 2;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-entry:hover .service-node {
  border-color: var(--color-accent);
  box-shadow: 0 0 16px var(--color-accent-glow);
}

.service-body {
  flex: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: -8px;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.service-desc {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

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

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-accent-alt);
  background: var(--color-bg-highlight);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .services-timeline::before {
    left: 20px;
  }
  .service-entry {
    padding-left: 52px;
    flex-direction: column;
    gap: 12px;
  }
  .service-node {
    left: 12px;
  }
  .service-icon {
    margin-top: 0;
  }
}

/* --- Industries Section --- */
.industries {
  background: var(--color-bg-surface);
  position: relative;
  overflow: hidden;
}

.industries-constellation {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.industry-item {
  padding: 16px 28px;
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease;
  cursor: default;
}

.industry-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.industry-item:hover {
  background: var(--color-bg-highlight);
  color: var(--color-accent);
}

.industry-item:hover::after {
  transform: scaleX(1);
}

.industry-item.featured {
  background: var(--color-accent);
  color: var(--color-bg-deep);
}
.industry-item.featured:hover {
  background: #00f0b0;
  color: var(--color-bg-deep);
}
.industry-item.featured::after {
  display: none;
}

@media (max-width: 600px) {
  .industries-constellation {
    gap: 10px;
  }
  .industry-item {
    padding: 12px 18px;
    font-size: 0.85rem;
  }
}

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

.process-pathway {
  display: flex;
  gap: 0;
  counter-reset: process-step;
  position: relative;
}

.process-step {
  flex: 1;
  padding: 40px 20px 20px;
  position: relative;
  border-top: 2px solid var(--color-border);
  counter-increment: process-step;
}

.process-step::before {
  content: counter(process-step, decimal-leading-zero);
  position: absolute;
  top: -14px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-bg-deep);
  padding: 0 8px;
}

.process-step::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-light);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover::after {
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent-glow);
}

.process-step:first-child {
  border-top-color: var(--color-accent);
}

.process-step-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.process-step-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .process-pathway {
    flex-direction: column;
    gap: 0;
  }
  .process-step {
    border-top: none;
    border-left: 2px solid var(--color-border);
    padding: 16px 0 32px 32px;
  }
  .process-step::before {
    top: 0;
    left: -10px;
  }
  .process-step::after {
    top: 0;
    left: -5px;
  }
  .process-step:first-child {
    border-top: none;
    border-left-color: var(--color-accent);
  }
}

/* --- Contact Section --- */
.contact {
  background: var(--color-bg-elevated);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, var(--color-accent-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 50%, var(--color-accent-alt-glow) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0.3;
}

.contact-layout {
  display: flex;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.contact-info {
  flex: 0 0 340px;
}

.contact-info-item {
  margin-bottom: 28px;
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.contact-info-value {
  color: var(--color-text-primary);
  font-size: 1rem;
}

.contact-form-wrap {
  flex: 1;
}

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

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border-radius: 3px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
  outline: none;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300e5a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

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

.form-submit {
  align-self: flex-start;
}

.form-success {
  display: none;
  padding: 16px 20px;
  background: var(--color-bg-highlight);
  border-left: 3px solid var(--color-accent);
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .contact-layout {
    flex-direction: column;
    gap: 40px;
  }
  .contact-info {
    flex: auto;
  }
  .form-row {
    flex-direction: column;
  }
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--color-bg-deep);
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: var(--color-accent);
}

.cta-banner-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
}

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

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  padding: 60px 32px 32px;
}

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

.footer-grid {
  display: flex;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  flex: 0 0 280px;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.footer-brand-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.footer-nav-group {
  flex: 1;
}

.footer-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.footer-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

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

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .footer-grid {
    flex-direction: column;
    gap: 32px;
  }
  .footer-brand {
    flex: auto;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Legal Pages --- */
.legal-page {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  background: var(--color-bg-deep);
}

.legal-container {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.legal-header h1 {
  margin-bottom: 8px;
}

.legal-header .effective-date {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.legal-container h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.legal-container h2:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.legal-container h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.legal-container p,
.legal-container li {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-container ul,
.legal-container ol {
  margin-left: 24px;
  margin-bottom: 20px;
}

.legal-container li {
  margin-bottom: 8px;
}

.legal-contact {
  margin-top: 48px;
  padding: 24px;
  background: var(--color-bg-elevated);
  border-left: 3px solid var(--color-accent);
}

.legal-contact h3 {
  margin-top: 0;
  color: var(--color-text-primary);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* Scroll offset for fixed nav */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

/* --- Responsive Fixes --- */
@media (max-width: 600px) {
  .section {
    padding: 64px 20px;
  }
  .hero {
    padding-top: calc(var(--nav-height) + 24px);
  }
  .btn {
    padding: 12px 20px;
    font-size: 0.875rem;
  }
}

/* --- Print --- */
@media print {
  .site-nav,
  .nav-toggle,
  .cta-banner,
  .hero-geo,
  .contact-form {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
  .section {
    padding: 20px 0;
  }
}
