:root {
  --bg0: #0b1220;
  --bg1: #121c2e;
  --ink: #e8eef8;
  --muted: #9aadc8;
  --accent: #3dd6c6;
  --accent2: #4f8cff;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --danger: #ff6b7a;
  --ok: #5ddea8;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(77, 140, 255, 0.25), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(61, 214, 198, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #0a101a);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  max-width: 100%;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 0;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-hero {
  width: 100%;
  max-width: 100%;
  min-height: min(78vh, 720px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}

.brand-hero-shade {
  width: 100%;
  min-height: inherit;
  background:
    linear-gradient(180deg, rgba(8, 12, 22, 0.55), rgba(8, 12, 22, 0.82) 55%, rgba(11, 18, 32, 0.96));
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-brand img {
  border-radius: 6px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.95rem;
  min-width: 0;
}

.hero {
  padding: 4.5rem 0 3rem;
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
  min-width: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  color: #061018;
}

.btn-primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 0.75rem;
}

.section p.lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 36rem;
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.price-card {
  max-width: none;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0.35rem 0 0.75rem;
}

.price-card--featured {
  border-color: rgba(61, 214, 198, 0.45);
  box-shadow: 0 0 0 1px rgba(61, 214, 198, 0.2);
}

.plan-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.plan-blurb {
  margin: 0 0 1rem !important;
  min-height: 2.6em;
}

.plan-features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  flex: 1;
}

.plan-features li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}

.plan-features li:last-child {
  border-bottom: 1px solid var(--line);
}

.price-card .btn {
  width: 100%;
  justify-content: center;
}

.price-card .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.alert {
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  border: 1px solid var(--line);
  background: var(--card);
}

.alert-ok {
  border-color: rgba(93, 222, 168, 0.35);
}

.alert-warn {
  border-color: rgba(255, 107, 122, 0.35);
}

.guild-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.65rem;
}

.guild-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--card);
}

.guild-list button:disabled,
.guild-list .disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.muted {
  color: var(--muted);
}

.lang-select select {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 1.5rem);
  }

  .nav {
    padding: 1rem 0 0.5rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 0.65rem 0.85rem;
    font-size: 0.88rem;
  }

  .brand-hero {
    min-height: min(88vh, 680px);
    background-position: 58% center;
  }

  .hero {
    padding: 2.25rem 0 2.5rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

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

  .hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }

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