/* filip.gorgo brand CSS system
 * Single source of truth — extracted z /en/audit/ pattern.
 * Strony używają tego + Tailwind utility classes (/built.css) dla layout.
 */

:root {
    --bg: #0a0a0a;
    --text: #e5e5e5;
    --text-bright: #ffffff;
    --text-muted: rgba(255,255,255,0.5);
    --text-soft: rgba(255,255,255,0.35);
    --text-faint: rgba(255,255,255,0.2);
    --accent: #8b5cf6;
    --accent-text: #a78bfa;
    --accent-dim: rgba(139,92,246,0.4);
    --border: rgba(255,255,255,0.05);
    --border-med: rgba(255,255,255,0.08);
    --border-card: rgba(255,255,255,0.06);
    --card-bg: rgba(255,255,255,0.015);
    --card-hover: rgba(255,255,255,0.03);
}

.serif { font-family: 'Lora', ui-serif, Georgia, serif; }

/* SECTIONS — match /en/audit/ */
.section {
    padding: 96px 24px;
    border-top: 1px solid var(--border);
}
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.section-kicker {
    color: var(--accent-text);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 28px;
}
.section-title {
    font-family: 'Lora', serif;
    font-size: clamp(28px, 4.5vw, 44px);
    line-height: 1.1;
    color: var(--text-bright);
    margin-bottom: 20px;
}
.section-sub {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 56px;
}

/* CARDS — match /en/audit/ */
.card {
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 36px 32px;
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.card:hover {
    background: var(--card-hover);
    border-color: rgba(139,92,246,0.15);
    transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }

.card-label {
    font-family: 'Lora', serif;
    font-size: 17px;
    color: var(--accent-text);
    margin-bottom: 10px;
    line-height: 1.3;
}
.card-title {
    font-family: 'Lora', serif;
    font-size: 20px;
    color: var(--text-bright);
    margin-bottom: 16px;
    line-height: 1.3;
}
.card-body {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
}
.card-body + .card-body { margin-top: 12px; }

.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.card-full { grid-column: 1 / -1; }

@media (max-width: 768px) {
    .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
    .section { padding: 72px 20px; }
    .section-sub { margin-bottom: 40px; }
}

/* SCROLL REVEAL — graceful: default visible, JS adds opacity:0 only when bootstrap succeeds */
.sr {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
html.js .sr:not(.visible) {
    opacity: 0;
    transform: translateY(24px);
}

/* HERO — extracted z /en/audit/ for canonical reuse */
.hero { position: relative; padding: 140px 24px 100px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-glow-1 { position: absolute; top: -200px; left: -150px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, rgba(139,92,246,0.05) 40%, transparent 70%); border-radius: 50%; animation: glow-float-1 8s ease-in-out infinite; }
.hero-glow-2 { position: absolute; top: -100px; right: -120px; width: 550px; height: 550px; background: radial-gradient(circle, rgba(192,38,211,0.12) 0%, rgba(192,38,211,0.03) 40%, transparent 70%); border-radius: 50%; animation: glow-float-2 10s ease-in-out infinite; }
.hero-glow-3 { position: absolute; bottom: -200px; left: 30%; width: 600px; height: 300px; background: radial-gradient(ellipse, rgba(139,92,246,0.06) 0%, transparent 70%); animation: glow-float-3 12s ease-in-out infinite; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%); }

.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px; border: 1px solid rgba(139,92,246,0.3); color: var(--accent-text); font-size: 11px; text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 36px; border-radius: 50px; background: rgba(139,92,246,0.05); animation: fade-up 0.8s ease-out both; }
.hero-kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s ease-in-out infinite; }
.hero h1 { font-family: 'Lora', serif; font-size: clamp(30px, 5.5vw, 52px); line-height: 1.05; font-weight: 700; color: var(--text-bright); margin-bottom: 24px; animation: fade-up 0.8s ease-out 0.1s both; overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
.hero h1 .hero-line2 { display: block; font-style: italic; font-weight: 400; background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(167,139,250,0.6)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.6); line-height: 1.6; max-width: 640px; margin-bottom: 20px; animation: fade-up 0.8s ease-out 0.2s both; }
.hero-pain { font-size: 13px; color: rgba(255,255,255,0.3); line-height: 1.7; max-width: 640px; margin-bottom: 40px; animation: fade-up 0.8s ease-out 0.25s both; }
.hero-context { font-size: 13px; color: rgba(167,139,250,0.7); max-width: 640px; margin-bottom: 32px; animation: fade-up 0.8s ease-out 0.27s both; }
.hero-cta-row { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; animation: fade-up 0.8s ease-out 0.3s both; flex-wrap: wrap; }
.hero-btn { padding: 14px 32px; background: var(--accent); color: #000; font-weight: 600; font-size: 15px; border: none; border-radius: 50px; cursor: pointer; text-decoration: none; font-family: 'Inter', sans-serif; transition: all 0.3s; display: inline-block; }
.hero-btn:hover { background: var(--text-bright); transform: scale(1.02); }
.hero-btn:active { transform: scale(0.98); }
.hero-btn-note { font-size: 12px; color: var(--text-faint); }
.hero-stats { display: flex; gap: 48px; animation: fade-up 0.8s ease-out 0.5s both; padding-top: 48px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-stat-line { width: 24px; height: 1px; background: rgba(139,92,246,0.3); margin-bottom: 8px; }
.hero-stat-num { font-family: 'Lora', serif; font-size: clamp(24px, 3.5vw, 32px); color: var(--accent-text); margin-bottom: 6px; font-weight: 600; }
.hero-stat-label { font-size: 10px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 2px; }

@keyframes glow-float-1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-20px) scale(1.05); } }
@keyframes glow-float-2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-20px,30px) scale(1.08); } }
@keyframes glow-float-3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,-15px); } }
@keyframes fade-up { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.8); } }

