/* ============================================================
   Scout Consultatory – Main Stylesheet
   Dark, tactical, professional. No fluff.
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #08091a;
  --bg-2:      #0d1128;
  --bg-3:      #111827;
  --surface:   #161d35;
  --border:    rgba(255,255,255,0.08);
  --accent:    #3b82f6;
  --accent-2:  #60a5fa;
  --gold:      #f59e0b;
  --text:      #e2e8f0;
  --text-muted:#94a3b8;
  --text-dim:  #64748b;
  --white:     #ffffff;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.6);
  --transition: 0.2s ease;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background:  var(--bg);
  color:       var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--white); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text-muted); margin-bottom: 1rem; }
a { color: var(--accent-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  padding:         0.6rem 1.4rem;
  border-radius:   var(--radius);
  font-family:     var(--font-head);
  font-size:       0.9rem;
  font-weight:     600;
  cursor:          pointer;
  border:          2px solid transparent;
  transition:      all var(--transition);
  text-decoration: none;
  white-space:     nowrap;
}
.btn--lg  { padding: 0.85rem 2rem; font-size: 1rem; }
.btn--sm  { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn--primary  { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-2); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--white); }
.btn--outline { background: transparent; color: var(--accent-2); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--white); }

/* ── Section headers ──────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header--left { text-align: left; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { font-size: 1.05rem; max-width: 540px; margin: 0 auto; }
.section-header--left p { margin: 0; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position:   fixed;
  top:        0; left: 0; right: 0;
  z-index:    1000;
  padding:    1rem 0;
  transition: background var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
  background:      rgba(8,9,26,0.92);
  backdrop-filter: blur(16px);
  border-bottom:   1px solid var(--border);
}
.nav__inner {
  display:     flex;
  align-items: center;
  justify-content: space-between;
  max-width:   1100px;
  margin:      0 auto;
  padding:     0 1.5rem;
}
.nav__logo {
  font-family: var(--font-head);
  font-size:   1.1rem;
  font-weight: 700;
  color:       var(--white);
  display:     flex;
  align-items: center;
  gap:         8px;
}
.nav__logo:hover { color: var(--accent-2); }
.nav__logo-mark { color: var(--accent); font-size: 1rem; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav__links a:hover { color: var(--white); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position:        relative;
  min-height:      100vh;
  display:         flex;
  align-items:     center;
  overflow:        hidden;
  padding:         8rem 0 5rem;
}
.hero__bg {
  position:         absolute;
  inset:            0;
  background:       radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,0.15) 0%, transparent 70%),
                    radial-gradient(ellipse 40% 40% at 80% 50%, rgba(245,158,11,0.06) 0%, transparent 60%);
  pointer-events:   none;
}
.hero__content { position: relative; z-index: 1; max-width: 780px; }
.hero__badge {
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  padding:       0.35rem 0.85rem;
  background:    rgba(59,130,246,0.1);
  border:        1px solid rgba(59,130,246,0.3);
  border-radius: 100px;
  font-size:     0.78rem;
  font-weight:   600;
  color:         var(--accent-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__headline { margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.hero__headline br { display: block; }
.hero__sub { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; margin-bottom: 2.5rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero__stats { display: flex; align-items: center; gap: 1.5rem; }
.stat { display: flex; flex-direction: column; }
.stat__num   { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--white); }
.stat__label { font-size: 0.75rem; color: var(--text-dim); }
.stat__divider { width: 1px; height: 32px; background: var(--border); }

/* ── Problems ───────────────────────────────────────────────── */
.problems {
  padding:    4rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.problems__lead { text-align: center; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 2rem; }
.problems__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.problem-card {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  padding:       1.5rem;
  transition:    border-color var(--transition), transform var(--transition);
}
.problem-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-2px); }
.problem-card__icon { font-size: 1.5rem; display: block; margin-bottom: 0.75rem; }
.problem-card p { font-size: 0.9rem; margin: 0; }

