:root {
  color-scheme: dark;
  --bg: #07100d;
  --bg-deep: #030806;
  --surface: rgba(14, 28, 23, .82);
  --line: rgba(174, 205, 134, .18);
  --accent: #a9cf63;
  --accent-bright: #d2ed85;
  --warm: #c18b45;
  --text: #f4f7ed;
  --muted: #b6c2b3;
  --page: 1180px;
  --header-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; min-width: 280px; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; }
button, input, select { font: inherit; }
.page-width { width: min(calc(100% - 48px), var(--page)); margin-inline: auto; }
.sr-only, .form-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.navbar { position: fixed; inset: 0 0 auto; z-index: 50; min-height: var(--header-height); padding: 12px max(24px, calc((100vw - var(--page)) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; background: linear-gradient(180deg, rgba(3,8,6,.94), rgba(3,8,6,.72)); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.logo { display: inline-flex; align-items: center; gap: 11px; width: max-content; color: var(--text); text-decoration: none; text-transform: uppercase; font-size: .88rem; font-weight: 850; letter-spacing: .14em; }
.logo-mark { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border: 1px solid rgba(210,237,133,.5); color: var(--accent-bright); font-size: .72rem; letter-spacing: .05em; transform: rotate(45deg); }
.logo-mark::first-line { transform: rotate(-45deg); }
nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
nav a { position: relative; color: #d7dfd2; text-decoration: none; text-transform: uppercase; font-size: .76rem; font-weight: 750; letter-spacing: .12em; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--accent); transition: right .2s ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }
.language-picker { justify-self: end; }
select { min-height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 4px; background: #0c1713; color: var(--text); cursor: pointer; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; isolation: isolate; overflow: hidden; padding: calc(var(--header-height) + 60px) 0 80px; background: var(--bg-deep); }
.hero-video { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; pointer-events: none; }
.hero-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(3,8,6,.94) 0%, rgba(3,8,6,.68) 43%, rgba(3,8,6,.12) 78%), linear-gradient(180deg, rgba(3,8,6,.18) 50%, var(--bg) 100%); }
.hero-content { padding-right: min(44vw, 560px); }
.tag, .eyebrow { display: inline-block; color: var(--accent-bright); text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.tag { margin-bottom: 22px; padding: 9px 14px; border: 1px solid rgba(210,237,133,.32); background: rgba(16,31,24,.65); }
.hero h1 { max-width: 760px; margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.25rem, 7vw, 7.5rem); font-weight: 500; line-height: .88; letter-spacing: -.045em; text-wrap: balance; }
.hero p { max-width: 600px; margin: 0 0 34px; color: #d1dbcf; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; text-decoration: none; text-transform: uppercase; font-size: .78rem; font-weight: 850; letter-spacing: .1em; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: #10170c; }
.btn.primary:hover { background: var(--accent-bright); }
.btn.secondary { border-color: rgba(244,247,237,.36); background: rgba(3,8,6,.42); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; border-radius: 2px; background: var(--accent); transform: translateX(-50%); animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0%,100% { transform: translate(-50%,0); opacity: .3; } 45% { transform: translate(-50%,13px); opacity: 1; } }

.section { position: relative; padding-block: clamp(72px, 9vw, 130px); scroll-margin-top: var(--header-height); }
.about-section { background: radial-gradient(circle at 80% 20%, rgba(95,126,67,.12), transparent 34%), var(--bg); }
.features-section { background: linear-gradient(180deg, #050c09, #09130f); }
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: clamp(40px, 8vw, 110px); align-items: center; }
.section h2 { max-width: 800px; margin: 10px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 4.7vw, 4.5rem); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.section p { margin: 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.75; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 42px; }
.card { position: relative; min-width: 0; padding: clamp(24px, 3vw, 36px); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(20,38,30,.86), rgba(6,14,10,.92)); box-shadow: 0 22px 60px rgba(0,0,0,.18); }
.card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(transparent, var(--accent), transparent); opacity: .5; }
.card-number { display: block; margin-bottom: 36px; color: rgba(210,237,133,.45); font: 700 .72rem/1 monospace; letter-spacing: .16em; }
.card h3 { margin: 0 0 12px; color: var(--text); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.card p { font-size: .96rem; line-height: 1.65; }
.big-card { min-height: 270px; display: flex; flex-direction: column; justify-content: flex-end; }

.community-section { background: radial-gradient(circle at 12% 30%, rgba(169,207,99,.12), transparent 30%), linear-gradient(180deg, #09130f, #050c09); }
.community-layout { display: grid; gap: 38px; }
.community-intro { max-width: 820px; }
.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.community-card { position: relative; min-width: 0; padding: clamp(26px, 4vw, 42px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(20,38,30,.9), rgba(5,12,9,.96)); box-shadow: 0 24px 70px rgba(0,0,0,.24); overflow: hidden; }
.community-card::after { content: ""; position: absolute; inset: auto -15% -55% 35%; height: 180px; border-radius: 50%; background: currentColor; opacity: .06; filter: blur(35px); pointer-events: none; }
.community-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; font-weight: 900; }
.youtube-card { color: #ff6259; }
.discord-card { color: #8796ff; }
.community-channel { display: block; margin-bottom: 8px; color: currentColor; text-transform: uppercase; font-size: .7rem; font-weight: 900; letter-spacing: .16em; }
.community-card h3 { margin: 0 0 12px; color: var(--text); font-family: Georgia, serif; font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 500; }
.community-card p { color: var(--muted); font-size: .96rem; line-height: 1.65; }
.community-button { position: relative; z-index: 1; grid-column: 1 / -1; width: max-content; margin-top: 8px; color: white; }
.youtube-button { background: #b62f29; }
.discord-button { background: #5865b9; }
.youtube-button:hover { background: #d83b34; }
.discord-button:hover { background: #6977d4; }
.community-note { padding-left: 18px; border-left: 2px solid var(--accent); font-size: .9rem !important; }

.beta { text-align: center; overflow: hidden; background: radial-gradient(circle at 50% 35%, rgba(85,122,62,.26), transparent 34%), linear-gradient(180deg, #09130f, #030806); }
.beta::before { content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent, black, transparent); }
.beta-content { position: relative; max-width: 790px; }
.beta h2 { margin-inline: auto; }
.beta-description { max-width: 690px; margin-inline: auto !important; }
.newsletter { width: 100%; margin: 40px auto 0; padding: clamp(20px, 4vw, 34px); display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line); background: rgba(5,13,9,.78); box-shadow: 0 25px 80px rgba(0,0,0,.3); backdrop-filter: blur(12px); }
.newsletter-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.newsletter input[type="email"] { min-width: 0; height: 56px; padding: 0 17px; border: 1px solid rgba(255,255,255,.14); border-radius: 2px; outline: none; background: #0b1712; color: var(--text); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.newsletter input[type="email"]::placeholder { color: #758278; }
.newsletter input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(169,207,99,.12); }
.newsletter button { min-width: 170px; min-height: 56px; padding: 0 22px; border: 0; border-radius: 2px; background: var(--accent); color: #10170c; text-transform: uppercase; font-size: .78rem; font-weight: 900; letter-spacing: .09em; cursor: pointer; transition: background .2s, transform .2s, opacity .2s; }
.newsletter button:hover { background: var(--accent-bright); transform: translateY(-1px); }
.newsletter button:disabled { opacity: .55; cursor: wait; transform: none; }
.privacy-consent { display: flex; align-items: flex-start; gap: 12px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); color: #aebbb0; text-align: left; font-size: .82rem; line-height: 1.55; cursor: pointer; }
.privacy-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.newsletter-message { min-height: 22px; margin: 0 !important; text-align: center; font-size: .9rem !important; font-weight: 700; }
.newsletter-message.success { color: #84e69b; } .newsletter-message.error { color: #ff8980; } .newsletter-message.loading { color: var(--accent-bright); }

footer { padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-deep); color: #879389; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 0; font-size: .82rem; }
.footer-logo { color: var(--text); text-transform: uppercase; font-size: .8rem; font-weight: 850; letter-spacing: .14em; }
.footer-socials { display: flex; align-items: center; gap: 20px; }
.footer-socials a { color: #b6c2b3; text-decoration: none; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-socials a:hover, .footer-socials a:focus-visible { color: var(--accent-bright); }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content { padding-right: 24vw; }
}

@media (max-width: 760px) {
  :root { --header-height: 66px; }
  .page-width { width: min(calc(100% - 32px), var(--page)); }
  .navbar { grid-template-columns: 1fr auto; padding-inline: 16px; }
  .logo { font-size: .76rem; }
  .logo-mark { width: 32px; }
  nav { display: none; }
  .language-picker { grid-column: 2; }
  .hero { min-height: 92svh; padding-top: calc(var(--header-height) + 44px); align-items: end; }
  .hero-overlay { background: linear-gradient(180deg, rgba(3,8,6,.16) 16%, rgba(3,8,6,.72) 58%, var(--bg) 100%); }
  .hero-content { padding-right: 0; padding-bottom: 46px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5.4rem); }
  .split { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .big-card { min-height: 220px; }
  .newsletter-fields { grid-template-columns: 1fr; }
  .newsletter button { width: 100%; }
}

@media (max-width: 520px) {
  .page-width { width: min(calc(100% - 24px), var(--page)); }
  .logo > span:last-child { max-width: 112px; white-space: normal; line-height: 1.05; }
  select { min-height: 38px; padding-left: 9px; }
  .buttons { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .card-number { margin-bottom: 24px; }
  .newsletter { padding: 16px; }
  .privacy-consent { padding: 13px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
