/*
Theme Name: AIREST Sentinel Dark
Theme URI: https://airest.ai
Author: AIREST LLC
Author URI: https://airest.ai
Description: Proactive AI Child Protection — Sentinel Dark Design System. Ultra-premium dark theme for AIREST.
Version: 2.1
License: Proprietary
Text Domain: airest
*/

/* ============================================================
   AIREST SENTINEL DARK — DESIGN SYSTEM
   Primary: #00d4ff (Cyan Electric)
   Background: #000000 (Pure Black)
   Surface: #0a0f1a (Deep Navy)
   Text: #e8edf5 (Ice White)
   Muted: #8892a4 (Steel Grey)
   Font: Space Grotesk (headings) + DM Sans (body) + Space Mono (code/numbers)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.15);
  --cyan-glow: rgba(0, 212, 255, 0.4);
  --bg: #000000;
  --surface: #0a0f1a;
  --surface-2: #0f1624;
  --border: rgba(255, 255, 255, 0.06);
  --text: #e8edf5;
  --muted: #8892a4;
  --faint: #4a5568;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── GRID BACKGROUND ── */
.airest-grid-bg {
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

/* ── CONTAINER ── */
.airest-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--cyan);
  color: #000;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
}
.btn-primary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 31px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── CARDS ── */
.airest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s var(--ease-out);
}
.airest-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(0,212,255,0.08);
}

/* ── STAT CARD ── */
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ── NAVBAR ── */
#airest-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s var(--ease-out);
  padding: 20px 0;
}
#airest-navbar.scrolled {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #fff;
}
.nav-logo-text span { color: var(--cyan); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta {
  padding: 10px 24px;
  background: var(--cyan);
  color: #000 !important;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.2s var(--ease-out) !important;
  text-decoration: none;
}
.nav-cta:hover { background: #fff !important; transform: translateY(-1px); }

/* Mobile Nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--cyan); }
.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── HERO ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,212,255,0.08) 0%, transparent 70%);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title .accent { color: var(--cyan); }
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── STATS SECTION ── */
.stats-section {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(0,212,255,0.03); }
.stat-value {
  font-family: var(--font-head);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--border); }
}

/* ── PROBLEM SECTION ── */
.section-standard {
  padding: 120px 0;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── INCUBATION SECTION ── */
.incubation-section {
  padding: 120px 0;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.incubation-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.incubation-header {
  text-align: center;
  margin-bottom: 16px;
}
.incubation-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.incubation-title .accent { color: var(--cyan); }
.incubation-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 64px;
  line-height: 1.7;
}
.incubation-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 64px;
}
.incubation-card {
  position: relative;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}
.incubation-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,212,255,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.incubation-card:hover::before { opacity: 1; }
.incubation-card:hover {
  border-color: rgba(0,212,255,0.5);
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(0,212,255,0.12);
}
.incubation-flag {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}
.incubation-org {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.incubation-country {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.incubation-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.incubation-license {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
}
@media (max-width: 768px) {
  .incubation-cards { grid-template-columns: 1fr; }
}

/* ── FOUNDER SECTION ── */
.founder-section {
  padding: 120px 0;
  background: var(--bg);
}
.founder-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.founder-image-wrap {
  position: relative;
}
.founder-image-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--cyan), transparent 60%);
  border-radius: 20px;
  z-index: 0;
}
.founder-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,212,255,0.15) 0%, transparent 70%);
  border-radius: 18px;
  z-index: 2;
  pointer-events: none;
  animation: founder-glow 3s ease-in-out infinite;
}
@keyframes founder-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.founder-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 180px;
  height: 210px;
  aspect-ratio: unset;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  display: block;
}
.founder-content {}
.founder-quote {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 32px;
  padding-left: 24px;
  border-left: 3px solid var(--cyan);
}
.founder-story {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.founder-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.founder-title-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .founder-inner { grid-template-columns: 1fr; gap: 36px; }
  .founder-image-wrap { max-width: 200px; margin: 0 auto; }
  .founder-img { max-width: 200px; height: 240px; margin: 0 auto; }
}

