/* ══════════════════════════════════════════════════════════
   SLICE shared styles — used by all pages except the home hero.
   Page-specific section styles live inline in each page's <style>.
   ══════════════════════════════════════════════════════════ */

:root {
    --bg: #0A0E17;
    --bg2: #0F1420;
    --card: #131825;
    --card-hover: #181E2E;
    --green: #00D47E;
    --green-dim: rgba(0,212,126,0.12);
    --green-glow: rgba(0,212,126,0.25);
    --blue: #7DA5FF;
    --text: #F0F2F5;
    --text2: #8A92A6;
    --text3: #555D70;
    --border: rgba(255,255,255,0.06);
    --border2: rgba(255,255,255,0.1);
    --sans: 'DM Sans', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100vw; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; max-width: 100vw; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 clamp(1.5rem,4vw,4rem); height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(10,14,23,0.65); backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}
.logo { text-decoration: none; display: flex; align-items: center; }
.logo img { height: 28px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a { color: var(--text2); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; display: inline-flex; align-items: center; gap: 4px; }
.nav-links > li > a:hover { color: var(--text); }
.nav-links a.active { color: var(--green); }
.nav-caret { width: 8px; height: 8px; opacity: 0.7; transition: transform 0.2s; }
.has-dropdown:hover .nav-caret { transform: rotate(180deg); }
.dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
    min-width: 190px; padding: 8px; margin-top: 8px;
    background: var(--card); border: 1px solid var(--border2); border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    opacity: 0; visibility: hidden; transition: all 0.2s; list-style: none;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dropdown li a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; color: var(--text2); transition: all 0.15s; }
.dropdown li a:hover { background: var(--card-hover); color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-login { color: var(--text2); font-size: 0.85rem; transition: color 0.2s; }
.nav-login:hover { color: var(--text); }
.nav-cta {
    background: var(--green); color: var(--bg) !important;
    padding: 8px 18px; border-radius: 8px; font-weight: 600 !important; font-size: 0.85rem;
    transition: all 0.25s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--green-glow); }
.nav-mobile-only { display: none; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(3px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(3px, -4px); }

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 28px; border-radius: 10px;
    font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s; text-decoration: none; border: none;
}
.btn-g { background: var(--green); color: var(--bg); }
.btn-g:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--green-glow); }
.btn-o { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-o:hover { border-color: var(--text3); background: rgba(255,255,255,0.02); }

/* ── PAGE HERO (centered, no animation) ── */
.phero {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 140px clamp(1.5rem,4vw,4rem) 70px; text-align: center;
    position: relative; overflow: hidden;
}
.phero::before {
    content: ''; position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(0,212,126,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.phero-content { position: relative; z-index: 1; max-width: 760px; }
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; background: var(--green-dim);
    border: 1px solid rgba(0,212,126,0.18); border-radius: 100px;
    font-size: 0.75rem; color: var(--green); font-weight: 500;
    margin-bottom: 1.75rem; animation: fadeUp .6s ease .1s backwards;
}
.badge.badge-blue { background: rgba(125,165,255,0.1); border-color: rgba(125,165,255,0.22); color: var(--blue); }
.badge-dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; animation: pulse 2s infinite; }
.phero h1 {
    font-size: clamp(2.4rem,5.2vw,4rem); font-weight: 700;
    line-height: 1.06; letter-spacing: -0.03em;
    margin-bottom: 1.25rem; animation: fadeUp .6s ease .2s backwards;
}
.phero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--green), #4AE5A0);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.phero-sub {
    font-size: clamp(0.98rem,1.8vw,1.18rem); color: var(--text2);
    max-width: 560px; margin: 0 auto 2rem; line-height: 1.7;
    animation: fadeUp .6s ease .35s backwards;
}
.phero-sub strong { color: var(--text); font-weight: 600; }
.phero-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; flex-wrap: wrap; animation: fadeUp .6s ease .45s backwards;
}

/* ── SHARED SECTIONS ── */
section { padding: clamp(5rem,8vw,7rem) clamp(1.5rem,4vw,4rem); overflow-x: clip; }
.container { max-width: 1060px; margin: 0 auto; width: 100%; }
.label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 0.75rem; display: block; }
.title { font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 0.75rem; }
.subtitle { font-size: 1rem; color: var(--text2); max-width: 540px; line-height: 1.7; }
.center { text-align: center; }
.center .subtitle { margin-left: auto; margin-right: auto; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1); }
.reveal.vis { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

/* ── FAQ ── */
.faq-list { margin-top: 2.5rem; max-width: 760px; margin-left: auto; margin-right: auto; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--card); margin-bottom: 0.75rem; transition: border-color 0.3s; }
.faq-item[open] { border-color: rgba(0,212,126,0.2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.15rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.95rem; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--mono); font-size: 1.1rem; color: var(--text3); transition: transform 0.25s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--green); }
.faq-item .faq-a { padding: 0 1.4rem 1.25rem; font-size: 0.88rem; color: var(--text2); line-height: 1.7; }
.faq-item .faq-a a { color: var(--green); }

