/* =========================================================
   SASZEL STUDIO — design system v2
   Night-sky navy + amber + teal. Light & dark themes.
   ========================================================= */

:root {
  /* core palette */
  --amber: #FFB63C;
  --amber-deep: #FF7A18;
  --teal: #5CE0B8;
  --teal-deep: #1F7A66;
  --red: #FF7A6A;

  /* light theme defaults (applied via .theme-light on <html>) */
  --bg: #070C12;
  --bg-1: #0B121A;
  --bg-2: #111C26;
  --bg-3: #172837;
  --surface: rgba(17,28,38,.85);
  --surface-2: rgba(11,18,26,.7);
  --border: #2B3F52;
  --border-soft: #1B2B3A;
  --ink: #E8EEF4;
  --ink-60: #B9C6D3;
  --ink-40: #8A9BAB;
  --ink-25: #5C6E7E;
  --glow-amber: rgba(255,122,24,.55);
  --glow-teal: rgba(92,224,184,.55);
  --grid: rgba(43,63,82,.45);
  --scan: rgba(20,40,55,.08);
  --shadow: 0 24px 60px -28px rgba(0,0,0,.85);
  --code: #C6D4DF;
}

.theme-light {
  --bg: #E8EEF4;
  --bg-1: #DCE4EC;
  --bg-2: #CDD8E3;
  --bg-3: #BCCBD9;
  --surface: rgba(255,255,255,.9);
  --surface-2: rgba(255,255,255,.7);
  --border: #9FB0C0;
  --border-soft: #B9C6D3;
  --ink: #0E1A24;
  --ink-60: #35475A;
  --ink-40: #526577;
  --ink-25: #7C8E9E;
  --glow-amber: rgba(255,122,24,.4);
  --glow-teal: rgba(14,106,82,.4);
  --grid: rgba(30,52,70,.22);
  --scan: rgba(255,255,255,.5);
  --shadow: 0 24px 60px -28px rgba(20,40,55,.5);
  --code: #253443;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body, "Inter", "Segoe UI", system-ui, sans-serif);
  background: var(--bg);
  color: var(--ink-60);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}

