:root {
  --paper: #d2dcd5;
  --ink: #080e0b;
  --muted: #88988e;
  --blue: #3d5aa8;     /* Archmother Sapphire */
  --gold: #d48f1a;     /* Hidden King Amber */
  --red: #cc3b3b;      /* Occult Crimson Accent */
  --line: rgba(210, 220, 213, 0.15);
  --white: #f0f5f2;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  --flag_red:#d9002f;
  --flag_blue:#155db8;
  --p_text_color: #88988e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: #0c1410;
  background-image: 
    /* Subtle industrial grid overlay */
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    /* Top-Left: Archmother Sapphire/Arcane Glow */
    radial-gradient(circle at 10% 15%, rgba(61, 90, 168, 0.35) 0%, transparent 45%),
    /* Bottom-Right: Hidden King Amber/Gold Glow */
    radial-gradient(circle at 90% 85%, rgba(212, 143, 26, 0.25) 0%, transparent 50%),
    /* Deadlock Green Gritty Base Gradient */
    linear-gradient(135deg, #13221a 0%, #0a100d 50%, #050806 100%);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  color: var(--paper);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(transparent 0 98%, rgba(0,0,0,.15) 98% 100%),
    linear-gradient(90deg, transparent 0 98%, rgba(0,0,0,.1) 98% 100%);
  background-size: 100% 26px, 26px 100%;
  pointer-events: none;
  z-index: -2;
}
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E");
}
.edge { position: fixed; top: 0; bottom: 0; width: 5px; background: var(--paper); z-index: 20; opacity: .3; }
.edge-left { left: 18px; } .edge-right { right: 18px; }

/* Ensure the site header has 3 distinct columns so right elements stay pinned */
.site-header {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 84px; 
  z-index: 40;
  display: grid; 
  grid-template-columns: 1fr auto 1fr; 
  align-items: center;
  padding: 0 58px;
  background: rgba(8, 14, 11, 0.88); 
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

/* Push actions wrapper to the far right grid column */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
}

/* Styling for the language switch pill container */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

/* Styling for individual CZ / SK buttons */
.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  cursor: pointer;
  padding: 0;
  transition: color .2s ease, transform .2s ease;
}

.lang-btn:hover {
  color: var(--paper);
}

/* Active/Pressed state for selected language */
.lang-btn[aria-pressed="true"] {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(212, 143, 26, 0.3);
}

.lang-switch span {
  color: var(--line);
  font-size: 10px;
  font-weight: 900;
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; font-weight: 800; letter-spacing: .12em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--paper); border-radius: 50%; font-size: 9px; line-height: 1; }
.brand-text { font-size: 13px; line-height: 1.05; }
.brand-text em { color: var(--gold); font-style: normal; font-size: 10px; letter-spacing: .22em; }
.main-nav { display: flex; gap: 38px; }
.main-nav a, .site-footer a { color: inherit; text-decoration: none; text-transform: uppercase; font-size: 10px; letter-spacing: .2em; font-weight: 800; }
.main-nav a { opacity: .74; transition: opacity .2s, transform .2s; }
.main-nav a:hover { opacity: 1; transform: translateY(-1px); }
.nav-cta { justify-self: end; display: inline-flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; background: var(--paper); padding: 14px 18px; text-transform: uppercase; letter-spacing: .17em; font-size: 10px; font-weight: 900; }

