/* ===== Don Bosco SDW Minecraft — styles (red / school poster look) ===== */
:root {
  --bg: #0d0909;
  --bg-2: #150d0d;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f3ece6;
  --muted: #a99d98;
  --red: #d1182f;
  --red-2: #ee3c4f;
  --red-dark: #8f0f20;
  --cream: #f3e9df;
  --green: #4cc38a;
  --warn: #f0b429;
  --radius: 6px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.05; font-weight: 700; }
h1, h2 { text-transform: uppercase; letter-spacing: 0.01em; }

/* ----- background (kept: particles + soft blobs, now red) ----- */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.orb {
  position: fixed; border-radius: 50%; filter: blur(100px); opacity: 0.32;
  z-index: 0; pointer-events: none; animation: float 20s ease-in-out infinite;
}
.orb.o1 { width: 520px; height: 520px; background: var(--red); top: -170px; left: -140px; }
.orb.o2 { width: 440px; height: 440px; background: var(--red-dark); bottom: -170px; right: -110px; opacity: 0.5; animation-delay: -7s; }
.orb.o3 { width: 280px; height: 280px; background: #ff5a3c; top: 48%; left: 58%; opacity: 0.12; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.07); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}
main, header, footer { position: relative; z-index: 1; }

/* ----- layout ----- */
.container { width: min(1120px, 92%); margin: 0 auto; }
section { padding: 84px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-2);
}
.eyebrow::before { content: ""; width: 30px; height: 3px; background: var(--red); }
.section-head { max-width: 640px; margin: 0 0 42px; }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); }
.grad { color: var(--red-2); }

