:root {
  --bg: #0a0c0f;
  --bg2: #12161c;
  --panel: rgba(18, 22, 28, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf0;
  --muted: #8b95a5;
  --accent: #c4a035;
  --accent2: #e8c547;
  --green: #3d9b5f;
  --red: #c44;
  --blue: #4a9fd4;
  --glow: rgba(196, 160, 53, 0.35);
  --radius: 16px;
  --font: "Segoe UI", system-ui, sans-serif;
  --font-display: "Oswald", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(196, 160, 53, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(61, 155, 95, 0.06), transparent),
    linear-gradient(180deg, #0d1014 0%, var(--bg) 40%);
  z-index: -2;
}
.bg-noise {
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
}

.container { width: min(1180px, 92vw); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 12, 15, 0.82);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #8a6520);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #0a0c0f;
  box-shadow: 0 0 24px var(--glow);
}
.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.logo-text span { font-size: 0.72rem; color: var(--muted); }

.nav-main {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav-main a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  transition: 0.2s;
}
.nav-main a:hover, .nav-main a.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #0a0c0f;
  box-shadow: 0 4px 24px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--glow); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(61, 155, 95, 0.15);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(61, 155, 95, 0.3);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent2), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.stat-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent2);
}
.stat-card span { font-size: 0.8rem; color: var(--muted); }

/* Sections */
.section {
  padding: 4rem 0;
  scroll-margin-top: 80px;
}
.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
}
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: 0.3s;
}
.card:hover {
  border-color: rgba(196, 160, 53, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Workshop tabs */
.workshop-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.workshop-tabs button {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
}
.workshop-tabs button.active {
  background: rgba(196, 160, 53, 0.15);
  border-color: var(--accent);
  color: var(--accent2);
}
.workshop-panel { display: none; }
.workshop-panel.active { display: block; }

/* Constructor wizard */
.constructor-wrap {
  background: linear-gradient(145deg, rgba(18,22,28,0.95), rgba(10,12,15,0.98));
  border: 1px solid rgba(196, 160, 53, 0.2);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.wizard-progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.wizard-step-dot {
  flex: 1;
  min-width: 60px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  transition: 0.3s;
}
.wizard-step-dot.done { background: var(--green); }
.wizard-step-dot.current { background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.wizard-step { display: none; animation: fadeIn 0.4s ease; }
.wizard-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.wizard-step h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}
.wizard-step .hint { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.9rem; }

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.option-card {
  position: relative;
  padding: 1rem;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}
.option-card:hover { border-color: rgba(196,160,53,0.4); }
.option-card.selected {
  border-color: var(--accent);
  background: rgba(196, 160, 53, 0.1);
  box-shadow: 0 0 20px var(--glow);
}
.option-card.soon { opacity: 0.5; pointer-events: none; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card .icon { font-size: 1.5rem; }
.option-card .name { font-weight: 600; font-size: 0.9rem; margin-top: 0.35rem; }
.option-card .desc { font-size: 0.72rem; color: var(--muted); margin-top: 0.25rem; }
.map-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
}

.slots-control {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.slots-control input[type=range] {
  flex: 1;
  min-width: 200px;
  accent-color: var(--accent);
}
.slots-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent2);
  min-width: 80px;
}

.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font: inherit;
}
.form-field textarea { min-height: 100px; resize: vertical; }

.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: 0.2s;
}
.toggle-row:hover { background: rgba(255,255,255,0.03); }
.toggle-row.selected { border-color: var(--green); background: rgba(61,155,95,0.08); }
.toggle-row input { margin-top: 0.25rem; accent-color: var(--green); }

.hosting-info {
  background: rgba(74, 159, 212, 0.08);
  border: 1px solid rgba(74, 159, 212, 0.25);
  border-radius: 14px;
  padding: 1.25rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.hosting-info ul { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--muted); }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

/* Reviews ticker */
.reviews-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  overflow: hidden;
}
.reviews-track {
  display: flex;
  gap: 3rem;
  animation: scrollReviews 40s linear infinite;
  width: max-content;
}
.reviews-track:hover { animation-play-state: paused; }
@keyframes scrollReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.review-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  font-size: 0.88rem;
}
.review-item .stars { color: var(--accent2); }
.review-item .nick { color: var(--accent2); font-weight: 600; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  max-width: 420px;
  animation: popIn 0.4s ease;
}
@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-box .check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(61,155,95,0.2);
  color: var(--green);
  font-size: 2rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer a { color: var(--accent2); }

@media (max-width: 768px) {
  .nav-main { display: none; }
  .constructor-wrap { padding: 1.25rem; }
  .hero { padding-top: 2rem; }
}