.section { min-height: 100vh; padding: 150px 9vw 100px; position: relative; }
.hero { display: grid; grid-template-columns: 46% 54%; min-height: 100vh; padding-top: 124px; align-items: center; overflow: hidden; }
.hero-copy { position: relative; z-index: 3; max-width: 670px; padding-left: 2vw; }
.eyebrow { text-transform: uppercase; font-size: 10px; letter-spacing: .28em; font-weight: 900; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow span { display:inline-block; width: 30px; height: 2px; background: var(--gold); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; margin: 0; letter-spacing: -.04em; line-height: .9; }
h1 { font-size: clamp(66px, 8.5vw, 140px); text-transform: uppercase; }
h1 i, h2 i { font-style: italic; color: var(--gold); }
h2 { font-size: clamp(58px, 7vw, 112px); text-transform: uppercase; }
.hero-lead, .section-intro > p:not(.eyebrow), .manifesto-copy > p:not(.eyebrow):not(.quote), .final-cta p:not(.eyebrow) {
  max-width: 570px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--p_text_color);
  margin: 26px 0 0; 
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding: 0 20px; text-decoration: none; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 900; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.button-dark { background: var(--ink); color: var(--paper); border: 1px solid var(--line); }
.button-ghost { color: var(--paper); border: 1px solid var(--paper); }
.button-light { background: var(--paper); color: var(--ink); }
.button-red { background: var(--gold); color: var(--ink); }
.hero-meta { display: flex; gap: 26px; margin-top: 56px; font-size: 9px; font-weight: 900; letter-spacing: .22em; opacity: .65; }

.hero-art { min-height: 720px; position: relative; display: grid; place-items: center; transform: translate(3vw, 1vw); }
.hero-art::before { content:""; position:absolute; width: 74%; aspect-ratio:1; border-radius:50%; background: #121c17; box-shadow: inset 0 0 0 1px rgba(210,220,213,.08); }
.orbit { position: absolute; border: 2px solid var(--paper); border-radius: 50%; z-index: 2; opacity: .8; }
.orbit-outer { width: 78%; aspect-ratio: 1; }
.orbit-mid { width: 63%; aspect-ratio: 1; }
.orbit-inner { width: 24%; aspect-ratio: 1; background: var(--paper); box-shadow: 0 0 0 9px var(--ink); }
.split { position: absolute; width: 41%; height: 24%; z-index: 1; }
.split.blue { left: 5%; top: 40%; background: var(--flag_blue); clip-path: polygon(0 12%, 78% 12%, 100% 50%, 78% 88%, 0 88%); }
.split.red { right: 5%; top: 54%; background: var(--flag_red); clip-path: polygon(22% 12%, 100% 12%, 100% 88%, 22% 88%, 0 50%); }
.dial { position: absolute; width: 38%; height: 38%; background: transparent; z-index: 1; }
.dial-a { left: 12%; top: 14%; border-left: 110px solid transparent; border-bottom: 110px solid transparent; border-right: 110px solid var(--paper); border-top: 110px solid transparent; opacity: .85; transform: rotate(45deg) scale(.88); }
.dial-b { right: 10%; top: 13%; border-right: 110px solid transparent; border-bottom: 110px solid transparent; border-left: 110px solid var(--paper); border-top: 110px solid transparent; opacity: .85; transform: rotate(-45deg) scale(.88); }
.dial-c { left: 10%; bottom: 12%; border-left: 110px solid transparent; border-top: 110px solid transparent; border-right: 110px solid var(--paper); border-bottom: 110px solid transparent; opacity: .85; transform: rotate(135deg) scale(.88); }
.dial-d { right: 12%; bottom: 10%; border-right: 110px solid transparent; border-top: 110px solid transparent; border-left: 110px solid var(--paper); border-bottom: 110px solid transparent; opacity: .85; transform: rotate(-135deg) scale(.88); }
.spoke { position: absolute; z-index: 3; background: var(--paper); transform-origin: center; opacity: .8; }
.spoke-v { width: 7px; height: 82%; } .spoke-h { height: 7px; width: 82%; }
.spoke-d1 { width: 5px; height: 66%; transform: rotate(45deg); } .spoke-d2 { width: 5px; height: 66%; transform: rotate(-45deg); }
.crest-ring { position: absolute; width: 29%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); z-index: 4; border: 2px solid var(--line); }
.hero-icon { position: absolute; width: 34%; aspect-ratio: 1; object-fit: contain; z-index: 5; filter: contrast(1.06) drop-shadow(0 14px 25px rgba(0,0,0,.4)); }
.sigil { position:absolute; right: 13%; top: 9%; z-index: 4; font-family: Georgia, serif; font-size: 12px; font-weight: 900; letter-spacing: .2em; transform: rotate(12deg); }
.sigil span { color: var(--gold); }

/* Update community section layout */
.community-section {
  display: flex;
  flex-direction: column;
  gap: 60px;
  background: var(--ink); 
  color: var(--paper);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line); 
  border-bottom: 1px solid var(--line);
}

.community-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
  position: relative;
  z-index: 2;
}

