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

:root {
  --bg:          #090909;
  --bg2:         #101010;
  --bg3:         #171717;
  --card:        #141414;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.12);
  --red:         #e53e3e;
  --red-dim:     #c53030;
  --red-glow:    rgba(229,62,62,0.20);
  --red-bright:  #ff6060;
  --red-faint:   rgba(229,62,62,0.06);
  --red-border:  rgba(229,62,62,0.28);
  --text:        #f0f0f0;
  --muted:       #888;
  --dim:         #a0a0a0;
  --mid:         #c0c0c0;
  --white:       #ffffff;
  --green:       #22c55e;
  --font:        'Inter', sans-serif;
  --mono:        'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  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)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.35;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
  background: rgba(9,9,9,0.90);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 17px; font-weight: 900; letter-spacing: .22em;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--red); }
.logo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 8px var(--red);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.6)} }

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

/* LANGUAGE SWITCHER */
.lang-switcher { position: relative; }

.lang-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px; font-weight: 700; font-family: var(--mono);
  color: var(--text); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lang-btn:hover { border-color: var(--red-border); }

.lang-globe { color: var(--red-bright); flex-shrink: 0; }
.lang-current { letter-spacing: .04em; }
.lang-chevron { color: var(--muted); flex-shrink: 0; transition: transform .18s; }
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 130px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 200;
}
.lang-switcher.open .lang-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.lang-option {
  background: transparent; border: none; border-radius: 8px;
  padding: 8px 12px; font-size: 13px; font-weight: 600;
  color: var(--mid); text-align: left; cursor: pointer;
  font-family: var(--font);
  transition: background .12s, color .12s;
}
.lang-option:hover { background: var(--red-faint); color: var(--white); }
.lang-option.active { color: var(--red-bright); background: var(--red-faint); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: white; border: none;
  border-radius: 10px; padding: 9px 18px;
  font-size: 13px; font-weight: 700; font-family: var(--font);
  text-decoration: none; cursor: pointer;
  transition: background .18s, transform .12s, box-shadow .18s;
  box-shadow: 0 0 0 0 var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-dim);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--red-glow);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -62%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(229,62,62,.10) 0%, transparent 68%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  font-family: var(--mono);
  color: var(--red-bright);
  background: var(--red-faint);
  border: 1px solid var(--red-border);
  border-radius: 999px; padding: 5px 14px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 900; line-height: 1.06; letter-spacing: -.04em;
  color: var(--white); margin-bottom: 16px;
}
.hero h1 .accent { color: var(--red); }

.hero p {
  font-size: 16px; color: var(--dim);
  max-width: 480px; margin: 0 auto 40px;
  line-height: 1.70;
}

/* CTA centrado */
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: white; border: none;
  border-radius: 14px; padding: 16px 36px;
  font-size: 16px; font-weight: 800; font-family: var(--font);
  text-decoration: none; cursor: pointer;
  transition: background .18s, transform .14s, box-shadow .20s;
  box-shadow: 0 4px 32px var(--red-glow);
  margin-bottom: 52px;
}
.hero-cta:hover {
  background: var(--red-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(229,62,62,.35);
}
.hero-cta svg { flex-shrink: 0; }

.hero-stats {
  display: flex; gap: 44px; justify-content: center;
  border-top: 1px solid var(--border); padding-top: 36px;
}
.stat-num { font-size: 26px; font-weight: 900; color: var(--white); }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 3px; font-family: var(--mono); }

/* SECTION SHARED */
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); font-family: var(--mono); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px); font-weight: 900;
  color: var(--white); letter-spacing: -.02em; margin-bottom: 12px;
}
.section-sub { font-size: 15px; color: var(--dim); max-width: 540px; line-height: 1.7; }

/* PREVIEW */
.preview-section { padding: 100px 40px; max-width: 1260px; margin: 0 auto; }