.theme-light body { background: var(--bg); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(100% - 48px, var(--maxw, 1240px)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section--alt2 { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-family: var(--font-display, "Rajdhani", sans-serif); font-size: clamp(1.9rem, 4vw, 3rem); color: var(--ink); line-height: 1.05; font-weight: 700; letter-spacing: .5px; }
.section-head p { margin-top: 16px; color: var(--ink-40); font-size: 1.08rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: .72rem;
  letter-spacing: 4px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before { content: "▸ "; color: var(--amber); }
.eyebrow--center { display:block; text-align:center; }

/* ================= Buttons ================= */
.btn {
  --bg: linear-gradient(135deg, var(--amber), var(--amber-deep));
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display, sans-serif); font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; font-size: .9rem;
  padding: 14px 28px; border-radius: 5px;
  color: #16120a; background: var(--bg);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: 0 0 0 1px rgba(255,122,24,.2), 0 8px 26px -10px var(--glow-amber);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,182,60,.5), 0 14px 34px -12px var(--glow-amber); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); box-shadow: none; }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); box-shadow: none; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: .78rem; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--icon { padding: 10px; width: 40px; border-radius: 50%; }

/* ================= Nav ================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  backdrop-filter: blur(16px);
  background: var(--surface-2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--border-soft); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 64px; width: auto; }
.nav__brand-name { font-family: var(--font-display, sans-serif); font-weight: 700; letter-spacing: 3px; color: var(--ink); font-size: 1rem; display:none; }
.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__menu li { }
.nav__menu a {
  position: relative;
  font-family: var(--font-display, sans-serif); font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; font-size: .8rem;
  color: var(--ink-60); padding: 10px 13px; display:block;
  transition: color .2s;
}
.nav__menu a:hover { color: var(--amber); }
.nav__menu a.active { color: var(--amber); }
.nav__menu a:not(.btn)::after {
  content:""; position:absolute; left:13px; right:13px; bottom:5px; height:2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__menu a:not(.btn):hover::after, .nav__menu a.active::after { transform: scaleX(1); }
.nav__menu .btn::after { display:none; }

.nav__tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  background: transparent; border: 1px solid var(--border); color: var(--ink);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display:flex; align-items:center; justify-content:center; transition: border-color .25s, color .25s;
}
.theme-toggle:hover { border-color: var(--amber); color: var(--amber); }
.theme-toggle svg { width: 18px; height: 18px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__brand-name { display:none; }
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface-2); border-bottom: 1px solid var(--border);
    padding: 12px 24px; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .nav__menu.open { max-height: 640px; }
  .nav__menu li { border-bottom: 1px solid var(--border-soft); }
  .nav__menu li:last-child { border-bottom: 0; }
  .nav__menu a { padding: 14px 0; }
}

/* ================= Footer ================= */
.footer { border-top: 1px solid var(--border-soft); background: var(--bg-1); padding: 72px 0 30px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand img { height: 70px; width: auto; margin-bottom: 16px; }
.footer__brand p { color: var(--ink-40); font-size: .95rem; max-width: 340px; margin-bottom: 18px; }
.footer__socials { display:flex; gap: 10px; }
.footer__socials a { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 5px; display:flex; align-items:center; justify-content:center; color: var(--ink-40); transition: .25s; }
.footer__socials a:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.footer__nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__nav h4 { font-family: var(--font-mono, monospace); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-25); margin-bottom: 16px; }
.footer__nav a { display:block; color: var(--ink-60); padding: 6px 0; font-size: .95rem; transition: color .2s; }
.footer__nav a:hover { color: var(--amber); }
.footer__nav a.active { color: var(--amber); }
.footer__bottom { display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono, monospace); font-size: .72rem; letter-spacing: 1px; color: var(--ink-25); border-top: 1px solid var(--border-soft); padding-top: 24px; }
.footer__bottom a { color: var(--ink-25); transition: color .2s; }
.footer__bottom a:hover { color: var(--amber); }

/* ================= Common components ================= */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--border); border-radius: 12px; padding: 28px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-5px); border-color: var(--border); box-shadow: var(--shadow); }
.tag { display:inline-flex; align-items:center; gap:6px; font-family: var(--font-mono, monospace); font-size: .66rem; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--border); border-radius: 3px; color: var(--ink-25); }
.tag--amber { color: var(--amber); border-color: rgba(255,182,60,.4); }
.tag--teal { color: var(--teal); border-color: rgba(92,224,184,.4); }
.tag--red { color: var(--red); border-color: rgba(255,122,106,.4); }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); display:inline-block; }
.dot--soon { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.dot--busy { background: #FFD166; box-shadow: 0 0 10px #FFD166; }
.dot--off { background: var(--ink-25); box-shadow: none; }

.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.stat-card .num { font-family: var(--font-display, sans-serif); font-size: 2.6rem; font-weight: 700; color: var(--amber); line-height: 1; }
.stat-card .lbl { font-family: var(--font-mono, monospace); font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-25); margin-top: 10px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* theme transition on SVG fills that use CSS vars */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= Forms ================= */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono, monospace); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-40); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 5px;
  color: var(--ink); font-family: var(--font-body, sans-serif); font-size: 1rem; padding: 13px 14px;
  transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-25); }
.field .error { color: var(--red); font-size: .78rem; font-family: var(--font-mono, monospace); display:none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.field.has-error .error { display:block; }
.form-msg { font-family: var(--font-mono, monospace); font-size: .84rem; min-height: 1.2em; }
.form-msg.ok { color: var(--teal); }
.form-msg.err { color: var(--red); }

/* ================= Home: Hero ================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: clamp(120px, 16vh, 160px) 0 clamp(60px, 9vh, 100px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1100px 700px at 25% 25%, rgba(7,12,18,0) 0%, rgba(7,12,18,.35) 45%, rgba(7,12,18,.9) 100%); }
.hero__scan { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, var(--scan) 0 2px, transparent 2px 4px); mix-blend-mode: overlay; }
.hero__content { max-width: 720px; }
.hero__logo { display: block; width: clamp(180px, 28vw, 320px); height: auto; margin: 0 auto 8px; filter: drop-shadow(0 8px 30px rgba(0,0,0,.55)); }
.hero__title { font-family: var(--font-display, "Rajdhani", sans-serif); font-weight: 700; font-size: clamp(2.4rem, 6.5vw, 4.6rem); line-height: 1.02; color: var(--ink); margin: 16px 0 24px; letter-spacing: .5px; }
.hero__title .grad { background: linear-gradient(120deg, var(--amber), var(--amber-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--ink-60); max-width: 620px; margin-bottom: 32px; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 44px); }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-display, "Rajdhani", sans-serif); font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--amber); font-weight: 700; line-height: 1; }
.hero__stats span { font-family: var(--font-mono, monospace); font-size: .7rem; letter-spacing: 2px; color: var(--ink-25); text-transform: uppercase; margin-top: 8px; }
.hero__scroll { position: absolute; right: 28px; bottom: 22px; width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 14px; display: flex; justify-content: center; }
.hero__wheel { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 2px; background: var(--amber); animation: heroScroll 1.6s infinite; }
@keyframes heroScroll { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 16px); } }

/* ================= Home: strip ================= */
.strip { border-block: 1px solid var(--border-soft); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.strip__label { text-align: center; font-family: var(--font-mono, monospace); font-size: .7rem; letter-spacing: 3px; color: var(--ink-25); text-transform: uppercase; padding: 22px 0 12px; }
.strip__row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 5vw, 60px); }
.strip__row span { font-family: var(--font-display, "Rajdhani", sans-serif); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-40); transition: color .25s; }
.strip__row span:hover { color: var(--amber); }