.community-large-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.community-large-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
}

/* Individual card background images */
.feature-card {
  min-height: 330px;
  padding: 26px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-origin: content-box;
  background-clip: content-box;
}

/* Dark gradient overlay on cards so text remains fully readable over images */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(8, 14, 11, 0.92), rgba(8, 14, 11, 0.1));
  z-index: 1;
}

.feature-card > * {
  position: relative;
  z-index: 2;
}

/* Define a unique image for each card (Change URLs to your files) */
.feature-card.card-1 {
  background-image: url('assets/rem.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
}

.feature-card.card-2 {
  background-image: url('assets/paige.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
}

.feature-card.card-3 {
  background-image: url('assets/doorman.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
}

.feature-card .index { font-size: 9px; letter-spacing: .22em; opacity: .55; }
.feature-card h3 { font-size: 17px; letter-spacing: .16em; margin: 30px 0 12px; }
.feature-card p { 
  color: var(--p_text_color); 
  line-height: 1.6; 
  font-size: 14px; 
  /* Creates a clean dark outline/shadow around the text so it pops over images */
  text-shadow: 
    -1px -1px 0 #000,  
    1px -1px 0 #000,  
    -1px 1px 0 #000,  
    1px 1px 0 #000,
    0 2px 4px rgba(0, 0, 0, 0.8);
}
.card-line { width: 50px; height: 2px; background: var(--gold); display: block; }

/* Responsive adjustments for smaller screens */
@media (max-width: 1050px) {
  .community-top-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; position: relative; z-index: 2;}
.feature-card { min-height: 330px; padding: 26px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, rgba(255,255,255,.03), rgba(255,255,255,0)); }

.server-section {
  background: #101914;
  color: var(--paper);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 7vw;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.server-section::before {
  content: "";
  position: absolute;
  width: 46vw;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(210,220,213,.06);
  left: -18vw;
  top: 10%;
  box-shadow: 0 0 0 12vw rgba(210,220,213,.01), 0 0 0 24vw rgba(210,220,213,.005);
}
.server-visual {
  position: relative;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.server-kicker {
  position: absolute;
  top: 7%;
  left: 4%;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .22em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--muted);
}
.server-poster {
  width: min(520px, 86%);
  aspect-ratio: .82;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 18px 18px 0 rgba(0,0,0,.4);
  clip-path: polygon(0 4%, 7% 0, 95% 3%, 100% 11%, 97% 93%, 88% 100%, 6% 96%, 0 88%);
  border: 1px solid var(--line);
}
.server-poster::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid var(--line);
}
.poster-blue, .poster-red { position: absolute; width: 75%; height: 58%; opacity: .95; }
.poster-blue { left: -18%; top: 18%; background: var(--blue); clip-path: polygon(0 0, 66% 0, 100% 50%, 66% 100%, 0 100%); }
.poster-red { right: -18%; bottom: 9%; background: var(--gold); clip-path: polygon(34% 0, 100% 0, 100% 100%, 34% 100%, 0 50%); }
.poster-ring { position:absolute; width: 65%; aspect-ratio:1; border: 2px solid var(--paper); border-radius:50%; left:17.5%; top:16%; opacity:.8; }
.poster-ring::before { content:""; position:absolute; inset:11%; border:1px solid var(--paper); border-radius:50%; opacity:.35; }
.poster-cross { position:absolute; background: var(--paper); opacity:.8; }
.poster-cross-v { width:5px; height:84%; left:calc(50% - 2.5px); top:8%; }
.poster-cross-h { width:84%; height:5px; left:8%; top:calc(42.5% - 2.5px); }
.server-icon { 
  position: absolute; 
  width: 48%; /* Increased from 34% */
  aspect-ratio: 1; 
  object-fit: contain; 
  left: 26%; /* Adjusted to keep it perfectly centered */
  top: 23%;  /* Adjusted to keep it perfectly centered */
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.5)); 
}
.poster-stamp { position:absolute; right: 9%; top: 9%; color: var(--paper); font-size: 10px; font-weight: 900; letter-spacing:.25em; transform: rotate(4deg); }
.poster-word { position:absolute; left: 9%; bottom: 8%; color: var(--paper); font-size: 15px; line-height: .95; font-weight: 900; letter-spacing:.12em; }
.poster-word i { color: var(--gold); font-style: normal; font-size: 10px; letter-spacing:.22em; }
.server-url { margin-top: 18px; padding-top: 11px; width: min(520px, 86%); border-top: 1px solid var(--line); font-size: 9px; font-weight: 900; letter-spacing:.18em; display:flex; justify-content:space-between; gap:20px; }
.server-copy { position: relative; max-width: 620px; }
.server-copy > p { max-width: 580px; font-size: 16px; line-height: 1.7; color: var(--muted); margin: 26px 0 0; }
.server-copy .eyebrow span { background: var(--gold); }
.server-points { margin-top: 36px; border-top: 1px solid var(--line); }
.server-point { display:grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.server-point strong { font-size: 9px; letter-spacing:.16em; opacity:.45; padding-top: 2px; }
.server-point b { display:block; font-size: 17px; letter-spacing:.1em; margin-bottom: 5px; }
.server-point p { display:block; font-size: 15px; line-height:1.45; color: var(--p_text_color); }
.server-button { margin-top: 28px; }

.faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; text-transform: uppercase; font-weight: 900; font-size: 11px; letter-spacing: .15em; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content: "+"; font-size: 18px; font-weight: 300; color: var(--gold); }
.faq[open] summary::after { content: "−"; }
.faq p { max-width: 680px; padding: 0 42px 20px 0; margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }

