/* =============================================
   SurelyNotSummerHost — Design System v2
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Mono:wght@400;700&display=swap');

/* ─── Tokens ─────────────────────────────── */
:root {
  --bg:          #000000;
  --bg-1:        #080808;
  --bg-2:        #0f0f0f;
  --bg-3:        #171717;
  --border:      #1e1e1e;
  --border-hi:   #343434;
  --text:        #ffffff;
  --text-2:      #a1a1aa;
  --text-3:      #52525b;
  --green:       #10b981;
  --green-dim:   rgba(16, 185, 129, 0.1);
  --red:         #ef4444;
  --red-dim:     rgba(239, 68, 68, 0.1);
  --sans:        'Inter', system-ui, -apple-system, sans-serif;
  --mono:        'Space Mono', 'Courier New', monospace;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --max:         1100px;
  --nav-h:       60px;
  --tick-h:      34px;
}

/* ─── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Subtle noise texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.018;
  pointer-events: none;
  z-index: 9998;
}

/* ─── Typography ─────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
p { color: var(--text-2); }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}
::selection { background: rgba(255,255,255,0.12); color: var(--text); }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ─── Layout ─────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 6rem 0; }

/* ─── Loading Screen ─────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.terminal-loader {
  width: 500px;
  max-width: calc(100vw - 2rem);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.04);
}

.terminal-titlebar {
  background: var(--bg-2);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.r { background: #ff5f57; }
.t-dot.y { background: #ffbd2e; }
.t-dot.g { background: #28c840; }

.terminal-wintitle {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-3);
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  min-height: 170px;
}

.t-line { color: var(--text-2); }
.t-line .t-cmd  { color: var(--green); }
.t-line .t-ok   { color: var(--green); }
.t-line .t-err  { color: var(--red); }
.t-line .t-dim  { color: var(--text-3); }

.t-cursor {
  display: inline-block;
  width: 7px;
  height: 0.85em;
  background: var(--text);
  vertical-align: text-bottom;
  animation: cur-blink 1s step-end infinite;
}

@keyframes cur-blink { 50% { opacity: 0; } }

/* ─── Navbar ─────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: border-color 0.3s, background 0.3s;
}

.navbar.scrolled { border-color: var(--border-hi); background: rgba(0,0,0,0.88); }

.navbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 0.95rem; letter-spacing: -0.03em; white-space: nowrap; }

.logo-mark {
  width: 22px; height: 22px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 5px;
  display: grid; place-items: center; flex-shrink: 0;
}

.logo-mark-dot { width: 8px; height: 8px; background: var(--text); border-radius: 2px; }

.nav-list { display: flex; list-style: none; gap: 2px; align-items: center; }

.nav-list a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-3);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-list a:hover  { color: var(--text-2); background: rgba(255,255,255,0.04); }
.nav-list a.active { color: var(--text);   background: rgba(255,255,255,0.07); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text-2); transition: 0.2s; }

/* ─── Ticker ─────────────────────────────── */
.ticker-bar {
  height: var(--tick-h);
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: sticky;
  top: var(--nav-h);
  z-index: 199;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 45s linear infinite;
  will-change: transform;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  font-family: var(--mono);
  font-size: 0.67rem;
  color: var(--text-3);
  padding: 0 3rem;
}

.ticker-item .ok  { color: var(--green); }
.ticker-item .er  { color: var(--red); }
.ticker-item .hi  { color: var(--text-2); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Page System ────────────────────────── */
#app-content { position: relative; z-index: 1; min-height: calc(100vh - var(--nav-h) - var(--tick-h) - 300px); }

.page { display: none; animation: pg-in 0.4s var(--ease); }
.page.active { display: block; }

@keyframes pg-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Buttons ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border: none;
  font-family: var(--sans);
  letter-spacing: -0.01em;
}

.btn-solid  { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: #e5e5e5; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.03); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-hi); background: rgba(255,255,255,0.03); }

/* Ripple */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  transform: scale(0);
  animation: ripple-anim 0.5s linear;
  pointer-events: none;
}

.btn-solid .btn-ripple { background: rgba(0,0,0,0.15); }
.btn-outline .btn-ripple, .btn-ghost .btn-ripple { background: rgba(255,255,255,0.08); }

@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

.btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* ─── Cards ──────────────────────────────── */
.card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.25s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(255,255,255,0.07) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

/* ─── Grids ──────────────────────────────── */
.g2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }

/* ─── Hero ───────────────────────────────── */
.hero {
  text-align: center;
  padding: 7rem 0 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  border: 1px solid var(--border-hi);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer-badge 3.5s ease infinite;
}

@keyframes shimmer-badge { to { transform: translateX(200%); } }

.badge-dot-green {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(16,185,129,0.7);
  animation: green-pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes green-pulse {
  0%, 100% { box-shadow: 0 0 5px rgba(16,185,129,0.5); }
  50%       { box-shadow: 0 0 14px rgba(16,185,129,0.9); }
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #fff 55%, rgba(255,255,255,0.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 500px;
  margin-bottom: 2.25rem;
  min-height: 1.7rem;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--text-3);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: cur-blink 0.9s step-end infinite;
}