/* ── Services ───────────────────────────────────────────────── */
.services { padding: 6rem 0; }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.service-card {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:       1.75rem;
  transition:    border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor:        default;
}
.service-card:hover { border-color: rgba(59,130,246,0.4); transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card__icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.service-card h3 { margin-bottom: 0.5rem; color: var(--white); }
.service-card p  { font-size: 0.9rem; margin: 0; }

/* ── Tiers ──────────────────────────────────────────────────── */
.tiers {
  padding:    6rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tiers__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: start; }
.tier-card {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:       2rem;
  position:      relative;
  transition:    transform var(--transition);
}
.tier-card:hover { transform: translateY(-3px); }
.tier-card--featured {
  border-color: var(--accent);
  background:   linear-gradient(135deg, rgba(59,130,246,0.1), var(--surface));
  box-shadow:   0 0 30px rgba(59,130,246,0.15);
}
.tier-card__badge {
  font-size:   0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color:       var(--accent-2);
  margin-bottom: 0.5rem;
}
.tier-card__popular {
  position:      absolute;
  top:           -12px;
  left:          50%;
  transform:     translateX(-50%);
  background:    var(--accent);
  color:         var(--white);
  font-size:     0.7rem;
  font-weight:   700;
  padding:       3px 12px;
  border-radius: 100px;
  white-space:   nowrap;
}
.tier-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.tier-card p  { font-size: 0.88rem; margin-bottom: 1.25rem; }
.tier-card ul { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tier-card li {
  font-size:   0.88rem;
  color:       var(--text-muted);
  padding-left: 1.25rem;
  position:    relative;
}
.tier-card li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

/* ── How It Works ───────────────────────────────────────────── */
.how { padding: 6rem 0; }
.how__steps {
  display:     flex;
  align-items: flex-start;
  gap:         1rem;
  flex-wrap:   wrap;
}
.step { flex: 1; min-width: 200px; }
.step__num { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: rgba(59,130,246,0.3); line-height: 1; margin-bottom: 0.75rem; }
.step h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.step p  { font-size: 0.9rem; margin: 0; }
.step__arrow { font-size: 1.5rem; color: var(--text-dim); margin-top: 2.5rem; flex-shrink: 0; align-self: flex-start; }

/* ── About ──────────────────────────────────────────────────── */
.about {
  padding:    6rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.about__inner { display: grid; grid-template-columns: 1fr 340px; gap: 4rem; align-items: start; }
.about__content p { margin-bottom: 1.25rem; }
.about__pillars { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.pillar {
  display:       flex;
  align-items:   center;
  gap:           6px;
  padding:       0.5rem 1rem;
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  font-size:     0.88rem;
  font-weight:   600;
  color:         var(--text);
}
.about__card {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:       2rem;
}
.about__card-line { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--white); margin-bottom: 0.5rem; }
.about__card-divider { height: 1px; background: var(--border); margin: 1.25rem 0; }
.about__card-tag {
  display:       inline-flex;
  padding:       4px 10px;
  background:    rgba(59,130,246,0.1);
  border:        1px solid rgba(59,130,246,0.2);
  border-radius: 100px;
  font-size:     0.78rem;
  font-weight:   500;
  color:         var(--accent-2);
  margin:        3px;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact { padding: 6rem 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.required { color: var(--accent); }
input, textarea, select {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  padding:       0.75rem 1rem;
  color:         var(--white);
  font-family:   var(--font-body);
  font-size:     0.9rem;
  transition:    border-color var(--transition), box-shadow var(--transition);
  width:         100%;
  outline:       none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
textarea { resize: vertical; min-height: 120px; }
select option { background: var(--bg-3); }
input::placeholder, textarea::placeholder { color: var(--text-dim); }
.form-actions { margin-top: 0.5rem; }
.btn__spinner svg { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status {
  padding:       0.85rem 1rem;
  border-radius: var(--radius);
  font-size:     0.9rem;
  margin-top:    0.5rem;
}
.form-status--success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.form-status--error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.contact__info { padding-top: 0.5rem; }
.contact__info h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.contact__link {
  display:     flex;
  align-items: center;
  gap:         8px;
  font-size:   0.9rem;
  color:       var(--accent-2);
  margin-bottom: 0.75rem;
}
.contact__note { font-size: 0.85rem; }
.contact__divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  padding:       2.5rem 0;
  border-top:    1px solid var(--border);
  background:    var(--bg);
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__brand {
  display:     flex;
  align-items: center;
  gap:         8px;
  font-family: var(--font-head);
  font-weight: 700;
  color:       var(--white);
  font-size:   0.95rem;
}
.footer__tagline { color: var(--text-dim); font-size: 0.8rem; font-weight: 400; margin-left: 0.5rem; }
.footer__nav { display: flex; gap: 1.5rem; }
.footer__nav a { font-size: 0.85rem; color: var(--text-dim); }
.footer__nav a:hover { color: var(--text); }
.footer__copy { font-size: 0.8rem; color: var(--text-dim); margin: 0; }

/* ── Chat widget ────────────────────────────────────────────── */
.chat-widget { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; }
.chat-toggle {
  width:         56px;
  height:        56px;
  border-radius: 50%;
  background:    var(--accent);
  border:        none;
  cursor:        pointer;
  display:       flex;
  align-items:   center;
  justify-content: center;
  color:         var(--white);
  box-shadow:    0 4px 20px rgba(59,130,246,0.5);
  transition:    transform var(--transition), box-shadow var(--transition);
  position:      relative;
}
.chat-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(59,130,246,0.7); }
.chat-toggle__badge {
  position:      absolute;
  top:           -4px;
  right:         -4px;
  background:    var(--gold);
  color:         #1a1000;
  font-size:     0.6rem;
  font-weight:   800;
  padding:       2px 5px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.chat-panel {
  position:      absolute;
  bottom:        68px;
  right:         0;
  width:         360px;
  background:    var(--bg-3);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:    var(--shadow-lg);
  display:       flex;
  flex-direction: column;
  overflow:      hidden;
  animation:     chatIn 0.2s ease;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
.chat-header {
  display:        flex;
  align-items:    center;
  justify-content: space-between;
  padding:        1rem 1.25rem;
  background:     var(--surface);
  border-bottom:  1px solid var(--border);
}
.chat-header__info { display: flex; align-items: center; gap: 10px; }
.chat-header__avatar {
  width:         34px;
  height:        34px;
  background:    var(--accent);
  border-radius: 50%;
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     0.85rem;
  color:         var(--white);
  font-weight:   700;
}
.chat-header__name   { font-weight: 600; font-size: 0.9rem; color: var(--white); }
.chat-header__status { font-size: 0.72rem; color: #34d399; }
.chat-header__close  { background: none; border: none; cursor: pointer; color: var(--text-dim); font-size: 1.2rem; padding: 2px 6px; border-radius: 4px; }
.chat-header__close:hover { color: var(--white); background: var(--border); }
.chat-messages {
  flex:       1;
  overflow-y: auto;
  padding:    1rem;
  display:    flex;
  flex-direction: column;
  gap:        0.75rem;
  max-height: 340px;
  min-height: 200px;
}
.chat-msg { display: flex; }
.chat-msg--bot  { justify-content: flex-start; }
.chat-msg--user { justify-content: flex-end; }
.chat-msg__bubble {
  max-width:     78%;
  padding:       0.65rem 0.9rem;
  border-radius: var(--radius);
  font-size:     0.88rem;
  line-height:   1.5;
}
.chat-msg--bot  .chat-msg__bubble { background: var(--surface); color: var(--text); border-bottom-left-radius: 3px; }
.chat-msg--user .chat-msg__bubble { background: var(--accent); color: var(--white); border-bottom-right-radius: 3px; }
.chat-msg--typing .chat-msg__bubble { padding: 0.8rem 1rem; }
.typing-dots { display: flex; gap: 4px; align-items: center; height: 14px; }
.typing-dots span { width: 6px; height: 6px; background: var(--text-dim); border-radius: 50%; animation: bounce 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
.chat-input-area { border-top: 1px solid var(--border); }
.chat-provider { display: flex; gap: 1rem; padding: 0.5rem 1rem 0.25rem; }
.chat-provider__label { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--text-muted); cursor: pointer; }
.chat-provider__label input { width: auto; margin: 0; }
.chat-input-row { display: flex; align-items: flex-end; gap: 8px; padding: 0.5rem 1rem 0.85rem; }
.chat-input {
  flex:          1;
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  padding:       0.6rem 0.85rem;
  color:         var(--white);
  font-family:   var(--font-body);
  font-size:     0.88rem;
  resize:        none;
  outline:       none;
  max-height:    100px;
  overflow-y:    auto;
}
.chat-input:focus { border-color: var(--accent); }
.chat-send {
  width:         38px;
  height:        38px;
  border-radius: var(--radius);
  background:    var(--accent);
  border:        none;
  cursor:        pointer;
  display:       flex;
  align-items:   center;
  justify-content: center;
  color:         var(--white);
  flex-shrink:   0;
  transition:    background var(--transition);
}
.chat-send:hover { background: var(--accent-2); }
.chat-send:disabled { background: var(--text-dim); cursor: not-allowed; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(8,9,26,0.97); backdrop-filter: blur(16px); padding: 1.5rem; gap: 1.25rem; border-bottom: 1px solid var(--border); }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: flex; }
  .form-row--2 { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .how__steps { flex-direction: column; }
  .step__arrow { display: none; }
  .chat-panel { width: calc(100vw - 2rem); right: -0.75rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer__nav { flex-wrap: wrap; gap: 1rem; }
}
