:root {
  --bg-main: #0f1114;
  --bg-sub: #181b20;
  --text-main: #f4f4f4;
  --text-muted: #b3b3b3;
  --accent-yellow: #ffd23c;
  --accent-red: #e63946;
  --border-soft: #2a2f38;
  --font-heading: 'Special Elite', 'Courier New', monospace;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* ─── TOP BAR ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 6vw;
  background: rgba(10, 11, 14, 0.96);
  border-bottom: 2px solid #20232b;
  backdrop-filter: blur(8px);
}

.logo {
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo span {
  color: var(--accent-yellow);
}

.topbar nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.topbar .social-links {
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-soft);
}

.topbar nav a:hover,
.topbar nav a.active {
  color: var(--accent-yellow);
}

/* ─── DUŻE LOGO ─── */
.big-logo-section {
  background: #1a1a1a;
  padding: 0;
  text-align: center;
  position: relative;
  border-bottom: 2px solid #20232b;
  line-height: 0;
  height: 90px;
  overflow: hidden;
}

.big-logo-section::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 30px,
    rgba(255, 210, 60, 0.8) 30px,
    rgba(255, 210, 60, 0.8) 32px,
    transparent 32px,
    transparent 60px
  );
}

.big-logo {
  height: 90px;
  width: auto;
  display: inline-block;
}

/* ─── SECTIONS ─── */
.section {
  padding: 4rem 6vw;
  border-top: 1px solid #181b20;
}

.section-title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.6rem;
  width: 120px;
  height: 4px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--accent-yellow),
    var(--accent-yellow) 10px,
    #000 10px,
    #000 20px
  );
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 65vh;
  padding: 4rem 6vw;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top, rgba(255,255,255,0.06), transparent 60%),
              var(--bg-main);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(0,0,0,0.6));
}

.hero-content {
  position: relative;
  max-width: 720px;
  flex: 1;
}

/* Hero z grafiką po prawej */
.hero--split {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-image-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 50%;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 70vh;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
}

.hero-tagline {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--accent-yellow);
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw + 0.8rem, 2.8rem);
  margin: 0 0 1rem;
}

.hero .highlight {
  color: var(--accent-red);
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 1rem;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  min-height: 46px;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.btn-primary {
  background: var(--accent-yellow);
  color: #000;
  border: 3px solid var(--accent-yellow);
  box-shadow: 0 4px 12px rgba(255,210,60,0.35);
}

.btn-primary:hover {
  background: #ffe060;
  box-shadow: 0 6px 20px rgba(255,210,60,0.55);
  transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  border: 3px solid var(--accent-yellow);
  color: var(--accent-yellow);
  background: rgba(255,210,60,0.04);
}

.btn-outline:hover {
  background: var(--accent-yellow);
  color: #000;
  box-shadow: 0 4px 16px rgba(255,210,60,0.45);
}

.btn-secondary {
  background: transparent;
  border: 2px solid #4a5568;
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--accent-yellow);
  box-shadow: 0 4px 12px rgba(255,210,60,0.25);
}

/* ─── USE CASES ─── */
.use-cases {
  background: #0d0f13;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.use-case-card {
  background: #111319;
  border: 1px solid var(--border-soft);
  padding: 1.5rem 1.6rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.use-case-card:hover {
  border-color: rgba(255, 210, 60, 0.35);
  transform: translateY(-3px);
}

.use-case-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.7rem;
}

.use-case-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.use-case-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

/* ─── FEATURES ─── */
.features {
  background: radial-gradient(circle at top, #181b20, #0f1114);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(15,17,20,0.9);
  border: 1px solid var(--border-soft);
  padding: 1.5rem 1.6rem;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.feature-card::before {
  content: "NOTE";
  position: absolute;
  top: 0.4rem;
  right: 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--accent-red);
}

/* ─── HOW IT WORKS ─── */
.how-it-works {
  background-color: #111319;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step {
  border: 1px solid var(--border-soft);
  padding: 1.4rem 1.5rem 1.6rem;
  background: linear-gradient(135deg, #111319, #171a21);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

/* ─── SHOP ─── */
.shop-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.shop-subtitle {
  color: var(--text-muted);
  margin: -1rem 0 1.5rem;
  font-size: 0.95rem;
}

.filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filters select {
  background: #111319;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
}

.case-card {
  background: #14171d;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.case-card:hover {
  border-color: rgba(255,210,60,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* Karta wkrótce */
.case-card--coming-soon {
  position: relative;
  cursor: pointer;
}

.case-card--coming-soon .case-folder,
.case-card--coming-soon .case-body {
  filter: blur(4px);
  user-select: none;
}

.case-coming-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 11, 14, 0.55);
}

.case-coming-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--accent-yellow);
  color: var(--accent-yellow);
  background: rgba(0,0,0,0.65);
}

.case-folder {
  position: relative;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, #30343a, #23262c);
  border-bottom: 1px solid #20232b;
  overflow: hidden;
}

.case-folder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,210,60,0.75),
    rgba(255,210,60,0.75) 12px,
    #000 12px,
    #000 24px
  );
  opacity: 0.08;
}

