/* ═══════════════════════════════════════════════════════════════
   &THEN TECHNOLOGIES — styles.css
   Inspired by andthen-demo.lovable.app
   Space Grotesk + DM Sans · Dark navy + Teal · Glassmorphism
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ── 2. DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* Palette — Light mode */
  --bg:              hsl(210 25% 97%);
  --bg-alt:          hsl(210 20% 93%);
  --fg:              hsl(215 30% 12%);
  --fg-muted:        hsl(215 15% 45%);
  --fg-subtle:       hsl(215 12% 62%);

  --primary:         hsl(210 80% 25%);   /* deep navy */
  --primary-fg:      hsl(210 40% 98%);

  --accent:          hsl(175 70% 45%);   /* teal */
  --accent-dark:     hsl(175 70% 36%);
  --accent-fg:       hsl(210 80% 12%);
  --accent-muted:    hsla(175, 70%, 45%, .12);
  --accent-border:   hsla(175, 60%, 45%, .2);

  --border:          hsl(214 20% 88%);
  --border-focus:    var(--accent);

  /* Dark sections */
  --dark-bg:         hsl(210 80% 12%);   /* deep navy */
  --dark-bg2:        hsl(210 75% 9%);
  --dark-fg:         hsl(210 20% 92%);
  --dark-muted:      hsla(210, 20%, 92%, .65);
  --dark-glass-bg:   rgba(8, 38, 69, 0.55);
  --dark-glass-border: hsla(175, 60%, 45%, .15);

  /* Hero */
  --hero-overlay: linear-gradient(135deg, hsla(210,80%,15%,.88), hsla(175,60%,20%,.72));

  /* Glow */
  --glow-color:      hsl(175 80% 55%);

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07);
  --shadow:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.18);
  --shadow-glow: 0 0 32px hsla(175,70%,45%,.25);

  /* Radius */
  --r-sm:   6px;
  --r:      12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Spacing (8px unit) */
  --s1:  4px;
  --s2:  8px;
  --s3:  12px;
  --s4:  16px;
  --s5:  20px;
  --s6:  24px;
  --s8:  32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;
  --s20: 80px;
  --s24: 96px;

  /* Typography */
  --font-head:   'Space Grotesk', system-ui, sans-serif;
  --font-body:   'DM Sans', system-ui, sans-serif;

  /* Layout */
  --max-w:       1200px;
  --header-h:    68px;

  /* Transitions */
  --t:    200ms ease;
  --t-md: 300ms ease;
  --t-lg: 500ms ease;
}

/* Dark mode overrides (only bg/fg for light sections) */
[data-theme="dark"] {
  --bg:       hsl(210 80% 8%);
  --bg-alt:   hsl(210 75% 11%);
  --fg:       hsl(210 20% 90%);
  --fg-muted: hsl(215 12% 55%);
  --border:   hsl(214 25% 20%);
  --shadow:   0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:0 16px 48px rgba(0,0,0,.55);
}

/* ── 3. RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background var(--t-md), color var(--t-md);
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, textarea { font-family: var(--font-body); font-size: 1rem; }

.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;
}

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

/* ── 4. LAYOUT ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s5);
}
@media (min-width: 640px)  { .container { padding-inline: var(--s8); } }
@media (min-width: 1024px) { .container { padding-inline: var(--s10); } }

/* ── 5. TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--fg);
  margin-bottom: var(--s4);
}
.section-title.light { color: var(--dark-fg); }

.section-body {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 600px;
}
.section-body.light { color: var(--dark-muted); }

.section-header {
  text-align: center;
  margin-bottom: var(--s16);
}
.section-header .section-body { margin-inline: auto; }

/* ── 6. SECTION THEMES ───────────────────────────────────────── */
.section-light {
  background: var(--bg);
  padding-block: var(--s24);
}

