/* ETSi Website — Premium Corporate SaaS Theme
   Visual Identity: Warm Alabaster, Graphitic Charcoal, Signal Orange, Sharp Engineering Geometry.
   Inspirational Sources: Slack, Microsoft Teams Landing Pages.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&family=JetBrains+Mono:wght@400;600&display=swap');

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

:root {
  --bg:         #FCFBF9; /* Warm Alabaster Primary Background */
  --bg-panel:   #FAF9F6; /* Alternating panel background */
  --bg-card:    #FFFFFF; /* Elevated Card White */
  --bg-deep:    #0F172A; /* Deep slate-graphite for contrast sections (footer, dark sections) */
  --border:     #E4E4E7; /* Light Gray Border */
  --border2:    #D4D4D8; /* Slightly stronger gray border */
  --accent:     #EA580C; /* Signal Orange */
  --accent-h:   #C2410C; /* Darker Signal Orange Hover */
  --accent-bg:  #FFF7ED; /* Light orange tint */
  --text:       #18181B; /* Graphitic Charcoal (high contrast) */
  --muted:      #52525B; /* Slate Gray for descriptions */
  --dim:         #71717A; /* Muted slate Gray */
  --green:      #10B981; /* Emerald Active */
  --green-bg:   rgba(16, 185, 129, 0.08);
  --red:        #EF4444;
  --sans:       'Inter', 'Segoe UI', sans-serif;
  --title-font: 'Space Grotesk', sans-serif;
  --mono:       'JetBrains Mono', monospace;
  --radius:     2px;     /* Swiss Engineering Sharp Corner */
  --radius-sm:  1px;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1); /* Elegant spring-like ease */
  --shadow:     0 2px 8px rgba(15, 23, 42, 0.04), 0 12px 30px rgba(15, 23, 42, 0.03);
  --shadow-lg:  0 10px 30px rgba(15, 23, 42, 0.06), 0 30px 80px rgba(15, 23, 42, 0.08);
  --bg-nav:     rgba(252, 251, 249, 0.95);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0B0F19; /* Elegant dark slate background */
    --bg-panel:   #111827; /* Dark panel background */
    --bg-card:    #1E293B; /* Dark card background */
    --bg-deep:    #030712; /* Deeper slate-graphite background */
    --border:     #1E293B; /* Dark border */
    --border2:    #334155; /* Stronger dark border */
    --accent-bg:  rgba(234, 88, 12, 0.08); /* Dark orange tint */
    --text:       #F3F4F6; /* High contrast soft white text */
    --muted:      #9CA3AF; /* Muted gray text */
    --dim:        #6B7280; /* Dimmed gray text */
    --green-bg:   rgba(16, 185, 129, 0.1);
    --bg-nav:     rgba(11, 15, 25, 0.95); /* Sticky navbar dark background */
    --shadow:     0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg:  0 10px 30px rgba(0, 0, 0, 0.4), 0 30px 80px rgba(0, 0, 0, 0.5);
  }
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-panel); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .85em; color: var(--accent); background: var(--accent-bg); padding: 2px 6px; border-radius: 2px; border: 1px solid rgba(234, 88, 12, 0.15); }
#typewriter { padding: 0; background: none; border: none; font-size: inherit; color: inherit; }
.accent { color: var(--accent); }
.green  { color: var(--green); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 48px; }
@media(max-width:640px) { .container { padding: 0 20px; } }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
#nav.scrolled { box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05); border-bottom-color: var(--border2); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 48px;
  height: 64px; display: flex; align-items: center; gap: 40px;
}
@media(max-width:640px) { .nav-inner { padding: 0 20px; } }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-img { height: 26px; width: auto; filter: brightness(0.9) contrast(1.1); }
.nav-logo-name { font-family: var(--title-font); font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.nav-links { list-style: none; display: flex; gap: 4px; align-items: center; margin-left: auto; }
.nav-links a {
  font-size: .85rem; font-weight: 500; color: var(--muted);
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-panel); }
.nav-links a.active { color: var(--text); background: var(--bg-panel); }
.nav-cta {
  color: var(--bg) !important;
  background: var(--text) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  transition: background .18s, transform .15s, color .18s !important;
}
.nav-cta:hover { background: var(--accent) !important; color: #fff !important; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; border-radius: var(--radius-sm); transition: background .2s; }
.hamburger:hover { background: var(--bg-panel); }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--muted); border-radius: 2px; transition: .3s; }
.nav-mobile { display: none; flex-direction: column; border-top: 1px solid var(--border); background: var(--bg-card); padding: 12px; gap: 4px; box-shadow: var(--shadow); }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 16px; font-size: .9rem; color: var(--muted); border-radius: var(--radius-sm); transition: color .18s, background .18s; }
.nav-mobile a:hover { color: var(--text); background: var(--bg-panel); }
@media(max-width:900px) { .nav-links { display: none; } .hamburger { display: flex; } }

