/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0b0b10;
  --bg-2:      #111118;
  --bg-3:      #18181f;
  --fg:        #f0ede8;
  --fg-muted:  #8a8799;
  --accent:    #ff6b2b;
  --accent-2:  #ff8c4a;
  --accent-dim: rgba(255,107,43,0.15);
  --cyan:      #00d4ff;
  --cyan-dim:  rgba(0,212,255,0.12);
  --border:    rgba(255,255,255,0.07);
  --radius:    12px;
  --radius-sm: 8px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
}

/* === HERO === */
.hero {
  padding: 6rem 4rem 3rem;
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,107,43,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  background: var(--cyan-dim);
}

.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.forge-text {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.forge-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat-num {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--fg);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* === FORGE VISUAL === */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.forge-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.forge-core {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forge-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,107,43,0.5) 0%, rgba(255,107,43,0.1) 50%, transparent 75%);
  border-radius: 50%;
  animation: glow-pulse 3s ease-in-out infinite;
}

.forge-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,107,43,0.2);
  animation: ring-spin 20s linear infinite;
}

.ring-1 { width: 160px; height: 160px; border-color: rgba(255,107,43,0.25); animation-duration: 25s; }
.ring-2 { width: 200px; height: 200px; border-color: rgba(255,107,43,0.15); animation-duration: 35s; animation-direction: reverse; }
.ring-3 { width: 240px; height: 240px; border-color: rgba(255,107,43,0.08); animation-duration: 50s; }

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%,-50%) scale(1.1); }
}

.forge-center {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  animation: forge-breathe 4s ease-in-out infinite;
}

.forge-center svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(255,107,43,0.8));
}

@keyframes forge-breathe {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

/* === EMBERS === */
.ember {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent), 0 0 12px rgba(255,107,43,0.5);
}

.ember-1 { top: 30%; left: 25%; animation: ember-rise 3s ease-in infinite 0.2s; }
.ember-2 { top: 45%; right: 20%; animation: ember-rise 4s ease-in infinite 1s; width: 3px; height: 3px; }
.ember-3 { top: 20%; right: 35%; animation: ember-rise 3.5s ease-in infinite 0.5s; }
.ember-4 { top: 55%; left: 15%; animation: ember-rise 5s ease-in infinite 2s; width: 2px; height: 2px; }
.ember-5 { top: 15%; left: 45%; animation: ember-rise 2.8s ease-in infinite 0.8s; }
.ember-6 { top: 40%; right: 10%; animation: ember-rise 4.5s ease-in infinite 1.5s; }

@keyframes ember-rise {
  0%   { transform: translateY(0)   scale(1);   opacity: 1; }
  100% { transform: translateY(-120px) scale(0); opacity: 0; }
}

.forge-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--fg-muted);
  margin-top: 1rem;
  position: relative;
  z-index: 2;
}

/* === HERO BOTTOM BAR === */
.hero-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--fg-muted);
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.platform-tags {
  display: flex;
  gap: 0.5rem;
}

.platform-tags span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--fg-muted);
}

/* === SERVICES === */
.services {
  padding: 6rem 4rem;
  background: var(--bg-2);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.services-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.services-header p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: rgba(255,107,43,0.25);
  transform: translateY(-4px);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}

.service-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === PLATFORM === */
.platform {
  padding: 8rem 4rem;
  position: relative;
  overflow: hidden;
}

.platform::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.platform-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.platform-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.platform-content p {
  color: var(--fg-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.7;
}

.platform-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.platform-list li {
  font-size: 0.95rem;
  color: var(--fg);
  padding-left: 1.5rem;
  position: relative;
}

.platform-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* === DASHBOARD MOCK === */
.dashboard-mock {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,107,43,0.1);
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.mock-dots {
  display: flex;
  gap: 5px;
}

.mock-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mock-dots span:first-child { background: #ff5f57; }
.mock-dots span:nth-child(2) { background: #febc2e; }
.mock-dots span:last-child  { background: #28c840; }

.mock-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.mock-body {
  display: flex;
  height: 280px;
}

.mock-sidebar {
  width: 140px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 1rem 0;
  flex-shrink: 0;
}

.sidebar-item {
  padding: 0.6rem 1rem;
  font-size: 0.7rem;
  color: var(--fg-muted);
  cursor: pointer;
}

.sidebar-item.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-left: 2px solid var(--accent);
}

.mock-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mock-server-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.server-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.server-dot.online  { background: #28c840; box-shadow: 0 0 6px #28c840; }
.server-dot.offline { background: #555; }

.server-name {
  font-size: 0.75rem;
  font-weight: 600;
  flex: 1;
}

.server-players {
  font-size: 0.65rem;
  color: var(--fg-muted);
  font-family: 'Orbitron', sans-serif;
}

.server-ping {
  font-size: 0.65rem;
  font-family: 'Orbitron', sans-serif;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.server-ping.good { color: #28c840; background: rgba(40,200,64,0.1); }
.server-ping.warn { color: #febc2e; background: rgba(254,188,46,0.1); }
.server-ping.bad  { color: var(--fg-muted); }

/* === COMMUNITY === */
.community {
  padding: 6rem 4rem;
  background: var(--bg-2);
  position: relative;
}

.community::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.community-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.community-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.community-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.community-card.card-large {
  grid-column: span 2;
}

.card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.community-card h3 {
  font-size: 1.1rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}

.community-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === CLOSING === */
.closing {
  padding: 8rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255,107,43,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.closing h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.closing p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.closing-tagline {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

/* === FOOTER === */
footer {
  padding: 4rem 4rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--fg);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.footer-brand p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  max-width: 250px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.footer-col a:hover { color: var(--fg); }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom span {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .platform-inner { grid-template-columns: 1fr; gap: 3rem; }
  .community-grid { grid-template-columns: 1fr; }
  .community-card.card-large { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 4rem 2rem 2rem; }
  .services, .community, .closing, footer { padding-left: 2rem; padding-right: 2rem; }
  .platform { padding: 4rem 2rem; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.4rem; }
  .footer-links { grid-template-columns: 1fr; }
}