/* ============================================================
   KRYPTON CLIENT — STYLESHEET
   ============================================================ */

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

:root {
  --yellow: #f5c518;
  --yellow-dim: #c9a012;
  --bg: #0e0e0e;
  --bg2: #131313;
  --bg3: #1a1a1a;
  --border: rgba(255,255,255,0.07);
  --text: #e8e8e8;
  --muted: #888;
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

/* ---- Particle Canvas ---- */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- Utility ---- */
.yellow { color: var(--yellow); }
.yellow-link { color: var(--yellow); text-decoration: none; }
.yellow-link:hover { text-decoration: underline; }

/* ---- Section shared ---- */
section {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  text-align: center;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-desc {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 680px;
  margin: 0 auto 10px;
  line-height: 1.7;
}

.section-desc-2 {
  text-align: center;
  color: #666;
  font-size: 0.88rem;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ---- Corner fold hover effect ---- */
.corner-fold {
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  pointer-events: none;
  overflow: hidden;
}
.corner-fold::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 60px 60px 0;
  border-color: transparent var(--yellow) transparent transparent;
  opacity: 0;
  transform-origin: top right;
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s;
}

section:hover .corner-fold::before {
  opacity: 0.18;
  transform: scaleX(1);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12,12,12,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  background: var(--yellow);
  color: #000;
  font-weight: 900;
  font-size: 13px;
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -1px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.logo-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #ffd84d;
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 10px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost:hover { border-color: #555; color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-outline:hover { border-color: #555; background: rgba(255,255,255,0.04); }

.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(245,197,24,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--yellow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--yellow); }
  50% { opacity: 0.5; box-shadow: 0 0 4px var(--yellow); }
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 0.95rem;
  color: #999;
  max-width: 600px;
  margin: 0 auto 12px;
  line-height: 1.7;
}

.hero-desc-2 {
  font-size: 0.88rem;
  color: #666;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.discord-icon { font-size: 16px; }

.hero-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
  transition: border-color 0.2s, background 0.2s;
}
.badge-card:hover { border-color: rgba(245,197,24,0.3); background: rgba(245,197,24,0.04); }

.badge-icon {
  font-size: 18px;
  color: var(--yellow);
  flex-shrink: 0;
}

.badge-title { font-size: 13px; font-weight: 600; color: #fff; }
.badge-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   MODULES
   ============================================================ */
.modules-section {
  padding-top: 80px;
}

.module-filter-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab:hover { border-color: #555; color: #fff; }
.filter-tab.active {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.module-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: default;
}
.module-card:hover {
  border-color: rgba(245,197,24,0.35);
  background: rgba(245,197,24,0.04);
  transform: translateY(-2px);
}

.module-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.module-icon {
  width: 30px; height: 30px;
  background: rgba(245,197,24,0.12);
  border: 1px solid rgba(245,197,24,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--yellow);
}

.module-badge-free {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--yellow);
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.2);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.module-badge-beta {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6ea8fe;
  background: rgba(110,168,254,0.1);
  border: 1px solid rgba(110,168,254,0.2);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.module-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.module-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.modules-expand-row {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.btn-expand {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-expand:hover { border-color: var(--yellow); color: var(--yellow); }

/* ============================================================
   DOWNLOAD
   ============================================================ */
.download-section { padding-top: 80px; }

.download-cards {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  margin: 40px 0 20px;
}

@media (max-width: 768px) {
  .download-cards { grid-template-columns: 1fr; }
}

.download-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.download-card:hover { border-color: rgba(255,255,255,0.15); }

.main-card {
  background: rgba(245,197,24,0.04);
  border-color: rgba(245,197,24,0.2);
}
.main-card:hover { border-color: rgba(245,197,24,0.5); }

.main-mod-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--yellow);
  background: rgba(245,197,24,0.12);
  border: 1px solid rgba(245,197,24,0.2);
  padding: 3px 9px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 12px;
}

.download-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}

.card-source {
  font-size: 11px;
  color: #555;
  text-align: center;
  margin-top: 10px;
}

.install-hint {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.disclaimer-box {
  background: rgba(255,200,0,0.04);
  border: 1px solid rgba(255,200,0,0.12);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.disclaimer-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 8px;
}

.disclaimer-box p {
  font-size: 13px;
  color: #888;
  line-height: 1.65;
}

/* ============================================================
   INSTALLATION
   ============================================================ */
.installation-section { padding-top: 80px; }

.install-steps {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.install-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 50px;
  bottom: 50px;
  width: 2px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  opacity: 0.25;
}

.install-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.install-step:last-child { border-bottom: none; }

.step-num {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: rgba(245,197,24,0.08);
  border: 2px solid rgba(245,197,24,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--yellow);
  position: relative;
  z-index: 1;
}

.step-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.step-body p {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
}

.path-boxes {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.path-box {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Courier New', monospace;
}

.path-os {
  font-size: 11px;
  font-weight: 700;
  color: var(--yellow);
  min-width: 60px;
  font-family: 'Inter', sans-serif;
}

.path-box code {
  flex: 1;
  font-size: 12px;
  color: #ccc;
  word-break: break-all;
}

.copy-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.copy-btn:hover { border-color: var(--yellow); color: var(--yellow); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { padding-top: 80px; }

.faq-list {
  max-width: 760px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(255,255,255,0.12); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--yellow); }

.faq-arrow {
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(90deg);
  color: var(--yellow);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  padding: 0 20px;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 20px 18px;
}

.faq-a p {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
}

.faq-discord {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.faq-discord p { color: var(--muted); font-size: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(8,8,8,0.9);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand .nav-logo { margin-bottom: 16px; }

.footer-tagline {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-col a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: #444;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  section { padding: 70px 24px; }
  .hero { padding: 120px 24px 60px; }
  .hero-title { font-size: 3.5rem; }
  .nav-inner { gap: 20px; padding: 0 20px; }
  .nav-links { gap: 20px; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.8rem; }
  .hero-badges { flex-direction: column; align-items: center; }
  .badge-card { width: 100%; max-width: 260px; }
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .download-cards { grid-template-columns: 1fr; }
  .footer-inner { gap: 32px; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0e0e0e; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--yellow); }
