*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
    --black:   #0a0a0a;
    --dark:    #141414;
    --mid:     #1e1e1e;
    --grey-bg: #f2f2f0;
    --white:   #ffffff;
    --accent:  #ff4c7c;
    --accent2: #ff8c55;
    --text:    #e8e8e4;
    --muted:   #888880;
    --border:  rgba(255,255,255,0.08);
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --nav-h: 80px;
    --max-w: 1180px;
}

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

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── SKIP LINK ──────────────────────────────────────────── */
.skip-link {
    position: absolute; top: -100%; left: 1rem;
    background: var(--accent); color: #fff;
    padding: .4rem .8rem; border-radius: 4px;
    font-size: .85rem; z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 2rem;
}

/* ── NAV ────────────────────────────────────────────────── */
#nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 900;
    transition: background .3s;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
}
.nav-logo {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--white);
    display: flex; align-items: center; gap: .5rem;
}
.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex; align-items: center; gap: 2rem;
    list-style: none;
}
.nav-links a {
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    letter-spacing: .04em;
    transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: .55rem 1.4rem;
    border-radius: 6px;
    font-weight: 600 !important;
    font-size: .85rem !important;
    transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: #e03065 !important; transform: translateY(-1px); }

/* Burger */
.nav-burger {
    display: none;
    flex-direction: column; justify-content: space-between;
    width: 26px; height: 18px;
    background: none; border: none; cursor: pointer; padding: 0;
}
.nav-burger span {
    display: block; height: 2px; width: 100%;
    background: var(--white); border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    z-index: 899;
    flex-direction: column; gap: 1.2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    font-size: 1.05rem; font-weight: 500;
    color: rgba(255,255,255,.8);
    padding: .4rem 0;
    border-bottom: 1px solid var(--border);
}
.nav-mobile a.nav-cta {
    text-align: center; margin-top: .5rem;
    border-bottom: none;
}

@media (max-width: 768px) {
    .nav-links  { display: none; }
    .nav-burger { display: flex; }
}

/* ── HERO ───────────────────────────────────────────────── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
    padding-top: var(--nav-h);
}
.hero-bg {
    position: absolute; inset: 0;
    background:
            linear-gradient(160deg, rgba(255,76,124,.12) 0%, transparent 50%),
            linear-gradient(to bottom, rgba(0,0,0,.75) 0%, rgba(0,0,0,.92) 100%),
            url('../img/krzysztof-kowalik-Ki.jpg') center/cover no-repeat;
    transform: scale(1.04);
    transition: transform 8s ease-out;
}
#hero.loaded .hero-bg { transform: scale(1); }

/* Grid overlay texture */
.hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
            linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative; z-index: 2;
    max-width: 820px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,76,124,.12);
    border: 1px solid rgba(255,76,124,.3);
    color: var(--accent);
    font-size: .78rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    padding: .35rem .9rem; border-radius: 100px;
    margin-bottom: 1.8rem;
    opacity: 0; animation: fadeUp .7s .2s forwards;
}
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 1.5rem;
    opacity: 0; animation: fadeUp .7s .35s forwards;
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 300;
    color: rgba(255,255,255,.65);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0; animation: fadeUp .7s .5s forwards;
}
.hero-actions {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
    opacity: 0; animation: fadeUp .7s .65s forwards;
}
.btn {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .75rem 1.8rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: .925rem; font-weight: 600;
    cursor: pointer; border: none;
    transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 24px rgba(255,76,124,.35);
}
.btn-primary:hover { background: #e03065; box-shadow: 0 6px 32px rgba(255,76,124,.45); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,.25);
}
.btn-outline:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }

.hero-scroll {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    z-index: 2; color: rgba(255,255,255,.35); font-size: .72rem; letter-spacing: .1em;
    text-transform: uppercase;
}
.hero-scroll-line {
    width: 1px; height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ── ABOUT ──────────────────────────────────────────────── */
#about {
    padding: 8rem 0;
}
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.section-tag {
    font-size: .72rem; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}
.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.section-body {
    color: rgba(255,255,255,.55);
    font-size: 1.025rem;
    line-height: 1.8;
}
.section-body + .section-body { margin-top: 1rem; }

.about-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
    margin-top: 3rem;
}
.stat-box {
    background: var(--mid);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}
.stat-num {
    font-family: var(--font-head);
    font-size: 2.2rem; font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: .3rem;
}
.stat-num span { color: var(--accent); }
.stat-label {
    font-size: .82rem; color: var(--muted);
    font-weight: 500;
}

