:root {
  --navy: #081b23;
  --navy-2: #102832;
  --cream: #f3e8cf;
  --gold: #f5d68a;
  --gold-deep: #b8863f;
  --aqua: #68d9d7;
  --body: #ccdad8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--cream); font-family: "DM Sans", Arial, sans-serif; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 12px; background: white; color: black; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 4px; }
.section-shell { width: min(1300px, calc(100% - 72px)); margin: 0 auto; }

.site-header {
  position: absolute; z-index: 10; width: 100%; top: 0; left: 0;
  background: linear-gradient(180deg, rgba(3, 20, 30, .93), rgba(5, 28, 39, .78));
  border-bottom: 1px solid rgba(234, 214, 155, .33);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
}
.nav-shell { width: min(1470px, calc(100% - 64px)); min-height: 80px; margin: auto; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; min-width: 255px; color: var(--gold); }
.brand img { width: 225px; height: auto; max-height: 75px; object-fit: contain; }
.brand-emblem { display: grid; place-items: center; height: 40px; width: 40px; border: 1px solid var(--gold-deep); transform: rotate(45deg); font-size: 22px; }
.brand-emblem::first-letter { transform: rotate(-45deg); }
.brand-words { font-family: Cinzel, Georgia, serif; font-size: 20px; font-weight: 800; letter-spacing: -.06em; white-space: nowrap; line-height: 1.1; }
.brand-words span { color: #fceabb; }
.brand-words small { display: block; font-family: "DM Sans", Arial, sans-serif; font-size: 7px; letter-spacing: .21em; font-weight: 700; margin-top: 5px; color: #e6dfc8; }
.site-nav { display: flex; align-items: stretch; gap: 25px; height: 80px; margin-left: auto; }
.site-nav a { position: relative; display: flex; align-items: center; font-family: Cinzel, Georgia, serif; font-weight: 600; font-size: 12px; white-space: nowrap; text-shadow: 0 1px 3px #06141a; }
.site-nav a:hover { color: var(--gold); }
.site-nav a:first-child { color: var(--gold); }
.site-nav a:first-child::after { content: ""; position: absolute; bottom: 16px; left: 0; right: 0; height: 2px; background: var(--gold); }
.nav-button, .fantasy-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  border: 2px solid #cba45b; border-radius: 100px; color: #fff3cf;
  background: linear-gradient(180deg, #1a553b, #073427);
  box-shadow: 0 0 0 3px rgba(10, 43, 35, .85), inset 0 2px 0 rgba(255, 241, 191, .15), 0 5px 18px rgba(0, 0, 0, .35);
  font-family: Cinzel, Georgia, serif; font-weight: 700; text-shadow: 0 2px 2px #112d22;
  transition: transform .18s, filter .18s;
}
.nav-button:hover, .fantasy-button:hover { transform: translateY(-2px); filter: brightness(1.15); }
.nav-button { padding: 10px 20px; margin-left: 5px; font-size: 12px; white-space: nowrap; }
.nav-button span { font-size: 20px; line-height: 1; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 830px; overflow: hidden; background: #173543; }
.hero-image { position: absolute; inset: 0; background-image: url("assets/hero-portal.png"); background-size: cover; background-position: center 46%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 24, 35, .72), rgba(5, 27, 37, .42) 31%, transparent 64%), linear-gradient(0deg, rgba(5, 18, 24, .95), transparent 27%); }
.hero-content { position: relative; z-index: 1; width: min(1450px, calc(100% - 110px)); margin: auto; padding-top: 145px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: #ffedbe; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-shadow: 0 2px 4px #10232a; }
.kicker-line { width: 30px; height: 1px; background: var(--gold); }
h1, h2, h3 { font-family: Cinzel, Georgia, serif; }
h1 { margin: 0; color: #f8daa0; font-size: clamp(60px, 7.4vw, 123px); line-height: .95; letter-spacing: -.055em; font-weight: 800; text-shadow: 0 3px 0 #956837, 0 7px 17px rgba(0, 0, 0, .8), 0 0 35px rgba(4, 25, 34, .65); }
h1 span { color: #ffdfa4; }
.hero-logo { width: min(720px, 70vw); }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .72)); }
.hero-tagline { width: fit-content; margin: 29px 0 18px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding: 12px 4px; color: #fff4d6; font-family: Cinzel, Georgia, serif; font-size: clamp(13px, 1.6vw, 22px); letter-spacing: .16em; text-shadow: 0 2px 3px #0a1a22; }
.hero-description { max-width: 550px; color: #f1eee1; font-size: 16px; line-height: 1.65; text-shadow: 0 2px 4px #061a24; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 29px; }
.fantasy-button { min-width: 260px; min-height: 58px; padding: 0 23px; font-size: 17px; }
.fantasy-button span:first-child { font-size: 23px; }
.fantasy-button span:last-child { margin-left: 10px; font-size: 13px; }
.preview-pill { padding: 8px 11px; background: rgba(4, 28, 37, .66); border: 1px solid rgba(245, 214, 138, .55); color: #fbe8b9; font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.feature-section { position: relative; z-index: 2; margin-top: -54px; padding-bottom: 93px; background: linear-gradient(180deg, transparent 0 54px, #0b1f28 54px); }
.feature-section .section-shell { width: min(1450px, calc(100% - 110px)); display: flex; flex-direction: column; }
.feature-cards { order: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-card { position: relative; display: block; min-height: 260px; overflow: hidden; border: 1px solid #c7a865; border-radius: 7px; background: #17323a; box-shadow: 0 4px 0 #6d4a26, 0 12px 25px rgba(0, 0, 0, .3); }
.feature-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .3s; }
.feature-card:hover img { transform: scale(1.05); }
.feature-overlay { position: absolute; inset: 42% 0 0; background: linear-gradient(0deg, rgba(3, 16, 21, .98), rgba(3, 16, 21, .76) 45%, transparent); }
.card-content { position: absolute; left: 19px; right: 18px; bottom: 19px; display: flex; align-items: center; gap: 12px; }
.card-icon { display: grid; place-items: center; flex: none; height: 32px; width: 32px; color: #f7d58a; font-size: 26px; }
.card-title { font-family: Cinzel, Georgia, serif; font-weight: 700; font-size: clamp(15px, 1.5vw, 23px); white-space: nowrap; text-shadow: 0 2px 4px black; }
.card-arrow { margin-left: auto; font-size: 11px; color: var(--gold); }
.section-intro { order: 1; text-align: center; padding: 93px 20px 0; }
.ornament { color: var(--gold); font-size: 20px; }
.overline { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .19em; }
.section-intro .overline { margin: 12px 0 14px; }
h2 { margin: 0 0 22px; color: #f6e7bf; font-size: clamp(31px, 3.3vw, 51px); letter-spacing: -.04em; line-height: 1.15; }
.section-intro > p:last-child { margin: 0; color: var(--body); line-height: 1.7; }
.art-note { order: 2; margin: 20px 0 0; text-align: center; color: #829b99; font-size: 11px; }

.story-section { padding: 100px 0; background: #102b32; border-top: 1px solid rgba(226, 190, 116, .2); }
.story-alt { background: #0b202a; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: min(8vw, 110px); }
.story-copy > p:not(.overline), .community-grid > div:first-child > p:not(.overline), .server-grid > div:first-child > p:not(.overline), .support-grid > div > p:not(.overline) { max-width: 530px; color: var(--body); font-size: 16px; line-height: 1.75; }
.story-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.story-points span { padding: 10px 12px; border: 1px solid #6d7360; color: #f2daab; font-size: 10px; letter-spacing: .08em; font-weight: 700; }
.story-visual { position: relative; min-height: 370px; border: 2px solid #ba9452; box-shadow: 12px 12px 0 rgba(0, 0, 0, .25); }
.story-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.story-visual::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(0, 12, 17, .65), transparent); }
.visual-caption { position: absolute; z-index: 1; left: 20px; bottom: 17px; color: #fff0c9; font-size: 10px; letter-spacing: .14em; font-weight: 700; }

.community-section { padding: 105px 0; background: radial-gradient(circle at 15% 20%, #285661, transparent 37%), #17333a; border-block: 1px solid rgba(226, 190, 116, .22); }
.community-grid, .server-grid, .support-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: min(10vw, 125px); }
.rules-panel { background: #0b2029; border: 1px solid #a47e49; box-shadow: 8px 8px 0 rgba(0, 0, 0, .22); padding: 0 28px 25px; }
.rules-heading { display: flex; justify-content: space-between; padding: 24px 0; color: var(--gold); font-family: Cinzel, Georgia, serif; font-size: 14px; font-weight: 700; letter-spacing: .05em; border-bottom: 1px solid #5c654d; }
.rules-panel > div:not(.rules-heading) { display: flex; gap: 25px; padding: 18px 0; border-bottom: 1px solid #394d4c; }
.rules-panel > div:not(.rules-heading) span { color: var(--gold); font-size: 12px; }
.rules-panel strong { font-family: Cinzel, Georgia, serif; font-size: 15px; }
.rules-panel p { margin: 25px 0 0; color: #98aaa4; font-size: 12px; }

.server-section { padding: 110px 0; background: #0b1f28; }
.secondary-button { display: inline-block; margin-top: 18px; padding: 14px 20px; border: 1px solid var(--gold-deep); border-radius: 4px; color: var(--gold); font-family: Cinzel, Georgia, serif; font-size: 13px; font-weight: 700; }
.secondary-button:hover { background: #19343b; }
.server-board { margin: 0; padding: 16px 28px; background: #152f37; border: 2px solid #9d7844; box-shadow: 8px 8px 0 #07151b; }
.server-board div { display: flex; justify-content: space-between; gap: 25px; padding: 19px 0; border-bottom: 1px solid #405450; }
.server-board div:last-child { border: 0; }
.server-board dt { color: #a6bbb4; }
.server-board dd { margin: 0; color: #f7e8c3; text-align: right; font-weight: 700; }
.status-light { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #e6c371; }

.support-section { padding: 100px 0; background: #14333c; }
.support-grid img { width: 100%; height: 360px; object-fit: cover; border: 2px solid #b58d4d; }
.coming-soon { display: inline-block; margin-top: 22px; padding: 12px 14px; border: 1px solid #9d8b62; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.site-footer { padding: 58px 0 0; background: #07171e; border-top: 1px solid #8b693c; }
.footer-grid { display: flex; justify-content: space-between; align-items: start; gap: 30px; padding-bottom: 45px; }
.footer-brand { color: var(--gold); font: 700 23px Cinzel, Georgia, serif; }
.footer-brand small { display: block; margin-top: 6px; color: #b3c4ba; font: 700 9px "DM Sans", Arial, sans-serif; letter-spacing: .16em; }
.footer-links { display: flex; gap: 25px; flex-wrap: wrap; color: #d5dbcf; font-size: 12px; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #304148; padding: 20px 0 25px; color: #91a49d; font-size: 11px; }

@media (max-width: 1150px) {
  .nav-shell { gap: 20px; }
  .brand { min-width: auto; }
  .site-nav { gap: 15px; }
  .site-nav a { font-size: 11px; }
  .feature-card { min-height: 220px; }
  .card-content { left: 12px; right: 12px; gap: 5px; }
}
@media (max-width: 900px) {
  .nav-shell { width: calc(100% - 40px); min-height: 70px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; order: 3; width: 42px; height: 42px; margin-left: auto; border: 1px solid #b18c4e; background: #0e2932; }
  .menu-toggle span { width: 18px; height: 2px; margin: 0 auto; background: var(--gold); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 70px; height: auto; padding: 14px 20px 22px; background: #0b2630; border-bottom: 1px solid #b18c4e; flex-direction: column; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; font-size: 13px; }
  .site-nav a:first-child::after { display: none; }
  .nav-button { margin-left: auto; }
  .hero-content { width: calc(100% - 72px); }
  .feature-section .section-shell { width: calc(100% - 72px); }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .feature-card { min-height: 250px; }
}
@media (max-width: 650px) {
  .section-shell { width: calc(100% - 36px); }
  .feature-section .section-shell { width: calc(100% - 36px); }
  .nav-shell { width: calc(100% - 32px); }
  .brand img { width: min(220px, 58vw); max-height: 65px; }
  .hero-logo { width: min(100%, 520px); }
  .brand-words { font-size: 15px; }
  .brand-emblem { width: 29px; height: 29px; font-size: 15px; }
  .brand-words small { font-size: 6px; }
  .nav-button { display: none; }
  .hero { min-height: 820px; }
  .hero-image { background-position: 63% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(3, 17, 25, .98), rgba(3, 17, 25, .72) 40%, rgba(3, 17, 25, .12) 100%); }
  .hero-content { width: calc(100% - 40px); padding-top: 285px; }
  .hero-kicker { font-size: 9px; }
  h1 { font-size: clamp(51px, 13vw, 82px); }
  .hero-tagline { margin-top: 20px; font-size: 13px; letter-spacing: .1em; }
  .hero-description { font-size: 14px; }
  .hero-actions { flex-wrap: wrap; gap: 18px; }
  .fantasy-button { min-width: 225px; min-height: 50px; font-size: 14px; }
  .hero-bottom { display: none; }
  .feature-section { margin-top: -34px; padding-bottom: 65px; background: linear-gradient(180deg, transparent 0 34px, #0b1f28 34px); }
  .feature-cards { gap: 10px; }
  .feature-card { min-height: 165px; }
  .card-content { bottom: 10px; }
  .card-icon { width: 19px; height: 19px; font-size: 17px; }
  .card-title { font-size: clamp(10px, 2.7vw, 16px); }
  .card-arrow { font-size: 8px; }
  .section-intro { padding-top: 60px; }
  .story-section, .community-section, .server-section, .support-section { padding: 70px 0; }
  .story-grid, .community-grid, .server-grid, .support-grid { grid-template-columns: 1fr; gap: 30px; }
  .story-alt .story-visual { order: 2; }
  .story-alt .story-copy { order: 1; }
  .story-visual { min-height: 280px; }
  .support-grid img { height: 260px; }
  .footer-grid, .footer-bottom { flex-direction: column; gap: 25px; }
}
@media (max-width: 380px) {
  .hero-content { padding-top: 300px; }
  .feature-card { min-height: 135px; }
  .card-icon, .card-arrow { display: none; }
}
@media (min-width: 2600px) {
  .section-shell, .nav-shell, .hero-content, .feature-section .section-shell {
    width: min(2400px, calc(100% - 160px));
  }
  .nav-shell { min-height: 108px; gap: 48px; }
  .brand { min-width: 340px; }
  .brand img { width: 340px; max-height: 104px; }
  .site-nav { height: 108px; gap: 34px; }
  .site-nav a { font-size: 17px; }
  .site-nav a:first-child::after { bottom: 21px; }
  .nav-button { padding: 15px 26px; font-size: 17px; }
  .hero { min-height: 1100px; }
  .hero-content { padding-top: 195px; }
  .hero-kicker { margin-bottom: 30px; font-size: 16px; }
  .hero-logo { width: 1050px; }
  .hero-tagline { margin-top: 35px; font-size: 30px; }
  .hero-description { max-width: 800px; font-size: 23px; }
  .hero-actions { margin-top: 35px; }
  .fantasy-button { min-width: 340px; min-height: 74px; font-size: 21px; }
  .preview-pill { padding: 13px 16px; font-size: 14px; }
  .feature-section { margin-top: -70px; background: linear-gradient(180deg, transparent 0 70px, #0b1f28 70px); }
  .feature-cards { gap: 22px; }
  .feature-card { min-height: 320px; }
  .card-content { left: 25px; right: 25px; bottom: 24px; }
  .card-title { font-size: 28px; }
  .card-icon { width: 39px; height: 39px; font-size: 32px; }
  .section-intro { padding-top: 100px; }
  .section-intro .overline { font-size: 16px; }
  h2 { font-size: 68px; }
  .section-intro > p:last-child { font-size: 21px; }
  .story-section, .community-section, .server-section, .support-section { padding: 130px 0; }
  .story-grid, .community-grid, .server-grid, .support-grid { gap: 150px; }
  .story-copy > p:not(.overline), .community-grid > div:first-child > p:not(.overline), .server-grid > div:first-child > p:not(.overline), .support-grid > div > p:not(.overline) { max-width: 800px; font-size: 22px; }
  .story-visual { min-height: 570px; }
  .support-grid img { height: 570px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.systems-section { padding: 100px 0; background: radial-gradient(circle at 85% 0, #1c4550, transparent 45%), #0d242d; border-top: 1px solid rgba(226, 190, 116, .2); }
.systems-heading { max-width: 760px; margin-bottom: 38px; }
.systems-heading > p:last-child { color: var(--body); line-height: 1.7; }
.systems-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.system-card { padding: 29px 32px 32px; background: rgba(6, 27, 36, .78); border: 1px solid rgba(198, 158, 89, .6); box-shadow: 7px 7px 0 rgba(0, 0, 0, .14); }
.system-card-wide { grid-column: 1 / -1; }
.system-status { display: inline-block; padding: 6px 9px; border: 1px solid rgba(104, 217, 215, .6); color: #a4e8e4; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.status-planned { border-color: rgba(245, 214, 138, .7); color: var(--gold); }
.system-card h3 { margin: 17px 0 9px; color: #f6e7bf; font-size: clamp(19px, 2vw, 27px); line-height: 1.25; }
.system-card p { max-width: 670px; margin: 0; color: var(--body); font-size: 15px; line-height: 1.7; }
@media (max-width: 700px) {
  .systems-section { padding: 70px 0; }
  .systems-grid { grid-template-columns: 1fr; }
  .system-card-wide { grid-column: auto; }
  .system-card { padding: 24px; }
}
@media (min-width: 2600px) {
  .systems-section { padding: 130px 0; }
  .systems-heading { max-width: 1100px; }
  .systems-heading > p:last-child, .system-card p { font-size: 22px; }
  .system-card { padding: 44px; }
  .system-card h3 { font-size: 37px; }
  .system-status { font-size: 14px; }
}