.section-dark {
  background: var(--dark-bg);
  padding-block: var(--s24);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, hsla(175,70%,45%,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── 7. GLASS ────────────────────────────────────────────────── */
.glass {
  background: var(--dark-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--dark-glass-border);
  border-radius: var(--r-lg);
}

/* ── 8. BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 2rem;
  border-radius: var(--r);
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t),
              transform 120ms ease, box-shadow var(--t);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:active { transform: scale(.97); }

.btn--accent {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  box-shadow: 0 4px 20px hsla(175,70%,45%,.3);
}
.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px hsla(175,70%,45%,.4);
}

.btn--ghost {
  background: transparent;
  color: var(--dark-fg);
  border-color: hsla(210,20%,92%,.25);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--full { width: 100%; }

/* ── 9. HEADER ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: hsla(210,80%,12%,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid hsla(175,60%,45%,.1);
  transition: background var(--t-md), box-shadow var(--t-md);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: var(--s6);
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo-amp  { color: var(--accent); font-size: 1.35em; line-height: 1; }
.logo-then { color: var(--dark-fg); letter-spacing: -.02em; }
.logo-tech { font-size: .7em; font-weight: 400; color: var(--dark-muted); margin-left: 3px; }
.logo:hover .logo-amp { color: hsl(175 80% 55%); }
.logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-sm); }

/* Main nav */
.main-nav { flex: 1; display: none; }
@media (min-width: 768px) { .main-nav { display: flex; justify-content: center; } }

.nav-list { display: flex; gap: 2px; }

.nav-link {
  display: block;
  padding: .45rem .9rem;
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 500;
  color: var(--dark-muted);
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: var(--accent-muted);
}
.nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-inline-start: auto;
}

/* Language */
.lang-selector {
  display: none;
  align-items: center;
  gap: var(--s2);
}
@media (min-width: 768px) { .lang-selector { display: flex; } }

.lang-divider { color: hsla(210,20%,92%,.2); font-size: .75rem; }

.lang-btn {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--dark-muted);
  padding: 3px 7px;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.lang-btn:hover { color: var(--accent); background: var(--accent-muted); }
.lang-btn.active { color: var(--accent); background: var(--accent-muted); }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: hsla(210,20%,92%,.06);
  border: 1px solid hsla(210,20%,92%,.12);
  color: var(--dark-muted);
  transition: background var(--t), border-color var(--t), color var(--t);
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle:hover { background: var(--accent-muted); border-color: var(--accent-border); color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.icon-sun  { display: block; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px 7px;
  border-radius: var(--r-sm);
  transition: background var(--t);
}
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger:hover { background: var(--accent-muted); }
.hamburger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark-muted);
  border-radius: 2px;
  transition: transform var(--t-md), opacity var(--t-md);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--dark-bg2);
  border-top: 1px solid hsla(175,60%,45%,.1);
  padding: var(--s4) var(--s5) var(--s6);
}
.mobile-menu.open { display: block; }

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--s4);
}

.mobile-nav-link {
  display: block;
  padding: .6rem var(--s4);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
  color: var(--dark-muted);
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.mobile-nav-link:hover { color: var(--accent); background: var(--accent-muted); }

.mobile-lang {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding-top: var(--s4);
  border-top: 1px solid hsla(175,60%,45%,.1);
  color: var(--dark-muted);
  font-size: .8rem;
}

/* ── 10. HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-block: var(--s24);
}

/* Deep background image feel */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 70% 30%, hsl(210 80% 18%) 0%, hsl(210 80% 8%) 60%),
    linear-gradient(180deg, hsl(210 80% 10%) 0%, hsl(210 85% 6%) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

/* Ambient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(175,70%,45%,.18) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}
.hero-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsla(210,80%,35%,.20) 0%, transparent 70%);
  bottom: -100px;
  left: -80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  background: var(--accent-muted);
  padding: .4rem 1rem;
  border-radius: var(--r-full);
  margin-bottom: var(--s6);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--dark-fg);
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-bottom: var(--s6);
}

.hero-title-sub {
  color: var(--dark-muted);
  font-weight: 300;
}

/* Glow effect on main brand text */
.text-glow {
  background: linear-gradient(135deg, var(--dark-fg) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px hsla(175,70%,55%,.35));
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--dark-muted);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--s10);
  line-height: 1.8;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: var(--s4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: var(--s8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2.2s ease infinite;
}
.scroll-hint:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-full); }