.about-visual {
    position: relative;
}
.about-card-main {
    border-radius: 16px;
    overflow: hidden;
    background: var(--mid);
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex; align-items: center; justify-content: center;
}
.about-server-icon {
    width: 120px; height: 120px; opacity: .25;
}
.about-float {
    position: absolute;
    bottom: -1.5rem; right: -1.5rem;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    backdrop-filter: blur(12px);
}
.about-float-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,.6);
    flex-shrink: 0;
}
.about-float-text { font-size: .82rem; }
.about-float-text strong { display: block; color: var(--white); font-size: .9rem; }
.about-float-text span  { color: var(--muted); }

/* ── WHY US ─────────────────────────────────────────────── */
#why {
    padding: 7rem 0;
    background: var(--grey-bg);
}
#why .section-tag   { color: #c0392b; }
#why .section-title { color: var(--black); }
.why-head { text-align: center; max-width: 640px; margin: 0 auto 4rem; }
.why-head .section-body { color: rgba(0,0,0,.55); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.why-card {
    background: var(--white);
    border-radius: 14px;
    padding: 2rem 1.6rem;
    border: 1px solid rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
}
.why-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.why-icon {
    width: 52px; height: 52px;
    background: #fff0f4;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.3rem;
}
.why-icon svg { width: 26px; height: 26px; fill: var(--accent); }
.why-card h3 {
    font-family: var(--font-head);
    font-size: 1rem; font-weight: 700;
    color: var(--black);
    margin-bottom: .7rem;
}
.why-card p { font-size: .875rem; color: rgba(0,0,0,.55); line-height: 1.7; }

/* ── SERVICES ───────────────────────────────────────────── */
#services { padding: 8rem 0; }

.services-head { max-width: 560px; margin-bottom: 4rem; }

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--border);
}
.service-row:first-of-type { border-top: 1px solid var(--border); }

.service-img {
    aspect-ratio: 4/3;
    background: var(--mid);
    overflow: hidden;
    position: relative;
}
.service-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
}
.service-row:hover .service-img img { transform: scale(1.04); }

.service-text {
    padding: 3.5rem 3rem;
    display: flex; flex-direction: column; justify-content: center;
}
.service-num {
    font-family: var(--font-head);
    font-size: 4rem; font-weight: 800;
    color: rgba(255,255,255,.05);
    line-height: 1;
    margin-bottom: .5rem;
}
.service-text h3 {
    font-family: var(--font-head);
    font-size: 1.5rem; font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}
.service-text p { color: rgba(255,255,255,.5); font-size: .95rem; line-height: 1.75; }
/* Alternate layout */
.service-row.flip .service-img { order: 2; }
.service-row.flip .service-text { order: 1; }

/* ── PROMISE ────────────────────────────────────────────── */
#promise {
    padding: 7rem 0;
    background: var(--grey-bg);
}
#promise .section-title { color: var(--black); }
#promise .section-tag   { color: #c0392b; }

.promise-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: center;
}
.promise-check {
    display: flex; align-items: flex-start; gap: 1rem;
    margin-top: 2rem;
}
.promise-check-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: #fff0f4; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.promise-check-icon svg { width: 16px; height: 16px; fill: var(--accent); }
.promise-check p { color: rgba(0,0,0,.6); font-size: .95rem; line-height: 1.7; }

.promise-quote {
    background: var(--black);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.promise-quote::before {
    content: '"';
    position: absolute; top: -.5rem; left: 1.5rem;
    font-family: var(--font-head);
    font-size: 10rem; line-height: 1;
    color: rgba(255,76,124,.08);
}
.promise-quote p {
    position: relative; z-index: 1;
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255,255,255,.7);
    font-style: italic;
}
.promise-quote-sig {
    margin-top: 2rem; display: flex; align-items: center; gap: 1rem;
}
.promise-sig-dot {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 800; color: #fff; font-size: .9rem;
}
.promise-sig-text strong { display: block; color: var(--white); font-size: .9rem; }
.promise-sig-text span   { color: var(--muted); font-size: .8rem; }