/* ================= Home: about ================= */
.about__grid { align-items: center; }
.about__text h2 { font-family: var(--font-display, "Rajdhani", sans-serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--ink); font-weight: 700; line-height: 1.1; margin-bottom: 18px; }
.about__text p { margin-bottom: 16px; }
.about__text em { color: var(--amber); font-style: normal; font-weight: 500; }
.about__list { margin-top: 22px; display: grid; gap: 12px; }
.about__list li { position: relative; padding-left: 22px; }
.about__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--teal); transform: rotate(45deg); }
.about__list strong { color: var(--ink); }
.about__art { position: relative; }
.art-badge { position: absolute; bottom: -18px; right: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; text-align: center; backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.art-badge span { font-family: var(--font-mono, monospace); font-size: .66rem; letter-spacing: 2px; color: var(--ink-25); display: block; }
.art-badge strong { font-family: var(--font-display, "Rajdhani", sans-serif); font-size: 1.7rem; color: var(--amber); display: block; letter-spacing: 1px; }

/* ================= Home: features ================= */
.features { border-block: 1px solid var(--border-soft); }

/* ================= Home: architecture ================= */
.architecture__grid { align-items: center; }
.architecture__text h2 { font-family: var(--font-display, "Rajdhani", sans-serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--ink); font-weight: 700; line-height: 1.1; margin-bottom: 16px; }
.architecture__text p { margin-bottom: 18px; }
.architecture__list { display: grid; gap: 14px; }
.architecture__list li { position: relative; padding-left: 22px; }
.architecture__list li::before { content: "▸"; position: absolute; left: 0; color: var(--teal); }
.architecture__list strong { color: var(--ink); }
.architecture__fig { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-1); }
.architecture__art { width: 100%; }
.architecture__fig figcaption { font-family: var(--font-mono, monospace); font-size: .75rem; letter-spacing: 1px; color: var(--ink-25); text-align: center; margin-top: 12px; }

/* ================= Home: servers summary ================= */
.servers { border-block: 1px solid var(--border-soft); }
.server-card { background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); }
.server-card__status { font-family: var(--font-mono, monospace); font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-40); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.server-card__players { font-family: var(--font-mono, monospace); color: var(--amber); margin-bottom: 12px; }
.server-card__players strong { color: var(--ink); font-size: 1.2rem; }
.server-card__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.server-card h3 { font-family: var(--font-display, "Rajdhani", sans-serif); font-size: 1.5rem; color: var(--ink); font-weight: 600; margin-bottom: 10px; }

/* ================= Home: join ================= */
.join { position: relative; overflow: hidden; }
.join__inner { align-items: center; }
.join__copy h2 { font-family: var(--font-display, "Rajdhani", sans-serif); }
.join__form { backdrop-filter: blur(8px); }
.join__bg { position: absolute; inset: 0; z-index: -1; }
.join__bgart { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
.join__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(7,12,18,.97) 0%, rgba(7,12,18,.8) 55%, rgba(7,12,18,.97) 100%); }

/* ================= Home: section wrappers ================= */
.stats-banner { border-block: 1px solid var(--border-soft); }
.faq__inner { max-width: 820px; }

/* ================= Feature card ================= */
.feature-card { display: grid; gap: 12px; }
.feature-card__icon { width: 52px; height: 52px; border-radius: 8px; background: rgba(92,224,184,.08); border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.feature-card__icon img { width: 28px; height: 28px; }
.feature-card h3 { font-family: var(--font-display, "Rajdhani", sans-serif); color: var(--ink); font-size: 1.3rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { color: var(--ink-40); font-size: .96rem; }

/* ================= Nav CTA ================= */
.nav--cta { background: var(--bg) !important; }

/* ================= Server status variants ================= */
.server-card--on { border-color: rgba(92,224,184,.4); }
.server-card--soon { border-color: rgba(255,182,60,.4); }
