@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@400;500&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0058d4;
  --accent: #00c2ff;
  --accent2: #7c3aed;
  --bg: #04050a;
  --bg2: #080c14;
  --card: #0c1220;
  --card2: #101828;
  --text: #f0f4ff;
  --text-dim: #7a8aaa;
  --text-muted: #3d4d6a;
  --border: rgba(100, 140, 220, 0.12);
  --border-bright: rgba(0, 194, 255, 0.3);
  --glow: rgba(0, 88, 212, 0.15);
  --radius: 16px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Bilingual ─── */
html[lang="pl"] .en { display: none !important; }
html[lang="en"] .pl { display: none !important; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%;
  background: rgba(4, 5, 10, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.3px;
}
.nav-logo img { height: 42px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-links a.active { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.btn-nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-nav-cta:hover { filter: brightness(1.15); transform: translateY(-1px); }

.lang-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.78rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: 0.2s; letter-spacing: 0.05em;
}
.lang-btn:hover { color: var(--text); border-color: var(--border-bright); }

/* ─── HAMBURGER (mobile) ─── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-dim); border-radius: 2px; transition: 0.3s;
}

/* ─── HERO ─── */
.page-hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 60px) 6% 80px;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(0, 88, 212, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(124, 58, 237, 0.12) 0%, transparent 60%);
}

/* grid lines */
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(100,140,220,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,140,220,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content { position: relative; z-index: 1; max-width: 780px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  display: inline-block; width: 28px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

h1.display {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}
h1.display em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1.1rem; color: var(--text-dim);
  max-width: 580px; line-height: 1.7;
  margin-bottom: 40px;
}

.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--primary); color: #fff;
  padding: 14px 32px; border-radius: 12px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer;
  font-family: inherit; transition: 0.25s;
  display: inline-block;
}
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,88,212,0.35); }

.btn-ghost {
  background: transparent; color: var(--text);
  padding: 13px 30px; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer; font-family: inherit; transition: 0.25s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--border-bright); background: rgba(255,255,255,0.03); }

/* ─── SECTION BASE ─── */
.section {
  padding: 120px 6%;
}
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px; display: block;
}

h2.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-dim); font-size: 1.05rem;
  max-width: 640px; line-height: 1.75;
}

/* ─── CARDS ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: 0.35s cubic-bezier(0.2,0,0,1);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { border-color: rgba(0,194,255,0.25); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.card:hover::before { opacity: 1; }

.card-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px; display: block;
}

.card h3 {
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 12px; color: var(--text);
  letter-spacing: -0.01em;
}

.card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.7; }

/* ─── PAGE HEADER (inner pages) ─── */
.page-header {
  padding: calc(var(--nav-h) + 80px) 6% 80px;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(0,88,212,0.12) 0%, transparent 70%);
}
.page-header-inner { position: relative; z-index: 1; max-width: 800px; }

/* ─── BADGE ─── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,194,255,0.08);
  border: 1px solid rgba(0,194,255,0.25);
  color: var(--accent);
  padding: 5px 13px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge.purple {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.3);
  color: #a78bfa;
}

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ─── FOOTER ─── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 80px 6% 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px; margin: 0 auto 60px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1rem; color: var(--text);
  text-decoration: none; margin-bottom: 16px;
}
.footer-logo img { height: 36px; }

.footer-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none; font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-col p {
  color: var(--text-muted); font-size: 0.85rem; line-height: 1.8;
}

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 30px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ─── POLICY OVERLAY ─── */
#policy-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(4,5,10,0.95); backdrop-filter: blur(12px);
  overflow-y: auto; padding: 100px 6% 60px;
}
.policy-box {
  max-width: 900px; margin: 0 auto;
}
.policy-close {
  position: fixed; top: 28px; right: 6%;
  background: var(--primary); color: #fff;
  border: none; padding: 10px 24px; border-radius: 10px;
  cursor: pointer; font-family: inherit; font-weight: 700; font-size: 0.85rem;
}
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.policy-grid h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem; margin-bottom: 20px;
}
.policy-grid p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.8; margin-bottom: 14px; }
.policy-grid strong { color: var(--text); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .policy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  nav { padding: 0 5%; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 20px 5%; gap: 4px;
  }
  .hamburger { display: flex; }
  .section { padding: 80px 5%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: calc(var(--nav-h) + 40px) 5% 60px; }
  .page-header { padding: calc(var(--nav-h) + 50px) 5% 50px; }
  .card-grid { grid-template-columns: 1fr; }
}
