/* =========================================================
   POLSKA AI — Artur Mielko
   Industrial / engineering theme. Mobile-first.
   ========================================================= */

:root {
  /* Kolory */
  --ink:      #080b14;
  --ink-2:    #0c111d;
  --surface:  #121a2c;
  --surface-2:#162039;
  --line:     rgba(120, 150, 200, 0.14);
  --line-2:   rgba(120, 150, 200, 0.28);
  --text:     #e9eef9;
  --muted:    #8fa0c0;
  --muted-2:  #61708f;
  --accent:   #34c5ff;   /* elektryczny cyan z logo */
  --accent-2: #1a73e8;   /* głębszy niebieski */
  --red:      #e23a48;   /* czerwień mapy PL — mikro-akcent */
  --ok:       #3ddc97;

  /* Typografia */
  --font-display: 'Archivo', 'Segoe UI', sans-serif;
  --font-body:    'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* Przestrzeń */
  --pad-x: clamp(20px, 6vw, 120px);
  --maxw: 1180px;
  --radius: 16px;
  --radius-lg: 22px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }

/* Mono etykieta sekcji – „rysunek techniczny" */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: 0.6; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061018; box-shadow: 0 10px 30px -10px rgba(52,197,255,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(52,197,255,.75); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8, 11, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand img { height: 38px; width: 38px; border-radius: 50%; }
.brand span b { color: var(--accent); }
.nav-links { display: none; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.95rem; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: none; }

.burger { background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 20px; height: 2px; background: var(--text); transition: .25s; border-radius: 2px; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px var(--pad-x) 24px;
  background: var(--ink-2); border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 4px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 14px; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(60px, 12vw, 130px) 0 clamp(50px, 9vw, 90px); overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
  opacity: .7;
}
.hero-glow { position: absolute; top: -10%; right: -10%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(52,197,255,.22), transparent 60%); filter: blur(30px); }
.hero .wrap { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em;
  background: var(--surface); border: 1px solid var(--line-2);
  padding: 8px 14px; border-radius: 100px; color: var(--muted);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero h1 { font-size: clamp(2.2rem, 6.2vw, 4.4rem); max-width: 16ch; margin-bottom: 22px; }
.hero h1 .hl { color: var(--accent); }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 56ch; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 6vw, 60px); margin-top: 54px; padding-top: 34px; border-top: 1px solid var(--line); }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--text); }
.stat .num b { color: var(--accent); }
.stat .lbl { font-family: var(--font-mono); font-size: .78rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

/* ---------- Sekcje ogólne ---------- */
section { position: relative; }
.section-pad { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { max-width: 60ch; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); margin: 18px 0 16px; }
.section-head p { color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); }
.alt-bg { background: var(--ink-2); border-block: 1px solid var(--line); }

/* ---------- Problem (ból) ---------- */
.pain-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.pain {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 14px; padding: 26px;
}
.pain h3 { font-size: 1.15rem; margin-bottom: 8px; }
.pain p { color: var(--muted); font-size: .98rem; }

/* ---------- Oferta ---------- */
.offer-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.offer {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease;
  position: relative; overflow: hidden;
}
.offer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); opacity: 0; transition: opacity .3s; }
.offer:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.offer:hover::before { opacity: 1; }
.offer .ico { width: 50px; height: 50px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); }
.offer .ico svg { width: 24px; height: 24px; }
.offer .tag { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); }
.offer h3 { font-size: 1.35rem; }
.offer p { color: var(--muted); font-size: .98rem; flex: 1; }
.offer .out { font-size: .9rem; color: var(--text); display: flex; gap: 8px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--line); }
.offer .out::before { content: "→"; color: var(--accent); }

