/* ==========================================================================
   Air-Chirp SEO CSS — shared by all static marketing pages
   Matches the app's dark theme. Prefixed with `ac-` to avoid Tailwind clashes.
   ========================================================================== */

:root {
  --bg: #080c14;
  --bg-card: #0d1420;
  --bg-header: #0a1020;
  --bg-elev: #0f1e30;
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --blue: #3b82f6;
  --blue-2: #3b7bbf;
  --blue-light: #60a5fa;
  --green: #22c55e;
  --green-dark: #16a34a;
  --amber: #f59e0b;
  --red: #ef4444;
  --border: #1e2d42;
  --border-2: #1e3a5a;
  --radius: 16px;
  --radius-sm: 12px;
  --max-w: 1080px;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--blue-light); text-decoration: none; transition: color .2s; }
a:hover { color: #93c5fd; }

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

/* ── Container ──────────────────────────────────────────────────── */

.ac-container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────── */

.ac-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 16, 32, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.ac-header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ac-logo { display: flex; align-items: center; gap: 10px; }
.ac-logo img { width: 28px; height: 28px; border-radius: 8px; background: #fff; }
.ac-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.ac-logo-text strong { font-size: 13px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.ac-logo-text span { font-size: 7px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-2); }

.ac-nav { display: flex; align-items: center; gap: 4px; }
.ac-nav a {
  color: var(--text-2); font-size: 13px; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; transition: all .2s;
}
.ac-nav a:hover { color: #fff; background: rgba(59, 130, 246, 0.1); }

.ac-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; padding: 9px 18px;
  border-radius: 10px; border: none; cursor: pointer;
  transition: all .2s; text-decoration: none; white-space: nowrap;
}
.ac-btn-primary { background: var(--blue); color: #fff; }
.ac-btn-primary:hover { background: #2563eb; color: #fff; }
.ac-btn-green { background: var(--green); color: #fff; }
.ac-btn-green:hover { background: var(--green-dark); color: #fff; }
.ac-btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border-2); }
.ac-btn-ghost:hover { color: #fff; border-color: var(--blue); background: rgba(59,130,246,0.08); }
.ac-btn-lg { font-size: 15px; padding: 14px 32px; border-radius: 12px; }

/* ── Hero ───────────────────────────────────────────────────────── */

.ac-hero {
  position: relative; padding: 80px 0 56px; text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(59, 130, 246, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(34, 197, 94, 0.05), transparent 60%);
}
.ac-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 900;
  line-height: 1.15; letter-spacing: -0.02em;
  max-width: 800px; margin: 0 auto 20px;
}
.ac-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-2);
  max-width: 620px; margin: 0 auto 32px; line-height: 1.6;
}
.ac-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Section ────────────────────────────────────────────────────── */

.ac-section { padding: 56px 0; }
.ac-section-alt { background: rgba(13, 20, 32, 0.5); }
.ac-section h2 {
  font-size: 1.75rem; font-weight: 800; line-height: 1.25;
  margin-bottom: 16px; letter-spacing: -0.01em;
}
.ac-section h2::after {
  content: ''; display: block; width: 40px; height: 3px;
  background: var(--blue); border-radius: 2px; margin-top: 12px;
}
.ac-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.ac-section p { color: var(--text-2); margin-bottom: 16px; }
.ac-section ul { list-style: none; margin-bottom: 16px; }
.ac-section li {
  color: var(--text-2); padding-left: 24px; position: relative; margin-bottom: 8px;
}
.ac-section li::before {
  content: ''; position: absolute; left: 4px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
.ac-section-lead { font-size: 1.1rem; color: var(--text); margin-bottom: 24px; max-width: 700px; }

/* ── Feature grid ───────────────────────────────────────────────── */

.ac-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 32px;
}
.ac-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.ac-card:hover {
  border-color: rgba(59, 130, 246, 0.4); transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(59, 130, 246, 0.10);
}
.ac-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.ac-card-icon svg { width: 22px; height: 22px; }
.ac-card-icon-blue { background: rgba(59, 130, 246, 0.12); color: var(--blue-light); }
.ac-card-icon-green { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.ac-card-icon-amber { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.ac-card-icon-red { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.ac-card h3 { margin-bottom: 8px; }
.ac-card p { font-size: 0.9rem; margin-bottom: 0; }

/* ── Safety notice ──────────────────────────────────────────────── */

.ac-safety {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm); padding: 24px;
  margin: 32px 0; display: flex; gap: 16px; align-items: flex-start;
}
.ac-safety-icon { flex-shrink: 0; color: var(--amber); }
.ac-safety-icon svg { width: 24px; height: 24px; }
.ac-safety h3 { color: var(--amber); font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.ac-safety p { font-size: 0.875rem; color: var(--text-2); margin-bottom: 0; }

/* ── FAQ ────────────────────────────────────────────────────────── */

.ac-faq { margin-top: 32px; }
.ac-faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 12px;
}
.ac-faq-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.ac-faq-item p { font-size: 0.9rem; color: var(--text-2); margin-bottom: 0; }

/* ── CTA section ────────────────────────────────────────────────── */

.ac-cta {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(34, 197, 94, 0.08));
  border: 1px solid var(--border-2); border-radius: 24px;
  padding: 48px 40px; text-align: center; margin: 48px 0;
}
.ac-cta h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.ac-cta h2::after { display: none; }
.ac-cta p { font-size: 1rem; color: var(--text-2); margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.ac-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Related pages ─────────────────────────────────────────────── */

.ac-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.ac-related a {
  display: block; padding: 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 0.875rem; font-weight: 600;
  transition: all .2s;
}
.ac-related a:hover { color: #fff; border-color: var(--blue); transform: translateY(-2px); }
.ac-related a strong { display: block; color: var(--text); font-size: 0.95rem; margin-bottom: 4px; }

/* ── Footer ─────────────────────────────────────────────────────── */

.ac-footer {
  border-top: 1px solid var(--border); padding: 40px 0 32px; margin-top: 40px;
}
.ac-footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
}
.ac-footer-brand { display: flex; align-items: center; gap: 10px; }
.ac-footer-brand img { width: 24px; height: 24px; border-radius: 6px; background: #fff; }
.ac-footer-brand strong { font-size: 12px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.ac-footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.ac-footer-links a { color: var(--text-3); font-size: 0.8rem; font-weight: 600; }
.ac-footer-links a:hover { color: var(--text); }
.ac-footer-copy { width: 100%; text-align: center; color: var(--text-3); font-size: 0.75rem; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ── 404 page ───────────────────────────────────────────────────── */

.ac-404 { text-align: center; padding: 120px 24px; }
.ac-404 h1 { font-size: clamp(4rem, 15vw, 8rem); font-weight: 900; color: var(--border-2); line-height: 1; }
.ac-404 h2 { font-size: 1.5rem; font-weight: 800; margin: 16px 0 8px; }
.ac-404 p { color: var(--text-2); margin-bottom: 28px; }
.ac-404-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Accessibility ──────────────────────────────────────────────── */

:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .ac-nav { display: none; }
  .ac-hero { padding: 56px 0 40px; }
  .ac-section { padding: 40px 0; }
  .ac-cta { padding: 32px 24px; margin: 32px 0; }
  .ac-footer-inner { flex-direction: column; }
  .ac-footer-links { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .ac-container { padding: 0 16px; }
  .ac-header-inner { padding: 0 16px; }
  .ac-hero-cta { flex-direction: column; align-items: stretch; }
  .ac-btn-lg { width: 100%; justify-content: center; }
  .ac-grid { grid-template-columns: 1fr; }
  .ac-related { grid-template-columns: 1fr; }
}
