/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── VARIABLES ─── */
:root {
    --bg:         #0a0a0f;
    --bg-2:       #0d0d18;
    --card:       rgba(255,255,255,0.03);
    --card-h:     rgba(255,255,255,0.055);
    --blue:       #3b82f6;
    --blue-lt:    #60a5fa;
    --blue-glow:  rgba(59,130,246,0.13);
    --blue-brd:   rgba(59,130,246,0.28);
    --text:       #f4f4f5;
    --text-2:     #a1a1aa;
    --text-3:     #52525b;
    --brd:        rgba(255,255,255,0.07);
    --brd-2:      rgba(255,255,255,0.13);
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* ─── LAYOUT ─── */
.wrap  { max-width: 1200px; margin: 0 auto; }
section { padding: 9rem 6%; }

/* ─── SECTION HEADERS ─── */
.s-label {
    display: inline-block; color: var(--blue);
    font-size: .75rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.s-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800; line-height: 1.08;
    letter-spacing: -.03em; margin-bottom: 1.25rem;
}
.s-sub {
    font-size: 1.05rem; color: var(--text-2);
    line-height: 1.72; max-width: 54ch;
}
.s-head { margin-bottom: 5rem; }

/* ─── PAGE HERO ─── */
.page-hero {
    padding: 12rem 6% 7rem;
    text-align: center;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 580px;
    background: radial-gradient(ellipse, rgba(59,130,246,.1) 0%, transparent 68%);
    pointer-events: none;
}
.page-hero .s-title { margin: 0 auto 1.25rem; max-width: 20ch; }
.page-hero .s-sub   { margin: 0 auto; }

/* ─── ANIMATIONS ─── */
.fade { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.fade.in { opacity: 1; transform: translateY(0); }
.fade.d1 { transition-delay: .08s; }
.fade.d2 { transition-delay: .16s; }
.fade.d3 { transition-delay: .24s; }
.fade.d4 { transition-delay: .32s; }
.fade.d5 { transition-delay: .40s; }
.fade.d6 { transition-delay: .48s; }

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .7rem 1.6rem; border-radius: 100px;
    font-size: .88rem; font-weight: 600; letter-spacing: .01em;
    text-decoration: none; border: none; cursor: pointer;
    transition: all .22s ease; white-space: nowrap; font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover {
    background: var(--blue-lt);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(59,130,246,.38);
}
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--brd-2); }
.btn-ghost:hover { border-color: var(--blue-brd); color: var(--blue-lt); }

/* ─── NAV ─── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 6%;
    transition: background .35s ease, border-color .35s ease;
}
nav.scrolled {
    background: rgba(10,10,15,.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--brd);
}
.nav-logo img { height: 32px; width: auto; display: block; background: none; }
.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }
.nav-links a {
    color: var(--text-2); text-decoration: none;
    font-size: .88rem; font-weight: 500; letter-spacing: .01em;
    transition: color .2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px; z-index: 201;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── FORMS ─── */
.fg { margin-bottom: 1.25rem; }
.fg label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-2); margin-bottom: .48rem; letter-spacing: .02em; }
.fg .opt { font-weight: 400; color: var(--text-3); }
.fg input,
.fg textarea,
.fg select {
    width: 100%; background: var(--card); border: 1px solid var(--brd);
    border-radius: 10px; padding: .88rem 1.1rem;
    color: var(--text); font-family: inherit; font-size: .95rem;
    outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none; appearance: none;
}
.fg input:focus,
.fg textarea:focus,
.fg select:focus {
    border-color: var(--blue);
    background: rgba(59,130,246,.05);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.fg input::placeholder,
.fg textarea::placeholder { color: var(--text-3); }
.fg textarea { min-height: 140px; resize: vertical; }
.fg select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352525b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
    background-size: 16px; padding-right: 2.6rem; cursor: pointer;
}
.fg select option { background: #1a1a2e; color: var(--text); }
.fmsg {
    display: none; padding: 1rem 1.25rem; border-radius: 10px;
    font-size: .9rem; font-weight: 500; margin-top: 1rem; text-align: center;
}
.fmsg.ok  { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.28); color: #86efac; }
.fmsg.err { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.28);  color: #fca5a5; }

/* ─── FOOTER ─── */
footer { padding: 2.8rem 6%; border-top: 1px solid var(--brd); }
.footer-in {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 2rem;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: .38rem; }
.footer-brand img { max-height: 32px; width: auto; height: auto; display: block; background: none; }
.tagline { font-size: .82rem; color: var(--text-3); }
.footer-nav { display: flex; gap: 2rem; list-style: none; }
.footer-nav a { font-size: .82rem; color: var(--text-3); text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--text-2); }
.copy { font-size: .78rem; color: var(--text-3); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    nav { padding: 1rem 5%; }
    .nav-links {
        display: none; position: fixed; inset: 0;
        background: rgba(10,10,15,.97);
        flex-direction: column; align-items: center; justify-content: center;
        gap: 2.5rem; z-index: 199;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.2rem; }
    .nav-toggle { display: flex; }
    section { padding: 5.5rem 5%; }
    .page-hero { padding: 9rem 5% 5rem; }
    .footer-in { flex-direction: column; align-items: flex-start; }
    .footer-nav { flex-wrap: wrap; gap: 1.2rem; }
}

/* privacy note in forms */
.privacy-note {
    margin-top: .9rem; text-align: center;
    font-size: .8rem; color: var(--text-3); line-height: 1.6;
}
.privacy-note a { color: var(--blue-lt); text-decoration: none; }
.privacy-note a:hover { text-decoration: underline; }

/* footer copyright link */
.copy a { color: var(--text-3); text-decoration: none; transition: color .2s; }
.copy a:hover { color: var(--text-2); }

/* ─── COOKIE BANNER ─── */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap;
    background: rgba(10,10,15,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--brd);
    padding: 1.1rem 6%;
}
#cookie-banner p { font-size: .875rem; color: var(--text-2); margin: 0; line-height: 1.55; }
#cookie-banner p a { color: var(--blue-lt); text-decoration: none; }
#cookie-banner p a:hover { text-decoration: underline; }
#cookie-banner .btn { padding: .6rem 1.4rem; font-size: .82rem; white-space: nowrap; flex-shrink: 0; border-radius: 8px; }
@media (max-width: 600px) {
    #cookie-banner { flex-direction: column; align-items: flex-start; padding: 1.2rem 5%; gap: 1rem; }
    #cookie-banner .btn { width: 100%; }
}
