/* ============================================================
   ERODATA Design System
   Navy Principal (#061426) + Verde Tecnológico (#11B98A)
   Fonts: Syne (display) + DM Sans (body)
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Surfaces */
  --surface-base: #061426;
  --surface-raised: #0C1F35;
  --surface-elevated: #132B44;

  /* Brand greens */
  --accent: #11B98A;
  --accent-dark: #059669;
  --accent-glow: rgba(17, 185, 138, 0.15);
  --accent-border: rgba(17, 185, 138, 0.22);
  --accent-subtle: rgba(17, 185, 138, 0.08);

  /* Text */
  --text-primary: #EEF3F8;
  --text-muted: #8B96A7;
  --text-dim: #6B7F94;

  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Easing (Emil Kowalski curves) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);

  /* Radii */
  --radius-card: 16px;
  --radius-pill: 100px;
  --radius-input: 10px;

  /* Spacing */
  --section-pad: 100px;
  --container-max: 1200px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--surface-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

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

/* --- Typography --- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-wrap: balance;
  max-width: 20ch;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: transform 160ms var(--ease-out),
    box-shadow 250ms var(--ease-out),
    background-color 250ms var(--ease-out),
    border-color 250ms var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--surface-base);
  box-shadow: 0 0 36px rgba(17, 185, 138, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(17, 185, 138, 0.35);
}

.btn-primary:active {
  transform: scale(0.97) translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--accent-border);
}

.btn-secondary:hover {
  background-color: var(--accent-subtle);
  border-color: var(--accent);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 0.78rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background-color: rgba(6, 20, 38, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(17, 185, 138, 0.08);
  transition: background-color 400ms var(--ease-out),
    border-color 400ms var(--ease-out);
}

.nav.scrolled {
  background-color: rgba(6, 20, 38, 0.92);
  border-bottom-color: rgba(17, 185, 138, 0.15);
}

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

.nav-logo img {
  height: 42px;
  width: auto;
}

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

.nav-link {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  transition: color 200ms var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-nav {
  padding: 8px 20px;
  font-size: 0.62rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 300ms var(--ease-out),
    opacity 200ms var(--ease-out);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  background-image: url('./assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(6, 20, 38, 0.95) 0%,
      rgba(6, 20, 38, 0.80) 50%,
      rgba(6, 20, 38, 0.55) 100%);
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
  padding-top: 24px;
}

.hero-content {
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 800ms var(--ease-smooth) 200ms forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 50ch;
  margin-bottom: 36px;
}

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

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Stats --- */
.stats {
  padding: 48px 0;
  background-color: var(--surface-raised);
  border-top: 1px solid rgba(17, 185, 138, 0.06);
  border-bottom: 1px solid rgba(17, 185, 138, 0.06);
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom,
      transparent,
      var(--accent-border),
      transparent);
}

/* --- About --- */
.about {
  padding: var(--section-pad) 0;
}

.about .section-title {
  max-width: 22ch;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  max-width: 55ch;
  margin-bottom: 20px;
  line-height: 1.75;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.highlight-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background-color: var(--surface-raised);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 350ms var(--ease-out),
    box-shadow 350ms var(--ease-out);
}

.highlight-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px var(--accent-glow);
}

.highlight-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  color: var(--accent);
}