/* ----- nav ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 9, 9, 0.9); border-bottom: 3px solid var(--red);
}
.nav.scrolled { background: rgba(13, 9, 9, 0.97); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 4px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: 0;
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  padding: 8px 14px; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); border-bottom: 3px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); border-bottom-color: var(--red); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang-toggle button { background: none; border: 0; padding: 6px 11px; font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.lang-toggle button.on { background: var(--cream); color: #1b0f0f; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; width: 42px; height: 42px; font-size: 1.2rem; }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 4px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); }
.btn-gold { background: var(--cream); color: #1b0f0f; }
.btn-gold:hover { background: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 7px 16px; font-size: 1rem; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ----- hero (left aligned) ----- */
.hero { padding: 96px 0 84px; }
.hero h1 { font-size: clamp(3.4rem, 10vw, 7.4rem); line-height: 0.92; margin: 20px 0 22px; letter-spacing: 0; }
.hero p.lead { max-width: 580px; margin: 0 0 18px; color: var(--muted); font-size: 1.15rem; }
.hero p.lead .typed { color: var(--text); font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 34px; }
.ip-box {
  display: inline-flex; align-items: center; gap: 18px; padding: 10px 10px 10px 20px;
  border: 2px solid var(--line); border-radius: 4px; background: rgba(0,0,0,.35);
  cursor: pointer; transition: border-color 0.2s; text-align: left;
}
.ip-box:hover { border-color: var(--red); }
.ip-box .ip-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }
.ip-box .ip-value { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; letter-spacing: 0.03em; line-height: 1.1; }
.ip-box .ip-copy { background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 16px; border-radius: 3px; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); position: relative; }
.dot.on { background: var(--green); }
.dot.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--green); animation: pulse 1.8s ease-out infinite; }
.dot.off { background: var(--red-2); }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.typed::after { content: "_"; margin-left: 2px; color: var(--red-2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ----- marquee (solid red band) ----- */
.marquee { overflow: hidden; background: var(--red); padding: 11px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: scroll 34s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.marquee-track span b { opacity: 0.55; margin-right: 40px; font-weight: 400; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ----- cards (flat) ----- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 28px; transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.card:hover { border-left-color: var(--red); background: var(--panel-2); transform: translateY(-3px); }
.card .num-tag { font-family: var(--font-head); font-size: 1rem; font-weight: 700; letter-spacing: 0.14em; color: var(--red-2); margin-bottom: 10px; }
.card h3 { font-size: 1.55rem; margin-bottom: 6px; letter-spacing: 0.01em; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ----- stats ----- */
.stats { padding: 0; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 10px 40px 0; }
.stat b { font-family: var(--font-head); font-size: 4.2rem; line-height: 1; display: block; color: var(--red-2); font-weight: 800; }
.stat span { color: var(--muted); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ----- steps ----- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 30px 26px 26px; border-top: 4px solid var(--red); background: var(--panel); border-radius: 0 0 var(--radius) var(--radius); }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--red-2); margin-bottom: 10px; }
.step h3 { margin-bottom: 6px; font-size: 1.55rem; }
.step p { color: var(--muted); font-size: 0.98rem; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: rgba(0,0,0,.4); border: 1px solid var(--line); padding: 2px 8px; border-radius: 3px; font-size: 0.9em; color: var(--cream); }

/* ----- CTA (solid red block) ----- */
.cta-box { padding: 56px 40px; border-radius: var(--radius); background: var(--red); color: #fff; }
.cta-box h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 8px; }
.cta-box p { opacity: 0.9; margin-bottom: 24px; max-width: 520px; }
.cta-box .btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.cta-box .btn-ghost:hover { background: rgba(0,0,0,.2); border-color: #fff; }

/* ----- page header (left aligned) ----- */
.page-head { padding: 72px 0 24px; }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 5rem); margin: 14px 0 12px; }
.page-head p { color: var(--muted); max-width: 600px; }

/* ----- perks table ----- */
.compare { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--panel); }
.compare th, .compare td { padding: 15px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--red); color: #fff; font-family: var(--font-head); font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: var(--panel-2); }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--muted); }
.badge-student { display: inline-block; font-family: var(--font-head); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em; padding: 1px 8px; border-radius: 3px; background: var(--cream); color: #1b0f0f; vertical-align: middle; }

/* ----- accordion ----- */
.acc { max-width: 820px; display: grid; gap: 8px; }
.acc-item { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color 0.25s; }
.acc-item.open { border-left-color: var(--red); }
.acc-q { width: 100%; background: none; border: 0; text-align: left; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; }
.acc-q .num { color: var(--red-2); margin-right: 14px; }
.acc-q .chev { transition: transform 0.3s; color: var(--muted); }
.acc-item.open .chev { transform: rotate(180deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.acc-a p { padding: 0 22px 20px 58px; color: var(--muted); }

/* ----- auth ----- */
.auth-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; padding: 64px 0 90px; }
.auth-side h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); margin: 14px 0 16px; }
.auth-side p { color: var(--muted); margin-bottom: 20px; max-width: 460px; }
.checks { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 3px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 0.8rem; font-weight: 800; }
.auth-card { border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 30px; background: rgba(0,0,0,.4); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 24px; overflow: hidden; }
.tabs button { border: 0; background: none; padding: 10px; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); transition: all 0.2s; }
.tabs button.on { background: var(--cream); color: #1b0f0f; }
.pane { display: none; animation: fadeUp 0.4s ease both; }
.pane.on { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; padding: 13px 44px 13px 15px; border-radius: 4px; border: 2px solid var(--line); background: rgba(0,0,0,.4); color: var(--text); font: inherit; outline: none; transition: border-color 0.2s; }
.input-wrap input:focus { border-color: var(--cream); }
.input-wrap.ok input { border-color: var(--green); }
.input-wrap.bad input { border-color: var(--red-2); animation: shake 0.35s; }
.input-wrap .mark { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; opacity: 0; transition: opacity 0.2s; }
.input-wrap.ok .mark { opacity: 1; color: var(--green); }
.input-wrap.bad .mark { opacity: 1; color: var(--red-2); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; min-height: 1.2em; }
.hint.err { color: var(--red-2); }
.notice { border-radius: 4px; padding: 13px 16px; font-size: 0.92rem; margin-bottom: 18px; border: 1px solid var(--line); border-left-width: 4px; background: var(--panel); }
.notice.warn { border-color: var(--warn); background: rgba(240,180,41,.08); color: #f6cf72; }
.notice.good { border-color: var(--green); background: rgba(76,195,138,.08); color: var(--green); }
.notice.info { border-color: var(--cream); color: var(--cream); }
.hidden { display: none !important; }
.code-input { display: flex; gap: 8px; margin: 14px 0 20px; }
.code-input input { width: 48px; height: 58px; text-align: center; font-size: 1.8rem; font-family: var(--font-head); font-weight: 700; border-radius: 4px; border: 2px solid var(--line); background: rgba(0,0,0,.4); color: var(--text); outline: none; }
.code-input input:focus { border-color: var(--cream); }
.fine { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* ----- account ----- */
.profile { display: grid; grid-template-columns: 330px 1fr; gap: 22px; padding: 48px 0 90px; }
.avatar { width: 88px; height: 88px; border-radius: 4px; margin-bottom: 16px; display: grid; place-items: center; font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: #fff; background: var(--red); }
.kv { display: grid; gap: 12px; margin-top: 18px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; border-bottom: 1px dashed var(--line); padding-bottom: 9px; }
.kv span:first-child { color: var(--muted); }
.perk-list { display: grid; gap: 10px; margin-top: 16px; }
.perk-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 4px; background: rgba(0,0,0,.25); }
.perk-row.locked { opacity: 0.5; border-left-color: var(--line); }
.perk-row .pi { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--red-2); width: 28px; }

/* ----- footer ----- */
.footer { border-top: 3px solid var(--red); padding: 48px 0 30px; background: rgba(0,0,0,.4); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.footer p, .footer a { color: var(--muted); font-size: 0.95rem; }
.footer a:hover { color: var(--text); }
.footer h4 { margin-bottom: 12px; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ----- toast ----- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 30px); opacity: 0; background: var(--cream); color: #1b0f0f; padding: 11px 22px; border-radius: 4px; z-index: 100; transition: all 0.3s; font-weight: 600; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ----- reveal ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }

/* ----- responsive ----- */
@media (max-width: 900px) {
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .auth-wrap, .profile { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(13,9,9,.98); padding: 12px 4%; border-bottom: 3px solid var(--red);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all 0.25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .grid-3, .grid-2, .steps, .stats-row { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .brand small { display: none; }
  .cta-box { padding: 40px 24px; }
  .compare th, .compare td { padding: 11px 8px; font-size: 0.88rem; }
  .acc-a p { padding-left: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
