/* AITEQ Digital — Design System
   Dark theme, electric blue, modern high-tech aesthetic */

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

:root {
  --bg: #08080d;
  --bg-elevated: #0f0f17;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.55);

  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --accent-hover: #4f8bff;
  --accent-glow: rgba(37, 99, 235, 0.45);
  --accent-soft: rgba(37, 99, 235, 0.1);

  --container: 1200px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

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

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

/* ─── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }
}

/* ─── Typography ───────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 100px;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
}

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

.accent-text {
  color: var(--accent-bright);
}

/* ─── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(8, 8, 13, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — text only, no square mark */
.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
}

.logo-text {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.logo-text .ai {
  color: #2563eb;
}

.footer .logo {
  font-size: 1.5rem;
}

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

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--accent);
  color: white !important;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s var(--ease);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: all 0.3s;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--text);
  left: 0;
  transition: all 0.3s;
}

.menu-toggle span::before {
  top: -6px;
}
.menu-toggle span::after {
  top: 6px;
}

.menu-toggle.is-open span {
  background: transparent;
}
.menu-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 820px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    background: rgba(8, 8, 13, 0.98);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
    align-items: flex-start;
  }
  .nav-links.is-open {
    transform: translateY(0);
  }
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  max-width: 120vw;
  background: radial-gradient(
    circle at center,
    rgba(37, 99, 235, 0.2) 0%,
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .lead {
  margin: 0 auto 40px;
  font-size: 1.28rem;
}

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

.hero-badges {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 56px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-badge svg {
  color: var(--accent-bright);
  flex-shrink: 0;
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 24px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ─── Section Header ───────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

/* H1 inside section-header / about-content / contact-info should look like H2
   (single H1 per page is SEO best practice, but visually we keep one prominent
    hero H1 — these secondary H1s use the H2 size scale) */
.section-header h1,
.about-content h1,
.contact-info h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
}

/* ─── Service Cards — 3 columns (6 items = clean 2x3) ──────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  position: relative;
  padding: 30px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0) 0%,
    rgba(37, 99, 235, 0.4) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

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

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

.service-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.18),
    rgba(37, 99, 235, 0.05)
  );
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.93rem;
  line-height: 1.62;
}

/* ─── Feature / Capabilities Section (alternating rows) ────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 120px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-visual {
  order: 1;
}

@media (max-width: 900px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 72px;
  }
  .feature-row.reverse .feature-text {
    order: 1;
  }
  .feature-row.reverse .feature-visual {
    order: 2;
  }
}

.feature-text h3 {
  font-size: 1.9rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.feature-text p {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
}

.feature-list li {
  padding: 9px 0 9px 30px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 16px;
  height: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none'><path d='M2 6L5 9L10 3' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* ─── Feature Visuals (high-tech graphics) ─────────────────── */
.feature-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.viz {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.viz-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(8, 8, 13, 0.7);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-family: "SF Mono", "Fira Code", monospace;
  z-index: 2;
}

/* ─── Why Us / Trust Section ───────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-item {
  text-align: left;
  padding: 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}

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

.trust-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.trust-item h4 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.trust-item p {
  font-size: 0.95rem;
}

/* ─── Stats band ───────────────────────────────────────────── */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.06),
    rgba(37, 99, 235, 0.01)
  );
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-lg);
}

@media (max-width: 700px) {
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
    padding: 32px 24px;
    gap: 32px 16px;
  }
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, #9cc0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

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

/* ─── Process / Steps ──────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-step {
  position: relative;
}

.process-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.process-step h4 {
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.93rem;
}

/* ─── CTA Section ──────────────────────────────────────────── */
.cta-section {
  text-align: center;
  position: relative;
}

.cta-card {
  position: relative;
  padding: 84px 40px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1) 0%,
    rgba(37, 99, 235, 0.02) 100%
  );
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.22) 0%,
    transparent 60%
  );
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-card > * {
  position: relative;
}

.cta-card h2 {
  margin-bottom: 16px;
}

.cta-card p {
  margin: 0 auto 32px;
  max-width: 560px;
}

/* ─── Services Detail Page ─────────────────────────────────── */
.service-detail {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: start;
}

@media (max-width: 900px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.service-detail h2 {
  margin-bottom: 18px;
}

.use-cases {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.use-cases h4 {
  margin-bottom: 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
}

.use-cases ul {
  list-style: none;
}

.use-cases li {
  padding: 11px 0 11px 26px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 0.96rem;
}

.use-cases li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: 600;
}

.use-cases li:last-child {
  border-bottom: none;
}

/* ─── About Page ───────────────────────────────────────────── */
.about-content {
  max-width: 760px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

@media (max-width: 820px) {
  .about-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .about-pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pillar h4 {
  margin-bottom: 8px;
  color: var(--accent-bright);
}

.pillar p {
  font-size: 0.95rem;
  margin: 0;
}

/* ─── Contact Page ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 32px;
}

.contact-direct {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 24px;
}

.contact-direct .label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.contact-direct a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent-bright);
}

.contact-direct a:hover {
  color: var(--accent-hover);
}

.contact-perks {
  margin-top: 24px;
  list-style: none;
}

.contact-perks li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.contact-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: 700;
}

/* ─── Form ─────────────────────────────────────────────────── */
.contact-form {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (max-width: 600px) {
  .contact-form {
    padding: 28px 20px;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.field .optional {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.8rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.05);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

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

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field select option {
  background: var(--bg-elevated);
  color: var(--text);
}

.form-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  box-shadow: 0 8px 24px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.form-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}

.form-message.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: rgb(134, 239, 172);
}

.form-message.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: rgb(252, 165, 165);
}

/* ─── Legal Pages ──────────────────────────────────────────── */
.legal-page {
  padding: 140px 0 80px;
  min-height: 100vh;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.legal-content .meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin: 24px 0 12px;
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-content ul {
  margin-left: 24px;
  margin-bottom: 20px;
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content a {
  color: var(--accent-bright);
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
}

.legal-content a:hover {
  border-bottom-color: var(--accent);
}

/* ─── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col .footer-col-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

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

/* ─── Scroll Animations (slide-in left/right/up) ───────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-canvas {
    display: none;
  }
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}
