/* AscAuto — shared design tokens + chrome for the public marketing site
   (Landing, FAQ, Contact). "AscAuto Dark" design system. */

:root {
  --bg: #0b0c10;
  --bg-deep: #0d0f16;
  --surface-1: #101218;
  --surface-2: #14161b;
  --card: #1a1c22;
  --card-hover: #1e2027;
  --border: #23252b;
  --border-blue: #1e2740;
  --divider: #191b20;
  --text: #e8e8ea;
  --text-80: rgba(232, 232, 234, 0.8);
  --text-65: rgba(232, 232, 234, 0.65);
  --text-60: rgba(232, 232, 234, 0.6);
  --text-55: rgba(232, 232, 234, 0.55);
  --text-50: rgba(232, 232, 234, 0.5);
  --text-45: rgba(232, 232, 234, 0.45);
  --text-40: rgba(232, 232, 234, 0.4);
  --text-35: rgba(232, 232, 234, 0.35);
  --accent: #3d7bfd;
  --accent-hover: #4f88ff;
  --accent-light: #7aa5ff;
  --chip-bg: #2a2d36;
  --success: #7ee2a8;
  --error: #ff7a7a;
  --error-bg: rgba(255, 122, 122, 0.06);
  --error-border: rgba(255, 122, 122, 0.25);
  --warning: #f0b464;
  --font: -apple-system, system-ui, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); -webkit-font-smoothing: antialiased; }
body {
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--accent); color: #fff; }
input::placeholder, textarea::placeholder { color: var(--text-35); }
a { transition: color .15s ease; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 56px;
  display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.logo svg { flex-shrink: 0; }
.site-nav { display: flex; gap: 22px; flex: 1; font-size: 13px; flex-wrap: wrap; }
.site-nav a { color: var(--text-65); text-decoration: none; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav a.active { font-weight: 600; }
.nav-login { color: var(--text-75, rgba(232,232,234,0.75)); text-decoration: none; font-size: 13px; white-space: nowrap; }
.nav-login:hover { color: var(--text); }
.btn-cta {
  background: var(--accent); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px; white-space: nowrap; border: none; cursor: pointer; font-family: inherit;
  transition: background .15s ease;
}
.btn-cta:hover { background: var(--accent-hover); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-deep); }
.site-footer .inner {
  max-width: 1080px; margin: 0 auto; padding: 32px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-50);
}
.site-footer .brand { display: flex; align-items: center; gap: 8px; }
.site-footer .links { display: flex; gap: 20px; }
.site-footer a { color: var(--text-50); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Shared bits ---------- */
.section-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-60); margin-bottom: 10px;
}
main.page { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; width: 100%; flex: 1; }
main.page h1 { font-size: 32px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
main.page p.lede { color: var(--text-60); font-size: 14px; margin: 0 0 32px; }

.panel-gradient {
  background: linear-gradient(180deg, #101420, var(--bg-deep));
  border: 1px solid var(--border-blue);
  border-radius: 14px;
}

.msg-error {
  font-size: 13px; color: var(--error); background: var(--error-bg); border: 1px solid var(--error-border);
  border-radius: 8px; padding: 10px 13px;
}

.card-form {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-60); }
.field input, .field textarea {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px; padding: 10px 13px;
  color: var(--text); font-size: 14px; font-family: inherit; outline: none;
  text-transform: none; letter-spacing: normal; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }

.btn-primary {
  background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 11px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s ease;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.7; cursor: default; }
.btn-ghost {
  background: var(--chip-bg); border: 1px solid var(--border); color: var(--text); border-radius: 8px;
  padding: 8px 14px; font-size: 13px; font-family: inherit; cursor: pointer; text-decoration: none; display: inline-block;
  transition: background .15s ease;
}
.btn-ghost:hover { background: #31343e; }

@media (max-width: 640px) {
  .site-nav { display: none; }
}
