/* ── KubaBuba – strona z ofertą ─────────────────────────────── */

/* Domyślnie motyw ciemny; jasny tylko po przełączeniu (data-theme="light") */
:root {
  --bg: #0f1115;
  --bg-alt: #14171d;
  --surface: #181c23;
  --border: #262b35;
  --text: #e6e9ef;
  --muted: #97a0b0;
  --accent: #fbbf24;
  --accent-strong: #fcd34d;
  --accent-soft: rgba(251, 191, 36, 0.12);
  --on-accent: #2a1a02;
  --code-bg: #0a0c10;
  --code-text: #d7dce5;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --neon-pink: #ff3d7f;
  --neon-cyan: #3ee6ff;
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f8fa;
  --bg-alt: #eef1f5;
  --surface: #ffffff;
  --border: #dde2ea;
  --text: #161a22;
  --muted: #5a6474;
  --accent: #b45309;
  --accent-strong: #92400e;
  --accent-soft: rgba(180, 83, 9, 0.1);
  --on-accent: #ffffff;
  --code-bg: #0f1115;
  --shadow: 0 10px 30px rgba(20, 30, 50, 0.08);
  --neon-pink: #e11d62;
  --neon-cyan: #0e9fbf;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

h1, h2, h3 { font-family: var(--mono); line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }

.logo { font-family: var(--mono); font-weight: 700; font-size: 1.15rem; color: var(--text); margin: 0; }
.logo:hover { color: var(--text); }
.logo-bracket { color: var(--accent); }
.logo-sm { font-size: 1rem; }

/* Neonowe logo */
.logo { display: inline-flex; align-items: center; }
.logo-svg { display: block; height: 36px; width: auto; aspect-ratio: 256 / 38; overflow: visible; }
.logo-sm .logo-svg { height: 28px; }
.site-header .logo-svg { animation: neon-on 1.6s ease-out 1; }
@keyframes neon-on {
  0%, 12%, 20%, 34% { opacity: 0.25; }
  8%, 16%, 28%, 100% { opacity: 1; }
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
.nav a.nav-cta {
  color: var(--on-accent);
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 8px;
}
.nav a.nav-cta:hover { background: var(--accent-strong); color: var(--on-accent); }

.header-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ciemny: pokazuj słońce (przełącz na jasny); jasny: księżyc */
.icon-dark { display: none; }
:root[data-theme="light"] .icon-dark { display: inline; }
:root[data-theme="light"] .icon-light { display: none; }

.nav-toggle { display: none; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn { white-space: nowrap; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.prompt { color: var(--muted); margin-right: 6px; }

.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.accent { color: var(--accent); }
.cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 28px; }

.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.92rem; }
.hero-badges i { color: var(--accent); margin-right: 6px; }

.code-window {
  background: var(--code-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #22262e;
  overflow: hidden;
  min-width: 0;
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #161a21; border-bottom: 1px solid #22262e; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.code-title { margin-left: 10px; font-family: var(--mono); font-size: 0.8rem; color: #7d8594; }
.code-body {
  margin: 0;
  padding: 22px 22px 26px;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--code-text);
  overflow-x: auto;
}
.c-k { color: #c792ea; } .c-v { color: #82aaff; } .c-p { color: #f07178; }
.c-s { color: #c3e88d; } .c-b { color: #f78c6c; } .c-f { color: #ffcb6b; } .c-c { color: #6a7a8c; font-style: italic; }

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-tag { font-family: var(--mono); color: var(--accent); font-size: 0.9rem; margin-bottom: 8px; }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin-bottom: 40px; }

.cards { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card p { color: var(--muted); }
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 26px; margin-top: 8px; font-size: 0.95rem; }
.checklist li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute; left: 0; top: 1px;
  color: var(--accent);
  font-size: 0.85rem;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: none; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Features */
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 8px 4px; }
.feature > i {
  flex: 0 0 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Portfolio */
.portfolio { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.project-thumb { display: block; overflow: hidden; border-bottom: 1px solid var(--border); aspect-ratio: 16 / 10; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s ease; }
.project-thumb:hover img { transform: scale(1.03); }
.project-body { padding: 24px 26px 28px; }
.project-body p { color: var(--muted); }
.project-meta { font-family: var(--mono); font-size: 0.82rem; color: var(--accent) !important; margin-bottom: 8px; }
.project-next {
  border-style: dashed;
  justify-content: center;
  background: transparent;
  box-shadow: none;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list i {
  flex: 0 0 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-list .label { display: block; font-size: 0.8rem; color: var(--muted); font-family: var(--mono); }
.contact-list a, .contact-list span:not(.label) { font-weight: 600; color: var(--text); font-size: 1.05rem; }
.contact-list a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.88rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .invalid, .field input.invalid, .field textarea.invalid { border-color: #e5484d; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); margin: 4px 0 20px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 auto; }
.consent.invalid span { color: #e5484d; }

.form-status { margin: 14px 0 0; font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #e5484d; }

/* Legal (polityka prywatności) */
.legal { max-width: 780px; }
.legal .section-title { margin-bottom: 12px; }
.legal-updated { color: var(--muted); font-family: var(--mono); font-size: 0.85rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.2rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal address {
  font-style: normal;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  padding: 16px 20px;
  margin: 0 0 1em;
  line-height: 1.7;
}
.consent a { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer-row p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .portfolio { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav a.nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }

  .hero { padding: 56px 0 64px; }
  .section { padding: 64px 0; }
  .cards-3, .cards-2, .steps, .field-row { grid-template-columns: 1fr; }
  .code-body { font-size: 0.8rem; padding: 18px; }
  .btn-label { display: none; }
  .logo-svg { height: 30px; }
  .contact-form, .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor, .site-header .logo-svg { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
