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

:root {
  --dark:   #0F172A;
  --card:   #1E293B;
  --border: #334155;
  --blue:   #0EA5E9;
  --cyan:   #06B6D4;
  --text:   #F8FAFC;
  --muted:  #94A3B8;
  --green:  #22C55E;
  --yellow: #EAB308;
  --orange: #F97316;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,23,42,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51,65,85,.5);
}
.nav-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.5rem;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.05rem;
  color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--blue); }
.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .9rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.hamburger {
  display: none; background: none; border: none;
  color: var(--text); font-size: 1.4rem; cursor: pointer;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 1.5rem 4rem;
  max-width: 860px; margin: 0 auto;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(14,165,233,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem; color: var(--cyan);
  letter-spacing: .1em; margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700; line-height: 1.05;
  margin-bottom: 1.4rem;
}
.accent {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  color: var(--muted); font-size: 1.05rem; max-width: 540px;
  margin-bottom: 2.5rem; line-height: 1.75;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff; font-weight: 600; font-size: .95rem;
  padding: .85rem 1.8rem; border-radius: 8px;
  text-decoration: none; transition: opacity .2s, transform .2s;
  width: fit-content;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }

/* ── SECTIONS ── */
.section { padding: 5rem 1.5rem; }
.container { max-width: 960px; margin: 0 auto; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem; color: var(--cyan);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem;
}
h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700; margin-bottom: 2.5rem;
}

/* ── APP CARDS ── */
.apps-grid { display: grid; gap: 1.1rem; }

.app-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card);
  border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.app-card:hover {
  border-color: rgba(14,165,233,.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14,165,233,.07);
}
.app-card-inner {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 1.2rem; padding: 1.5rem;
}
.app-icon-wrap {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.app-icon-wrap img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; }
.icon-fallback { font-size: 1.6rem; }
.bg-cyan   { background: rgba(6,182,212,.15); }
.bg-blue   { background: rgba(14,165,233,.15); }
.bg-yellow { background: rgba(234,179,8,.12); }
.bg-orange { background: rgba(249,115,22,.12); }

.app-top {
  display: flex; align-items: baseline; gap: .7rem;
  flex-wrap: wrap; margin-bottom: .35rem;
}
.app-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 1.05rem;
}
.badge {
  font-size: .7rem; font-weight: 600; padding: .18rem .55rem;
  border-radius: 20px; font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.badge-live   { background: rgba(34,197,94,.15); color: var(--green); }
.badge-beta   { background: rgba(234,179,8,.12); color: var(--yellow); }
.badge-dev    { background: rgba(249,115,22,.12); color: var(--orange); }

.app-desc { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: .8rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  font-size: .73rem; color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px; padding: .18rem .5rem;
}

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

/* ── WEB CARD ── */
.web-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  transition: border-color .25s;
}
.web-card:hover { border-color: rgba(6,182,212,.35); }
.web-card-text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 1.2rem; margin-bottom: .4rem;
}
.web-card-text h3 a { color: var(--text); text-decoration: none; }
.web-card-text h3 a:hover { color: var(--cyan); }
.web-card-text p { color: var(--muted); font-size: .92rem; line-height: 1.65; margin-bottom: 1rem; }
.web-stats { display: flex; gap: 1.5rem; }
.stat { text-align: center; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.6rem;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl { font-size: .7rem; color: var(--muted); margin-top: .1rem; }

/* ── APP DETAIL PAGE ── */
.page-hero {
  padding: 7rem 1.5rem 3rem;
  max-width: 760px; margin: 0 auto;
}
.page-hero .back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--muted); text-decoration: none; font-size: .88rem;
  margin-bottom: 2rem; transition: color .2s;
}
.page-hero .back-link:hover { color: var(--text); }
.page-icon-row {
  display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem;
}
.page-icon {
  width: 72px; height: 72px; border-radius: 16px;
  overflow: hidden; flex-shrink: 0;
}
.page-icon img { width: 72px; height: 72px; object-fit: cover; }
.page-icon .icon-fallback { font-size: 2.4rem; width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center; }
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; margin-bottom: .6rem;
}
.page-hero .hero-sub { font-size: 1rem; }

.gp-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff; font-weight: 600; font-size: .95rem;
  padding: .85rem 1.8rem; border-radius: 8px;
  text-decoration: none; margin-top: 1.5rem;
  transition: opacity .2s, transform .2s; width: fit-content;
}
.gp-btn:hover { opacity: .9; transform: translateY(-1px); }

.features-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .8rem;
  margin: 2rem 0;
}
.feature-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: .85rem 1rem;
  font-size: .9rem; color: var(--muted);
  display: flex; align-items: flex-start; gap: .6rem;
}
.feature-item::before { content: "\2713"; color: var(--blue); flex-shrink: 0; font-weight: 700; }

.info-row {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem;
}
.info-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem; padding: .3rem .7rem;
  background: rgba(14,165,233,.1); border: 1px solid rgba(14,165,233,.2);
  border-radius: 4px; color: var(--blue);
}

/* ── SIMPLE PAGES (kontakt, regulamin, polityka) ── */
.simple-page {
  max-width: 720px; margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
}
.simple-page h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 2rem; margin-bottom: 2rem;
}
.simple-page h2 {
  font-size: 1.2rem; margin: 2rem 0 .8rem;
}
.simple-page p, .simple-page li {
  color: var(--muted); line-height: 1.75; margin-bottom: .6rem;
}
.simple-page ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.simple-page a { color: var(--blue); }

.contact-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 2.5rem; text-align: center;
  margin-top: 2rem;
}
.contact-box p { font-size: .97rem; margin-bottom: 1.75rem; }
.email-link {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: 'JetBrains Mono', monospace; font-size: .95rem;
  color: var(--blue); text-decoration: none;
  padding: .85rem 1.75rem;
  border: 1px solid rgba(14,165,233,.3); border-radius: 8px;
  transition: background .2s, border-color .2s;
}
.email-link:hover { background: rgba(14,165,233,.08); border-color: var(--blue); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
  font-size: .82rem; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 660px) {
  .hamburger { display: block; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    padding: .5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: .75rem 1.5rem; }
  .app-card-inner { grid-template-columns: 1fr; }
  .app-icon-wrap { width: 44px; height: 44px; }
  .web-card { grid-template-columns: 1fr; }
  .web-stats { justify-content: flex-start; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
