/*
 * Kiliotsu
 * Root landing page for kiliotsu.eu
 */
:root {
    --bg: #090e17;
    --card: #131a29;
    --card-strong: #171f33;
    --text: #ffffff;
    --muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.09);
    --primary: #8b5cf6;
    --primary-strong: #7c3aed;
    --accent: #ec4899;
    --blue: #3b82f6;
    --glow: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    --max: 1080px;
}

* {
    box-sizing: border-box;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Saira", system-ui, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

#ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 0%, rgba(139, 92, 246, 0.22), transparent 35%),
        radial-gradient(circle at 95% 10%, rgba(236, 72, 153, 0.14), transparent 35%),
        radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.14), transparent 50%),
        var(--bg);
}

a {
    color: inherit;
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 76px;
    padding: 0 max(20px, calc((100% - var(--max)) / 2));
    background: rgba(9, 14, 23, 0.72);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--glow);
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

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

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.5);
}

.btn-glow {
    background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--glow) border-box;
    border: 2px solid transparent;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.18);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.36);
}

/* Hero */
.hero {
    padding: 90px 0 70px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3.2rem, 10vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    background: linear-gradient(120deg, #ffffff 30%, #c4b5fd 70%, #f9a8d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    max-width: 700px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 28px;
}

.section h2 {
    margin: 0 0 8px;
    font-size: 2rem;
}

.section-heading p,
.about-text p {
    color: var(--muted);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)), var(--card);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.project-card.featured {
    grid-column: span 2;
    border-color: rgba(139, 92, 246, 0.35);
    background: linear-gradient(140deg, rgba(139, 92, 246, 0.14), rgba(236, 72, 153, 0.06)), var(--card-strong);
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.project-badge,
.project-status {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-badge {
    color: var(--primary);
}

.project-status {
    padding: 4px 9px;
    color: #86efac;
    border: 1px solid rgba(134, 239, 172, 0.25);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.08);
}

.project-card h3 {
    margin: 0 0 10px;
    font-size: 1.45rem;
}

.project-card p {
    margin: 0 0 22px;
    color: var(--muted);
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

/* About */
.about {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

.about-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
}

.about-card h3 {
    margin-top: 0;
}

.about-card p {
    color: var(--muted);
}

.about-card .btn {
    margin: 4px 6px 0 0;
}

/* Ads */
.ad-section {
    display: none;
    padding: 30px 0 70px;
    text-align: center;
}

.ad-section.ad-active {
    display: block;
}

.ad-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ad-slot {
    display: none;
    min-height: 90px;
    margin: 0 auto;
    max-width: 970px;
}

.ad-slot.ad-active {
    display: block;
}

.ad-slot ins {
    display: block;
    width: 100%;
    min-height: 90px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    margin: 0 0 14px;
    color: var(--text);
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    margin: 0;
    font-size: 0.82rem;
}

/* Consent */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 16px;
    background: var(--card);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-reject {
    background: rgba(255, 255, 255, 0.05);
}

/* Privacy page */
.legal {
    padding: 70px 0;
}

.legal h1 {
    margin-top: 0;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
}

.legal h2 {
    margin-top: 34px;
    font-size: 1.35rem;
}

.legal p,
.legal li {
    color: var(--muted);
    line-height: 1.7;
}

.legal-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
}

.legal a {
    color: var(--primary);
}

/* 404 */
.error-page {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 60px 0;
    text-align: center;
}

.error-code {
    margin: 0;
    font-size: clamp(5rem, 18vw, 10rem);
    line-height: 1;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 800px) {
    .project-card.featured {
        grid-column: auto;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .nav-link {
        display: none;
    }

    .hero {
        padding-top: 70px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
    }

    .cookie-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .hero-actions .btn {
        width: 100%;
    }
}