@media (max-width: 768px) {
    .hero { padding: 120px 20px 72px; }
    .hero-stats { gap: 32px; }
}

/* ═══════════════════════════════════════════════════════════════
 * COMPATIBILITY OVERRIDES — sync existing Tailwind-utility pages
 * (newsletter PL/EN, audyt PL) z visual values z /en/audit/.
 * Bez zmian markup — tylko visual values match.
 * ═══════════════════════════════════════════════════════════════ */

/* Section container max-width: 5xl (1024px) → 1100px */
section > .max-w-5xl {
    max-width: 1100px !important;
}

/* Section padding: py-24 (96px) zostaje (already match), .px-6 (24px) zostaje */

/* Kickers: text-violet-400 text-xs uppercase tracking-widest →
 * matching .section-kicker (font-size 11px, letter-spacing 2.5px) */
.text-violet-400.uppercase.tracking-widest {
    color: var(--accent-text) !important;
    font-size: 11px !important;
    letter-spacing: 2.5px !important;
}

/* Section H2: font-serif text-4xl md:text-5xl →
 * matching .section-title (clamp 28-44px max) */
section h2.font-serif {
    font-size: clamp(28px, 4.5vw, 44px) !important;
    line-height: 1.1 !important;
    color: var(--text-bright) !important;
}

/* Hero H1 — same cap as homepage, leave room dla bigger headlines */
.relative h1.font-serif {
    font-size: clamp(32px, 5.5vw, 52px) !important;
    line-height: 1.05 !important;
}

/* Cards: rounded-xl (12px) → 20px wider corners + softer borders */
.border.border-white\/10.rounded-xl {
    border-radius: 20px !important;
    border-color: var(--border-card) !important;
    background: var(--card-bg) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.border.border-white\/10.rounded-xl:hover {
    background: var(--card-hover) !important;
    border-color: rgba(139,92,246,0.15) !important;
    transform: translateY(-4px) !important;
}

/* Card "labels" (h3 inside cards) — Lora 17px violet, matching EN audit */
.border.rounded-xl h3.font-serif.text-xl {
    color: var(--accent-text) !important;
    font-size: 17px !important;
    font-weight: 400 !important;
}

/* Section subtitles match — color + line-height */
section p.text-white\/60.leading-relaxed {
    color: var(--text-muted) !important;
    line-height: 1.7 !important;
}