/* ── FOOTER ── */
.airest-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand-name span { color: var(--cyan); }
.footer-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 24px;
}
.footer-reg-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 8px;
  margin-bottom: 10px;
  width: fit-content;
}
.footer-reg-badge .flag { font-size: 20px; }
.footer-reg-name {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.footer-reg-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
}
.footer-col-title {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-contact-item {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.footer-contact-item a { color: var(--muted); text-decoration: none; }
.footer-contact-item a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 12px;
  color: var(--faint);
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 160px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(0,212,255,0.07) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
}
.page-hero-title .accent { color: var(--cyan); }
.page-hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ── FEATURE GRID ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ── ABOUT FOUNDER ── */
.about-founder-wrap {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .about-founder-wrap { grid-template-columns: 1fr; }
}
.about-founder-photo {
  position: sticky;
  top: 100px;
}
.about-founder-img {
  width: 100%;
  max-width: 150px;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(0,212,255,0.2);
  box-shadow: 0 0 30px rgba(0,212,255,0.08);
}
.about-founder-name {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-top: 20px;
  margin-bottom: 4px;
}
.about-founder-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.timeline-heading {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.timeline-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── CONTACT FORM ── */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form label {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  /* Fallback: show after 2s if JS/IntersectionObserver fails */
  animation: fadeUpIn 0.7s var(--ease-out) 2s forwards;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
.fade-up-delay-1 { transition-delay: 0.1s; animation-delay: 2.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; animation-delay: 2.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; animation-delay: 2.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; animation-delay: 2.4s; }

/* ── DIVIDER ── */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,212,255,0.3), transparent);
  margin: 0;
}

/* ── WAITLIST SECTION ── */
.waitlist-section {
  padding: 120px 0;
  background: var(--surface);
  text-align: center;
}
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.waitlist-form input {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 20px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-form input:focus { border-color: rgba(0,212,255,0.5); }
.waitlist-form input::placeholder { color: var(--faint); }

/* ── THREE COLUMN GRID UTILITY ── */
.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .three-col-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .three-col-grid { grid-template-columns: 1fr; }
}

