:root {
  color-scheme: dark;
  --bg: #090711;
  --bg-soft: #110e1b;
  --surface: #171120;
  --surface-border: rgba(211, 185, 255, .12);
  --text: #f7f2ff;
  --muted: #ada5bb;
  --subtle: #888099;
  --gold: #ffd55d;
  --gold-light: #ffe89d;
  --purple: #ba67ff;
  --focus: #ffe29c;
  --max-width: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse 58rem 45rem at 85% 8%, rgba(108, 19, 163, .16), transparent 68%),
    radial-gradient(ellipse 47rem 36rem at -25% 46%, rgba(101, 26, 145, .09), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 780px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(153, 77, 225, .04), transparent 100%);
}
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: #e3bb62; color: #171120; }
.site-shell { width: min(calc(100% - 88px), var(--max-width)); margin-inline: auto; position: relative; }
.skip-link { position: fixed; z-index: 50; top: 10px; left: 10px; padding: 10px 15px; background: var(--gold); color: #171120; font-weight: 700; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid rgba(215, 199, 235, .1); }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(151, 56, 234, .19)); }
.brand-wordmark { display: flex; flex-direction: column; gap: 3px; }
.brand-wordmark strong { font-size: 16px; font-weight: 800; letter-spacing: -.35px; }
.brand-wordmark small { color: #bbadcf; font-size: 9px; font-weight: 800; letter-spacing: 2px; }
.main-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.main-nav a { font-size: 13px; font-weight: 650; color: #b9b0c7; text-decoration: none; transition: color .2s; }
.main-nav a:hover, .back-top:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 21px; }
.language-picker { display: flex; gap: 5px; align-items: center; color: #5a5268; }
.language-button { border: 0; padding: 7px 3px; background: none; color: #867b98; cursor: pointer; font-weight: 800; font-size: 11px; letter-spacing: .6px; transition: color .2s; }
.language-button:hover { color: #fff; }
.language-button[aria-pressed="true"] { color: var(--gold); }
.header-mail { display: inline-flex; align-items: center; gap: 9px; padding: 13px 17px; border: 1px solid rgba(250, 212, 122, .36); border-radius: 9px; text-decoration: none; color: var(--gold-light); font-size: 12px; font-weight: 750; transition: background .2s, border-color .2s; }
.header-mail:hover { background: rgba(255, 210, 94, .08); border-color: var(--gold); }
.header-mail svg { width: 16px; height: 16px; }

/* Hero */
.hero { min-height: 665px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; position: relative; isolation: isolate; padding: 88px 0 92px; }
.hero-grid {
  position: absolute;
  z-index: -2;
  right: -3%; top: 4%; bottom: 1%; width: 62%;
  background-image: linear-gradient(rgba(210, 153, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(210, 153, 255, .05) 1px, transparent 1px);
  background-size: 51px 51px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
  pointer-events: none;
}
.hero-copy { z-index: 1; position: relative; padding-bottom: 4px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: #d9b18d; font-size: 11px; font-weight: 850; letter-spacing: 2.8px; text-transform: uppercase; }
.eyebrow-line { width: 30px; height: 2px; background: var(--gold); box-shadow: 0 0 15px #e2a13a; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(4rem, 7vw, 6.5rem); line-height: .95; letter-spacing: -.03em; font-weight: 900; margin: 30px 0 27px; }
.hero-title { display: flex; flex-direction: column; align-items: flex-start; gap: .06em; }
.title-line { display: block; }
.title-line-bottom { display: inline-flex; align-items: flex-end; gap: .05em; }
/* Normal letter spacing and a small internal reserve prevent the gold gradient clipping the final "e". */
.title-accent { display: inline-block; letter-spacing: 0; padding-inline-end: .08em; background: linear-gradient(110deg, #ffe994 2%, #f9c645 51%, #e79f2c 100%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-lead { color: #faf7ff; font-weight: 700; font-size: clamp(18px, 2.1vw, 23px); margin-bottom: 14px; letter-spacing: -.4px; }
.hero-description { max-width: 480px; color: #b5abbf; font-size: 15px; line-height: 1.95; margin-bottom: 29px; }
.clan-language { max-width: 480px; padding: 11px 15px; margin: -5px 0 24px; color: #e4d6ed; font-size: 12px; line-height: 1.7; background: rgba(157, 85, 227, .09); border-left: 2px solid var(--purple); border-radius: 0 7px 7px 0; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding: 0 23px; border-radius: 9px; font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, #ffe69b, #f5b93d); color: #1f1421; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 8px 30px rgba(226, 147, 27, .14); }
.button-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 10px 30px rgba(226, 147, 27, .26); }
.button-primary svg { width: 18px; height: 18px; }
.button-secondary { background: rgba(255, 255, 255, .03); border: 1px solid rgba(217, 199, 237, .21); color: #f1e8ff; }
.button-secondary:hover { border-color: rgba(217, 199, 237, .6); background: rgba(255,255,255,.06); }
.button-discord { background: #5865f2; color: #fff; box-shadow: 0 8px 28px rgba(88, 101, 242, .18); }
.button-discord:hover { background: #4752c4; box-shadow: 0 10px 30px rgba(88, 101, 242, .3); }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; margin-right: -24px; }
.crest-stage { position: relative; width: min(100%, 550px); aspect-ratio: 1; display: grid; place-items: center; }
.crest-stage::before { content: ""; position: absolute; width: 77%; height: 77%; border-radius: 50%; background: radial-gradient(circle, rgba(98, 28, 150, .44), rgba(94, 17, 134, .13) 38%, transparent 73%); filter: blur(18px); }
.crest-orbit { position: absolute; inset: 5.5%; border: 1px solid rgba(159, 101, 206, .2); border-radius: 50%; }
.crest-orbit-outer { transform: rotate(-18deg); border-style: dashed; border-color: rgba(200, 133, 243, .13); }
.crest-orbit-inner { inset: 12%; border-color: rgba(211, 176, 239, .1); }
.crest-light { position: absolute; width: 42%; height: 42%; border-radius: 50%; filter: blur(60px); opacity: .52; }
.crest-light-gold { left: 18%; bottom: 9%; background: #df8f1d; }
.crest-light-purple { right: 16%; top: 17%; background: #7910dd; }
.crest-tick { width: 10px; height: 10px; position: absolute; border: 1px solid rgba(241, 193, 111, .65); transform: rotate(45deg); background: rgba(241, 193, 111, .16); }
.crest-tick-top { top: 5%; left: 49%; }.crest-tick-bottom { bottom: 5%; left: 49%; }
.crest-tick-left { left: 5%; top: 49%; }.crest-tick-right { right: 5%; top: 49%; }
.hero-crest { width: 88%; height: 88%; object-fit: contain; z-index: 1; filter: drop-shadow(0 24px 28px rgba(0,0,0,.7)) drop-shadow(0 0 35px rgba(125, 16, 210, .28)); animation: float 8s ease-in-out infinite; }
.crest-caption { display: flex; align-items: center; gap: 15px; color: #a894ad; font-size: 10px; font-weight: 800; letter-spacing: 3px; margin-top: -3px; }
.caption-rule { display: block; width: 40px; height: 1px; background: linear-gradient(90deg, transparent, rgba(242, 195, 82, .38)); }
.caption-rule:last-child { transform: rotate(180deg); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.ornamental-divider { display: flex; align-items: center; gap: 15px; opacity: .74; }
.ornamental-divider span { height: 1px; background: linear-gradient(90deg, transparent, #56446c); flex: 1; }
.ornamental-divider span:last-child { transform: rotate(180deg); }
.ornamental-divider i { display: block; width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* Clan and values */
.section-pad { padding-top: 104px; }
.section-heading { max-width: 700px; }
.section-kicker { display: block; margin: 0 0 21px; color: #c994ef; font-size: 11px; font-weight: 850; letter-spacing: 2.2px; }
.section-heading h2 { margin-bottom: 19px; font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 870; letter-spacing: -.065em; line-height: 1.06; }
.text-gold { color: var(--gold); }
.section-heading > p:last-child { max-width: 610px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.value-card { position: relative; overflow: hidden; min-height: 228px; padding: 31px 29px; background: linear-gradient(145deg, rgba(38, 25, 50, .91), rgba(19, 15, 29, .95)); border: 1px solid var(--surface-border); border-radius: 13px; }
.value-card::before { content: ""; height: 2px; width: 64px; position: absolute; top: 0; left: 28px; background: linear-gradient(90deg, #f6b944, #9130c9); }
.value-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 26px; border: 1px solid rgba(195, 144, 255, .23); border-radius: 10px; background: rgba(135, 52, 212, .09); color: #e3bbff; }
.value-icon svg { width: 23px; height: 23px; stroke-width: 1.6; }
.value-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.45px; margin-bottom: 9px; }
.value-card p { margin-bottom: 0; font-size: 13px; line-height: 1.8; color: #b2a8bd; }

/* Find / contact */
.connect-section { padding-bottom: 105px; }
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.connect-card { display: flex; flex-direction: column; min-height: 360px; padding: 34px; border-radius: 15px; position: relative; overflow: hidden; scroll-margin-top: 120px; }
.find-card { background: linear-gradient(147deg, #21182e, #14101d 71%); border: 1px solid rgba(189, 145, 239, .25); }
.contact-card { background: linear-gradient(142deg, rgba(119, 68, 14, .25), rgba(37, 23, 26, .93) 49%, #17101c); border: 1px solid rgba(244, 190, 91, .24); }
.contact-card::before { content: ""; position: absolute; inset: -100px -120px auto auto; width: 310px; height: 250px; border-radius: 50%; background: #bd7629; opacity: .065; filter: blur(50px); pointer-events: none; }
.connect-content { margin-top: auto; }
.connect-card h2 { font-size: clamp(27px, 3vw, 34px); letter-spacing: -.045em; font-weight: 820; margin-bottom: 13px; }
.connect-card .connect-content > p:not(.help-text, .copy-status) { max-width: 390px; font-size: 14px; line-height: 1.8; color: #baafc6; margin-bottom: 20px; }
.clan-name-box { display: flex; align-items: center; gap: 13px; background: rgba(6, 5, 10, .35); border: 1px solid rgba(240, 215, 255, .15); border-radius: 10px; padding: 12px 13px; }
.clan-name-box img { flex: 0 0 auto; width: 49px; height: 49px; object-fit: contain; }
.clan-name-text { display: flex; flex-direction: column; min-width: 0; gap: 5px; }
.clan-name-text small { color: #a98db5; font-size: 9px; font-weight: 800; letter-spacing: 2px; }
.clan-name-text strong { font-size: 20px; letter-spacing: .25px; font-variant-numeric: tabular-nums; }
.clan-name-caption { color: #a99bb4; font-size: 11px; }
.clan-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 15px; padding: 13px 16px; border-radius: 9px; background: linear-gradient(120deg, #fce69c, #f0b747); color: #211423; font-weight: 800; font-size: 13px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.clan-link:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(226, 147, 27, .22); }
.clan-link svg { width: 17px; height: 17px; flex: 0 0 auto; }
.copy-button { margin-left: auto; display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; background: rgba(255,255,255,.04); border: 1px solid rgba(225,194,247,.2); border-radius: 8px; color: #f2e7ff; cursor: pointer; transition: background .2s, border-color .2s; }
.copy-button:hover { background: rgba(255,255,255,.12); border-color: var(--gold); }
.copy-button svg { width: 17px; height: 17px; }
.help-text { margin: 17px 0 0; color: #998ca5; font-size: 12px; line-height: 1.65; }
.copy-status { min-height: 0; margin: 0; color: var(--gold-light); font-size: 12px; }
.copy-status:not(:empty) { margin-top: 9px; }
.contact-email { display: inline-flex; align-items: center; max-width: 100%; gap: 11px; color: var(--gold-light); text-decoration: none; font-size: clamp(14px, 1.68vw, 19px); font-weight: 800; letter-spacing: -.4px; overflow-wrap: anywhere; border-bottom: 1px solid rgba(255, 208, 109, .37); padding-bottom: 7px; transition: color .2s, border-color .2s; }
.contact-email svg { flex: 0 0 auto; width: 18px; height: 18px; }
.contact-email:hover { color: #fff; border-color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid rgba(215, 199, 235, .13); padding: 28px 0 40px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 26px; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 800; }
.footer-brand img { width: 32px; height: 32px; object-fit: contain; }
.back-top { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #bdb0cb; font-size: 12px; font-weight: 700; transition: color .2s; }
.back-top svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; border-top: 1px solid rgba(215, 199, 235, .07); padding-top: 24px; }
.footer-bottom p { margin: 0; font-size: 11px; line-height: 1.9; color: #8c819a; }
.disclaimer { max-width: 660px; }
.disclaimer a { color: #c3b1d2; text-underline-offset: 3px; }
.disclaimer a:hover { color: var(--gold); }
.copyright { white-space: nowrap; }

@media (max-width: 1070px) {
  .site-shell { width: min(calc(100% - 52px), var(--max-width)); }
  .main-nav { gap: 19px; }
  .header-actions { gap: 13px; }
  .header-mail { padding: 12px; }
  .hero { grid-template-columns: 1.04fr .96fr; min-height: 590px; }
  .hero-visual { margin-right: -12px; }
  h1 { font-size: clamp(3.8rem, 7.6vw, 5.8rem); }
}
@media (max-width: 820px) {
  .site-header { flex-wrap: wrap; min-height: 88px; padding-block: 17px; gap: 15px; }
  .main-nav { order: 3; flex-basis: 100%; margin: 2px 0 0; justify-content: flex-start; gap: 26px; }
  .header-actions { margin-left: auto; }
  .hero { padding-top: 56px; padding-bottom: 74px; min-height: unset; grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(3.2rem, 8vw, 5.2rem); }
  .hero-description { line-height: 1.7; }
  .hero-buttons { gap: 9px; }
  .button { min-height: 47px; padding-inline: 16px; font-size: 12px; }
  .crest-caption { gap: 8px; font-size: 9px; letter-spacing: 1.7px; }
  .caption-rule { width: 20px; }
  .section-pad { padding-top: 78px; }
  .connect-section { padding-bottom: 78px; }
  .value-card { padding: 26px 22px; }
  .connect-card { padding: 27px; }
}
@media (max-width: 650px) {
  .site-shell { width: calc(100% - 38px); }
  .site-header { min-height: 78px; gap: 11px; }
  .brand img { height: 42px; width: 42px; }
  .brand { gap: 9px; }
  .brand-wordmark strong { font-size: 14px; }
  .brand-wordmark small { font-size: 8px; letter-spacing: 1.2px; }
  .header-mail { display: none; }
  .main-nav { padding-bottom: 1px; overflow-x: auto; gap: 28px; }
  .main-nav a { font-size: 12px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding: 67px 0 63px; gap: 32px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; margin: 0; }
  .eyebrow { font-size: 9px; letter-spacing: 1.8px; }
  h1 { font-size: clamp(3.6rem, 14vw, 5.3rem); margin: 23px 0 25px; }
  .hero-lead { font-size: 19px; }
  .hero-description { font-size: 14px; max-width: 530px; }
  .crest-stage { max-width: 420px; }
  .crest-caption { margin-top: -7px; }
  .section-pad { padding-top: 70px; }
  .section-heading h2 { font-size: clamp(2.55rem, 10.5vw, 4.5rem); }
  .values-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 27px; }
  .value-card { min-height: unset; padding: 27px 25px; }
  .value-icon { margin-bottom: 16px; }
  .connect-section { padding-bottom: 70px; }
  .connect-grid { grid-template-columns: 1fr; gap: 13px; }
  .connect-card { min-height: 310px; padding: 27px 24px; }
  .contact-email { font-size: clamp(13px, 4.2vw, 19px); }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 15px; }
}
@media (max-width: 380px) {
  .site-shell { width: calc(100% - 28px); }
  .brand-wordmark strong { font-size: 13px; }
  .language-picker { gap: 3px; }
  .hero-buttons { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .clan-name-box { padding: 10px 8px; gap: 8px; }
  .clan-name-text strong { font-size: 17px; }
  .clan-name-box img { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