/* ── CONTACT ────────────────────────────────────────────── */
#contacts { padding: 8rem 0; }

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.contact-info h2 {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800; color: var(--white);
    line-height: 1.2; margin-bottom: 1rem;
}
.contact-info p { color: rgba(255,255,255,.5); font-size: .975rem; line-height: 1.75; margin-bottom: 2rem; }
.contact-email {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: 1rem; font-weight: 600; color: var(--accent);
    border-bottom: 1px solid rgba(255,76,124,.3);
    padding-bottom: .2rem;
    transition: border-color .2s;
}
.contact-email:hover { border-color: var(--accent); }

/* Form */
.contact-form {
    background: var(--mid);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
}
.form-group { margin-bottom: 1.4rem; }
.form-group label {
    display: block; font-size: .8rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    color: rgba(255,255,255,.45); margin-bottom: .5rem;
}
.form-group input {
    width: 100%;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: .85rem 1rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: .95rem;
    outline: none;
    transition: border-color .2s, background .2s;
    -webkit-appearance: none;
}
.form-group input:focus {
    border-color: rgba(255,76,124,.5);
    background: rgba(255,255,255,.08);
}
.form-group input::placeholder { color: rgba(255,255,255,.2); }
.form-error {
    color: #ff6b6b; font-size: .82rem;
    margin-bottom: 1rem; padding: .6rem .9rem;
    background: rgba(255,107,107,.1); border-radius: 6px;
    border: 1px solid rgba(255,107,107,.2);
}
.form-success {
    color: #22c55e; font-size: .95rem;
    padding: 1rem; text-align: center;
    background: rgba(34,197,94,.08); border-radius: 8px;
    border: 1px solid rgba(34,197,94,.2);
}
.form-submit {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none; border-radius: 8px;
    padding: .9rem;
    font-family: var(--font-body);
    font-size: .95rem; font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
    letter-spacing: .02em;
}
.form-submit:hover { background: #e03065; transform: translateY(-1px); }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
    font-family: var(--font-head);
    font-size: .95rem; font-weight: 800;
    color: var(--white); letter-spacing: .04em;
}
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: .8rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .8rem; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--white); }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
    0%, 100% { opacity: .4; }
    50%       { opacity: 1; }
}

.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .why-grid           { grid-template-columns: 1fr 1fr; }
    .about-inner        { grid-template-columns: 1fr; }
    .about-visual       { display: none; }
    .service-row,
    .service-row.flip   { grid-template-columns: 1fr; }
    .service-row .service-img,
    .service-row.flip .service-img { order: 0; }
    .service-row .service-text,
    .service-row.flip .service-text { order: 1; }
    .promise-inner      { grid-template-columns: 1fr; }
    .contact-inner      { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .why-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 2.4rem; }
    .service-text { padding: 2rem 1.5rem; }
    .contact-form { padding: 1.8rem; }
    .footer-inner { flex-direction: column; text-align: center; }
}

/* ── Footer legal row ─────────────────────────────────────────── */
.footer-legal {
    display: flex;
    gap: 1.5rem;
}
.footer-legal a {
    font-size: .8rem;
    color: var(--muted);
    transition: color .2s;
}
.footer-legal a:hover { color: var(--white); }

/* ── Policy page layout ───────────────────────────────────────── */
.policy-page {
    padding: 10rem 0 7rem;        /* top clears the fixed nav */
    min-height: 80vh;
}

.policy-header {
    max-width: 720px;
    margin-bottom: 3.5rem;
}
.policy-header h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin: .5rem 0 .75rem;
}
.policy-meta {
    font-size: .85rem;
    color: var(--muted);
}

/* ── Policy body prose ────────────────────────────────────────── */
.policy-body {
    max-width: 720px;
    color: rgba(255,255,255,.6);
    font-size: .975rem;
    line-height: 1.85;
}
.policy-body h2 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin: 2.5rem 0 .75rem;
}
.policy-body h2:first-child { margin-top: 0; }

.policy-body p  { margin-bottom: 1rem; }
.policy-body ul {
    margin: .5rem 0 1rem 1.4rem;
    list-style: disc;
}
.policy-body ul li { margin-bottom: .35rem; }
.policy-body a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.policy-body a:hover { color: #ff7aa0; }
.policy-body strong { color: var(--white); font-weight: 600; }

/* Info notice box */
.policy-notice {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(255,76,124,.08);
    border: 1px solid rgba(255,76,124,.25);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: var(--white);
    font-size: .95rem;
    margin-bottom: 2rem;
}
.policy-notice svg { flex-shrink: 0; color: var(--accent); }

/* Back button row */
.policy-back {
    margin-top: 3.5rem;
}