/* ── NAV USER DROPDOWN ── */
.nav-user-dropdown-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 16px; /* Generous separation from standard navigation links and CTA */
}
.nav-user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  width: 32px;
  height: 32px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  outline: none;
}
.nav-user-btn:hover {
  transform: scale(1.05);
}
.nav-user-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}
.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--mono);
  box-shadow: inset 0 -1.5px 0 rgba(0, 0, 0, 0.15);
}
.nav-user-avatar-admin {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 4px;
  object-fit: contain;
}
.nav-user-avatar-wrapper-admin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.nav-user-badge-admin {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  font-weight: 800;
  font-family: var(--mono);
  color: #fff;
  background: var(--accent);
  padding: 1.5px 4px;
  border-radius: 1px;
  line-height: 1;
  border: 1px solid var(--bg-card);
  letter-spacing: 0.04em;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px; /* Smooth rounded corners */
  box-shadow: var(--shadow-lg);
  width: 220px;
  padding: 8px 0;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav-user-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
.nav-user-dropdown-container:hover .nav-user-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown-header {
  padding: 10px 18px;
}
.dropdown-user-title {
  font-size: 0.65rem;
  color: var(--accent); /* Brand accented sub-heading */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-family: var(--mono);
}
.dropdown-user-email {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.22s var(--ease);
  cursor: pointer;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.dropdown-item svg {
  width: 16px;
  height: 16px;
  color: var(--dim);
  flex-shrink: 0;
  transition: all 0.22s var(--ease);
}
.dropdown-item:hover {
  background: var(--bg-panel);
  color: var(--text);
  border-left-color: var(--accent); /* Visual slide bar indicator */
  padding-left: 20px; /* Highly premium micro-interaction shift */
}
.dropdown-item:hover svg {
  color: var(--accent);
  transform: scale(1.05);
}
.dropdown-item-logout {
  color: var(--red);
}
.dropdown-item-logout:hover {
  background: rgba(239, 68, 68, 0.05);
  color: var(--red);
  border-left-color: var(--red);
}
.dropdown-item-logout:hover svg {
  color: var(--red);
}
.nav-signin {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  margin-left: 8px;
  transition: color .15s !important;
}
.nav-signin:hover {
  color: var(--text) !important;
  background: transparent !important;
}

/* ── HERO ── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 140px 0 100px; overflow: hidden;
  background: var(--bg);
}
.hero-grid-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.15;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
}
#mesh-canvas {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.35;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 960px; margin: 0 auto; padding: 0 48px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
}
@media(max-width:640px) { .hero-inner { padding: 0 20px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-bg);
  border: 1px solid rgba(234, 88, 12, 0.2); border-radius: 20px;
  padding: 6px 14px; margin-bottom: 8px;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0;
  animation: livePulse 2.5s ease infinite;
}
@keyframes livePulse { 0%,100%{box-shadow:0 0 0 0 rgba(16, 185, 129, 0.5)} 50%{box-shadow:0 0 0 8px rgba(16, 185, 129, 0)} }

h1 {
  font-family: var(--title-font);
  font-size: clamp(2.8rem, 6vw, 4.8rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -.03em; margin-bottom: 12px; color: var(--text);
}
h1 span.amber { color: var(--accent); }
.hero-desc {
  color: var(--muted); font-size: 1.15rem; line-height: 1.7;
  max-width: 680px; margin-bottom: 24px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .02em;
  color: var(--muted); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.chip-dot.green { background: var(--green); }
.chip-dot.amber { background: var(--accent); }
.chip-dot.muted { background: var(--dim); }

/* ── INTERACTIVE WORKSPACE MOCKUP (Overlapping stack) ── */
.workspace-showcase {
  margin-top: 40px; width: 100%; max-width: 860px;
  position: relative; height: 380px; display: flex; justify-content: center;
}
@media(max-width: 768px) {
  .workspace-showcase { display: none; }
  #hero { min-height: auto; padding-bottom: 60px; }
}

/* Layered Workspace Cards */
.mock-card {
  position: absolute; background: var(--bg-card);
  border: 1px solid var(--border2); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), z-index 0s;
  overflow: hidden;
  text-align: left;
}
.mock-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  z-index: 10 !important;
}

