/* ============================================================
   SENPAI STREAM — Global Design System
   PERFORMANCE: @import removed — fonts loaded via HTML preload
   ============================================================ */

/* --- CSS Variables ------------------------------------------- */
:root {
  --bg-page:        #0f1117;
  --bg-surface:     #141820;
  --bg-card:        #1a1d27;
  --bg-card-hover:  #1f2335;
  --bg-elevated:    #252a3a;
  --accent:         #1db88a;
  --accent-hover:   #19a87c;
  --accent-dim:     rgba(29,184,138,0.12);
  --accent-glow:    rgba(29,184,138,0.25);
  --text-primary:   #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --text-accent:    #1db88a;
  --border:         rgba(255,255,255,0.07);
  --border-hover:   rgba(255,255,255,0.14);
  --border-accent:  rgba(29,184,138,0.35);
  --font-display:   'Poppins', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --section-py:     96px;
  --card-radius:    14px;
  --btn-radius:     8px;
}

/* --- Reset --------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography ---------------------------------------------- */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; }
p  { color: var(--text-secondary); line-height: 1.75; }

/* --- Utility ------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.section-eyebrow svg { width: 13px; height: 13px; flex-shrink: 0; }

/* --- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary              { background: var(--accent); color: #fff; }
.btn-primary:hover        { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-outline              { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border-hover); }
.btn-outline:hover        { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-ghost                { background: transparent; color: var(--text-secondary); padding: 10px 20px; }
.btn-ghost:hover          { color: var(--text-primary); background: var(--bg-elevated); }
.btn-sm                   { font-size: 13px; padding: 9px 18px; }
.btn-lg                   { font-size: 17px; padding: 15px 36px; }

/* --- Cards --------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }

/* --- Badges -------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .04em;
}
.badge-green { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--border-accent); }
.badge-muted { background: var(--bg-elevated); color: var(--text-muted); }

/* --- Divider ------------------------------------------------- */
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* --- Stats --------------------------------------------------- */
.stat-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* --- Grid helpers -------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* --- Forms --------------------------------------------------- */
input[type="text"],
input[type="email"],
select,
textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  width: 100%;
  transition: border-color .2s;
  outline: none;
}
input::placeholder { color: var(--text-muted); }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* --- Scrollbar ---------------------------------------------- */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --- Responsive --------------------------------------------- */
@media (max-width: 768px) {
  :root { --section-py: 60px; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
@media (max-width: 480px) {
  :root { --section-py: 48px; }
}