/* 

SPDX-License-Identifier: BSD-2-Clause

Copyright (c) Marcin Szewczyk-Wilgan <contact@weboptimo.pl>

WebOptimo - weboptimo.pl style.css

*/

:root {
  --bg: #faf9f5;
  --bg-elevated: #ffffff;
  --bg-subtle: #ede8df;
  --text-primary: #3d3d3a;
  --text-secondary: #555555;
  --text-muted: #6b5e4f;
  --accent: #d97b3a;
  --accent-backup: #d97b3a;
  --accent-sec: #c25b28;
  --accent-dim: #1a1612;
  --accent-glow: rgba(217, 123, 58, 0.06);
  --border: #ddd5c8;
  --border-hover: #c9bfb0;
  --link: #d97b3a;
  --link-blue: #0b6ec5;
  --tag-color: #6b5e4f;
  --tag-border: #c9bfb0;
  --code-bg: #f8f3ec;
  --weboptimo: #f35f20;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
    Liberation Mono, monospace;
  font-size: 1rem;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #111111;
  color: #ffffff;
}

a {
  color: #0b6ec5;
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover {
  opacity: 0.8;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  display: flex;
  justify-content: center;
}

.nav-inner {
  max-width: 1100px;
  width: 100%;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: bold;
  font-size: 1.1rem;
  background: linear-gradient(
    90deg,
    var(--weboptimo) 0%,
    var(--weboptimo) 33%,
    var(--text-primary) 33%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  list-style: none;
}
.nav-links li a {
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  font-size: 0.9rem;
}
.nav-links li a:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
  opacity: 1;
}
.nav-sep {
  color: var(--text-muted);
  user-select: none;
  font-size: 1rem;
}
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  font-weight: 500;
}
.nav-cta:hover {
  background: var(--accent-glow) !important;
}

/* DROPDOWN */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}
.nav-dropdown > a::after {
  content: "\25be";
  font-size: 1rem;
  color: var(--accent-sec);
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  z-index: 200;
  list-style: none;
}
.nav-dropdown.open .dropdown-menu {
  display: block;
}
/*.nav-dropdown:hover > .dropdown-menu {
  display: block;
} */
.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--text-primary) !important;
  font-weight: 400;
  transition: background 0.15s;
  border-radius: 0;
}
.dropdown-menu li a:hover {
  background: var(--bg-elevated) !important;
  color: var(--accent-sec) !important;
}
.dropdown-menu .dropdown-sep {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0;
}
.dropdown-menu .dropdown-label {
  padding: 0.5rem 1.25rem 0.25rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: default;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
    Liberation Mono, monospace;
}

/* SECTIONS */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

/* HERO */

.hero-box {
  background-image: repeating-linear-gradient(
      0deg,
      var(--text-primary),
      var(--text-primary) 12px,
      transparent 12px,
      transparent 16px
    ),
    repeating-linear-gradient(
      90deg,
      var(--text-primary),
      var(--text-primary) 12px,
      transparent 12px,
      transparent 16px
    ),
    repeating-linear-gradient(
      180deg,
      var(--text-primary),
      var(--text-primary) 12px,
      transparent 12px,
      transparent 16px
    ),
    repeating-linear-gradient(
      270deg,
      var(--text-primary),
      var(--text-primary) 12px,
      transparent 12px,
      transparent 16px
    );
  background-size: 1px 100%, 100% 1px, 1px 100%, 100% 1px;
  background-position: 0 0, 0 0, 100% 0, 0 100%;
  background-repeat: no-repeat;
  padding: 2rem 2rem;
  margin-bottom: 2rem;
}

.hero {
  padding-top: calc(56px + 6rem);
  padding-bottom: 5rem;
}

.hero-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

/*
        .hero h1 {
            font-size: 1rem;
            font-weight: 700;
            line-height: 36px;
            letter-spacing: -0.03em;
            margin-bottom: 1.5rem;
            text-decoration: none;
            opacity: 0;
            animation: fadeUp 0.6s ease 0.1s forwards;
        }
        .hero h1 .highlight {
            color: #ffffff;
            background: var(--text-primary);
            padding: 2px 6px;
            box-decoration-break: clone;
            -webkit-box-decoration-break: clone;
        }
*/

