/* ── AI w Praktyce — Noir Terminal Design System ──────────────── */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0c0c18;
  --bg-soft: #12122a;
  --panel: rgba(16, 16, 32, 0.82);
  --panel-strong: #141428;
  --line: rgba(139, 92, 246, 0.10);
  --line-strong: rgba(139, 92, 246, 0.20);
  --text: #eae8f4;
  --muted: #8a87a0;
  --accent: #a78bfa;
  --accent-deep: #8b5cf6;
  --accent-soft: rgba(167, 139, 250, 0.08);
  --green: #22d3ee;
  --green-soft: rgba(34, 211, 238, 0.07);
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.04);
  --glow-accent: 0 0 30px rgba(139, 92, 246, 0.15), 0 0 60px rgba(139, 92, 246, 0.05);
  --glow-green: 0 0 30px rgba(34, 211, 238, 0.12), 0 0 60px rgba(34, 211, 238, 0.04);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Montserrat', system-ui, sans-serif;
  --display: var(--serif);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(139, 92, 246, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(34, 211, 238, 0.07), transparent),
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(139, 92, 246, 0.04), transparent);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Layout ─────────────────────────────────────────────────── */

.site-shell {
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(6, 6, 14, 0.70);
  border-bottom: 1px solid rgba(139, 92, 246, 0.06);
}

.site-header__inner {
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: none;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.brand-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Navigation ─────────────────────────────────────────────── */

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 200ms;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav .button.button--primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0891b2, #22d3ee) !important;
  border: 1px solid rgba(34, 211, 238, 0.4) !important;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
}

.site-nav .button {
  margin-left: 10px;
}

/* ── Buttons ────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 200ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow:
    0 0 20px rgba(34, 211, 238, 0.20),
    0 8px 24px rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.button--primary:hover {
  box-shadow:
    0 0 30px rgba(34, 211, 238, 0.30),
    0 12px 32px rgba(34, 211, 238, 0.18);
  background: linear-gradient(135deg, #0ea5c9, #67e8f9);
}

.button--ghost {
  border-color: rgba(139, 92, 246, 0.15);
  background: rgba(139, 92, 246, 0.05);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.button--ghost:hover {
  background: rgba(139, 92, 246, 0.10);
  border-color: rgba(139, 92, 246, 0.25);
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  padding: 54px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.12);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.article-hero h1 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.04;
  color: var(--text);
}

.hero p {
  max-width: 580px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-trust {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

/* ── Sections ───────────────────────────────────────────────── */

.section {
  padding: 24px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.section-heading h2,
.article-hero h1 {
  font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1.06;
}

.section-heading p {
  max-width: 580px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Cards ──────────────────────────────────────────────────── */

.stat-card,
.panel,
.article-card,
.product-card,
.signal-card,
.quote-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: border-color 300ms, box-shadow 300ms;
}

.article-card:hover,
.product-card:hover {
  border-color: rgba(139, 92, 246, 0.18);
  box-shadow: var(--shadow), var(--glow-accent);
}

.article-grid,
.product-grid {
  display: grid;
  gap: 16px;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card,
.product-card {
  padding: 24px;
}

.article-card__meta,
.product-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-card h3,
.product-card h3,
.quote-card h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.article-card p,
.product-card p,
.quote-card p,
.article-content p,
.article-content li {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.article-card__footer,
.product-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}

.link-arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  transition: color 200ms, gap 200ms;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-arrow::after {
  content: '\2192';
  transition: transform 200ms;
}

.link-arrow:hover {
  color: #c4b5fd;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ── Products ───────────────────────────────────────────────── */

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card--featured {
  background:
    radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.08), transparent 50%),
    var(--panel);
  border-color: var(--line-strong);
}

.price {
  display: block;
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.03em;
}

.price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.product-points {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.product-points li + li {
  margin-top: 8px;
}

.product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.product-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid rgba(34, 211, 238, 0.08);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────────── */

.site-footer {
  padding: 26px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer__inner {
  padding-top: 20px;
  border-top: 1px solid rgba(139, 92, 246, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* ── Article page ───────────────────────────────────────────── */

.article-page {
  padding: 42px 0 28px;
}

.article-hero {
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.06), transparent 50%),
    var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.article-hero p {
  margin-top: 16px;
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.article-content {
  margin-top: 18px;
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.article-content h2 {
  margin: 34px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content ul {
  padding-left: 18px;
}

.article-content__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.mini-panel {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(12, 12, 24, 0.5);
  backdrop-filter: blur(8px);
}

.mini-panel strong {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-panel p {
  margin-top: 10px;
}

/* ── Light page ─────────────────────────────────────────────── */

body.page-light {
  /* Override CSS variables — everything adapts automatically */
  --bg: #f5f5f7;
  --bg-soft: #ededf0;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.12);
  --text: #1a1a2e;
  --muted: #64648a;
  --accent: #7c3aed;
  --accent-deep: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.06);
  --green: #0891b2;
  --green-soft: rgba(8, 145, 178, 0.06);
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --glow-accent: 0 4px 24px rgba(124, 58, 237, 0.08);
  --glow-green: 0 4px 24px rgba(8, 145, 178, 0.06);

  background: #f5f5f7;
  background-image: none;
  color: #1a1a2e;
}

body.page-light::before {
  display: none;
}

body.page-light .site-header {
  background: rgba(245, 245, 247, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.page-light .site-footer__inner {
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* Dark panels that KEEP dark styling inside page-light */
body.page-light .article-hero,
body.page-light .article-content,
body.page-light .article-cta,
body.page-light .lp-cta-box {
  --text: #eae8f4;
  --muted: #8a87a0;
  --accent: #a78bfa;
  --accent-deep: #8b5cf6;
  --accent-soft: rgba(167, 139, 250, 0.08);
  --green: #22d3ee;
  --green-soft: rgba(34, 211, 238, 0.07);
  --line: rgba(139, 92, 246, 0.10);
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  color: #eae8f4;
}

body.page-light .button--primary {
  color: white;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .hero-grid,
  .article-grid,
  .product-grid,
  .article-content__grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .site-footer__inner,
  .site-header__inner {
    flex-direction: column;
    align-items: start;
  }

  .site-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .site-shell,
  .site-header__inner {
    width: min(100vw - 20px, 1220px);
  }

  .hero,
  .section,
  .article-page {
    padding-top: 18px;
  }

  .brand-copy strong {
    font-size: 20px;
  }
}