.hero-tagline {
  margin-top: 1.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-3);
}

.scroll-hint {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  font-size: 0.65rem;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ─── Section Header ─────────────────────── */
.section-header { text-align: center; max-width: 560px; margin: 0 auto 3.5rem; }
.section-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 0.85rem;
}
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 0.75rem; }
.section-header p  { font-size: 0.93rem; }

/* ─── Stats Band ─────────────────────────── */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  padding: 3rem 0;
}

.stat-item { text-align: center; padding: 1rem 0.5rem; }

.stat-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 0.6rem;
}

.stat-number {
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-bar-track {
  height: 3px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  width: 70%;
  margin: 0 auto;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 1.4s var(--ease);
}

.stat-bar-fill.green { background: var(--green); box-shadow: 0 0 8px rgba(16,185,129,0.5); }
.stat-bar-fill.red   { background: var(--red);   box-shadow: 0 0 8px rgba(239,68,68,0.5); }
.stat-bar-fill.white { background: var(--text);  }

.stats-note {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
  margin-top: 2.5rem;
  font-style: italic;
}

/* ─── Feature Cards ──────────────────────── */
.feature-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
  background: var(--bg-2);
  color: var(--text-3);
  transition: border-color 0.2s, color 0.2s;
}

.card:hover .feature-icon { border-color: var(--border-hi); color: var(--text-2); }

.feature-card h3 { font-size: 0.95rem; margin-bottom: 0.45rem; }
.feature-card p  { font-size: 0.84rem; line-height: 1.6; }

/* ─── Infra Cards ────────────────────────── */
.infra-card { display: flex; flex-direction: column; min-height: 155px; }
.infra-top  { display: flex; justify-content: space-between; align-items: flex-start; }
.infra-name { font-size: 0.95rem; font-weight: 600; }
.infra-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
}
.infra-meta span { color: var(--text-2); }

/* ─── Status Badges ──────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.badge .bdot { width: 5px; height: 5px; border-radius: 50%; }

.badge.ok  { color: var(--green); background: var(--green-dim); }
.badge.err { color: var(--red);   background: var(--red-dim); }

.badge.ok  .bdot { background: var(--green); animation: bdot-g 2s infinite; }
.badge.err .bdot { background: var(--red);   animation: bdot-r 2s infinite; }

@keyframes bdot-g { 0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); } 50% { box-shadow: 0 0 0 4px rgba(16,185,129,0); } }
@keyframes bdot-r { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }  50% { box-shadow: 0 0 0 4px rgba(239,68,68,0); } }

/* ─── Quote Widget ───────────────────────── */
.quote-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  text-align: center;
}

.quote-ts {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.quote-body {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.quote-body.fading { opacity: 0; }

/* ─── Plans ──────────────────────────────── */
.plan-card { display: flex; flex-direction: column; }
.plan-tier {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}
.plan-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.2rem; }
.plan-tagline { font-size: 0.78rem; color: var(--text-3); margin-bottom: 1.5rem; }

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.plan-price sub {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-3);
  vertical-align: baseline;
  letter-spacing: 0;
}

.plan-divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

.plan-features { list-style: none; flex: 1; margin-bottom: 1.75rem; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--text-2);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before { content: '→'; font-family: var(--mono); color: var(--text-3); font-size: 0.72rem; flex-shrink: 0; margin-top: 2px; }

.plan-card .btn { width: 100%; }
.plan-featured { border-color: rgba(255,255,255,0.22); }

.plan-popular-badge {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  color: var(--text-2);
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* ─── Forms ──────────────────────────────── */
.form-wrap {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 0.45rem;
}

input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-hi);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

textarea { resize: vertical; min-height: 120px; }
select option { background: var(--bg-2); }

.form-note {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-3);
  text-align: center;
  margin-top: 1.25rem;
  line-height: 1.6;
}

.term-out {
  margin-top: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.7;
  max-height: 240px;
  overflow-y: auto;
  color: var(--text-2);
  display: none;
}

/* ─── Status Page ────────────────────────── */
.status-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.status-topbar-title { font-size: 1.2rem; font-weight: 700; }
.live-clock { font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); }

.status-block {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.status-block-header {
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.sc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.025);
  transition: background 0.2s;
}

.sc-item:last-child { border-bottom: none; }
.sc-item:hover { background: rgba(255,255,255,0.02); }
.sc-name { font-size: 0.88rem; font-weight: 500; }

/* SSH Console */
.ssh-console {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.ssh-titlebar {
  background: var(--bg-2);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ssh-tb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-hi); }

.ssh-tb-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.63rem;
  color: var(--text-3);
}

.ssh-screen {
  padding: 0.9rem 1rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.65;
  min-height: 150px;
  max-height: 220px;
  overflow-y: auto;
  color: var(--text-2);
}