.scroll-mouse {
  width: 24px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid hsla(210,20%,92%,.3);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollDot 1.6s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* Hero fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  animation: fadeUp .7s ease forwards;
}
.fade-up:nth-child(1) { animation-delay: .1s; }
.fade-up:nth-child(2) { animation-delay: .25s; }
.fade-up:nth-child(3) { animation-delay: .4s; }
.fade-up:nth-child(4) { animation-delay: .55s; }

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

/* ── 11. ABOUT ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  gap: var(--s12);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; gap: var(--s16); } }

.about-stat {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  margin-top: var(--s8);
  padding-top: var(--s8);
  border-top: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-plus { font-size: 2rem; }

.stat-label {
  font-size: .9rem;
  color: var(--fg-muted);
  max-width: 160px;
  line-height: 1.4;
}

.about-visual {
  display: flex;
  justify-content: center;
}

/* The about card uses dark glass even in light sections */
.about-card {
  padding: var(--s10);
  text-align: center;
  width: 100%;
  max-width: 380px;
}

.about-icon {
  width: 72px;
  height: 72px;
  margin-inline: auto;
  margin-bottom: var(--s6);
  color: var(--accent);
}

.about-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--dark-fg);
  margin-bottom: var(--s3);
}

.about-card p {
  font-size: .9rem;
  color: var(--dark-muted);
  line-height: 1.7;
}

/* ── 12. SERVICES ─────────────────────────────────────────────── */
.services-grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  padding: var(--s8) var(--s8) var(--s10);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  transition: transform var(--t-md), border-color var(--t-md), box-shadow var(--t-md);
}
.service-card:hover, .service-card:focus-within {
  transform: translateY(-6px);
  border-color: hsla(175,60%,45%,.3);
  box-shadow: var(--shadow-glow);
}
.service-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r);
  background: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background var(--t);
}
.service-card:hover .service-icon { background: hsla(175,70%,45%,.22); }
.service-icon svg { width: 26px; height: 26px; }

.service-card__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-fg);
}

.service-card__desc {
  font-size: .9rem;
  color: var(--dark-muted);
  line-height: 1.75;
  flex: 1;
}

/* ── 13. TEAM ─────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: 1fr;
}
@media (min-width: 480px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.team-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8) var(--s6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-md), box-shadow var(--t-md), border-color var(--t-md);
}
.team-card:hover, .team-card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.team-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--accent-border);
  transition: border-color var(--t-md);
  flex-shrink: 0;
  margin-bottom: var(--s2);
}
.team-card:hover .team-avatar { border-color: var(--accent); }

.avatar-initials {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-fg);
}

.team-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

.team-role {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}

.team-bio {
  font-size: .85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── 14. SECTORS ──────────────────────────────────────────────── */
.sectors-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: center;
  max-width: 700px;
  margin-inline: auto;
}

