/* ==========================================================================
   GreekFear Security — Bespoke Dark Obsidian & Crimson Design System
   ========================================================================== */

:root {
  --bg: #08080c;
  --bg-elevated: #0e0f15;
  --surface: #12131b;
  --surface-2: #181a24;
  --surface-3: #1f2230;
  --discord-bg: #1e1f22;
  --discord-card: #2b2d31;
  --discord-input: #383a40;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --red: #dc2626;
  --red-bright: #ef4444;
  --red-soft: rgba(220, 38, 38, 0.14);
  --red-border: rgba(239, 68, 68, 0.36);
  --red-glow: rgba(220, 38, 38, 0.28);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --blurple: #5865f2;
  --text: #f4f4f6;
  --muted: #9ca3af;
  --dim: #6b7280;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(220, 38, 38, 0.16), transparent),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

code, pre, .mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Boot Loader */
.boot-loader {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.boot-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid rgba(239, 68, 68, 0.2);
  border-top-color: var(--red-bright);
  animation: gf-spin 0.75s linear infinite;
}

@keyframes gf-spin {
  to { transform: rotate(360deg); }
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: rgba(8, 8, 12, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d13;
  border: 1px solid var(--red-border);
  box-shadow: 0 0 20px var(--red-glow);
  flex-shrink: 0;
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: 0.15s ease;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #34d399;
}

.status-chip.standby {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 20px var(--red-glow);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
  transform: translateY(-1px);
}

.btn-discord {
  background: var(--blurple);
  color: #fff;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.28);
}

.btn-discord:hover:not(:disabled) {
  background: #6875f5;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--border-strong);
}

.btn-amber {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  color: #09090d;
  font-weight: 700;
}

.btn-amber:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.81rem;
  border-radius: 8px;
}

.btn-sm svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Asymmetric Split Hero & Live Discord Components V2 Preview
   ========================================================================== */
.hero-split {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 42px;
  align-items: center;
  padding: 68px 0 56px;
}

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    padding: 48px 0 40px;
  }
  .nav-links {
    display: none;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 7px;
  background: var(--red-soft);
  border: 1px solid var(--red-border);
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.35rem, 4.4vw, 3.65rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--red-bright);
}

.hero-desc {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 28px;
}

.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-meta-item strong {
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

/* Discord Client Simulator Window */
.discord-window {
  background: var(--discord-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.discord-topbar {
  background: #18191c;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: #b5bac1;
}

.discord-tabs {
  display: flex;
  gap: 6px;
}

.discord-tab {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
  color: #949ba4;
  cursor: pointer;
  font-family: inherit;
}

.discord-tab.active {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fff;
}

.discord-body {
  padding: 18px;
}

.discord-msg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.discord-bot-tag {
  background: #5865f2;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.v2-container {
  background: var(--discord-card);
  border-radius: 8px;
  border-left: 4px solid #ed4245;
  padding: 14px 16px;
  font-size: 0.86rem;
  color: #dbdee1;
}

.v2-container.green {
  border-left-color: #57f287;
}

.v2-container.amber {
  border-left-color: #faa61a;
}

.v2-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: #fff;
  margin-bottom: 8px;
}

.v2-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.v2-footer {
  font-size: 0.74rem;
  color: #949ba4;
}

/* ==========================================================================
   Cards, Grids & Architecture Sections
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.card-interactive {
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.card-interactive:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.section-block {
  padding: 56px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.section-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-bright);
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--red-soft);
  border: 1px solid var(--red-border);
  color: var(--red-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.icon-box svg {
  width: 20px;
  height: 20px;
}

/* Slash Command Strip */
.cmd-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmd-syntax {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #07070a;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #fca5a5;
}

/* Pricing */
.pricing-card.featured {
  border-color: var(--red-border);
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.07) 0%, var(--surface) 45%);
}

.spec-list {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.9rem;
}

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.spec-list svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ==========================================================================
   Inputs, Toggles & Dashboard Controls
   ========================================================================== */
.input,
.select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.input:focus,
.select:focus {
  outline: none;
  border-color: var(--red-bright);
}

.label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.dash-layout {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 22px;
  margin-top: 22px;
}

@media (max-width: 860px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  height: fit-content;
}

.dash-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 13px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: 0.14s ease;
}

.dash-tab-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dash-tab-btn:hover {
  background: var(--surface-2);
  color: #fff;
}

.dash-tab-btn.active {
  background: var(--red-soft);
  border-color: var(--red-border);
  color: #fff;
}

.module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
}

/* Switch */
.switch {
  position: relative;
  width: 46px;
  height: 25px;
  flex-shrink: 0;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: #2a2e3f;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.18s ease;
}

.slider::before {
  content: '';
  position: absolute;
  width: 19px;
  height: 19px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.18s ease;
}

.switch input:checked + .slider {
  background: var(--red-bright);
}

.switch input:checked + .slider::before {
  transform: translateX(21px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-premium {
  background: var(--amber-soft);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-free {
  background: var(--emerald-soft);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.badge-red {
  background: var(--red-soft);
  color: #fca5a5;
  border: 1px solid var(--red-border);
}

.badge-muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Unsaved Bar */
.unsaved-bar {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 15, 21, 0.96);
  border: 1px solid var(--red-bright);
  border-radius: 13px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
  z-index: 220;
  backdrop-filter: blur(14px);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 72px;
  color: var(--muted);
  font-size: 0.85rem;
}