.case-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--accent-red);
  letter-spacing: 0.16em;
}

.case-id {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.case-body {
  padding: 1.2rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-body h3 {
  margin-top: 0;
}

.case-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.case-meta {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 1.2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.5rem;
}

.case-meta li strong {
  color: var(--text-main);
}

.case-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ─── TESTIMONIALS ─── */
.testimonials {
  background-color: #0d1017;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.note {
  background: #f5f0d0;
  color: #222;
  padding: 1.2rem 1.4rem;
  transform: rotate(-2deg);
  box-shadow: 3px 6px 12px rgba(0,0,0,0.5);
  position: relative;
}

.note:nth-child(even) { transform: rotate(1.5deg); }

.note::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 40%;
  width: 40px;
  height: 18px;
  background: #dcdcdc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.note-author {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ─── ABOUT ─── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text p { color: var(--text-muted); }

.about-board {
  position: relative;
  min-height: 220px;
}

.polaroid {
  position: absolute;
  width: 180px;
  background: #f0ebe0;
  padding: 0.5rem 0.5rem 2.2rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.65);
  font-family: var(--font-heading);
}

.polaroid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  color: #333;
  margin-top: 0.5rem;
  font-family: var(--font-heading);
}

.polaroid-1 { top: 0; left: 10%; transform: rotate(-6deg); }
.polaroid-2 { bottom: 0; right: 5%; transform: rotate(4deg); }

/* ─── CONTACT / FAQ ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-form,
.faq {
  border: 1px solid var(--border-soft);
  background: #111319;
  padding: 1.5rem 1.7rem;
}

.contact-form h3,
.faq h3 {
  font-family: var(--font-heading);
  margin-top: 0;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border-soft);
  background: #0d0f13;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  display: block;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid var(--accent-yellow);
}

.faq-item + .faq-item { margin-top: 1.2rem; }
.faq-item h4 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.faq-item p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ─── PAGE HEADER (dla podstron) ─── */
.page-header {
  padding: 3rem 6vw 2rem;
  background: linear-gradient(135deg, #0f1114, #181b20);
  border-bottom: 1px solid #20232b;
}

.page-header h1 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  margin: 0;
}

/* ─── SOCIAL MEDIA ICONS ─── */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.social-link:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
  background: rgba(255,210,60,0.06);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid #181b20;
  padding: 1rem 6vw 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1rem;
}

.footer a:hover { color: var(--accent-yellow); }

/* ─── NEWSLETTER POPUP ─── */
.newsletter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.newsletter-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.newsletter-box {
  background: #14171d;
  border: 1px solid var(--border-soft);
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: slideUp 0.35s ease;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.newsletter-top {
  padding: 1rem 1.4rem;
  background: linear-gradient(135deg, #30343a, #23262c);
  border-bottom: 1px solid #20232b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.newsletter-top-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--accent-red);
  letter-spacing: 0.16em;
}

.newsletter-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.newsletter-close:hover { color: var(--text-main); }

.newsletter-body {
  padding: 1.8rem 2rem 2rem;
}

.newsletter-body h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
  letter-spacing: 0.06em;
}

.newsletter-body h2 span {
  color: var(--accent-yellow);
}

.newsletter-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.4rem;
}

.newsletter-input-row {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
}

.newsletter-input-row input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  background: #0d0f13;
  border: 2px solid var(--border-soft);
  border-right: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input-row input[type="email"]:focus {
  border-color: var(--accent-yellow);
}

.newsletter-input-row input[type="email"]::placeholder {
  color: #555;
}

.newsletter-input-row .btn-primary {
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 0.75rem 1.2rem;
  border: 2px solid var(--accent-yellow);
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.newsletter-consent input[type="checkbox"] {
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--accent-yellow);
  width: 14px;
  height: 14px;
}

.newsletter-skip {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: #555;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.newsletter-skip:hover { color: var(--text-muted); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .topbar nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .big-logo-section { height: 70px; } .big-logo { height: 70px; width: auto; }

  .hero { min-height: 55vh; padding: 3rem 6vw; }

  .hero--split { flex-direction: column; }
  .hero-image-wrap { max-width: 100%; width: 100%; }
  .hero-image { max-height: 40vh; }

  .hero-cta { flex-direction: column; align-items: flex-start; }

  .shop-header { flex-direction: column; align-items: flex-start; }

  .about-layout,
  .contact-grid { grid-template-columns: 1fr; }

  .newsletter-input-row { flex-direction: column; }
  .newsletter-input-row input[type="email"] { border-right: 2px solid var(--border-soft); border-bottom: none; }
  .newsletter-input-row .btn-primary { width: 100%; }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer a { margin-left: 0; margin-right: 1rem; }
}