.hero h1 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero h1::before {
  content: ">>> ";
  color: var(--accent);
  font-weight: bold;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 100%;
  line-height: 24px;
  /*  margin-bottom: 2.5rem; */
  margin-bottom: 0rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-nav {
  margin-bottom: 2.5rem;
}
.hero-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-nav li {
  border-bottom: 1px solid var(--border);
}
.hero-nav li:last-child {
  border-bottom: none;
}
.hero-nav a {
  display: block;
  color: #0969da;
  padding: 0.35rem 0 0.35rem 1.2em;
  text-indent: -1.2em;
  transition: color 0.2s;
  font-weight: 400;
}
.hero-nav a:hover {
  color: var(--text-primary);
  opacity: 1;
}
.hero-nav a::before {
  content: "* ";
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
    Liberation Mono, monospace;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  opacity: 1;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  opacity: 1;
}

/* STATS BAR */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.4s forwards;
}
.stat-item {
  background: #ffffff;
  padding: 1.5rem;
  text-align: center;
}
.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* SECTION HEADERS */
.section-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
h1::before {
  content: "# ";
  color: var(--accent);
  font-weight: bold;
}

h2 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
h2::before {
  content: "# ";
  color: var(--accent);
  font-weight: bold;
}


h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

h3::before {
  content: "* ";
  color: var(--accent);
  font-weight: bold;
}

.feature-card h3::before {
  content: "";
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 100%;
  line-height: 24px;
  margin-bottom: 3rem;
}

/* FEATURE CARDS */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.feature-card {
  background: #ffffff;
  padding: 2rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 24px;
}

.feature-card .tag {
  display: inline-block;
  font-size: 1rem;
  color: var(--tag-color);
  border: 1px solid var(--tag-border);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feature-card a, .section-desc a {
  color: var(--link-blue) !important;
  text-decoration: none;
  transition: opacity 0.2s;
}

.feature-card code, .service-row code:not(.service-row .label code) {
  background: var(--code-bg, #f8f3ec) !important;
  border: 1px solid var(--border, #ddd5c8) !important;
  border-radius: 3px !important;
  padding: 0rem 0.2rem !important;
  font-size: 0.875em !important;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  color: var(--accent-sec, #c25b28) !important;
  word-break: break-all;
}


#kontakt .feature-card a, #contact .feature-card a {
  color: var(--text-primary) !important;
}


a.feature-card h3 {
  color: #0b6ec5 !important;
}


/* CODE-STYLE BLOCK */
.code-block {
  background: #f6f6f6;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  margin: 2rem 0;
  overflow-x: auto;
}
.code-block pre {
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
    Liberation Mono, monospace;
  font-size: 1rem;
  line-height: 24px;
  color: #333333;
}
.code-block .cm {
  color: #8b949e;
}
.code-block .fn {
  color: #111111;
  font-weight: 600;
}
.code-block .str {
  color: #009525;
}
.code-block .kw {
  color: #cf222e;
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  background: #ffffff;
}
.price-card:hover {
  border-color: var(--border-hover);
}
.price-card.featured,
.price-card.featured-en {
  border-color: var(--accent-dim);
  position: relative;
}

.price-card.featured::before {
  content: "Najpopularniejszy";
  position: absolute;
  top: -0.6rem;
  left: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-card.featured-en::before {
  content: "Most Popular";
  position: absolute;
  top: -0.6rem;
  left: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-name {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.price-value {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price-value span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 1rem 0 1.5rem;
  line-height: 24px;
}

.price-features {
  list-style: none;
  margin-bottom: 2rem;
}
.price-features li {
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.price-features li:last-child {
  border: none;
}
.price-features li::before {
  display: none;
}
.pf-toggle {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.5rem 0;
  width: 100%;
  background: none;
  border: none;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
    Liberation Mono, monospace;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  line-height: 24px;
  transition: color 0.2s;
}
.pf-toggle:hover {
  color: var(--text-primary);
}
.pf-toggle::before {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.pf-desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.price-features li.pf-open .pf-desc {
  max-height: 300px;
  padding-bottom: 0.6rem;
}
.pf-desc p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 24px;
  padding-left: 1.08rem;
}

/* SERVICES LIST */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.service-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  transition: background 0.2s;
}
.service-row:last-child {
  border-bottom: none;
}
.service-row:hover {
  background: var(--bg-elevated);
}

.service-row .label {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: bold;
}
.service-row .value {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 24px;
}

/* QUOTE */
.quote-block {
  border-left: 2px solid #f35f20;
  padding: 1.5rem 2rem;
  margin: 3rem 0;
  background: rgba(237, 232, 223, 0.5);
  border-radius: 0 6px 6px 0;
}
.quote-block p {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 24px;
}
.quote-block cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
  font-style: normal;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
    Liberation Mono, monospace;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}
.faq-q:hover {
  color: var(--accent);
}
.faq-q .icon {
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  font-size: 1rem;
}
.faq-item.open .faq-q .icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 1.25rem;
}
.faq-a p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 24px;
}

/* FOOTER */
.footer {
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  background: linear-gradient(90deg, var(--weboptimo) 0%, var(--weboptimo) 33%, black 33%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.footer-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 24px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  font-size: 1rem;
  color: #0969da;
}
.footer-col ul li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  html {
    font-size: 15px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    gap: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links > li {
    display: block;
    width: 100%;
  }
  .nav-links li a {
    display: block;
    padding: 0.5rem 1.5rem;
    text-align: left;
	font-size: 1rem;
  }
  .nav-links > li > .nav-cta {
    display: inline-block;
    margin: 0.5rem 1.5rem;
    text-align: left;
  }
  .nav-sep {
    display: none !important;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: none;
  }
  .hamburger {
    display: block;
  }

  .nav-dropdown > a {
    padding: 0.5rem 1.5rem;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: auto;
    background: transparent;
  }
  .dropdown-menu li a {
    padding: 0.35rem 1.5rem 0.35rem 3rem !important;
  }
  .dropdown-menu .dropdown-label {
    padding: 0.5rem 1.5rem 0.25rem 1.5rem;
  }
  .dropdown-menu .dropdown-sep {
    margin: 0.4rem 1.5rem;
  }
  .nav-dropdown > a::after {
    display: inline-block;
	font-size: 1rem;
  }
  .nav-dropdown .dropdown-menu {
    display: none;
  }
  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .feature-grid {
    grid-template-columns: 1fr !important;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .service-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.9rem;
    text-align: center;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .pf-desc p {
    font-size: 1rem;
  }  
  .pf-toggle {
    font-size: 1rem;
  }  
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  section {
    padding: 3.5rem 0;
  }
  .hero {
    padding-top: calc(56px + 3.5rem);
  }
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .nav-links li a {
	font-size: 1rem;
  }
  .pf-desc p {
    font-size: 1rem;
  }  
  .pf-toggle {
    font-size: 1rem;
  }  
}

/* C64 cursor */
.c64-ready {
  margin-top: 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.c64-cursor {
  display: inline-block;
  animation: c64blink 1s step-start infinite;
}

@keyframes c64blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

#wo-cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  max-width: 280px;
  background: #fff;
  color: #555;
  border: 1px solid #e0e0e0;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
  font-size: 0.8125rem !important;
  line-height: 1.5;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: none;
  animation: woCookieIn 0.35s ease-out;
}

#wo-cookie-banner p {
  margin: 0 0 12px;
}

#wo-cookie-banner a {
  color: #1d6ec1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#wo-cookie-banner a:hover {
  color: #0d4a8b;
}

#wo-cookie-banner button {
  background: #1e1e1e;
  color: #fff;
  border: none;
  padding: 6px 18px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
    Liberation Mono, monospace;
}

#wo-cookie-banner button:hover {
  background: #333;
}

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

@media (max-width: 480px) {
  #wo-cookie-banner {
    right: 10px;
    left: 10px;
    bottom: 10px;
    max-width: none;
  }
}


