/* DealrHQ marketing site — standalone styles.
   Palette mirrors the app's dark theme (theme.js T_DARK):
   bg #0f0f10 · surface #1a1a1d · elevated #222226 · border #2a2a2e
   accent #3b82f6 / hover #2563eb · text #fff · textSec #a0a0a5 · textMut #6b6b72 */

:root {
  --bg: #0f0f10;
  --surface: #1a1a1d;
  --elevated: #222226;
  --border: #2a2a2e;
  --accent: #3b82f6;
  --accent-hov: #2563eb;
  --text: #ffffff;
  --text-sec: #a0a0a5;
  --text-mut: #6b6b72;
  --radius: 14px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.02rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hov); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  background: var(--accent); color: #fff;
  border-radius: 9px; font-weight: 800; font-size: 1.05rem;
}
.brand-name { font-size: 1.15rem; letter-spacing: -.01em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto;
  padding: 1rem 1.5rem;
  background: rgba(15, 15, 16, .8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a:not(.btn) { color: var(--text-sec); font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; color: var(--text); font-size: 1.5rem; background: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 5.5rem 1.5rem 4rem; }
.hero-inner { max-width: 880px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.eyebrow {
  display: inline-block;
  color: var(--accent); font-weight: 600; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.hero .accent { color: var(--accent); }
.lede { color: var(--text-sec); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 620px; margin: 1.4rem auto 0; }
.hero-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-note { color: var(--text-mut); font-size: .9rem; margin-top: 1.5rem; }
.hero-note a { color: var(--text-sec); text-decoration: underline; }
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,.22), transparent 65%);
  pointer-events: none; z-index: 1;
}

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 4.5rem 1.5rem; }
.section-alt { background: var(--surface); max-width: none; }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.02em; font-weight: 800; }
.section-head p { color: var(--text-sec); margin-top: .8rem; font-size: 1.05rem; }

/* ---------- Cards grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-icon { font-size: 1.8rem; margin-bottom: .8rem; }
.card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.card p { color: var(--text-sec); font-size: .92rem; }

.why-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
}
.why-item h3 { font-size: 1.25rem; margin-bottom: .6rem; color: var(--accent); }
.why-item p { color: var(--text-sec); }

/* ---------- CTA / form ---------- */
.cta-section { display: flex; justify-content: center; }
.cta-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 3rem;
  max-width: 640px; width: 100%; text-align: center;
}
.cta-box h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); font-weight: 800; }
.cta-box > p { color: var(--text-sec); margin: .8rem 0 2rem; }
.access-form { text-align: left; }
.form-row { display: flex; gap: .8rem; margin-bottom: .8rem; }
.access-form input, .access-form textarea {
  width: 100%; padding: .8rem .9rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: .95rem;
  resize: vertical;
}
.access-form input:focus, .access-form textarea:focus { outline: none; border-color: var(--accent); }
.access-form input::placeholder, .access-form textarea::placeholder { color: var(--text-mut); }
.access-form textarea { margin-bottom: 1.2rem; }
.access-form .btn { width: 100%; }
.form-fallback { color: var(--text-mut); font-size: .88rem; text-align: center; margin-top: 1.1rem; }
.form-fallback a { color: var(--text-sec); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 3rem 1.5rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; text-align: center; }
.footer-tag { color: var(--text-sec); margin: 1rem 0; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin: 1.2rem 0; flex-wrap: wrap; }
.footer-links a { color: var(--text-sec); font-size: .92rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-mut); font-size: .85rem; margin-top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; right: 1.5rem;
    flex-direction: column; align-items: stretch; gap: .8rem;
    background: var(--elevated); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.2rem; min-width: 200px;
  }
  .nav-links.open { display: flex; }
  .form-row { flex-direction: column; gap: .8rem; }
  .cta-box { padding: 2rem 1.4rem; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}
