@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
    --mono: 'Space Mono', monospace;
    --body: 'DM Sans', system-ui, sans-serif;
    --bg: #f5f6f8;
    --text: #1a1e2e;
    --text-mid: #5c6478;
    --accent: #7b5cf0;
    --accent-hover: #6344d9;
    --green: #34c88a;
    --blue: #3b82f6;
    --border: #d0d5e0;
    --card-bg: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: white; }

/* PIXEL GRID */
.pixel-grid {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0; opacity: 0.03;
    background-image:
        linear-gradient(var(--text) 1px, transparent 1px),
        linear-gradient(90deg, var(--text) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* LAYOUT */
.container {
    max-width: 740px; margin: 0 auto; padding: 0 24px;
    position: relative; z-index: 1;
}

/* NAV */
nav {
    padding: 24px 0; display: flex;
    justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--mono); font-size: 1.1rem; font-weight: 700;
    letter-spacing: 0.15em; text-decoration: none; color: var(--text);
    display: flex; align-items: center; gap: 8px;
}

.logo-pixel {
    width: 20px; height: 20px; background: var(--accent);
    image-rendering: pixelated; position: relative;
}

.logo-pixel::after {
    content: ''; position: absolute;
    width: 8px; height: 8px; background: var(--bg);
    bottom: 0; right: 0;
}

nav a.nav-link {
    font-size: 0.8rem; color: var(--text-mid);
    text-decoration: none; letter-spacing: 0.05em; transition: color 0.2s;
}
nav a.nav-link:hover { color: var(--accent); }

/* HERO */
.hero { padding: 80px 0 60px; }

.hero h1 {
    font-family: var(--mono);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    line-height: 1.4; font-weight: 700;
    margin-bottom: 32px; max-width: 600px;
}

.hero h1 .highlight { color: var(--accent); }

.hero-sub {
    font-size: 0.95rem; color: var(--text-mid);
    max-width: 520px; line-height: 1.8;
}

/* DIVIDER */
.divider { display: flex; align-items: center; gap: 6px; padding: 36px 0; }

.divider .dot { width: 4px; height: 4px; border-radius: 1px; background: var(--border); }
.divider .dot:nth-child(1) { background: var(--accent); opacity: 0.5; }
.divider .dot:nth-child(3) { background: var(--green); opacity: 0.5; }
.divider .dot:nth-child(5) { background: var(--blue); opacity: 0.5; }

/* SECTIONS */
section { padding: 20px 0; }

.section-label {
    font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}
.section-label::before { content: '>'; opacity: 0.5; }

h2 {
    font-family: var(--mono);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    line-height: 1.4; margin-bottom: 20px; font-weight: 700;
}

p { font-size: 0.88rem; margin-bottom: 16px; color: var(--text); line-height: 1.8; }
p.muted { color: var(--text-mid); }

/* PROCESS CARDS */
.process-grid {
    display: grid; grid-template-columns: 1fr; gap: 2px;
    margin: 32px 0; border: 1px solid var(--border); border-radius: 4px;
}

.process-card { padding: 24px; background: var(--card-bg); }

.process-card::before {
    content: attr(data-step); font-family: var(--mono);
    font-size: 0.65rem; color: var(--accent);
    letter-spacing: 0.1em; display: block; margin-bottom: 8px;
}

.process-card h3 { font-family: var(--mono); font-size: 0.95rem; margin-bottom: 8px; font-weight: 700; }
.process-card p { font-size: 0.82rem; color: var(--text-mid); margin-bottom: 0; }

/* CURSOR */
.cursor {
    display: inline-block; width: 8px; height: 1.1em;
    background: var(--accent); margin-left: 4px;
    animation: blink 1s step-end infinite; vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

/* CONTACT */
.contact-box {
    border: 1px solid var(--border); padding: 32px; margin: 32px 0;
    background: var(--card-bg); border-radius: 4px;
}
.contact-box p { margin-bottom: 16px; }

.contact-link {
    font-family: var(--mono); color: var(--accent);
    text-decoration: none; font-weight: 700; font-size: 0.95rem;
    border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: all 0.2s;
}
.contact-link:hover { color: var(--accent-hover); border-color: var(--accent-hover); padding-bottom: 4px; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 60px; }

.footer-content {
    display: flex; justify-content: space-between;
    align-items: flex-start; flex-wrap: wrap; gap: 24px;
}

.footer-left { font-size: 0.75rem; color: var(--text-mid); line-height: 1.8; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 0.75rem; color: var(--text-mid); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

.no-cookies {
    font-size: 0.72rem; color: var(--text-mid); margin-top: 20px;
    padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.08);
    font-style: italic; opacity: 0.7;
}

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(12px); animation: fadeUp 0.6s ease forwards; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* LEGAL PAGES */
.page-header {
    padding: 60px 0 40px;
}

.page-header h1 {
    font-family: var(--mono);
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header .subtitle {
    font-size: 0.8rem;
    color: var(--text-mid);
}

.legal-content {
    padding: 20px 0 60px;
}

.legal-content h2 {
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text);
}

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

.legal-content p {
    font-size: 0.84rem;
    color: var(--text-mid);
    margin-bottom: 12px;
    line-height: 1.8;
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    transition: opacity 0.2s;
}

.legal-content a:hover {
    opacity: 0.7;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s;
    margin-bottom: 8px;
}

.back-link:hover { color: var(--accent); }
.back-link::before { content: '<'; opacity: 0.5; }

/* RESPONSIVE */
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .hero { padding: 48px 0 40px; }
    .page-header { padding: 40px 0 24px; }
    .footer-content { flex-direction: column; }
}
