/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:      #ff6600;
  --accent-dim:  rgba(255, 102, 0, 0.18);
  --accent-glow: rgba(255, 102, 0, 0.35);
  --bg:          #0d0d0d;
  --bg2:         #141414;
  --bg3:         #1c1c1c;
  --border:      rgba(255, 255, 255, 0.08);
  --border-acc:  rgba(255, 102, 0, 0.30);
  --text:        #e8e8e8;
  --text-dim:    rgba(232, 232, 232, 0.50);
  --text-muted:  rgba(232, 232, 232, 0.30);
  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 8px 32px rgba(0, 0, 0, 0.55);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Overpass', 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

/* ===== Typography ===== */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; font-weight: 600; }

.label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
section:nth-child(even) { background: var(--bg2); }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 58px;
  padding: 0 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-btn:hover { opacity: 0.85; text-decoration: none; transform: translateY(-1px); }

.lang-toggle {
  flex-shrink: 0;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

.nav-hamburger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(255, 102, 0, 0.09) 0%, transparent 70%), var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 102, 0, 0.03) 0px, rgba(255, 102, 0, 0.03) 1px,
      transparent 1px, transparent 60px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 102, 0, 0.03) 0px, rgba(255, 102, 0, 0.03) 1px,
      transparent 1px, transparent 60px
    );
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-acc);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
  background: var(--accent-dim);
}
.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mod-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(20, 20, 20, 0.90);
  border: 1px solid var(--border-acc);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 0 60px rgba(255, 102, 0, 0.12), var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--text-dim);
}
.hero-card-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

.hc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  gap: 16px;
}
.hc-row:last-child { border-bottom: none; }
.hc-key { color: var(--text-dim); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.hc-val { font-weight: 600; }
.hc-val.accent { color: var(--accent); }
.hc-val.warn { color: #ffb000; }
.hc-val.danger { color: #ff3b2f; }
.hc-val.green { color: #5dff7a; }

.hc-bar {
  margin: 14px 0 6px;
}
.hc-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hc-bar-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 3px;
  overflow: hidden;
}
.hc-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #ff3b2f);
  transition: width 2s ease-in-out;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 102, 0, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(255, 102, 0, 0.50); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== SECTION HEADER ===== */
.sec-header {
  margin-bottom: 52px;
}
.sec-header p {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 560px;
}

.details-gated {
  display: none;
}

body.show-details .details-gated {
  display: block;
}

.details-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-acc);
  border-radius: var(--radius-sm);
  background: rgba(255, 102, 0, 0.08);
}

.details-note {
  font-size: 0.86rem;
  color: var(--text-dim);
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--border-acc);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid var(--border-acc);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-dim); }

/* ===== HOW IT WORKS ===== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 680px;
}
.steps::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 21px;
  bottom: 21px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  z-index: 0;
}

.step {
  display: flex;
  gap: 24px;
  padding: 0 0 40px 0;
  position: relative;
}
.step:last-child { padding-bottom: 0; }

.step-num {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step-body h3 { margin-bottom: 6px; }
.step-body p { font-size: 0.9rem; color: var(--text-dim); }

/* ===== INSTALL ===== */
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.install-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.install-card h3 {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.install-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.install-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.install-steps li::before {
  content: attr(data-n);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--accent-dim);
  border: 1px solid var(--border-acc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 1px;
}

code {
  background: rgba(255, 102, 0, 0.10);
  border: 1px solid var(--border-acc);
  color: var(--accent);
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.80rem;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ===== KEYS ===== */
.keys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.keys-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.keys-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.keys-table tr:last-child td { border-bottom: none; }
.keys-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

kbd {
  display: inline-block;
  background: var(--bg3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  padding: 3px 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* ===== MODS LIST ===== */
.mods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.mod-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.mod-card:hover { border-color: var(--border-acc); transform: translateY(-3px); }

.mod-card-thumb {
  height: 180px;
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.mod-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(13,13,13,0.8));
}

.mod-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.mod-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mod-card-body h3 { margin-bottom: 6px; }
.mod-card-body p { font-size: 0.88rem; color: var(--text-dim); flex: 1; margin-bottom: 16px; }

.mod-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.mod-badge.active {
  background: rgba(93, 255, 122, 0.10);
  border: 1px solid rgba(93, 255, 122, 0.30);
  color: #5dff7a;
}
.mod-badge.wip {
  background: rgba(255, 176, 0, 0.10);
  border: 1px solid rgba(255, 176, 0, 0.30);
  color: #ffb000;
}

/* ===== CONTACTS ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.contacts-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contacts-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacts-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover {
  border-color: var(--border-acc);
  transform: translateY(-2px);
  text-decoration: none;
}

.contact-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 8px;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.80rem;
  color: var(--text-muted);
}

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-acc), transparent);
  margin: 0;
}

/* ===== SCROLL FADE-IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
}

@media (max-width: 620px) {
  section { padding: 60px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 58px; left: 0; right: 0;
    background: rgba(13, 13, 13, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-hamburger { display: flex; }
  .nav-btn { display: none; }
  .lang-toggle { display: none; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; }
  .contacts-split { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