/* 1. Sidebar Channels mockup card (Left back) */
.mock-sidebar {
  width: 215px; height: 290px;
  left: -20px; top: 40px; z-index: 1;
  background: var(--bg-deep); color: #fff;
  border-color: #1E293B;
  transform: rotate(-3.5deg);
}
.mock-sidebar-inner { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.mock-logo { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #1E293B; padding-bottom: 12px; margin-bottom: 10px; }
.mock-logo-sq { background: var(--accent); color: #fff; font-family: var(--title-font); font-weight: 800; font-size: 0.75rem; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 2px; }
.mock-logo-txt { font-family: var(--title-font); font-weight: 700; font-size: 0.85rem; color: #fff; }
.mock-nav-section { font-family: var(--mono); font-size: 0.55rem; font-weight: 600; letter-spacing: 0.1em; color: #64748B; margin: 8px 0 4px; }
.mock-item { font-size: 0.7rem; color: #94A3B8; display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 2px; position: relative; cursor: pointer; transition: background 0.2s, color 0.2s; }
.mock-item:hover { background: rgba(255,255,255,0.03); color: #E2E8F0; }
.mock-item.active { background: rgba(255,255,255,0.06); color: #fff; font-weight: 600; }
.mock-icon { flex-shrink: 0; color: #64748B; }
.mock-item.active .mock-icon { color: var(--accent); }
.mock-item .badge { background: var(--accent); color: #fff; font-family: var(--mono); font-size: 0.55rem; font-weight: 700; padding: 1px 5px; border-radius: 10px; margin-left: auto; }
.mock-user { display: flex; align-items: center; gap: 8px; padding: 4px 8px; font-size: 0.7rem; color: #94A3B8; cursor: pointer; }
.mock-user:hover { color: #E2E8F0; }
.mock-avatar { width: 14px; height: 14px; border-radius: 50%; font-size: 0.55rem; font-weight: 700; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; position: relative; }
.mock-avatar.green { background: #10B981; }
.mock-avatar.green::after { content: ''; position: absolute; bottom: -1px; right: -1px; width: 4px; height: 4px; border-radius: 50%; background: #10B981; border: 1px solid var(--bg-deep); }
.mock-avatar.offline { background: #475569; }
.mock-avatar.accent { background: var(--accent); }
.mock-username { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 2. Main Window Application Dashboard card (Center) */
.mock-app-window {
  width: 550px; height: 350px;
  top: 10px; z-index: 3;
  display: flex; flex-direction: column;
}
.mock-window-titlebar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg-panel); flex-shrink: 0;
}
.mock-window-dots { display: flex; gap: 6px; }
.mock-window-dot { width: 8px; height: 8px; border-radius: 50%; }
.mock-window-dot.r { background: #EF4444; }
.mock-window-dot.y { background: #FBBF24; }
.mock-window-dot.g { background: #10B981; }
.mock-window-nav { display: flex; gap: 8px; color: var(--muted); }
.mock-window-search {
  flex: 1; max-width: 280px; display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 3px;
  padding: 4px 10px; font-size: 0.65rem; color: var(--dim);
}
.mock-window-user { display: flex; align-items: center; margin-left: auto; }
.mock-window-user .mock-avatar { width: 22px; height: 22px; font-size: 0.65rem; border-radius: 50%; }

.mock-window-body { display: flex; flex: 1; min-height: 0; }
.mock-body-left { flex: 1; border-right: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mock-body-right { flex: 1.1; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; background: var(--bg-panel); }
.mock-body-section-title { font-family: var(--mono); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; margin-bottom: 4px; }

.mock-drop-zone {
  flex: 1; border: 1.5px dashed var(--border2); border-radius: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px; text-align: center; background: var(--bg-card);
  transition: border-color 0.2s, background 0.2s;
}
.mock-drop-zone:hover { border-color: var(--accent); background: var(--accent-bg); }
.mock-drop-text { font-weight: 600; font-size: 0.72rem; color: var(--text); margin-top: 6px; }
.mock-drop-sub { font-size: 0.58rem; color: var(--muted); line-height: 1.3; max-width: 140px; margin-top: 4px; }

.mock-share-status {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 8px 10px; border-radius: 2px; margin-top: auto;
}
.mock-share-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mock-share-name { font-family: var(--mono); font-size: 0.65rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-share-details { font-size: 0.55rem; color: var(--muted); }
.mock-share-badge { font-family: var(--mono); font-size: 0.55rem; font-weight: 700; padding: 2px 6px; border-radius: 2px; }
.mock-share-badge.green { background: var(--green-bg); color: var(--green); border: 1px solid rgba(16,185,129,0.15); }

.mock-terminal-pre {
  flex: 1; background: #0F172A; color: #F8FAFC;
  border-radius: 2px; padding: 12px; font-family: var(--mono);
  font-size: 0.6rem; line-height: 1.5; overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.3); margin: 0;
}
.mock-terminal-pre code { padding: 0; background: none; border: none; color: inherit; font-size: inherit; }
#typewriter::after { content: '█'; color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.mock-window-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); background: var(--bg-panel);
  padding: 8px 16px; flex-shrink: 0;
}
.mock-footer-left { display: flex; gap: 12px; }
.mock-footer-right { display: flex; gap: 12px; }
.mock-status-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.58rem; color: var(--muted); }
.pulse-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: livePulse 2s ease infinite; }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; }
.badge-dot.accent { background: var(--accent); }
.mock-footer-text { font-family: var(--mono); font-size: 0.58rem; color: var(--dim); }

/* 3. Direct Message chat widget mockup card (Right front) */
.mock-chat {
  width: 260px; height: 300px;
  right: -20px; top: 60px; z-index: 4;
  transform: rotate(3deg);
  display: flex; flex-direction: column;
}
.mock-chat-header {
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-panel);
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.mock-chat-avatar { width: 20px; height: 20px; border-radius: 50%; font-size: 0.6rem; font-weight: 700; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.mock-chat-header-info { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.mock-chat-name { font-size: 0.72rem; font-weight: 700; color: var(--text); }
.mock-chat-status { font-size: 0.55rem; color: var(--green); display: flex; align-items: center; gap: 4px; }
.mock-chat-call-icon { margin-left: auto; color: var(--muted); cursor: pointer; }

.mock-chat-body { padding: 12px; display: flex; flex-direction: column; gap: 12px; flex: 1; overflow-y: auto; background: var(--bg-card); }
.mock-chat-msg-row { display: flex; gap: 8px; align-items: flex-start; }
.mock-chat-msg-row.out { flex-direction: row-reverse; }
.mock-msg-avatar { width: 20px; height: 20px; border-radius: 50%; font-size: 0.6rem; font-weight: 700; background: #64748B; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mock-msg-avatar.accent { background: var(--accent); }
.mock-msg-container { display: flex; flex-direction: column; gap: 3px; max-width: 80%; }
.mock-chat-msg-row.out .mock-msg-container { align-items: flex-end; }
.mock-msg-meta { font-size: 0.58rem; color: var(--dim); display: flex; gap: 6px; align-items: center; }
.mock-chat-msg-row.out .mock-msg-meta { flex-direction: row-reverse; }
.mock-msg-user { font-weight: 600; color: var(--text); }
.mock-msg-time { font-size: 0.55rem; color: var(--muted); }
.mock-msg-bubble { padding: 6px 10px; border-radius: var(--radius); font-size: 0.68rem; line-height: 1.4; word-break: break-word; }
.mock-chat-msg-row:not(.out) .mock-msg-bubble { background: var(--bg-panel); color: var(--text); border-top-left-radius: 0; }
.mock-chat-msg-row.out .mock-msg-bubble { background: var(--accent-bg); color: var(--accent); border: 1px solid rgba(234,88,12,0.15); border-top-right-radius: 0; }

.mock-chat-input-bar { border-top: 1px solid var(--border); padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--bg-panel); flex-shrink: 0; }
.mock-chat-placeholder { font-size: 0.68rem; color: var(--dim); }
.mock-chat-input-toolbar { display: flex; align-items: center; justify-content: space-between; }
.mock-toolbar-left { display: flex; gap: 6px; color: var(--muted); }
.mock-tool-btn { font-family: var(--mono); font-size: 0.6rem; font-weight: 700; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 2px; }
.mock-tool-btn:hover { background: var(--border); color: var(--text); }
.mock-chat-send-btn { background: var(--accent); color: #fff; border: none; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 2px; cursor: pointer; transition: background 0.2s; }
.mock-chat-send-btn:hover { background: var(--accent-h); }

/* Scroll hint */
.hero-scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; }
.hero-scroll-hint span:first-child { font-size: .6rem; letter-spacing: .15em; color: var(--dim); text-transform: uppercase; }
.scroll-line { width: 1px; height: 32px; background: linear-gradient(to bottom, var(--border2), transparent); animation: scrollPulse 2s ease infinite; }
@keyframes scrollPulse { 0%,100%{opacity:.4} 50%{opacity:1} }

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--bg-card); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 36px 0;
}
.stats-inner { max-width: 1180px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; justify-content: center; }
.stat-item { flex: 1; text-align: center; padding: 0 28px; }
.stat-val { display: block; font-family: var(--title-font); font-size: 2.3rem; font-weight: 700; line-height: 1; margin-bottom: 6px; color: var(--text); }
.stat-val.blue { color: var(--accent); }
.stat-label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-div { width: 1px; height: 44px; background: var(--border); flex-shrink: 0; }
@media(max-width:640px) { .stats-inner { flex-direction: column; gap: 20px; } .stat-div { display: none; } }

/* ── BELT ── */
.belt { overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bg-panel); padding: 12px 0; }
.belt-track { display: flex; gap: 28px; white-space: nowrap; animation: belt 45s linear infinite; font-size: .7rem; font-weight: 600; letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }
.belt-track .sep { color: var(--accent); opacity: 0.4; }
@keyframes belt { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── SECTIONS ── */
.section { padding: 90px 0; }
.section--dark { background: var(--bg-panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--cta { background: var(--bg-card); border-top: 1px solid var(--border); }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-label::before { content: ''; width: 12px; height: 2px; background: var(--accent); border-radius: 1px; }
.section-title { font-family: var(--title-font); font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; margin-bottom: 48px; }

/* ── FEATURES (Asymmetric & Staggered Panels) ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  background: var(--bg-card); padding: 32px 28px;
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feat:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }

/* Accent Feature Card styling (Zero rounded bento exception - crisp slate style) */
.feat--accent { background: var(--bg-deep); color: #fff; border-color: #1E293B !important; }
.feat--accent:hover { background: #0E1321; transform: translateY(-4px); }
.feat--accent .feat-tag { color: var(--accent); }
.feat--accent code { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #fff; }
.feat--accent p { color: #94A3B8; }
.feat-icon { width: 44px; height: 44px; background: var(--accent-bg); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feat-icon svg { color: var(--accent); }
.feat--accent .feat-icon { background: rgba(255,255,255,0.06); }
.feat--accent .feat-icon svg { color: #fff; }
.feat-tag { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.feat h3 { font-family: var(--title-font); font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.25; }
.feat p { font-size: .88rem; color: var(--muted); line-height: 1.65; }
.feat-code { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 14px; font-family: var(--mono); font-size: .65rem; letter-spacing: .04em; color: var(--accent); }
.feat--accent .feat-code { border-top-color: #1E293B; }
@media(max-width:860px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:540px) { .features-grid { grid-template-columns: 1fr; } }

/* ── HOW IT WORKS (Timeline) ── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; }
.step-left { display: flex; flex-direction: column; align-items: center; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card);
  border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--muted);
  transition: border-color .3s, color .3s, background .3s; flex-shrink: 0;
}
.step.visible .step-num { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.step-line { flex: 1; width: 1px; background: var(--border); margin: 6px 0; }
.step-body { padding: 4px 0 36px; }
.step--last .step-body { padding-bottom: 0; }
.step-body h3 { font-family: var(--title-font); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step-body p { font-size: .9rem; color: var(--muted); line-height: 1.65; max-width: 580px; }
.step-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: .7rem; font-weight: 600; color: var(--green);
  background: var(--green-bg); border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 4px 10px; border-radius: 20px;
}

/* ── USE CASES ── */
.usecases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.usecase {
  background: var(--bg-card); padding: 32px 28px;
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.usecase:hover { border-color: var(--green); transform: translateY(-2px); }
.usecase-num { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.usecase h3 { font-family: var(--title-font); font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.usecase p { font-size: .88rem; color: var(--muted); line-height: 1.65; }
@media(max-width:680px) { .usecases-grid { grid-template-columns: 1fr; } }

/* ── STACK ── */
.stack-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 24px; }
.stack-card {
  background: var(--bg-card); padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.stack-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.stack-name { font-size: .95rem; font-weight: 700; color: var(--text); }
.stack-desc { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.stack-note {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 24px; border-radius: var(--radius);
  border: 1px solid rgba(234, 88, 12, 0.2); background: var(--accent-bg);
}
.note-pill {
  font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); background: rgba(234, 88, 12, 0.1);
  padding: 4px 10px; border-radius: 20px; flex-shrink: 0; margin-top: 2px;
}
.stack-note p { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.stack-note strong { color: var(--text); font-weight: 600; }
@media(max-width:680px) { .stack-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:440px) { .stack-grid { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: .95rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: background .18s, color .18s; user-select: none; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--mono); font-size: 1.2rem;
  color: var(--accent); flex-shrink: 0; transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--bg-panel); color: var(--accent); }
.faq-item[open] summary { background: var(--bg-panel); color: var(--accent); }
.faq-item p { padding: 0 24px 20px; font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-size: .88rem; font-weight: 600; letter-spacing: .01em;
  padding: 12px 24px; border-radius: var(--radius); border: none; cursor: pointer;
  transition: background .18s, transform .15s var(--ease), box-shadow .15s var(--ease);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(234, 88, 12, 0.25); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 500; letter-spacing: .01em;
  padding: 12px 24px; border-radius: var(--radius);
  border: 1px solid var(--border2); color: var(--muted);
  transition: border-color .18s, color .18s, background .18s; white-space: nowrap;
}
.btn-outline:hover { border-color: var(--text); color: var(--text); background: var(--bg-panel); }
.btn-lg { padding: 14px 30px; font-size: .95rem; }

/* ── DOWNLOAD / CTA ── */
.cta-block { display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: center; }
.cta-left h2 { font-family: var(--title-font); font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; margin-bottom: 16px; }
.cta-left p { color: var(--muted); font-size: .95rem; line-height: 1.7; margin-bottom: 24px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.release-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rm-item { font-size: .75rem; color: var(--dim); }
.rm-version { font-family: var(--mono); font-size: .72rem; color: var(--green); background: var(--green-bg); padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.rm-size { font-size: .75rem; color: var(--dim); }
.checksum-block {
  margin-top: 16px; background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.cs-label { font-family: var(--mono); font-size: .62rem; letter-spacing: .05em; color: var(--muted); flex-shrink: 0; text-transform: uppercase; }
.cs-value { font-family: var(--mono); font-size: .65rem; color: var(--text); word-break: break-all; flex: 1; opacity: .85; }
.cs-copy {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase;
  background: none; border: 1px solid var(--border2); color: var(--accent);
  padding: 5px 12px; cursor: pointer; border-radius: var(--radius-sm); flex-shrink: 0;
  transition: background .18s, color .18s;
}
.cs-copy:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.feature-list-box {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.flb-header {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 16px;
}
.flb-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.flb-list li {
  font-size: .85rem; color: var(--muted);
  display: flex; align-items: center; gap: 12px; transition: color .18s;
}
.flb-list li:hover { color: var(--text); }
.flb-check {
  width: 18px; height: 18px; border-radius: 50%; background: var(--green-bg);
  color: var(--green); font-size: .75rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 700;
}
@media(max-width:860px) { .cta-block { grid-template-columns: 1fr; gap: 48px; } .feature-list-box { max-width: 100%; } }

/* ── FOOTER ── */
footer {
  border-top: 1px solid #1E293B; padding: 48px 0 36px;
  background: var(--bg-deep); color: #94A3B8;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-logo-img { height: 22px; width: auto; margin-bottom: 8px; filter: brightness(0) invert(1); }
.footer-sub { font-size: .8rem; color: #64748B; margin-bottom: 4px; }
.footer-domain { font-size: .78rem; color: var(--accent); font-weight: 500; }
.footer-domain:hover { text-decoration: underline; }
.footer-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-nav a { font-size: .84rem; color: #94A3B8; padding: 5px 10px; border-radius: var(--radius-sm); transition: color .18s, background .18s; }
.footer-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.footer-copy { font-size: .78rem; color: #64748B; }
@media(max-width:680px) { .footer-inner { flex-direction: column; align-items: flex-start; } }

/* ── REVEAL ── */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].visible { opacity: 1; transform: none; }
[data-delay="50"]  { transition-delay: .05s; }
[data-delay="100"] { transition-delay: .10s; }
[data-delay="150"] { transition-delay: .15s; }
[data-delay="200"] { transition-delay: .20s; }
[data-delay="250"] { transition-delay: .25s; }
[data-delay="300"] { transition-delay: .30s; }
@media(prefers-reduced-motion:reduce) {
  [data-reveal]{opacity:1;transform:none;transition:none}
  .belt-track,.scroll-line,.live-dot,.tf-dot{animation:none}
  #typewriter::after{animation:none}
}

/* ── NOTIFY FORM ── */
.notify-form { margin-top: 20px; }
.notify-label { font-size: .78rem; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.notify-row { display: flex; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border2); }
.notify-input {
  flex: 1; background: var(--bg-card); border: none;
  color: var(--text); font-size: .875rem; padding: 12px 14px; outline: none;
  transition: background .18s;
}
.notify-input:focus { background: var(--bg-panel); }
.notify-btn {
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--text); color: var(--bg); border: none; padding: 12px 20px;
  cursor: pointer; transition: background .18s, color .18s, transform .15s var(--ease); white-space: nowrap;
}
.notify-btn:hover { background: var(--accent); color: #fff; }
.notify-btn:active { transform: scale(0.97); }

/* ── DOWNLOAD COUNT ── */
.dl-count { font-size: .78rem; color: var(--dim); margin-top: 12px; }
.dl-count-num { color: var(--green); font-weight: 700; }

/* ── SUBPAGES (shared) ── */
.subpage-main { padding-top: 110px; padding-bottom: 90px; min-height: 80vh; }
.subpage-header { padding-bottom: 36px; border-bottom: 1px solid var(--border); margin-bottom: 44px; }
.subpage-header h1 { font-family: var(--title-font); font-size: clamp(2rem,4vw,3rem); font-weight: 800; letter-spacing: -.025em; margin-top: 10px; }
.subpage-desc { color: var(--muted); font-size: 1.05rem; line-height: 1.65; margin-top: 10px; max-width: 580px; }

/* ── CHANGELOG ── */
.cl-entry { padding: 32px 0; border-bottom: 1px solid var(--border); }
.cl-entry--latest { border-left: 2px solid var(--accent); padding-left: 24px; }
.cl-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cl-version { font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--text); }
.cl-badge { font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 3px 10px; border-radius: 20px; }
.cl-date { font-size: .75rem; color: var(--muted); }
.cl-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cl-list li { font-size: .9rem; color: var(--muted); padding-left: 20px; position: relative; line-height: 1.6; }
.cl-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.cl-empty { padding: 60px 0; text-align: center; }
.cl-empty p { color: var(--muted); margin-top: 12px; }

/* ── DOCS LAYOUT ── */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); padding-top: 64px; }
.docs-sidebar {
  background: transparent; border-right: 1px solid var(--border);
  padding: 40px 16px 40px 0; position: sticky; top: 64px;
  height: calc(100vh - 64px); overflow-y: auto;
}
.docs-sidebar-title { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; padding: 0 12px; }
.docs-nav { display: flex; flex-direction: column; gap: 2px; }
.docs-nav a { font-size: .85rem; color: var(--muted); padding: 9px 12px; border-radius: var(--radius-sm); transition: color .18s, background .18s; }
.docs-nav a:hover { color: var(--text); background: var(--bg-card); }
.docs-nav a.active { color: var(--accent); background: var(--accent-bg); font-weight: 600; }
.docs-content { padding: 48px 64px 96px; max-width: 780px; }
.docs-content h1 { font-family: var(--title-font); font-size: 2.1rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.docs-content h2 { font-family: var(--title-font); font-size: 1.2rem; font-weight: 700; margin: 36px 0 12px; }
.docs-content p { font-size: .9rem; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.docs-content ul, .docs-content ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.docs-content li { font-size: .9rem; color: var(--muted); line-height: 1.65; }
.docs-content a { color: var(--accent); }
.docs-content a:hover { text-decoration: underline; }
.docs-lead { font-size: 1.05rem !important; color: var(--text) !important; }
.docs-callout { background: var(--bg-panel); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; font-size: .875rem; color: var(--muted); line-height: 1.7; margin: 20px 0; }
.docs-callout--warn { border-left-color: var(--red); }
.docs-code { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--mono); font-size: .78rem; color: var(--text); padding: 16px 20px; margin: 14px 0; white-space: pre; overflow-x: auto; line-height: 1.7; }
.docs-table { width: 100%; border-collapse: collapse; font-size: .875rem; margin: 14px 0; }
.docs-table th { text-align: left; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.docs-table td { padding: 10px 14px; color: var(--muted); border-bottom: 1px solid var(--border); }
.docs-table tr:last-child td { border-bottom: none; }
@media(max-width:800px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 32px 0; }
  .docs-content { padding: 32px 0 64px; }
}

/* ── NEWS ── */
.post-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 16px; background: var(--bg-card); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-date { font-size: .75rem; color: var(--accent); font-weight: 600; letter-spacing: .04em; margin-bottom: 8px; }
.post-title { font-family: var(--title-font); font-size: 1.65rem; font-weight: 700; margin-bottom: 14px; letter-spacing: -.02em; }
.post-excerpt { color: var(--muted); font-size: 1rem; line-height: 1.6; margin-bottom: 20px; }
.post-content { line-height: 1.75; font-size: 1rem; color: var(--text); border-top: 1px solid var(--border); padding-top: 24px; margin-top: 24px; }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content img { max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius); }

/* ── CMS PAGE ── */
.cms-content { line-height: 1.75; font-size: 1rem; color: var(--text); }
.cms-content h1, .cms-content h2, .cms-content h3 { margin-top: 1.8em; margin-bottom: .6em; font-family: var(--title-font); }
.cms-content a { color: var(--accent); text-decoration: underline; }
.cms-content img { max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius); }
.cms-content pre { background: var(--bg-panel); padding: 1.2em; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; font-family: var(--mono); font-size: .85rem; }

/* ── NEWS PAGE OVERHAUL (TWO-COLUMN HUB) ── */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.news-main {
  min-width: 0;
}

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 96px;
  height: auto;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.sidebar-widget:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.widget-title {
  font-family: var(--title-font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: inline-block;
  flex-shrink: 0;
}

.widget-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Category Tags */
.widget-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.widget-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.15s;
}

.widget-tag:hover {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Recent Updates Widget List */
.widget-recent-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-recent-list li {
  border-bottom: 1px dashed var(--border);
  padding-bottom: 10px;
}

.widget-recent-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-recent-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.widget-recent-date {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.widget-recent-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  transition: color 0.18s;
}

.widget-recent-link:hover .widget-recent-title {
  color: var(--accent);
}

.widget-empty {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--dim);
  text-align: center;
  padding: 12px 0;
}

/* Subscribe Form Widget */
.sidebar-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.8rem;
  padding: 10px 12px;
  outline: none;
  font-family: var(--mono);
  transition: border-color 0.18s, background 0.18s;
}

.widget-input:focus {
  border-color: var(--accent);
  background: var(--bg-card);
}

.widget-btn {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s;
  white-space: nowrap;
}

.widget-btn:hover {
  background: var(--accent);
  color: #ffffff;
}

.widget-btn:active {
  transform: scale(0.98);
}

.widget-msg {
  font-family: var(--mono);
  font-size: 0.65rem;
  margin-top: 6px;
  line-height: 1.4;
}

/* Responsive Stacking below 900px */
@media(max-width: 900px) {
  .news-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .news-sidebar {
    position: static;
  }
}

/* ── COMMUNITY SUPPORT FORUM ── */
.category-card {
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease) !important;
}

.category-card:hover {
  border-color: var(--border2) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg) !important;
}

.thread-row {
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.thread-row:hover {
  background-color: var(--bg-panel) !important;
}

.post-grid-responsive {
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.post-grid-responsive:hover {
  border-color: var(--border2) !important;
}

.post-user-col {
  transition: background-color 0.25s var(--ease);
}

.post-content-body {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.forum-input, .forum-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 0.85rem;
  border: 1px solid var(--border2);
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.forum-input:focus, .forum-textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-bg) !important;
}

.forum-textarea {
  line-height: 1.6;
  resize: vertical;
}

/* Responsive Forum Layout adjustments */
@media(max-width: 900px) {
  .forum-grid-responsive {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
}

@media(max-width: 640px) {
  .post-grid-responsive {
    grid-template-columns: 1fr !important;
  }
  .post-user-col {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    padding: 16px 20px !important;
  }
  .post-user-col div:last-child {
    display: none !important;
  }
}