/* ==========================================================================
   Smart Admin — public landing page styles
   No framework, no external requests: the page must render fully even when
   every third-party CDN is unreachable.
   ========================================================================== */

:root {
  --bg: #0b1220;
  --bg-alt: #101a2e;
  --surface: #16223c;
  --border: #24334f;
  --text: #e8eefc;
  --text-muted: #9bb0d3;
  --accent: #4f8cff;
  --accent-strong: #2f6fe4;
  --success: #34d399;
  --warning: #fbbf24;
  --radius: 14px;
  --container: 1120px;
  --shadow: 0 12px 32px rgb(0 0 0 / 35%);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fc;
    --bg-alt: #eef2f9;
    --surface: #ffffff;
    --border: #dbe3f0;
    --text: #0d1a2b;
    --text-muted: #51637f;
    --shadow: 0 10px 28px rgb(15 35 70 / 10%);
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark { font-size: 1.25rem; }

.site-nav {
  display: flex;
  gap: 1.25rem;
  margin-inline-start: auto;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.lang-switch { display: flex; gap: 0.25rem; }
.lang-switch button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lang-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

/* -------------------------------------------------------------------- hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(60% 60% at 15% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent),
    var(--bg);
}
.hero-inner { max-width: 780px; }

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin: 0 0 2rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); }

.status-note {
  margin-top: 1.5rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--warning);
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  color: var(--text);
  font-size: 0.875rem;
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 2rem;
  letter-spacing: -0.015em;
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.card-icon { font-size: 1.75rem; display: block; margin-bottom: 0.75rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.925rem; }

.grid-stats { text-align: center; }
.stat { padding: 1.25rem; }
.stat-value {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ----------------------------------------------------------------- contact */
.contact { max-width: 640px; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.contact-list li { display: flex; gap: 0.6rem; align-items: baseline; }
.contact-list a { color: var(--accent); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.legal { display: flex; gap: 0.5rem; }

/* --------------------------------------------------------------- a11y / mq */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .lang-switch { margin-inline-start: auto; }
}

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