.sector-pill {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1.25rem;
  border-radius: var(--r-full);
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid var(--accent-border);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.sector-pill:hover {
  background: hsla(175,70%,45%,.2);
  border-color: hsla(175,60%,45%,.35);
  transform: translateY(-2px);
}

/* ── 15. CONTACT ──────────────────────────────────────────────── */
.contact-form {
  max-width: 720px;
  margin-inline: auto;
  padding: var(--s8) var(--s8) var(--s10);
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
@media (min-width: 640px) { .contact-form { padding: var(--s10) var(--s12); } }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  width: 100%;
}

.form-label {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.form-input {
  width: 100%;
  padding: .75rem 1rem;
  background: hsla(210,40%,98%,.06);
  border: 1.5px solid hsla(175,60%,45%,.15);
  border-radius: var(--r);
  color: var(--dark-fg);
  font-size: .9375rem;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  -webkit-appearance: none;
}
.form-input::placeholder { color: hsla(210,20%,92%,.3); }
.form-input:hover { border-color: hsla(175,60%,45%,.3); }
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px hsla(175,70%,45%,.12);
  background: hsla(210,40%,98%,.09);
}

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

.form-success {
  color: hsl(142 70% 50%);
  font-size: .875rem;
  font-weight: 500;
  text-align: center;
  display: none;
  padding: var(--s3);
  background: hsla(142,70%,50%,.08);
  border: 1px solid hsla(142,70%,50%,.2);
  border-radius: var(--r);
}
.form-success.visible { display: block; }

.form-error {
  color: hsl(0 80% 60%);
  font-size: .875rem;
  font-weight: 500;
  text-align: center;
  display: none;
  padding: var(--s3);
  background: hsla(0,80%,60%,.08);
  border: 1px solid hsla(0,80%,60%,.2);
  border-radius: var(--r);
}
.form-error.visible { display: block; }

.contact-info {
  display: flex;
  justify-content: center;
  margin-top: var(--s8);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  color: var(--dark-muted);
  font-size: .9375rem;
  transition: color var(--t);
}
.contact-link svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }
.contact-link:hover { color: var(--accent); }
.contact-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ── 16. FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--dark-bg2);
  border-top: 1px solid hsla(175,60%,45%,.08);
}

.footer-inner {
  display: grid;
  gap: var(--s10);
  padding-block: var(--s12);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-inner { grid-template-columns: 1.6fr 1fr 1fr; } }

.footer-brand .logo-then { color: var(--dark-fg); }
.footer-tagline {
  margin-top: var(--s4);
  font-size: .875rem;
  color: var(--dark-muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: hsla(210,20%,92%,.3);
  margin-bottom: var(--s4);
}

.footer-nav ul,
.footer-contact-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.footer-nav a,
.footer-contact-col a,
.footer-contact-col li {
  font-size: .875rem;
  color: var(--dark-muted);
  transition: color var(--t);
}
.footer-nav a:hover,
.footer-contact-col a:hover { color: var(--accent); }
.footer-nav a:focus-visible,
.footer-contact-col a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.footer-bottom {
  background: var(--dark-bg);
  padding-block: var(--s5);
  border-top: 1px solid hsla(175,60%,45%,.06);
}
.footer-copy {
  font-size: .8rem;
  color: hsla(210,20%,92%,.35);
  text-align: center;
}

/* ── 17. SCROLL REVEAL ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-up { opacity: 1; transform: none; animation: none; transition: none; }
  .scroll-hint, .scroll-dot { animation: none; }
}

/* ── 18. RTL ──────────────────────────────────────────────────── */
[dir="rtl"] .header-inner    { flex-direction: row-reverse; }
[dir="rtl"] .header-controls { margin-inline-start: 0; margin-inline-end: auto; }
[dir="rtl"] .logo             { flex-direction: row-reverse; }
[dir="rtl"] .logo-tech        { margin-left: 0; margin-right: 3px; }
[dir="rtl"] .hero-ctas        { flex-direction: row-reverse; }
[dir="rtl"] .about-grid       { direction: rtl; }
[dir="rtl"] .section-header   { direction: rtl; }
[dir="rtl"] .section-body     { margin-inline: auto; }
[dir="rtl"] .footer-inner     { direction: rtl; }
[dir="rtl"] .contact-link     { flex-direction: row-reverse; }
[dir="rtl"] .footer-tagline   { text-align: right; }

/* Arabic / Hebrew font fallback */
[dir="rtl"] body {
  font-family: 'DM Sans', 'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif;
}
