
:root {
  --surface: rgba(18, 21, 28, 0.88);
  --surface-2: rgba(10, 13, 18, 0.75);
  --surface-border: rgba(212, 212, 212, 0.12);
  --text: #eef2f7;
  --muted: #a8afbf;
  --accent: #c7c7c7;
  --accent-2: #8d95a6;
  --success: #9bd9c1;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --bg-1: #0a0c10;
  --bg-2: #11151d;
  --bg-3: #0d1017;
}

body[data-theme="light"] {
  --surface: rgba(255, 255, 255, 0.88);
  --surface-2: rgba(245, 247, 250, 0.96);
  --surface-border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #5b6477;
  --accent: #0f172a;
  --accent-2: #64748b;
  --success: #16a34a;
  --shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  --bg-1: #f8fafc;
  --bg-2: #eef2f7;
  --bg-3: #f1f5f9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top, rgba(199, 199, 199, 0.06), transparent 18%),
    linear-gradient(90deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.06), transparent 18%),
    linear-gradient(90deg, #f8fafc 0%, #eef2f7 50%, #f3f5f9 100%);
}

body[data-theme="light"] .site-bg {
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.04), transparent 12%),
    radial-gradient(circle at bottom, rgba(100, 116, 139, 0.04), transparent 14%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(243, 247, 252, 0.88) 50%, rgba(236, 242, 247, 0.88) 100%);
}

body[data-theme="light"] .noise {
  opacity: 0.03;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.04), transparent 8%),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.03), transparent 8%),
    url('../../nowe%20rzeczy/op-loadingscreen/web/build/logo.png') center/cover no-repeat;
  opacity: 0.04;
  filter: blur(2px);
  z-index: -2;
  pointer-events: none;
}

body[data-theme="light"]::before {
  opacity: 0.035;
  filter: blur(1px);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%, rgba(255, 255, 255, 0.03));
  z-index: -1;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0.22;
  pointer-events: none;
}

.site-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(199, 199, 199, 0.04), transparent 12%),
    radial-gradient(circle at bottom, rgba(141, 149, 166, 0.06), transparent 14%),
    linear-gradient(90deg, rgba(7, 9, 13, 0.92) 0%, rgba(16, 20, 29, 0.92) 50%, rgba(12, 17, 25, 0.92) 100%);
  z-index: -4;
}

.noise {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.08;
  z-index: -3;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6%;
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-border);
}

body[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

body[data-theme="light"] .nav-links a {
  color: #526071;
}

body[data-theme="light"] .nav-links a:hover {
  color: #0f172a;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.nav-links, .nav-actions { display: flex; align-items: center; gap: 18px; }

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text); }

.theme-toggle,
.menu-btn {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-pill i { color: var(--success); font-size: 0.65rem; }

.discord-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}

.discord-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #f8fafc;
  padding: 0.8rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body[data-theme="light"] .discord-btn,
body[data-theme="light"] .btn-primary {
  color: #f8fafc;
}

body[data-theme="light"] .countdown-box,
body[data-theme="light"] .offer-card,
body[data-theme="light"] .about-media,
body[data-theme="light"] .showcase-image-wrap,
body[data-theme="light"] .community-card,
body[data-theme="light"] .faq-list details,
body[data-theme="light"] .hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

body[data-theme="light"] .stats strong,
body[data-theme="light"] .countdown-box p,
body[data-theme="light"] .section-title h2,
body[data-theme="light"] .showcase-text h2,
body[data-theme="light"] .community-card h2,
body[data-theme="light"] .about-text p,
body[data-theme="light"] .showcase-text p,
body[data-theme="light"] .community-card p {
  color: #0f172a;
}

body[data-theme="light"] .countdown div span,
body[data-theme="light"] .countdown div small {
  color: #0f172a;
}

.discord-btn:hover, .btn:hover { transform: translateY(-2px); }

.menu-btn { display: none; }

main { width: min(1140px, 92%); margin: 0 auto; }
section { padding: 90px 0; }

