:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #f97316;
  --accent-2: #fb923c;
  --border: #e2e8f0;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Ubuntu, Cantarell, Noto Sans;
  background: var(--bg);
  color: var(--text);
}

.container { width: 100%; max-width: 1120px; padding: 0 24px; margin: 0 auto; }

.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.8); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.2px; color: var(--text); text-decoration: none; }
.brand-logo { width: 28px; height: 28px; display: inline-block; }
.menu { display: none; gap: 18px; }
.menu a { color: var(--muted); text-decoration: none; }
.menu a:hover { color: var(--text); }
.actions { display: flex; gap: 12px; }

@media (min-width: 860px) { .menu { display: flex; } }

.button { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 9999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; will-change: transform; }
.button.ghost { background: transparent; box-shadow: none; }
.button.accent { border-color: transparent; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; }
.button.xl { height: 54px; padding: 0 24px; font-size: 1rem; }

.button.buy-bg {
  background: linear-gradient(0deg, rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('assets/screenshots/cs2.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  border-color: transparent;
}

.button:hover { transform: translateY(-1px); box-shadow: var(--shadow), 0 6px 20px rgba(0,0,0,0.12); filter: brightness(1.04); }
.button:active { transform: translateY(0); filter: brightness(0.98); }
.button.ghost:hover { background: rgba(0,0,0,0.04); }
.button.buy-bg:hover { background: linear-gradient(0deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('assets/screenshots/cs2.png'); }

.hero { position: relative; padding: 80px 0; background: radial-gradient(900px 500px at 10% 0%, rgba(249,115,22,0.12), transparent) no-repeat, radial-gradient(900px 500px at 100% 0%, rgba(251,146,60,0.12), transparent) no-repeat, var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero-content h1 { font-size: 3.2rem; line-height: 1.1; margin: 0 0 12px; }
.hero-content p { color: var(--muted); margin: 0 0 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.1fr 0.9fr; } }

.video-frame { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); height: 320px; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

.cs2-banner { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); margin-top: 16px; }
.cs2-banner img { display: block; width: 100%; height: auto; object-fit: cover; }

.section { padding: 64px 0; }
.sub { color: var(--muted); margin: 8px 0 24px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.card-icon { font-size: 1.5rem; }
.card-title { margin: 0; font-weight: 700; }
.card-list { list-style: none; margin: 0; padding: 0; color: var(--muted); display: grid; gap: 6px; }

@media (min-width: 860px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.gallery .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.item { margin: 0; }
.item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }

@media (min-width: 860px) { .gallery .grid { grid-template-columns: repeat(4, 1fr); } }

.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.lightbox-img { max-width: min(92vw, 1080px); max-height: 86vh; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 24px; right: 24px; height: 42px; width: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; box-shadow: var(--shadow); }

.video .player { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.video .player video { width: 100%; height: auto; display: block; }

.pricing .plans { display: grid; grid-template-columns: 1fr; gap: 18px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 12px; outline: 2px solid rgba(37,99,235,0.3); }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan-name { font-weight: 800; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 9999px; border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.chip.accent { border-color: transparent; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; }
.plan-list { list-style: none; margin: 0; padding: 0; color: var(--muted); display: grid; gap: 6px; }
.plan-actions { display: flex; }

@media (min-width: 860px) { .pricing .plans { grid-template-columns: repeat(2, 1fr); } }

.footer { border-top: 1px solid var(--border); background: rgba(255,255,255,0.6); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; min-height: 80px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-links { display: none; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); }

@media (min-width: 860px) { .footer-links { display: flex; } }

[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #0f172a;
  --text: #e5e7eb;
  --muted: #93a4bc;
  --accent: #f59e0b;
  --accent-2: #f97316;
  --border: #1f2a44;
  --shadow: 0 8px 30px rgba(2, 6, 23, 0.5);
}

[data-theme="dark"] .topbar { background: rgba(15,23,42,0.6); }
[data-theme="dark"] .footer { background: rgba(15,23,42,0.5); }

[data-theme="dark"] .button.buy-bg {
  background: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('assets/screenshots/cs2.png');
}

[data-theme="dark"] .button.ghost:hover { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .button:hover { box-shadow: var(--shadow), 0 6px 20px rgba(0,0,0,0.3); }
[data-theme="dark"] .button.buy-bg:hover { background: linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/screenshots/cs2.png'); }

.plan.cs2-bg {
  background: linear-gradient(0deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('assets/screenshots/cs2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;
}
.plan.cs2-bg .plan-list { color: rgba(255,255,255,0.9); }
.plan.cs2-bg .chip { background: rgba(0,0,0,0.5); color: #fff; border-color: rgba(255,255,255,0.2); }
[data-theme="dark"] .plan.cs2-bg {
  background: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('assets/screenshots/cs2.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
}