.ssh-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--border);
}

.ssh-prompt { color: var(--green); font-family: var(--mono); font-size: 0.76rem; white-space: nowrap; }

#terminal-input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-family: var(--mono) !important;
  font-size: 0.76rem !important;
  color: var(--text) !important;
  flex: 1;
}

#terminal-input:focus { box-shadow: none !important; border: none !important; }

/* Incident + Diag */
.incident-body {
  padding: 0.9rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-2);
  transition: opacity 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.diag-row {
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.diag-cmd { font-family: var(--mono); font-size: 0.76rem; color: var(--text-2); }

.copy-btn {
  font-family: var(--mono);
  font-size: 0.62rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-btn:hover { border-color: var(--border-hi); color: var(--text-2); }
.copy-btn.copied { border-color: var(--green); color: var(--green); }

/* ─── FAQ ────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0.65rem; max-width: 680px; margin: 0 auto; }

.faq-item {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: var(--border-hi); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 1.05rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
}

.faq-icon { color: var(--text-3); font-size: 1rem; transition: transform 0.2s, color 0.2s; flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--text-2); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), padding 0.3s;
  font-size: 0.865rem;
  color: var(--text-2);
  background: rgba(0,0,0,0.25);
  border-top: 1px solid transparent;
  line-height: 1.7;
}

.faq-item.open .faq-a { max-height: 300px; padding: 1.05rem 1.35rem; border-top-color: var(--border); }

/* ─── About ──────────────────────────────── */
.about-prose { max-width: 640px; margin: 0 auto; }
.about-prose p { font-size: 0.92rem; margin-bottom: 1.25rem; line-height: 1.85; color: var(--text-2); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 3rem; }

.team-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.team-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border-hi);
  display: grid; place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.team-name  { font-weight: 600; font-size: 0.9rem; }
.team-role  { font-family: var(--mono); font-size: 0.65rem; color: var(--text-3); margin-top: 0.15rem; }
.team-badge { margin-top: 0.5rem; }

/* ─── Legal ──────────────────────────────── */
.legal-wrap { max-width: 680px; margin: 0 auto; }
.legal-wrap h1 { font-size: 1.9rem; margin-bottom: 0.4rem; }
.legal-wrap .legal-date { font-family: var(--mono); font-size: 0.68rem; color: var(--text-3); margin-bottom: 2.5rem; }
.legal-wrap h2 { font-size: 1.05rem; margin: 2rem 0 0.7rem; }
.legal-wrap p  { font-size: 0.88rem; margin-bottom: 1.1rem; line-height: 1.8; }
.legal-wrap hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ─── Footer ─────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  margin-top: 6rem;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.65fr 0.65fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.7rem; }
.footer-brand p { font-size: 0.8rem; max-width: 280px; }

.footer-discord {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-3);
  line-height: 1.6;
}

.footer-discord a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-discord a:hover { color: var(--text); }

.footer-col h5 {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 1rem;
}

.footer-col a { display: block; font-size: 0.8rem; color: var(--text-3); margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-2); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.72rem; color: var(--text-3); font-family: var(--mono); }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { font-size: 0.72rem; color: var(--text-3); transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-2); }

/* ─── Toast ──────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 340px;
}

.toast {
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: 9px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  pointer-events: auto;
  animation: toast-in 0.3s var(--ease) forwards;
}

.toast.hiding { animation: toast-out 0.25s ease forwards; }

.toast-icon { font-size: 0.85rem; flex-shrink: 0; margin-top: 1px; }
.toast-text { font-family: var(--mono); font-size: 0.73rem; color: var(--text-2); line-height: 1.5; }

@keyframes toast-in  { from { opacity:0; transform: translateX(16px) scale(0.95); } to { opacity:1; transform: translateX(0) scale(1); } }
@keyframes toast-out { from { opacity:1; transform: scale(1); } to { opacity:0; transform: scale(0.94) translateX(10px); } }

/* ─── Back to Top ────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 36px; height: 36px;
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 200;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s;
  pointer-events: none;
  color: var(--text-3);
}

#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { border-color: var(--text-3); color: var(--text-2); }

/* ─── Reveal ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─────────────────────────── */
@media (max-width: 900px) {
  .g3 { grid-template-columns: 1fr 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.6rem; }
  .hero { padding: 5rem 0 3rem; }
  .status-topbar { padding: 1.1rem 1.25rem; }
  .ssh-console, .status-block, .status-topbar { border-radius: 9px; }
  #toast-container { right: 1rem; left: 1rem; max-width: unset; bottom: 1rem; }
  #back-to-top { bottom: 1rem; left: 1rem; }

  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed;
    top: calc(var(--nav-h) + var(--tick-h));
    left: 0; right: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 2px;
    align-items: stretch;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s;
    z-index: 99;
  }
  .nav-list.open { transform: translateY(0); opacity: 1; }
  .nav-list a { padding: 0.75rem 1rem; font-size: 0.88rem; }
}