.hero { min-height: 760px; display: flex; align-items: center; }
.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--accent);
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(4rem, 7vw, 6rem);
  line-height: 0.92;
  margin-bottom: 18px;
}

.subheading {
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.btn { padding: 0.95rem 1.3rem; }
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #10131a;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text);
}

.countdown-box {
  background: linear-gradient(90deg, rgba(17, 19, 24, 0.92), rgba(31, 36, 48, 0.76));
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 18px 20px;
  max-width: 520px;
  margin-bottom: 30px;
}

.countdown-box p {
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
}

.countdown {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.countdown div {
  min-width: 90px;
  text-align: center;
}

.countdown span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.countdown small {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stats div { min-width: 150px; }
.stats strong {
  display: block;
  font-size: 2rem;
  color: var(--text);
}
.stats span { color: var(--muted); font-size: 0.9rem; }

.social-proof-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.live-count,
.recent-joiners {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 10px 14px;
}

.live-count {
  color: var(--text);
  font-size: 0.92rem;
}

.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #47d18a;
  box-shadow: 0 0 0 0 rgba(71, 209, 138, 0.6);
  animation: pulse 2s infinite;
}

.recent-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.recent-avatars { display: flex; }
.recent-avatars .avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #10131a;
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: -6px;
  border: 2px solid var(--surface-2);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.hero-card {
  position: absolute;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(14, 16, 22, 0.96), rgba(24, 33, 49, 0.8));
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.card-main {
  width: min(520px, 100%);
  overflow: hidden;
  transform: rotate(-4deg);
}

.card-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-side {
  width: 180px;
  height: 240px;
  background: linear-gradient(180deg, rgba(18, 26, 40, 0.95), rgba(7, 10, 15, 0.95));
  border-radius: 18px;
}

.card-side.top { top: 0; left: 0; transform: rotate(-18deg); }
.card-side.bottom { bottom: 0; right: 0; transform: rotate(18deg); }

.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: clamp(2rem, 3.5vw, 3rem); }

.about-grid, .showcase { display: grid; grid-template-columns: 1fr 0.95fr; gap: 32px; align-items: center; }
.about-media, .showcase-image-wrap {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-media img, .showcase-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-text p, .showcase-text p, .community-card p { color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.about-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.about-pills span {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(199, 199, 199, 0.08);
  border: 1px solid var(--surface-border);
  color: var(--text);
  font-size: 0.9rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.offer-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px 22px;
}

.offer-card h3 { margin-bottom: 12px; }
.offer-card p { color: var(--muted); line-height: 1.7; }

.faq-list { max-width: 900px; margin: 0 auto; display: grid; gap: 14px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 18px 20px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { color: var(--muted); margin-top: 12px; line-height: 1.7; }

.community-card {
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.92), rgba(29, 36, 48, 0.76)),
    radial-gradient(circle at right, rgba(199, 199, 199, 0.08), transparent 24%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 56px 42px;
  text-align: center;
}

footer {
  padding: 24px 0 48px;
  text-align: center;
  color: var(--muted);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(71, 209, 138, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(71, 209, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(71, 209, 138, 0); }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    right: 6%;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface-2);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 16px;
  }
  .hero-content, .about-grid, .showcase { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .navbar { padding: 16px 4%; }
  .nav-actions .status-pill, .nav-actions .discord-btn { display: none; }
  .menu-btn { display: block; }
  .hero { min-height: auto; padding: 56px 0; }
  .hero-actions { flex-direction: column; }
  .countdown { gap: 8px; }
  .countdown div { min-width: 72px; }
  .countdown span { font-size: 1.6rem; }
  .stats { gap: 16px; }
  .social-proof-row { flex-direction: column; align-items: flex-start; }
  .live-count, .recent-joiners { width: 100%; justify-content: center; }
  .offer-grid { grid-template-columns: 1fr; }
  .community-card { padding: 48px 24px; }
}