/* ---------- Przewaga (dlaczego ja) ---------- */
.why { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.why-points { display: flex; flex-direction: column; gap: 22px; }
.why-point { display: flex; gap: 16px; }
.why-point .n { font-family: var(--font-mono); color: var(--accent); font-size: .85rem; padding-top: 3px; min-width: 30px; }
.why-point h3 { font-size: 1.1rem; margin-bottom: 5px; }
.why-point p { color: var(--muted); font-size: .96rem; }
.why-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 34px; position: relative; overflow: hidden;
}
.why-card .quote { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem,3vw,1.7rem); line-height: 1.3; letter-spacing: -0.01em; }
.why-card .quote .hl { color: var(--accent); }
.why-card .sig { margin-top: 22px; font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }

/* ---------- Flagowe wdrożenie ---------- */
.flagship {
  background: linear-gradient(150deg, var(--surface-2), var(--ink-2));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 52px); position: relative; overflow: hidden;
}
.flagship .badge-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); border: 1px solid rgba(61,220,151,.3); background: rgba(61,220,151,.08); padding: 6px 12px; border-radius: 100px; margin-bottom: 20px; }
.flagship .badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.flagship h3 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); margin-bottom: 14px; }
.flagship p { color: var(--muted); max-width: 60ch; margin-bottom: 24px; }
.flagship .mods { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
.flagship .mod { font-size: .94rem; display: flex; gap: 10px; align-items: flex-start; }
.flagship .mod::before { content: "▪"; color: var(--accent); }

/* ---------- Proces ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step .num { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--surface-2); -webkit-text-stroke: 1px var(--line-2); position: absolute; top: 18px; right: 22px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }
.step .meta { font-family: var(--font-mono); font-size: .76rem; color: var(--accent); margin-top: 14px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- CTA blok ---------- */
.cta-band { text-align: center; }
.cta-inner {
  background: linear-gradient(135deg, rgba(26,115,232,.18), rgba(52,197,255,.1));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.cta-inner h2 { font-size: clamp(1.8rem, 4.6vw, 3rem); margin-bottom: 16px; }
.cta-inner p { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin: 0 auto 32px; }
.cta-inner .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
footer { background: var(--ink-2); border-top: 1px solid var(--line); padding: clamp(50px,7vw,72px) 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.foot-about .brand { margin-bottom: 16px; }
.foot-about p { color: var(--muted); font-size: .95rem; max-width: 40ch; }
.foot-col h4 { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 16px; }
.foot-col a, .foot-col p { display: block; color: var(--muted); font-size: .95rem; margin-bottom: 10px; transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted-2); font-size: .85rem; font-family: var(--font-mono); }

/* ---------- Portfolio ---------- */
.proj { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px,4vw,44px); margin-bottom: 28px; }
.proj.flag { border-color: var(--line-2); background: linear-gradient(150deg, var(--surface-2), var(--ink-2)); }
.proj .ptype { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.ptype.live { color: var(--ok); border: 1px solid rgba(61,220,151,.3); background: rgba(61,220,151,.08); }
.ptype.poc  { color: var(--accent); border: 1px solid var(--line-2); background: var(--surface-2); }
.proj h2 { font-size: clamp(1.4rem,3.4vw,2rem); margin-bottom: 10px; }
.proj .stack { font-family: var(--font-mono); font-size: .82rem; color: var(--muted-2); margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.proj h4 { font-size: 1.05rem; margin: 22px 0 10px; color: var(--text); }
.proj p { color: var(--muted); margin-bottom: 14px; }
.proj ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.proj li { color: var(--muted); font-size: .96rem; display: flex; gap: 10px; align-items: flex-start; }
.proj li::before { content: "▪"; color: var(--accent); margin-top: 1px; }
.proj li b { color: var(--text); font-weight: 600; }
.poc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.poc-grid .proj { margin-bottom: 0; }

/* ---------- Reveal anim ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Breakpointy ---------- */
@media (min-width: 640px) {
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .flagship .mods { grid-template-columns: 1fr 1fr; }
  .poc-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
  .offer-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
  .pain-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .poc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