.final-cta { min-height: auto; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 42px; background: #14201a; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 50px 9vw; }
.final-crest { width: 165px; aspect-ratio:1; display:grid; place-items:center; border-radius:50%; border: 5px solid var(--paper); background: rgba(210,220,213,.06); }
.final-crest img { width: 72%; height: 72%; object-fit: contain; }
.final-cta h2 { font-size: clamp(48px, 5.3vw, 88px); }
.final-cta p:not(.eyebrow) { margin-top: 12px; }

.site-footer { min-height: 74px; display:flex; align-items:center; justify-content:space-between; padding: 0 58px; font-size: 9px; letter-spacing:.18em; font-weight:900; border-top: 1px solid var(--line); background: var(--ink); }
.site-footer span:nth-child(2) { opacity: .5; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: auto 1fr auto; padding: 0 32px; }
  .main-nav { justify-self: center; gap: 20px; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-art { min-height: 620px; transform: translateY(-3vh); margin-bottom: -12vh; }
  .community-section, .server-section, .faq-section { grid-template-columns: 1fr; gap: 50px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 210px; }
  .server-visual { min-height: 540px; }
  .final-cta { grid-template-columns: 120px 1fr; }
  .final-cta .button { grid-column: 2; justify-self: start; }
  .final-crest { width: 115px; }
}
@media (max-width: 720px) {
  .edge { width: 3px; } .edge-left { left: 6px; } .edge-right { right: 6px; }
  .site-header { height: 70px; padding: 0 18px; }
  .main-nav { display:none; }
  .brand-text { font-size: 11px; }
  .nav-cta { padding: 12px 13px; font-size: 9px; }
  .section { padding: 112px 24px 74px; }
  .hero-copy { padding-left: 0; }
  h1 { font-size: clamp(57px, 16vw, 92px); }
  h2 { font-size: clamp(53px, 15vw, 80px); }
  .hero-lead { font-size: 15px; }
  .hero-meta { gap: 10px; flex-wrap: wrap; line-height: 1.5; }
  .hero-art { min-height: 470px; margin: -10px -10px -20px; }
  .server-visual { min-height: 440px; }
  .site-footer { padding: 20px 24px; gap: 20px; flex-wrap: wrap; }
  .site-footer span:nth-child(2) { display:none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.lang-switcher {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(8, 14, 11, 0.5);
  overflow: hidden;
}

.lang-option {
  position: relative;
  cursor: pointer;
}

.lang-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.lang-option span {
  display: block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
  color: var(--paper);
  transition: all .2s ease;
}

/* Style for when the radio option is selected */
.lang-option input[type="radio"]:checked + span {
  background: var(--paper);
  color: var(--ink);
}

.lang-option:hover span {
  opacity: 1;
}
.header-actions { justify-self: end; display: inline-flex; align-items: center; gap: 12px; }