.highlight-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.highlight-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Services --- */
/* --- Services --- */
.services {
  padding: var(--section-pad) 0;
  background-color: var(--surface-raised);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 32px 28px;
  background-color: var(--surface-base);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 350ms var(--ease-out),
    box-shadow 350ms var(--ease-out),
    border-color 350ms var(--ease-out);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 32px var(--accent-glow);
  border-color: var(--accent-border);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Products --- */
.products {
  padding: var(--section-pad) 0;
}

.products-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.product-card {
  background-color: var(--surface-raised);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 350ms var(--ease-out),
    box-shadow 350ms var(--ease-out),
    border-color 350ms var(--ease-out);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px var(--accent-glow);
  border-color: var(--accent-border);
}

.product-card--large {
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.product-card--large::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.product-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.product-card--compact .product-title {
  font-size: 0.95rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.product-card--compact .product-desc {
  margin-bottom: 0;
}

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

.product-tag {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.product-card--compact {
  padding: 24px 20px;
}

/* --- Expertise --- */
.expertise {
  padding: var(--section-pad) 0;
  background-color: var(--surface-raised);
}

.expertise .section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.expertise-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.expertise-pill {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: transform 300ms var(--ease-out),
    border-color 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out);
}

.expertise-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* --- CTA Section --- */
.cta-section {
  padding: var(--section-pad) 0 120px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-info {
  text-align: left;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-wrap: balance;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

/* Contact Details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: center;
}

.contact-icon {
  font-size: 1.4rem;
  background: rgba(17, 185, 138, 0.08);
  border: 1px solid rgba(17, 185, 138, 0.15);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-value.highlight {
  color: var(--accent);
  transition: color 200ms var(--ease-out), text-shadow 200ms var(--ease-out);
}

.contact-value.highlight:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(17, 185, 138, 0.3);
}

/* Secure Glassmorphic Form */
.secure-form {
  background-color: var(--surface-raised);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  backdrop-filter: blur(8px);
}

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

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

.form-group label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  background-color: var(--surface-base);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  transition: border-color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    background-color 200ms var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  background-color: var(--surface-elevated);
}

.form-error {
  font-size: 0.72rem;
  color: #ff5252;
  margin-top: 2px;
  display: none;
}

.form-error.active {
  display: block;
}

.char-counter {
  font-size: 0.68rem;
  color: var(--text-dim);
  align-self: flex-end;
  margin-top: -6px;
}

.btn-submit {
  width: 100%;
  margin-top: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Spinner loading indicator */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
  display: none;
}

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

.form-alert {
  padding: 16px;
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
  text-align: center;
  animation: fadeIn 300ms var(--ease-out);
}

.form-alert.success {
  background-color: rgba(17, 185, 138, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: block;
}

.form-alert.error {
  background-color: rgba(255, 82, 82, 0.1);
  border: 1px solid #ff5252;
  color: #ff5252;
  display: block;
}

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

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Footer --- */
.footer {
  padding: 64px 0 0;
  background-color: var(--surface-raised);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 32ch;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}

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

.footer-list li,
.footer-list a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 200ms var(--ease-out);
}

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

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

/* --- Scroll Reveal --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-smooth),
    transform 600ms var(--ease-smooth);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.services-grid [data-reveal]:nth-child(2),
.products-featured [data-reveal]:nth-child(2) {
  transition-delay: 60ms;
}

.services-grid [data-reveal]:nth-child(3) {
  transition-delay: 120ms;
}

.services-grid [data-reveal]:nth-child(4) {
  transition-delay: 180ms;
}

.services-grid [data-reveal]:nth-child(5) {
  transition-delay: 240ms;
}

.services-grid [data-reveal]:nth-child(6) {
  transition-delay: 300ms;
}

.products-grid [data-reveal]:nth-child(2) {
  transition-delay: 60ms;
}

.products-grid [data-reveal]:nth-child(3) {
  transition-delay: 120ms;
}

.products-grid [data-reveal]:nth-child(4) {
  transition-delay: 180ms;
}

.products-grid [data-reveal]:nth-child(5) {
  transition-delay: 240ms;
}

/* --- Mobile Menu Overlay --- */
.mobile-overlay {
  display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    min-height: 260px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

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

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

  .products-featured {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  /* CTA / Contact tablet */
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .contact-details {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-pad: 72px;
  }

  .container {
    padding: 0 20px;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 36px;
  }

  /* Nav mobile */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background-color: rgba(6, 20, 38, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms var(--ease-out);
    z-index: 999;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links .nav-link {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .btn-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero mobile */
  .hero {
    padding-top: 72px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .hero-visual {
    min-height: 200px;
  }

  /* Stats */
  .stats-inner {
    flex-direction: column;
    gap: 24px;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-border), transparent);
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* CTA / Contact mobile */
  .contact-details {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .secure-form {
    padding: 24px;
  }

  .form-row {
    flex-direction: column;
    gap: 24px;
  }
}

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

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    text-align: center;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-content {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .nav-link::after {
    display: none;
  }
}

/* --- Focus visible (keyboard nav) --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* --- Selection --- */
::selection {
  background-color: rgba(17, 185, 138, 0.3);
  color: var(--text-primary);
}