:root {
    --bg: #08090b;
    --bg-elev: #0e1013;
    --surface: #121418;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #eef0f3;
    --text-muted: #9aa0a8;
    --text-dim: #6b7078;
    --accent: #5eead4;
    --accent-2: #a78bfa;
    --accent-glow: rgba(94, 234, 212, 0.35);
    --radius: 14px;
    --radius-lg: 22px;
    --max-w: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Background layers */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.gradient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(94, 234, 212, 0.12), transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(167, 139, 250, 0.10), transparent 60%),
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(94, 234, 212, 0.06), transparent 70%);
}

body > *:not(.noise):not(.gradient-bg) { position: relative; z-index: 2; }

/* Layout */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(8, 9, 11, 0.72);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    background-image: url('res/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 10px rgba(94, 234, 212, 0.28)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    flex-shrink: 0;
    transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}
.logo:hover .logo-mark {
    transform: rotate(-6deg) scale(1.05);
    filter: drop-shadow(0 0 14px rgba(94, 234, 212, 0.45)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.footer-brand .logo-mark { width: 28px; height: 28px; }

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 14.5px;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.25s var(--ease);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px -10px rgba(238, 240, 243, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.22);
}

/* Hero */
.hero {
    padding: 120px 24px 100px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-weight: 500;
}
.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(38px, 6.2vw, 76px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
    max-width: 14ch;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(110deg, var(--accent) 20%, var(--accent-2) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-lead {
    font-size: clamp(17px, 1.3vw, 19px);
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding: 20px 36px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
}

.meta-item { text-align: left; }
.meta-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
}
.meta-label {
    font-size: 12.5px;
    color: var(--text-dim);
    margin-top: 2px;
}
.meta-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
}

/* Sections */
.section {
    padding: 120px 24px;
}

.section-head {
    max-width: 640px;
    margin-bottom: 64px;
}

.section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 16px 0 20px;
}

.section-lead {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 540px;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.card {
    padding: 32px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}
.card:hover::before { opacity: 1; }

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.15), rgba(167, 139, 250, 0.1));
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--accent);
    margin-bottom: 24px;
}
.card-icon svg { width: 20px; height: 20px; }

.card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

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

.about-body p {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-quote {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text) !important;
    font-size: 20px !important;
    font-weight: 500;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    margin-top: 32px !important;
}

/* Contact */
.contact { padding: 140px 24px; }

.contact-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 72px 48px;
    background: linear-gradient(180deg, rgba(94, 234, 212, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.contact-inner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow), transparent 50%);
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

.contact-inner .eyebrow { margin-bottom: 20px; }
.contact-inner h2 { margin-top: 0; }
.contact-inner .section-lead { margin: 0 auto 36px; }

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 100px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s var(--ease);
}
.contact-email:hover {
    border-color: var(--accent);
    box-shadow: 0 0 40px -10px var(--accent-glow);
    transform: translateY(-2px);
}
.contact-email .arrow {
    color: var(--accent);
    transition: transform 0.3s var(--ease);
}
.contact-email:hover .arrow { transform: translate(4px, -4px); }

/* Footer */
.site-footer {
    padding: 40px 24px 48px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    color: var(--text);
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-brand-name { line-height: 1.2; }

.footer-brand-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12.5px;
    color: var(--text-dim);
}

.flag-fi {
    width: 13px;
    height: 8px;
    border-radius: 1px;
    flex-shrink: 0;
    opacity: 0.9;
}

.footer-meta {
    display: flex;
    gap: 24px;
    color: var(--text-dim);
    font-size: 14px;
}
.footer-meta a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
.footer-meta a:hover { color: var(--text); }

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}
.social-link svg {
    width: 16px;
    height: 16px;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-cta { padding: 10px 18px; font-size: 14px; }
    .hero { padding: 80px 24px 60px; }
    .section { padding: 80px 24px; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-meta {
        flex-direction: column;
        gap: 16px;
        padding: 20px 28px;
    }
    .meta-divider { width: 40px; height: 1px; }
    .meta-item { text-align: center; }
    .contact-inner { padding: 48px 24px; }
}

@media (max-width: 480px) {
    .hero-title { letter-spacing: -0.03em; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
