:root {
    color-scheme: dark;
    --indigo: #4F46E5;
    --indigo-dark: #3730A3;
    --cyan: #06B6D4;
    --violet: #8B5CF6;
    --bg: #131318;
    --surface: rgba(28, 28, 36, 0.46);
    --surface-2: rgba(35, 35, 45, 0.55);
    --border: rgba(139, 130, 190, 0.28);
    --text: #f2f2f6;
    --text-dim: #9aa0a6;
    --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

a { color: inherit; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Nav ---- */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(19, 19, 24, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

nav.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1080px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.brand-logo {
    width: 34px;
    height: 34px;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-dim);
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
}

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 12px 24px 20px;
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 10px 0; }
}

/* ---- Hero ---- */
.hero {
    padding: 84px 24px 64px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 0%, rgba(79, 70, 229, 0.25), transparent 55%),
        radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.20), transparent 50%);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin: 0 0 16px;
    background: linear-gradient(90deg, var(--indigo), var(--violet) 55%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.15;
}

.hero p.lead {
    max-width: 640px;
    margin: 0 auto 32px;
    color: var(--text-dim);
    font-size: 1.1rem;
}

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

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(90deg, var(--indigo), var(--violet));
    color: white;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover { border-color: var(--cyan); }

/* ---- Sections ---- */
section { padding: 64px 0; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: 2rem; margin-bottom: 10px; }
.section-head p { color: var(--text-dim); margin: 0; }
.eyebrow {
    color: var(--cyan);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.78rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

/* ---- Feature grid ---- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
    border-color: var(--indigo);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 1.6rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79,70,229,0.25), rgba(6,182,212,0.20));
    margin-bottom: 14px;
}

.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* ---- Privacy highlight strip ---- */
.privacy-strip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.privacy-strip .icon { font-size: 2.4rem; }
.privacy-strip .content { flex: 1; min-width: 240px; }
.privacy-strip h3 { margin: 0 0 8px; }
.privacy-strip p { margin: 0; color: var(--text-dim); }

/* ---- Cards / legal pages ---- */
.page-hero {
    padding: 56px 24px 24px;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    margin-bottom: 10px;
    line-height: 1.18;
    background: linear-gradient(90deg, var(--indigo), var(--violet) 55%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.page-hero p { color: var(--text-dim); max-width: 680px; margin: 0 auto; }

/* ---- Home: animated QR visual ---- */
.qr-visual {
    width: 200px;
    height: 200px;
    margin: 30px auto 4px;
}

.qr-visual svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 26px rgba(139, 92, 246, 0.45));
}

.qr-mods rect { animation: qrPulse 3.2s ease-in-out infinite; }
.qr-mods .d1 { animation-delay: 0.35s; }
.qr-mods .d2 { animation-delay: 0.70s; }
.qr-mods .d3 { animation-delay: 1.05s; }
.qr-scan { animation: qrScan 3s ease-in-out infinite; }

@keyframes qrPulse { 0%, 100% { opacity: 0.20; } 50% { opacity: 1; } }
@keyframes qrScan  { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(106px); } }

/* ---- Home: key numbers ---- */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 14px;
    margin: 0 0 32px;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 14px;
    text-align: center;
}

.stat b {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--indigo), var(--violet) 55%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat span { color: var(--text-dim); font-size: 0.82rem; font-weight: 600; }

/* ---- Home: content cards ---- */
.info-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 30px 26px 34px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.info-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--indigo), var(--violet) 55%, var(--cyan));
}

.info-card:hover { border-color: var(--violet); transform: translateY(-2px); }
.info-card h2 { font-size: 1.12rem; margin: 0 0 10px; }
.info-card p { margin: 0; color: var(--text-dim); }
.info-card a { color: var(--cyan); }

.legal-card, .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 20px;
}

.legal-card h2 { font-size: 1.15rem; margin-top: 0; }
.legal-card p { color: var(--text-dim); margin-bottom: 0; }
.legal-card + .legal-card { margin-top: 16px; }

.updated-note {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 36px;
}

