/* SuperGuild landing. Tokens match SuperRaid.pen (board "00 Landing SuperGuild"). */
:root {
  --bg: #0E0F13;
  --surface: #16181E;
  --surface-2: #1E2129;
  --border: #2A2E38;
  --text: #ECEDEF;
  --text-2: #A0A4AE;
  --text-3: #6B7080;
  --coral: #FF8484;
  --discord: #5865F2;
  --ev-raid: #E6A23C;
  --ev-bg: #E5484D;
  --ev-dungeon: #3B82F6;
  --ev-wpvp: #A855F7;
  --ev-meetup: #22C55E;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-logo: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--text); font: 16px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1312px, 100% - 32px); margin-inline: auto; }

/* Logo: "SuperGuild" + coral square, after the SuperReal mark. */
.logo { font: 800 28px/1 var(--font-logo); letter-spacing: -0.5px; color: #fff; display: inline-flex; align-items: flex-end; gap: 4px; }
.logo__dot { width: 7px; height: 7px; background: var(--coral); margin-bottom: 3px; }
.logo--sm { font-size: 20px; }
.logo--sm .logo__dot { width: 5px; height: 5px; margin-bottom: 2px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; color: #fff; white-space: nowrap; transition: filter .15s; }
.btn:hover { filter: brightness(1.12); }
.btn--discord { background: var(--discord); }
.btn--ghost { border: 1px solid #ffffff40; }
.btn--glass { background: #ffffff14; border: 1px solid #ffffff33; }
.btn--lg { padding: 18px 28px; font-size: 17px; border-radius: 10px; font-weight: 700; }

/* Hero */
.hero { position: relative; min-height: 880px; display: flex; flex-direction: column; overflow: hidden; background: #1A1410; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #0E0F13FA 0%, #0E0F13E0 42%, #0E0F1366 70%, #0E0F1300 90%),
              linear-gradient(180deg, #0E0F1300 55%, var(--bg) 100%); }
.hero__content { position: relative; z-index: 1; }
.hero { padding-top: 88px; }
/* Top bar: fixed; once the page scrolls (landing.js) it gets a solid backdrop, shrinks and
   folds the logo from "SuperGuild." to "SG.". */
.topbar { position: fixed; inset: 0 0 auto; z-index: 10; border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s; }
.topbar--stuck { background: #0E0F13D9; border-bottom-color: var(--border); backdrop-filter: blur(12px); }
.nav { transition: height .3s; }
.topbar--stuck .nav { height: 64px; }
.logo__text { display: inline-block; }
.logo__fold { display: inline-block; vertical-align: top; overflow: hidden; max-width: 3em; transition: max-width .45s ease, opacity .3s; }
.topbar--stuck .logo__fold { max-width: 0; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .topbar, .nav, .logo__fold { transition: none; } }
.nav { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__links { display: flex; gap: 36px; font-size: 15px; font-weight: 500; color: #E5E7EB; }
.nav__links a:hover { color: #fff; }
.nav__actions { display: flex; gap: 12px; }
.hero__content { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-bottom: 120px; }
.eyebrow { align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 6px; background: #FF84841F; color: var(--coral); font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.eyebrow__dot { width: 6px; height: 6px; background: var(--coral); }
h1 { font: 800 clamp(44px, 6vw, 76px)/1.02 var(--font-logo); letter-spacing: -2px; max-width: 760px; }
.hero__sub { max-width: 560px; font-size: 19px; color: #D1D5DB; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.stats { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 24px; }
.stats dt { font: 800 26px/1.2 var(--font-logo); }
.stats dd { font-size: 14px; color: #9CA3AF; }

/* Sections */
.section { padding-block: 120px; }
.kicker { color: var(--coral); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.title { font: 800 clamp(30px, 3.4vw, 44px)/1.1 var(--font-logo); letter-spacing: -1px; max-width: 720px; }
.lead { max-width: 460px; font-size: 17px; color: var(--text-2); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; height: 240px; object-fit: cover; }
.card__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font: 800 22px/1.25 var(--font-logo); }
.card p { color: var(--text-2); }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.tag--bg { color: var(--ev-bg); }
.tag--raid { color: var(--ev-raid); }
.tag--meetup { color: var(--ev-meetup); }
.pillars, .addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }

.section--split { display: grid; grid-template-columns: 600px 1fr; gap: 64px; align-items: center; padding-top: 0; }
.split__img { width: 100%; height: 560px; object-fit: cover; border-radius: 16px; }
.values { list-style: none; display: grid; gap: 24px; margin-top: 32px; }
.values li { color: var(--text-2); padding-left: 62px; position: relative; }
.values li::before { content: ""; position: absolute; left: 0; top: 2px; width: 44px; height: 44px; border-radius: 10px; background: #FF84841A; }
.values li::after { content: ""; position: absolute; left: 18px; top: 20px; width: 8px; height: 8px; background: var(--coral); }
.values strong { display: block; color: #fff; font-size: 18px; }

.section--addons { background: radial-gradient(120% 60% at 50% 0%, #FF848414, transparent); }
.addons__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; }
.video { width: 100%; aspect-ratio: 16 / 9; margin-top: 48px; border-radius: 16px; border: 1px solid var(--border); background: #000; object-fit: cover; }
.addons .card img { object-position: top left; }
.members-only { margin-top: 48px; display: flex; align-items: center; gap: 24px; padding: 28px 32px; border-radius: 14px; background: #FF84840F; border: 1px solid #FF848440; }
.members-only div { flex: 1; }
.members-only h3 { font-size: 18px; }
.members-only p { color: var(--text-2); font-size: 15px; }

.section--events { background: var(--surface); border-block: 1px solid var(--border); padding-block: 96px; }
.events__head { display: flex; justify-content: space-between; align-items: flex-end; }
.link { font-weight: 600; }
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.event { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.event__date { width: 64px; padding: 10px 0; border-radius: 10px; background: var(--surface-2); text-align: center; }
.event__day { display: block; font: 800 28px/1.1 var(--font-logo); }
.event__month { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text-2); }
.event__type { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-2); }
.event__type::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.event h3 { font-size: 18px; }
.event__when { font-size: 14px; color: var(--text-2); }
.events__empty { grid-column: 1 / -1; color: var(--text-2); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.steps li { border-top: 2px solid var(--border); padding-top: 24px; display: grid; gap: 14px; align-content: start; }
.steps span { font: 800 16px var(--font-logo); color: var(--coral); }
.steps h3 { font-size: 20px; }
.steps p { color: var(--text-2); }

.cta { position: relative; height: 420px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; overflow: hidden; text-align: center; padding: 16px; }
.cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; background: #0E0F13B8; z-index: 1; }
.cta > :not(img) { position: relative; z-index: 2; }
.cta h2 { font: 800 clamp(32px, 4vw, 48px)/1.1 var(--font-logo); letter-spacing: -1px; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 40px; color: var(--text-3); font-size: 13px; }

@media (max-width: 1100px) {
  .nav__links { display: none; }
  .pillars, .addons, .events { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .section--split { grid-template-columns: 1fr; }
  .split__img { height: 360px; }
  .addons__head, .events__head { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 640px) {
  .hero { min-height: 760px; }
  .nav .btn--ghost { display: none; }
  .pillars, .addons, .events, .steps { grid-template-columns: 1fr; }
  .section { padding-block: 72px; }
  .members-only, .footer { flex-direction: column; align-items: flex-start; }
}