.preview-window {
  margin-top: 52px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border2);
  box-shadow: 0 32px 80px rgba(0,0,0,.7), 0 0 0 1px var(--border);
  background: var(--bg2);
  pointer-events: none; user-select: none;
}
.preview-bar {
  height: 36px; background: #0d0d0d;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 7px; padding: 0 14px;
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot:nth-child(1) { background: #ff5f57; }
.preview-dot:nth-child(2) { background: #ffbd2e; }
.preview-dot:nth-child(3) { background: #28c840; }
.preview-url { margin-left: 10px; font-size: 11px; font-family: var(--mono); color: var(--muted); }

.preview-body { display: flex; height: 500px; }

/* Sidebar */
.pv-sidebar {
  width: 210px; min-width: 210px;
  background: linear-gradient(180deg,#0b0b0b,#0f0f0f 60%);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.pv-sidebar-logo {
  padding: 15px 15px 13px;
  font-size: 15px; font-weight: 900; letter-spacing: .22em;
  color: var(--white); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 7px;
}
.pv-sidebar-logo span { color: var(--red); }
.pv-logo-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 6px var(--red);
  animation: pulse 2s ease-in-out infinite;
}
.pv-nav-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); font-family: var(--mono);
  padding: 12px 15px 6px;
}
.pv-server-list { display: flex; flex-direction: column; gap: 2px; padding: 0 6px; flex: 1; overflow: hidden; }
.pv-server-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 7px;
  border: 1px solid transparent;
  font-size: 12px; font-weight: 600; color: var(--mid);
}
.pv-server-item.active { background: var(--red-faint); border-color: var(--red-border); color: var(--white); }
.pv-server-icon {
  width: 27px; height: 27px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0; border: 1px solid var(--border); color: var(--mid);
}
.pv-server-item.active .pv-server-icon { border-color: var(--red-border); background: rgba(229,62,62,.08); }
.pv-server-info { flex: 1; min-width: 0; }
.pv-server-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-server-sub { font-size: 10px; color: var(--green); font-family: var(--mono); }
.pv-server-sub.grey { color: var(--muted); }
.pv-sidebar-footer { padding: 10px; border-top: 1px solid var(--border); }
.pv-invite-btn {
  display: block; text-align: center;
  background: var(--red-faint); border: 1px solid var(--red-border);
  border-radius: 7px; padding: 7px 10px;
  font-size: 11px; font-weight: 700; color: var(--red-bright); margin-bottom: 8px;
}
.pv-user-row {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 7px; padding: 6px 8px;
}
.pv-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #e53e3e, #9b2c2c);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: white;
}
.pv-user-name { flex: 1; font-size: 11px; font-weight: 600; color: var(--mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-logout-label { font-size: 9px; color: var(--muted); }

/* Main */
.pv-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; }

.pv-coming-soon {
  position: absolute; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background: rgba(9,9,9,0.74);
  backdrop-filter: blur(3px);
}
.pv-coming-soon-badge {
  font-size: 13px; font-weight: 900; letter-spacing: .35em; text-transform: uppercase;
  font-family: var(--mono);
  color: var(--red-bright);
  background: var(--red-faint);
  border: 1px solid var(--red-border);
  border-radius: 999px;
  padding: 12px 30px;
  box-shadow: 0 0 32px var(--red-glow);
}
.pv-topbar {
  height: 44px; min-height: 44px;
  background: rgba(10,10,10,.92); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; gap: 10px;
}
.pv-topbar-left { display: flex; align-items: center; gap: 8px; }
.pv-topbar-icon {
  width: 20px; height: 20px; border-radius: 5px;
  background: linear-gradient(135deg,#e53e3e55,#9b2c2c33);
  border: 1px solid var(--red-border);
  display: flex; align-items: center; justify-content: center; font-size: 9px;
}
.pv-topbar-title { font-size: 13px; font-weight: 800; color: var(--white); }
.pv-topbar-sep { color: var(--muted); font-size: 12px; }
.pv-topbar-guild { font-size: 11px; font-family: var(--mono); color: var(--muted); }
.pv-topbar-right { display: flex; align-items: center; gap: 10px; }
.pv-topbar-user { font-size: 11px; color: var(--dim); font-family: var(--mono); }
.pv-topbar-btn {
  background: transparent; border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 10px;
  font-size: 10px; color: var(--muted);
}

.pv-scroll { flex: 1; overflow: hidden; padding: 16px 18px; }
.pv-guild-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.pv-gh-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg,#1a0a0a,#2a1010);
  border: 2px solid var(--red-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: var(--red-bright); flex-shrink: 0;
}
.pv-gh-name { font-size: 16px; font-weight: 900; color: var(--white); }
.pv-gh-id { font-size: 10px; color: var(--muted); font-family: var(--mono); }

.pv-stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }
.pv-stat {
  background: linear-gradient(180deg,#0d0d0d,#111);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
.pv-stat-label { font-size: 9px; color: var(--muted); font-family: var(--mono); margin-bottom: 4px; }
.pv-stat-val { font-size: 19px; font-weight: 900; color: var(--white); letter-spacing: -.02em; }
.pv-stat-trend { font-size: 10px; color: var(--green); margin-top: 2px; }
.pv-stat-trend.down { color: #ef4444; }

.pv-section-hdr {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-family: var(--mono); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.pv-section-hdr::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.pv-modules-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.pv-mod-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 9px; padding: 11px 9px 9px;
  display: flex; flex-direction: column; gap: 5px;
  position: relative; overflow: hidden;
}
.pv-mod-card.active { border-color: var(--red-border); background: var(--red-faint); }
.pv-mod-card.active::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--red);
}
.pv-mod-top { display: flex; align-items: center; justify-content: space-between; }
.pv-mod-icon { font-size: 15px; }
.pv-mod-badge {
  font-size: 8px; font-weight: 700; border-radius: 99px;
  padding: 2px 5px; border: 1px solid;
}
.pv-mod-badge.on  { color: var(--green); background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.25); }
.pv-mod-badge.off { color: var(--muted); background: var(--bg2); border-color: var(--border); }
.pv-mod-name { font-size: 10px; font-weight: 800; color: var(--white); line-height: 1.2; }
.pv-mod-desc { font-size: 8px; color: var(--muted); line-height: 1.4; }

/* FEATURES */
.features-section { padding: 100px 40px; max-width: 1180px; margin: 0 auto; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
  gap: 16px; margin-top: 48px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 22px;
  transition: border-color .18s, transform .14s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--red); opacity: 0; transition: opacity .18s;
}
.feature-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 26px; margin-bottom: 14px; }
.feature-card h3 { font-size: 14px; font-weight: 800; color: var(--white); margin-bottom: 7px; }
.feature-card p  { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 36px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { font-size: 16px; font-weight: 900; letter-spacing: .22em; color: var(--white); }
.footer-logo span { color: var(--red); }
.footer-copy { font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 700px) {

  /* Nav */
  .nav { padding: 0 18px; height: 54px; }
  .btn-primary span { display: none; }
  .btn-primary { padding: 9px 12px; border-radius: 10px; }

  /* Hero */
  .hero { padding: 88px 22px 56px; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); letter-spacing: -.03em; }
  .hero p  { font-size: 15px; margin-bottom: 32px; }
  .hero-cta { padding: 14px 28px; font-size: 15px; width: 100%; justify-content: center; border-radius: 12px; }

  /* Stats */
  .hero-stats {
    gap: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
  }
  .stat { padding: 0 8px; }
  .stat + .stat { border-left: 1px solid var(--border); }
  .stat-num  { font-size: 13px; font-weight: 800; line-height: 1.3; }
  .stat-label { font-size: 10px; }

  /* Sections */
  .preview-section, .features-section { padding: 56px 18px; }
  .section-title { font-size: clamp(22px, 6vw, 30px); }
  .section-sub   { font-size: 14px; }

  /* Dashboard preview */
  .preview-window { margin-top: 32px; border-radius: 12px; }
  .preview-body   { height: 360px; }
  .pv-sidebar     { width: 150px; min-width: 150px; }
  .pv-sidebar-logo { font-size: 13px; padding: 12px 10px; }
  .pv-nav-label   { font-size: 9px; padding: 10px 10px 4px; }
  .pv-server-item { padding: 6px 6px; gap: 6px; }
  .pv-server-name { font-size: 11px; }
  .pv-server-sub  { font-size: 9px; }
  .pv-server-icon { width: 22px; height: 22px; font-size: 10px; }
  .pv-invite-btn  { font-size: 10px; padding: 6px 6px; }
  .pv-scroll      { padding: 10px 12px; }
  .pv-gh-name     { font-size: 13px; }
  .pv-stats-row   { grid-template-columns: repeat(2,1fr); gap: 6px; margin-bottom: 10px; }
  .pv-stat        { padding: 8px 10px; }
  .pv-stat-val    { font-size: 16px; }
  .pv-modules-grid { grid-template-columns: repeat(3,1fr); gap: 6px; }
  .pv-coming-soon-badge { font-size: 11px; letter-spacing: .2em; padding: 10px 18px; }

  /* Features grid */
  .features-grid { gap: 12px; margin-top: 32px; }
  .feature-card  { padding: 20px 18px; border-radius: 14px; }

  /* Footer */
  footer { flex-direction: column; gap: 10px; text-align: center; padding: 24px 18px; }
}