/* ---- FAQ / accordion ---- */
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text);
    padding: 18px 22px;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-question .chev {
    transition: transform 0.18s ease;
    color: var(--cyan);
    flex-shrink: 0;
}

.faq-item.open .faq-question .chev { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
    padding: 0 22px;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 22px 20px;
}

.faq-answer p { margin: 0; color: var(--text-dim); }

/* ---- Contact block ---- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    text-align: center;
}

.contact-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.contact-card a.value {
    display: inline-block;
    margin-top: 8px;
    color: var(--cyan);
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

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

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-dim); font-size: 0.85rem; }

/* ---- Futuristic animated background (CSS only, GPU-composited) ---- */
.bg-fx {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    contain: strict;
}

.bg-fx i {
    position: absolute;
    display: block;
}

/* Drifting nebula glows */
.bg-fx .glow {
    inset: -25%;
    background:
        radial-gradient(38% 38% at 18% 12%, rgba(79, 70, 229, 0.46), transparent 70%),
        radial-gradient(34% 34% at 82% 20%, rgba(6, 182, 212, 0.34), transparent 70%),
        radial-gradient(32% 32% at 55% 82%, rgba(139, 92, 246, 0.32), transparent 70%);
    animation: fxGlow 28s ease-in-out infinite alternate;
    will-change: transform;
}

/* Star / data field */
.bg-fx .dots {
    inset: -10%;
    background-image: radial-gradient(rgba(190, 200, 255, 0.20) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(72% 62% at 50% 38%, #000, transparent 88%);
    mask-image: radial-gradient(72% 62% at 50% 38%, #000, transparent 88%);
    animation: fxDots 34s linear infinite;
}

/* Perspective grid floor */
.bg-fx .grid {
    left: -60%;
    right: -60%;
    bottom: -32%;
    height: 125%;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.34) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.28) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(520px) rotateX(64deg);
    transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, #000 4%, transparent 62%);
    mask-image: linear-gradient(to top, #000 4%, transparent 62%);
    animation: fxGrid 14s linear infinite;
}

/* Slow scanner sweep */
.bg-fx .scan {
    left: 0;
    right: 0;
    top: 0;
    height: 42vh;
    background: linear-gradient(to bottom,
        transparent,
        rgba(6, 182, 212, 0.08) 45%,
        rgba(139, 92, 246, 0.11) 56%,
        transparent);
    animation: fxScan 11s linear infinite;
    will-change: transform;
}

@keyframes fxGlow {
    from { transform: translate3d(-2%, -1%, 0) scale(1); }
    to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

@keyframes fxGrid {
    to { background-position: 0 64px, 0 0; }
}

@keyframes fxDots {
    to { background-position: 44px 44px; }
}

@keyframes fxScan {
    from { transform: translate3d(0, -50vh, 0); }
    to   { transform: translate3d(0, 150vh, 0); }
}

/* Keep it light on phones and for reduced-motion users */
@media (max-width: 720px) {
    .bg-fx .scan { display: none; }
    .bg-fx .grid { animation-duration: 22s; }
    .bg-fx .dots { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bg-fx .glow, .bg-fx .grid, .bg-fx .dots { animation: none; }
    .bg-fx .scan { display: none; }
    .qr-mods rect { animation: none; opacity: 0.85; }
    .qr-scan { display: none; }
    html { scroll-behavior: auto; }
}

/* ---- Language switcher ---- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 14px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.lang-select:hover { border-color: var(--cyan); }
.lang-select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.lang-select option { background: #1c1c24; color: #f2f2f6; }

/* ---- Light theme override ---- */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #fbfbfe;
        --surface: rgba(255, 255, 255, 0.62);
        --surface-2: rgba(241, 241, 247, 0.70);
        --border: rgba(120, 110, 180, 0.25);
        --text: #1b1b21;
        --text-dim: #4f4f5a;
    }
    header.site-header { background: rgba(251, 251, 254, 0.62); }
    .bg-fx { opacity: 0.62; }
    .lang-select option { background: #ffffff; color: #1b1b21; }
}
