/* ─────────────────────────────────────────────────────────────────────────
   EliteAuto Group — landing hero
   Implemented from the design handoff (EliteAuto Landing.dc.html + README).
   Tokens, copy and layout are per spec; engineering improved: self-hosted
   Inter, real hover/focus states, semantic markup, responsive subtitle.
   ───────────────────────────────────────────────────────────────────────── */

/* Inter, self-hosted (variable file serves 400 & 700; latin-ext covers ro) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin-ext-400.1ad231aac0a8.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin-400.260c81a4759b.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ── Design tokens (from the handoff README) ─────────────────────────── */
:root {
  --grad-1: #1d3820;
  --grad-2: #28492c;
  --grad-3: #2f5a34;
  --text:   #eae6c8;   /* headline */
  --text-2: #d9d6ba;   /* subtitle */
  --text-3: #c9c6a6;   /* footer / muted */
  --stroke: #d9d6b8;   /* radar line art */
  --btn:       rgba(255, 255, 255, 0.08);
  --btn-hover: rgba(255, 255, 255, 0.16);
  --pad-x: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--grad-1);
}
::selection { background: rgba(234, 230, 200, 0.25); }
a { color: var(--text); }
a:hover { color: #ffffff; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

/* ── Page ─────────────────────────────────────────────────────────────── */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, var(--grad-1) 0%, var(--grad-2) 45%, var(--grad-3) 100%);
}

/* radar line art — full bleed, anchored bottom-left, never stretched */
.radar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px var(--pad-x);
}
.brand { display: inline-flex; }
.brand img { height: 46px; width: auto; display: block; }  /* native PNG size — don't upscale */

.btn-signin {
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--text);
  background: var(--btn);
  border: none;
  padding: 15px 26px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-signin:hover { background: var(--btn-hover); color: var(--text); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: clamp(60px, 10vw, 120px) var(--pad-x) 40px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.25;
  margin: 0 0 28px;
  font-weight: 700;
  text-wrap: pretty;
  max-width: 880px;
  text-align: right;
}
.hero p {
  font-size: clamp(15px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 0 44px;
  text-align: right;
  white-space: nowrap;   /* single line per spec */
}
@media (max-width: 640px) {
  .hero p { white-space: normal; }   /* never overflow a phone screen */
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.contact {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 24px 20px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--text-3);
}
.contact a { color: var(--text-3); text-decoration: none; }
.contact a:hover { color: var(--text); }
.contact .sep { opacity: 0.6; }

/* ── Sign-in (landing modal + /accounts/login/ page) ──────────────────── */
.auth-card {
  position: relative;
  z-index: 2;
  width: min(400px, calc(100vw - 40px));
  padding: 36px 32px 32px;
  border-radius: 12px;
  color: var(--text);
  background: linear-gradient(160deg, rgba(29, 56, 32, 0.97), rgba(24, 46, 26, 0.97));
  border: 1px solid rgba(217, 214, 184, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.auth-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}
.auth-sub {
  margin: 0 0 26px;
  font-size: 14px;
  color: var(--text-2);
}
.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-2);
}
.auth-card input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--btn);
  border: 1px solid rgba(217, 214, 184, 0.3);
  border-radius: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.auth-card input::placeholder { color: rgba(217, 214, 186, 0.45); }
.auth-card input:focus {
  outline: none;
  border-color: var(--stroke);
  background: var(--btn-hover);
}
.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 15px 26px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--grad-1);
  background: var(--text);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.auth-submit:hover { background: #ffffff; }
.auth-error {
  margin: 0 0 16px;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 6px;
  color: #f3d9d2;
  background: rgba(146, 60, 40, 0.35);
  border: 1px solid rgba(220, 120, 96, 0.4);
}
.auth-error-text {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #f3d9d2;
}
/* standalone login page: card centered between nav and footer */
.auth-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px var(--pad-x);
}
/* landing modal */
dialog.auth-modal {
  border: none;
  padding: 0;
  background: transparent;
  overflow: visible;
}
dialog.auth-modal::backdrop {
  background: rgba(12, 24, 14, 0.6);
  backdrop-filter: blur(3px);
}
.auth-close {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 6px 10px;
  font-size: 20px;
  line-height: 1;
  color: var(--text-2);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.auth-close:hover { color: #ffffff; background: var(--btn); }

/* ── Entrance (subtle, disabled for reduced motion) ───────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise   { animation: rise 0.7s ease both; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .rise, .rise-2, .rise-3 { animation: none; }
}