/* ── TWO COLUMN GRID UTILITY ── */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.two-col-grid-sm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .two-col-grid-sm {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ── ADMIN BAR OFFSET ── */
.admin-bar #airest-navbar { top: 32px; }
@media (max-width: 782px) {
  .admin-bar #airest-navbar { top: 46px; }
}

/* ── WORDPRESS SPECIFIC ── */
.wp-block-image img { max-width: 100%; height: auto; border-radius: 8px; }
img { max-width: 100%; height: auto; }

/* ============================================================
   MOBILE RESPONSIVE — COMPREHENSIVE FIX
   Breakpoints: 480px (small phone), 600px (phone), 768px (tablet)
   ============================================================ */

/* ── CONTAINER MOBILE ── */
@media (max-width: 768px) {
  .airest-container { padding: 0 16px; }
}

/* ── BUTTONS MOBILE ── */
@media (max-width: 480px) {
  .btn-primary, .btn-outline {
    padding: 12px 20px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0 8px;
  }
}

/* ── HERO MOBILE ── */
@media (max-width: 768px) {
  .hero-section { padding: 100px 16px 70px; min-height: 100svh; }
  .hero-title { font-size: clamp(32px, 9vw, 48px); letter-spacing: -0.01em; }
  .hero-subtitle { font-size: 15px; margin-bottom: 32px; }
  .hero-eyebrow { font-size: 10px; padding: 6px 14px; margin-bottom: 24px; }
  .hero-scroll { bottom: 24px; }
}
@media (max-width: 480px) {
  .hero-section { padding: 90px 16px 60px; }
  .hero-title { font-size: clamp(28px, 10vw, 40px); }
  .hero-subtitle { font-size: 14px; }
}

/* ── STATS MOBILE ── */
@media (max-width: 768px) {
  .stats-section { padding: 48px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 24px 16px; }
  .stat-value { font-size: clamp(32px, 10vw, 52px); }
  .stat-label { font-size: 10px; }
}
@media (max-width: 480px) {
  .stat-item { padding: 20px 12px; }
  .stat-value { font-size: clamp(28px, 11vw, 44px); }
}

/* ── SECTION STANDARD MOBILE ── */
@media (max-width: 768px) {
  .section-standard { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: clamp(26px, 7vw, 40px); }
  .section-desc { font-size: 15px; }
}
@media (max-width: 480px) {
  .section-standard { padding: 48px 0; }
  .section-title { font-size: clamp(24px, 8vw, 36px); }
  .section-desc { font-size: 14px; }
}

/* ── PROBLEM / SOLUTION CONTENT MOBILE ── */
@media (max-width: 768px) {
  /* Problem section image + cards layout */
  .problem-layout,
  .solution-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .problem-image,
  .solution-image {
    width: 100%;
    max-width: 100%;
  }
  .problem-image img,
  .solution-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
  /* Cards grid in problem/solution sections */
  .cards-grid-2,
  .cards-2col {
    grid-template-columns: 1fr !important;
  }
  /* Generic 2-column grids */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  .airest-card { padding: 24px 20px; }
}

/* ── INCUBATION MOBILE ── */
@media (max-width: 768px) {
  .incubation-section { padding: 64px 0; }
  .incubation-cards { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .incubation-title { font-size: clamp(28px, 8vw, 44px); }
  .incubation-subtitle { font-size: 15px; margin-bottom: 40px; }
  .incubation-card { padding: 28px 24px; }
  .incubation-flag { font-size: 32px; }
}

/* ── FOUNDER MOBILE ── */
@media (max-width: 900px) {
  .founder-section { padding: 64px 0; }
  .founder-inner { grid-template-columns: 1fr; gap: 32px; }
  .founder-image-wrap { max-width: 120px !important; margin: 0 auto; }
  .founder-img { max-width: 120px !important; height: 144px !important; margin: 0 auto; display: block; }
  .founder-quote { font-size: clamp(16px, 4vw, 20px); }
}
@media (max-width: 480px) {
  .founder-image-wrap { max-width: 100px !important; }
  .founder-img { max-width: 100px !important; height: 120px !important; }
  .founder-story { font-size: 14px; }
}

/* ── FOOTER MOBILE ── */
@media (max-width: 768px) {
  .airest-footer { padding: 48px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-legal { justify-content: center; gap: 12px; }
  .footer-reg-badge { width: 100%; }
}

/* ── PAGE HERO MOBILE ── */
@media (max-width: 768px) {
  .page-hero { padding: 110px 16px 64px; }
  .page-hero-title { font-size: clamp(28px, 8vw, 44px); }
  .page-hero-subtitle { font-size: 15px; }
}
@media (max-width: 480px) {
  .page-hero { padding: 90px 16px 48px; }
  .page-hero-title { font-size: clamp(24px, 9vw, 36px); }
}

/* ── FEATURE GRID MOBILE (Technology/Clients pages) ── */
@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ── ABOUT PAGE MOBILE ── */
@media (max-width: 900px) {
  .about-founder-wrap { grid-template-columns: 1fr; gap: 32px; }
  .about-founder-photo { position: static; }
  .about-founder-img { max-width: 110px !important; height: 132px !important; margin: 0 auto; display: block; }
  .about-founder-name { font-size: 20px; text-align: center; }
  .about-founder-role { text-align: center; display: block; }
}
@media (max-width: 480px) {
  .timeline { padding-left: 24px; }
  .timeline-item::before { left: -28px; }
  .timeline-heading { font-size: 17px; }
  .timeline-text { font-size: 14px; }
}

/* ── CONTACT FORM MOBILE ── */
@media (max-width: 768px) {
  .contact-form input,
  .contact-form textarea,
  .contact-form select { font-size: 16px; /* prevent iOS zoom */ padding: 12px 14px; }
  /* Contact page layout */
  .contact-layout,
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

/* ── WAITLIST MOBILE ── */
@media (max-width: 768px) {
  .waitlist-section { padding: 64px 0; }
  .waitlist-form { flex-direction: column; gap: 12px; max-width: 100%; padding: 0 16px; }
  .waitlist-form input { min-width: unset; width: 100%; }
  .waitlist-form .btn-primary { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .waitlist-section { padding: 48px 0; }
}

/* ── INCUBATION QUOTE MOBILE ── */
@media (max-width: 768px) {
  .incubation-quote {
    font-size: 16px !important;
    padding: 20px 16px !important;
  }
}

/* ── GENERAL GRID FIXES FOR MOBILE ── */
@media (max-width: 600px) {
  /* Any grid with 2+ columns collapses to 1 */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }
  /* Reduce card padding on small screens */
  .airest-card { padding: 20px 16px; }
  /* Section headers */
  .section-header { margin-bottom: 32px; }
}

/* ── TECHNOLOGY PAGE STEPS MOBILE ── */
@media (max-width: 768px) {
  .steps-grid,
  .how-it-works-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .step-number {
    font-size: 40px !important;
  }
}

/* ── CLIENTS MARKETS MOBILE ── */
@media (max-width: 768px) {
  .markets-grid,
  .market-cards {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
}

/* ── PREVENT HORIZONTAL OVERFLOW ── */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { max-width: 100%; }
  .airest-container { overflow: hidden; }
  /* Fix any absolute positioned elements that might overflow */
  .incubation-glow { display: none; }
}