.scramble-text {
  color: #2a2520;
  letter-spacing: 0.01em;
  word-break: break-word;
  white-space: normal;
}

.scramble-text .word {
  display: inline;
  white-space: nowrap;
}
 
.scramble-text .char {
  display: inline;
}
 
.scramble-text .char.scrambling {
  color: #a89880;
  opacity: 0.55;
}
 
.scramble-text .char.settled {
  color: #2a2520;
  opacity: 1;
  transition: opacity 0.3s;
}


/* Code block in the article */
.article-code {
  background: var(--code-bg, #f8f3ec);
  border: 1px solid var(--border, #ddd5c8);
  border-radius: 6px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
}


.article-code code, .faq-a code, p code, .feature-card code, .service-row code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  color: var(--text-primary, #3d3d3a);
  background: none;
  padding: 0;
  font-size: inherit;
  white-space: pre;
  word-break: normal;
  word-wrap: normal;
  tab-size: 2;
}

/* Syntax highlighting — JSON / PHP / HTML */
.article-code .token-key {
  color: #8b5cf6;
}

.article-code .token-string {
  color: #059669;
}

.article-code .token-number {
  color: #d97706;
}

.article-code .token-bool {
  color: #dc2626;
}

.article-code .token-comment {
  color: var(--text-muted, #6b5e4f);
  font-style: italic;
}

.article-code .token-tag {
  color: #2563eb;
}

.article-code .token-attr {
  color: #8b5cf6;
}

.article-code .token-attr-value {
  color: #059669;
}

.article-code .token-php {
  color: #7c3aed;
  font-weight: 600;
}

.article-code .token-punctuation {
  color: var(--text-muted, #6b5e4f);
}

/* Code block header — label */
.code-block-label {
  display: inline-block;
  background: var(--accent, #d97b3a);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px 4px 0 0;
  margin-bottom: -1px;
  position: relative;
  top: 1px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Inline code in article */

.article-content code:not(.article-code code):not(.console-code code) {
  background: var(--code-bg, #f8f3ec);
  border: 1px solid var(--border, #ddd5c8);
  border-radius: 3px;
  padding: 0rem 0.2rem;
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  color: var(--accent-sec, #c25b28);
  word-break: break-word;
}

/* Directory structure (directory tree) */
.dir-tree {
  background: var(--code-bg, #f8f3ec);
  border: 1px solid var(--border, #ddd5c8);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-primary, #3d3d3a);
  white-space: pre;
  overflow-x: auto;
}

.dir-tree .dir-name {
  color: var(--accent, #d97b3a);
  font-weight: 600;
}

.dir-tree .file-name {
  color: var(--text-primary, #3d3d3a);
}

.dir-tree .file-special {
  color: #059669;
  font-weight: 600;
}

/* Responsive — code blocks */
@media (max-width: 600px) {
  .article-code {
    padding: 1rem;
    font-size: 0.8rem;
    border-radius: 4px;
  }

  .dir-tree {
    padding: 1rem;
    font-size: 0.8rem;
  }
}

/* ==============================================
   CONSOLE CODE BLOCKS — terminal/shell styling
   ============================================== */

/* Blok kodu konsolowego */
.console-code {
  background: rgba(237, 232, 223, 0.5);
  border: 1px solid var(--border, #ddd5c8);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  font-size: 0.84rem;
  line-height: 1.75;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.console-code code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  color: var(--text-primary, #3d3d3a);
  background: none;
  padding: 0;
  font-size: inherit;
  white-space: pre;
  word-break: normal;
  word-wrap: normal;
  tab-size: 2;
}

/* Syntax highlighting — shell/bash */

/* Komendy: grep, find, sed, awk, chmod, du, sort itp. */
.console-code .sh-cmd {
  color: #b45a00;
  font-weight: 700;
}

/* Flagi i opcje: -rn, --include, -exec, -name itp. */
.console-code .sh-flag {
  color: #1a7a4c;
}

/* Stringi w cudzysłowach */
.console-code .sh-str {
  color: #4e7a2e;
}

/* Ścieżki plików i katalogów */
.console-code .sh-path {
  color: #8a6520;
}

/* Pipe |, przekierowania >, &&, || */
.console-code .sh-pipe {
  color: #d35f10;
  font-weight: 700;
}

/* Komentarze # */
.console-code .sh-comment {
  color: #96897c;
  font-style: italic;
}

/* Zmienne $1, ${f}, $wpdb itp. */
.console-code .sh-var {
  color: #a85028;
}

/* Nawiasy klamrowe {} + */
.console-code .sh-brace {
  color: #7b47a0;
}

/* Liczby i wartości numeryczne */
.console-code .sh-num {
  color: #a85028;
}

/* Regex i wzorce w grep/sed */
.console-code .sh-regex {
  color: #9a3060;
}

/* Selekcja tekstu w bloku */
.console-code code::selection,
.console-code code *::selection {
  background: rgba(217, 123, 58, 0.2);
}

/* Opisy komend — nagłówki przed blokami kodu */
.cmd-label {
  color: var(--text-secondary, #555555);
  font-weight: normal;
  text-decoration: underline;
}


/* =============================================
   HOSTING RANKING — nowe komponenty
   Dodaj do style.css
   ============================================= */

/* Karta hostingu */
.hosting-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    padding: 1.5rem;
    background: rgba(237, 232, 223, 0.25);
    transition: border-color 0.2s ease;
}

.hosting-card:hover {
    border-color: var(--accent);
}

.hosting-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hosting-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.hosting-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hosting-card-body p {
    margin-bottom: 0.75rem;
}

/* Meta info — backup, serwerownia, test */
.hosting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 0.75rem 0;
    margin: 0.75rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Use-case — wyróżniony opis zastosowania */
.hosting-usecase {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0 !important;
    font-size: 0.92rem;
}

/* Parametry hostingu (grid) */
.hosting-params {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hosting-param {
    padding: 1rem;
    background: rgba(237, 232, 223, 0.25);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hosting-param h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.hosting-param p {
    margin: 0;
    font-size: 0.92rem;
}

/* Responsywność */
@media (max-width: 640px) {
    .hosting-params {
        grid-template-columns: 1fr;
    }

    .hosting-card-header {
        flex-direction: column;
    }

    .hosting-meta {
        flex-direction: column;
        gap: 0.35rem;
    }
}