/* ── CTA ── */
.cta { background: var(--bg); text-align: center; position: relative; overflow: hidden; padding: clamp(5rem,10vw,7rem) clamp(1.5rem,4vw,4rem); }
.cta::before { content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%); width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,212,126,0.06), transparent 65%); pointer-events: none; }
.cta h2 { font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; position: relative; }
.cta p { font-size: 1rem; color: var(--text2); margin-bottom: 2rem; position: relative; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── FOOTER ── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 3rem clamp(1.5rem,4vw,4rem) 2.5rem; }
.footer-inner { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand img { height: 24px; width: auto; display: block; margin-bottom: 0.75rem; }
.footer-tag { font-size: 0.8rem; color: var(--text3); line-height: 1.6; max-width: 220px; }
.footer-col h4 { font-size: 0.72rem; font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--text3); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text2); font-size: 0.85rem; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-col .footer-soon { display: block; color: var(--text2); font-size: 0.85rem; padding: 4px 0; cursor: default; }
.footer-legal a { color: var(--text3); transition: color 0.2s; }
.footer-legal a:hover { color: var(--text); }
.footer-bottom { max-width: 1060px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: var(--text3); }

/* ── MODAL ── */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.25s; overflow-y: auto; padding: 24px 0; }
.modal-bg.on { opacity: 1; visibility: visible; }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 2.25rem; width: 90%; max-width: 400px; transform: scale(0.92) translateY(16px); transition: transform 0.3s; position: relative; margin: auto; max-height: 95vh; overflow-y: auto; }
.modal-bg.on .modal { transform: scale(1) translateY(0); }
.modal-x { position: absolute; top: 14px; right: 14px; background: none; border: none; color: var(--text3); font-size: 1.1rem; cursor: pointer; }
.modal h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.35rem; }
.modal .msub { font-size: 0.85rem; color: var(--text2); margin-bottom: 1.25rem; }
.fg { margin-bottom: 0.85rem; }
.fg label { display: block; font-size: 0.75rem; color: var(--text2); margin-bottom: 5px; font-weight: 500; }
.fg input, .fg select { width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: var(--sans); font-size: 0.87rem; outline: none; transition: border-color 0.2s; appearance: none; }
.fg input:focus, .fg select:focus { border-color: var(--green); }
.fg input::placeholder { color: var(--text3); }
.fg.err input, .fg.err select { border-color: #ef4444; }
.fg .err-msg { display: none; font-size: 0.7rem; color: #ef4444; margin-top: 4px; }
.fg.err .err-msg { display: block; }
.fg select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%236B7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.fg select option { background: var(--card); color: var(--text); }
.modal .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
.modal-ok { display: none; text-align: center; padding: 3rem 0; }
.modal-ok .ck-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--green-dim); display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; font-size: 1.3rem; }
.modal-ok h4 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.modal-ok p { color: var(--text2); font-size: 0.85rem; }

@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

/* ── RESPONSIVE (shared) ── */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: repeat(4, 1fr); }
    .footer-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .nav-right .nav-login { display: none; }
    .nav-mobile-only { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -300px; width: 300px; height: 100vh;
        background: var(--bg2); border-left: 1px solid var(--border);
        flex-direction: column; align-items: flex-start; padding: 80px 1.75rem 2rem; gap: 0;
        transition: right 0.3s; list-style: none; z-index: 101; overflow-y: auto;
    }
    .nav-links.open { right: 0; }
    .nav-links > li { width: 100%; }
    .nav-links > li > a { display: flex; padding: 0.85rem 0; font-size: 1rem; }
    .nav-mobile-only .nav-cta { display: inline-block; margin-top: 0.75rem; }
    .nav-caret { display: none; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: none; padding: 0 0 0.5rem 0.75rem; margin: 0; min-width: 0; }
    .dropdown li a { padding: 0.5rem 0; font-size: 0.9rem; }
    .hamburger { display: block; z-index: 102; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; }
    .footer-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .phero-actions, .cta-actions { flex-direction: column; width: 100%; }
    .phero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
    section { padding-left: 1rem; padding-right: 1rem; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE: touch targets + legibility (95% of traffic is phones)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* 44px minimum tap targets */
    .hamburger { padding: 11px; margin-right: -8px; }
    .nav-cta { padding: 12px 20px; }
    .nav-links > li > a { padding: 1rem 0; }
    .dropdown li a { padding: 0.75rem 0; }
    .faq-item summary { padding: 1.3rem 1.25rem; font-size: 1rem; }
    .faq-item .faq-a { font-size: 0.95rem; padding: 0 1.25rem 1.35rem; }
    .footer-col a, .footer-col .footer-soon { padding: 8px 0; font-size: 0.9rem; }
    /* body copy never below ~15px on a phone */
    .subtitle, .cta p { font-size: 1rem; }
}
