:root {
  --bg: #111214;
  --bg-soft: #17181b;
  --surface: #1c1e21;
  --surface-hover: #22252a;
  --border: #2a2d32;
  --text: #f1f1f1;
  --text-soft: #a8abb2;
  --text-muted: #747880;
  --accent: #d7b98e;
  --accent-hover: #e3c9a4;
  --accent-text: #151515;
  --radius: 14px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 18, 20, .92);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  backdrop-filter: blur(14px);
}

.header-container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 700;
}

.logo img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 11px;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  padding: 8px 11px;
  color: var(--text-soft);
  font-size: .88rem;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
  background: var(--surface);
}

nav .nav-invite {
  margin-left: 5px;
  color: var(--accent-text);
  background: var(--accent);
  font-weight: 600;
}

nav .nav-invite:hover {
  color: var(--accent-text);
  background: var(--accent-hover);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: transform .2s, opacity .2s;
}

/* Hero */

.hero {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 7vw, 5.3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  transition: transform .2s, background .2s, border-color .2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--accent-text);
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: #373a40;
}

/* Hero Media */

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media img {
  width: min(100%, 300px);
  height: auto;
  border-radius: 30px;
}

/* Stats */

.stats {
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border-right: 0;
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  margin-bottom: 3px;
  font-size: .98rem;
}

.stat span {
  color: var(--text-muted);
  font-size: .8rem;
}

/* Server Widgets */

.community {
  padding: 40px 0;
  background: var(--bg);
}

.server-widgets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 95%;
}

.server-widgets iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
  transition: border-color .2s, transform .2s;
}

.server-widgets iframe:hover {
  border-color: #3a3d43;
  transform: translateY(-2px);
}

/* Server Widget */

.server-widget {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.server-widget iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 16px;
  background: transparent;
}

/* Sections */

.section {
  padding: 110px 0;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.section-heading p {
  color: var(--text-muted);
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  min-height: 235px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background .2s, border-color .2s, transform .2s;
}

.feature-card:hover {
  background: var(--surface-hover);
  border-color: #34373d;
  transform: translateY(-2px);
}

.feature-card-wide {
  grid-column: span 2;
  min-height: auto;
  display: flex;
  gap: 25px;
}

.feature-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 26px;
  color: var(--accent);
  border: 1px solid rgba(215, 185, 142, .3);
  border-radius: 8px;
  font-size: .7rem;
  font-weight: 700;
}

.feature-card-wide .feature-icon {
  margin-bottom: 0;
}

.feature-card h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: .88rem;
}

.feature-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-size: .83rem;
  font-weight: 600;
}

.feature-card a:hover {
  color: var(--accent-hover);
}

/* Feedback */

.feedback-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feedback-grid {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 10px 5px 20px;
}

.feedback-grid::-webkit-scrollbar {
  display: none;
}

.feedback-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  height: auto;
  align-self: stretch;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-sizing: border-box;
  scroll-snap-align: start;
  overflow: visible;
}

.feedback-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.feedback-top > div:last-child {
  min-width: 0;
}

.avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  color: var(--accent);
  background: rgba(215, 185, 142, .1);
  border-radius: 50%;
  font-weight: 700;
  overflow: hidden;
}

.avatar img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.feedback-top strong,
.feedback-top span {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.feedback-top strong {
  font-size: .86rem;
}

.feedback-top span {
  color: var(--text-muted);
  font-size: .72rem;
}

.rating {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: .82rem;
  letter-spacing: 2px;
}

.feedback-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: .87rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.feedback-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.feedback-arrow {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #333;
  border-radius: 50%;
  background: #1f1f1f;
  color: #66ffcc;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
  z-index: 2;
}

.feedback-arrow:hover {
  background: #66ffcc;
  color: #111;
  transform: scale(1.05);
}

.feedback-arrow:disabled {
  opacity: .3;
  cursor: default;
  transform: none;
}

.feedback-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.feedback-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #444;
  cursor: pointer;
  transition: .25s;
}

.feedback-dot.active {
  width: 24px;
  border-radius: 10px;
  background: #66ffcc;
}

.feedback-note {
  margin-top: 18px;
  padding: 16px 20px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-size: .82rem;
}

.feedback-note span {
  margin-right: 6px;
  color: var(--accent);
}

/* Communities */

.communities-section {
  background: var(--bg);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.community-card {
  min-width: 0;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background .2s, border-color .2s, transform .2s;
}

.community-card:hover {
  background: var(--surface-hover);
  border-color: #34373d;
  transform: translateY(-3px);
}

.community-avatar {
  width: 76px;
  height: 76px;
  margin-bottom: 15px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-hover);
  border: 1px solid var(--border);
}

.community-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-card strong {
  width: 100%;
  margin-bottom: 3px;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.community-card span {
  color: var(--text-muted);
  font-size: .78rem;
}

/* Invite */

.invite-section {
  padding: 100px 0;
}

.invite-box {
  padding: 70px 40px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.invite-box h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
}

.invite-box p {
  margin-bottom: 28px;
  color: var(--text-muted);
}

.invite-box .hero-actions {
  justify-content: center;
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
}

.footer-container {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font-size: .85rem;
}

.footer-brand span {
  color: var(--text-muted);
  font-size: .7rem;
}

footer p {
  color: var(--text-muted);
  font-size: .72rem;
}

/* Discord Support Widget */

.discord-widget-section {
  padding: 110px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.discord-widget {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.discord-widget iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
}


/* Tablet */

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-media {
    justify-content: flex-start;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card-wide {
    grid-column: span 2;
  }

  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

/* Mobile */

@media (max-width: 750px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    position: sticky;
  }

  .header-container {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 102;
  }

  nav {
    position: fixed;
    inset: 64px 0 auto 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    background: rgba(17, 18, 20, .98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s ease, opacity .2s ease, visibility .25s;
  }

  nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  nav a {
    padding: 12px;
  }

  nav .nav-invite {
    margin: 5px 0 0;
    text-align: center;
  }

  .hero {
    padding: 85px 0 60px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .hero p {
    font-size: .95rem;
  }

  .hero-media {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:first-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  /* Server Widgets */

  .community {
    padding: 25px 0;
  }

  .server-widgets {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .server-widgets iframe {
    height: 300px;
  }

  .server-widget {
    max-width: 100%;
  }

  .server-widget iframe {
    height: 280px;
    border-radius: 14px;
  }

  .section {
    padding: 80px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-wide {
    grid-column: auto;
    display: block;
  }

  .feature-card-wide .feature-icon {
    margin-bottom: 26px;
  }

  .community-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .community-card {
    min-height: 190px;
  }

  .feedback-slider {
    gap: 8px;
  }

  .feedback-arrow {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .feedback-grid {
    gap: 12px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .feedback-card {
    flex: 0 0 100%;
  }

  .invite-section {
    padding: 70px 0;
  }

  .invite-box {
    padding: 55px 22px;
  }

  .footer-container {
    padding: 24px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .discord-widget-section {
    padding: 80px 0;
  }

  .discord-widget iframe {
    height: 500px;
  }
}

/* Small Mobile */

@media (max-width: 600px) {
  .server-widgets iframe {
    height: 260px;
    border-radius: 14px;
  }

  .server-widget iframe {
    height: 300px;
  }

  .community-card {
    padding: 24px 18px;
  }

  .community-avatar {
    width: 68px;
    height: 68px;
  }
  
  .discord-widget iframe {
    height: 450px;
  }
}