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

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

/* ── Client Theme System (Exact match with Theme.java & ClientSettings.java) ── */
:root, [data-theme="dark"] {
  --bg:              #0e0c12; /* Theme.BACKGROUND */
  --bg-subtle:       #14101a;
  --panel:           #16121e; /* Theme.PANEL_HEADER */
  --panel-body:      #0e0c12; /* Theme.PANEL_BG */
  --panel-hover:     #1e1828;
  --settings-bg:     #0a0910; /* Theme.SETTINGS_BG */
  --border:          rgba(255, 183, 206, 0.15); /* Soft pink outline */
  --border-hairline: rgba(255, 255, 255, 0.07);
  --border-focus:    rgba(255, 183, 206, 0.35);
  --text:            #f2ecf4; /* Theme.TEXT */
  --text-dim:        #b4aabd; /* Theme.TEXT_DIM */
  --text-muted:      #756c80; /* Theme.TEXT_DISABLED */
  --accent:          #ffb7ce; /* Theme.PINK - Pastel Pink */
  --accent-pink:     #ffb7ce;
  --accent-wash:     rgba(255, 183, 206, 0.14);
  --row-enabled:     #ffb7ce;
  --row-text:        #18101a;
  --btn-text:        #18101a;
  --green:           #3ecf8e;
  --card-shadow:     0 12px 32px rgba(0, 0, 0, 0.45);
  --font:            'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:            'JetBrains Mono', monospace;
  --radius:          5px; /* Theme.RADIUS */
}

[data-theme="light"] {
  --bg:              #f7f4f9;
  --bg-subtle:       #ede8f3;
  --panel:           #ffffff;
  --panel-body:      #faf8fc;
  --panel-hover:     #f2edf6;
  --settings-bg:     #f0eaf4;
  --border:          rgba(160, 130, 175, 0.25);
  --border-hairline: rgba(0, 0, 0, 0.06);
  --border-focus:    rgba(255, 71, 135, 0.4);
  --text:            #1f1624;
  --text-dim:        #62526c;
  --text-muted:      #9687a0;
  --accent:          #ffb7ce;
  --accent-pink:     #ffb7ce;
  --accent-wash:     rgba(255, 183, 206, 0.2);
  --row-enabled:     #ffb7ce;
  --row-text:        #1f1624;
  --btn-text:        #1f1624;
  --green:           #10b981;
  --card-shadow:     0 8px 24px rgba(60, 30, 70, 0.08);
}

/* ── Base Styles ────────────────────────────────────────────────────────────── */
html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  transition: background 0.2s ease, color 0.2s ease;
}

body {
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── Universal Container Guide ──────────────────────────────────────────────── */
.site-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */
header.top-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  height: 60px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-dot {
  color: var(--accent);
}

.brand-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--accent-wash);
  border: 1px solid var(--border);
  color: var(--accent);
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.12s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-toggle-btn:hover {
  background: var(--panel-hover);
  border-color: var(--border-focus);
}

.nav-cta {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  transition: transform 0.12s, opacity 0.12s;
}

.nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ── Hero Block ───────────────────────────────────────────────────────────── */
section.hero-block {
  padding: 68px 0 60px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-text,
.hero-content {
  max-width: 640px;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(36px, 4.8vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 470px;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--btn-text, #18101a);
  font-weight: 700;
  font-size: 13px;
  padding: 11px 22px;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(255, 183, 206, 0.25);
  transition: all 0.15s ease;
}
.btn-primary:hover {
  background: #ffc4d6;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  padding: 11px 22px;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}
.btn-secondary:hover {
  background: var(--panel-hover);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.spec-pill {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 3px;
}

/* ── Authentic ClickGUI & HUD Preview Card ──────────────────────────────────── */
.client-showcase {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.showcase-header {
  height: 36px;
  background: var(--panel-hover);
  border-bottom: 1px solid var(--border);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 6px;
}
.w-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.w-dot-red { background: #ff5f56; }
.w-dot-yellow { background: #ffbd2e; }
.w-dot-green { background: #27c93f; }

.showcase-title {
  font-weight: 700;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.showcase-fps {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

.showcase-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--panel-body);
}

/* ClickGUI Panel Mockup (Matching Panel.java) */
.clickgui-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.panel-header-strip {
  height: 28px;
  background: var(--panel-hover);
  border-bottom: 1px solid var(--border);
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-cat-title {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.panel-caret {
  font-size: 9px;
  color: var(--text-dim);
}

.panel-rows {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Enabled Module Row (Vibrant Rose Pill) */
.mod-pill-enabled {
  background: var(--row-enabled);
  color: #fff;
  padding: 5px 10px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.mod-toggle-icon {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.9;
}

/* Settings view under enabled row */
.panel-settings-box {
  background: var(--settings-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 1px 0 3px;
}

.setting-slider-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--text-dim);
}

.slider-track {
  height: 5px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}
.slider-fill {
  height: 100%;
  width: 78%;
  background: var(--accent);
  border-radius: 3px;
}

.setting-mode-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-dim);
}
.mode-val {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 2px;
  color: var(--text);
  font-size: 10px;
}

/* Disabled Module Row (Matching Panel.java hover state) */
.mod-pill-disabled {
  background: transparent;
  color: var(--text);
  padding: 5px 10px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s;
}
.mod-pill-disabled:hover {
  background: var(--accent-wash);
  color: var(--accent);
}

/* TargetHUD in Showcase (Matching TargetHUD.java) */
.targethud-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.th-avatar {
  width: 34px;
  height: 34px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.th-info {
  flex: 1;
}

.th-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}
.th-name { color: var(--text); }
.th-hp { color: var(--accent); font-family: var(--mono); }

.th-bar {
  height: 5px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.th-bar-fill {
  height: 100%;
  width: 84%;
  background: linear-gradient(90deg, #ffb7ce, #ff4787);
}

.th-meta {
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-muted);
}

/* Showcase Footer */
.showcase-footer {
  height: 32px;
  background: var(--panel-hover);
  border-top: 1px solid var(--border);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--text-muted);
}

/* ── Technical Module Matrix ────────────────────────────────────────────────── */
section.module-section {
  padding: 68px 0;
  border-bottom: 1px solid var(--border);
}

.sec-head {
  margin-bottom: 36px;
}

.sec-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.sec-title {
  font-weight: 800;
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.sec-desc {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 520px;
}

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

.matrix-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: border-color 0.15s, transform 0.15s;
}

.matrix-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.card-cat-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.card-title {
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border-hairline);
  padding-top: 14px;
}

.chip {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 3px;
}

/* ── Pricing Block ──────────────────────────────────────────────────────────── */
section.pricing-block {
  padding: 68px 0 76px;
  border-bottom: 1px solid var(--border);
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 36px;
  box-shadow: var(--card-shadow);
}

.price-card {
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card.featured {
  background: var(--panel-hover);
  border-right: 1px solid var(--border);
}

.tier-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.curr {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dim);
}

.amt {
  font-weight: 800;
  font-size: 46px;
  letter-spacing: -0.04em;
  color: var(--text);
}

.tier-period {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.tier-features {
  list-style: none;
  border-top: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-features li {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-icon {
  color: var(--green);
  font-weight: 700;
}

.delivery-note {
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Download Block ─────────────────────────────────────────────────────────── */
section.dl-block {
  padding: 68px 0 76px;
  border-bottom: 1px solid var(--border);
}

.dl-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  margin-top: 36px;
}

.jar-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}

.jar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.jar-sub {
  font-size: 12px;
  color: var(--text-dim);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.step-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--border);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  flex-shrink: 0;
}

.step-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.step-info p {
  font-size: 13px;
  color: var(--text-dim);
}

.cl-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--card-shadow);
}

.cl-header {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.cl-ver {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.cl-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cl-entries {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cl-entries li {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pill-new {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(62, 207, 142, 0.15);
  color: var(--green);
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer.site-foot {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  background: var(--panel);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.foot-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-brand {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}

.foot-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.foot-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.12s;
}

.foot-links a:hover {
  color: var(--text);
}

.foot-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Responsive Rules ───────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .matrix-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { border-right: none; border-bottom: 1px solid var(--border); }
  .dl-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .matrix-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-title { font-size: 32px; }
}
