/* ajan2 — interim landing styles (mobile-first, WCAG AA, dark mode)
   Görkem Aslan · DevOps */

:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-fg: #ffffff;
  --ok: #16a34a;
  --warn: #f59e0b;
  --err: #dc2626;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1120px;
  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111a2e;
  --surface-2: #0e1729;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #1f2a44;
  --primary: #3b82f6;
  --primary-600: #2563eb;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: var(--primary-fg);
  padding: 8px 12px; z-index: 1000;
}
.skip:focus { left: 8px; top: 8px; }

/* ===== Topbar ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(8px);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.brand__name { font-size: 18px; letter-spacing: -.01em; }

.nav { display: none; gap: 24px; align-items: center; }
.nav a { color: var(--muted); font-weight: 500; font-size: 14px; }
.nav a:hover { color: var(--text); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; /* 44px touch target */
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  font-size: 20px; color: var(--text); cursor: pointer;
}

.mnav { display: flex; flex-direction: column; padding: 8px 16px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.mnav a { padding: 14px 8px; border-bottom: 1px solid var(--border); color: var(--text); }
.mnav a:last-child { border-bottom: none; }

@media (min-width: 768px) {
  .nav { display: inline-flex; }
  .nav-toggle { display: none; }
  .mnav { display: none !important; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px;
  font-weight: 600; font-size: 14px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
}
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { background: var(--primary-600); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); text-decoration: none; }

/* ===== Hero ===== */
.hero {
  padding: 56px 0 40px;
  background: radial-gradient(1200px 400px at 50% -100px, rgba(37,99,235,.12), transparent 60%);
}
.chip {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px;
}
.lead { font-size: clamp(15px, 2.2vw, 18px); color: var(--muted); max-width: 720px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ===== Sections ===== */
.section { padding: 48px 0; }
.section--alt { background: var(--surface-2); }
.section h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 6px; letter-spacing: -.01em; }
.muted { color: var(--muted); margin-top: 0; }

/* ===== Grid / Cards ===== */
.grid {
  display: grid; gap: 16px; margin-top: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover, .card:focus-within { transform: translateY(-2px); border-color: var(--primary); }
.card__icon { font-size: 28px; margin-bottom: 8px; }
.card h3 { margin: 4px 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ===== Status ===== */
.status {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 16px; margin-top: 16px;
  box-shadow: var(--shadow);
}
.status__row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 4px; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.status__row:last-child { border-bottom: none; }
.status__row b { min-width: 110px; }
.status__row span:last-child { color: var(--muted); margin-left: auto; text-align: right; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 10px; }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.dot--wait { background: var(--warn); box-shadow: 0 0 0 4px rgba(245,158,11,.15); }
.dot--err { background: var(--err); box-shadow: 0 0 0 4px rgba(220,38,38,.15); }

.build { margin-top: 16px; }
.build summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.build pre {
  background: var(--surface); border: 1px solid var(--border);
  padding: 12px; border-radius: var(--radius-sm); overflow: auto; font-size: 12px;
  color: var(--text);
}

/* ===== Tags ===== */
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--muted);
}

/* ===== Footer ===== */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 20px 0; margin-top: 32px; }
.footer__inner { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
@media (min-width: 768px) { .footer__inner { flex-direction: row; justify-content: space-between; } }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
