/* Accounthinx — Custom CSS (Tailwind supplement) */
/* Only things Tailwind utilities can't easily express */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Smooth defaults ─────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Navbar glassmorphism ────────────────────────────── */
.navbar-glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
  transition: box-shadow 0.3s ease;
}
.navbar-glass.scrolled {
  box-shadow: 0 4px 24px rgba(30, 58, 95, 0.10);
}

/* ── Hero gradient background ────────────────────────── */
.hero-bg {
  background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 50%, #f0f7ff 100%);
}

/* ── Column cards ────────────────────────────────────── */
.cta-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.12);
}

.cta-item {
  transition: background 0.15s ease, color 0.15s ease;
}
.cta-item:hover {
  background: #f0f4ff;
}
.cta-item:hover .cta-arrow {
  transform: translateX(3px);
}
.cta-arrow {
  transition: transform 0.15s ease;
}

/* ── Gradient text ───────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Stat counter ────────────────────────────────────── */
.stat-card {
  transition: transform 0.2s ease;
}
.stat-card:hover { transform: translateY(-2px); }

/* ── Pricing card highlight ──────────────────────────── */
.pricing-popular {
  box-shadow: 0 0 0 2px #2563eb, 0 16px 40px rgba(37, 99, 235, 0.18);
}

/* ── Button animations ───────────────────────────────── */
.btn-primary-ax {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary-ax:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}
.btn-primary-ax:active { transform: translateY(0); }

/* ── Fade in on scroll (AOS-lite via CSS) ────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile menu ─────────────────────────────────────── */
.mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ── Toast notification ──────────────────────────────── */
.toast-enter {
  animation: toast-in 0.3s ease forwards;
}
.toast-leave {
  animation: toast-out 0.3s ease forwards;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100%); }
}

/* ── Language pill ───────────────────────────────────── */
.lang-pill {
  transition: background 0.15s, color 0.15s;
}
.lang-pill.active {
  background: #1e3a5f;
  color: #fff;
}

/* ── Feature icon ring ───────────────────────────────── */
.icon-ring {
  transition: background 0.2s, box-shadow 0.2s;
}
.feature-item:hover .icon-ring {
  background: #2563eb;
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1);
}
.feature-item:hover .icon-ring svg {
  color: #fff;
}

/* ── Mono font for numbers ───────────────────────────── */
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ── HTMX indicators ─────────────────────────────────── */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { display: inline-block; }

/* ── Dark mode preparation (tokens only — not enabled) ─ */
:root {
  --ah-primary: #1a2e4a;
  --ah-accent: #0ea5e9;
  --ah-success: #10b981;
  --ah-warning: #f59e0b;
  --ah-danger: #ef4444;
  --ah-surface: #ffffff;
  --ah-surface-muted: #f1f5f9;
  --ah-text: #0f172a;
  --ah-text-muted: #64748b;
  --ah-border: #e2e8f0;
}
html.dark {
  --ah-primary: #e2e8f0;
  --ah-accent: #38bdf8;
  --ah-success: #34d399;
  --ah-warning: #fbbf24;
  --ah-danger: #f87171;
  --ah-surface: #0f172a;
  --ah-surface-muted: #1e293b;
  --ah-text: #f8fafc;
  --ah-text-muted: #94a3b8;
  --ah-border: #334155;
}
/* Usage later: bg-[var(--ah-surface)] text-[var(--ah-text)] dark:… */

/* ── Section divider ─────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* ── Responsive fix: prevent iOS font zoom ───────────── */
@media (max-width: 767px) {
  input, select, textarea { font-size: 16px !important; }
}
