:root {
    --bg: #080c10;
    --surface: #0d1117;
    --border: #1e2d3d;
    --accent: #00d4ff;
    --accent2: #0088cc;
    --text: #e6edf3;
    --muted: #7d8590;
    --card: #111820;
    --error: #ff4444;
}
.light {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --border: #e1e7ef;
    --accent: #0077bb;
    --accent2: #005599;
    --text: #111827;
    --muted: #6b7280;
    --card: #f0f4f8;
    --error: #dc2626;
}
/* ── Custom scrollbars ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    transition: background 0.25s, color 0.25s;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

/* ── Nav ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    background: rgba(8,12,16,0.88);
    transition: background 0.25s;
}
.light nav { background: rgba(255,255,255,0.88); }
.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.25s;
}
.logo span { color: var(--text); transition: color 0.25s; }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* ── Shared buttons ── */
.btn-sm, .theme-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 14px;
    border-radius: 7px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.btn-sm:hover, .theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--surface);
}
.light .btn-sm, .light .theme-toggle {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.light .btn-sm:hover, .light .theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.fixed-toggle { position: fixed; top: 20px; right: 20px; z-index: 100; }

/* ── Icon-only button ── */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s;
    text-decoration: none;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.light .icon-btn {
    background: var(--surface);
    border-color: var(--border);
    color: var(--muted);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.light .icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.btn-nav {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 9px 22px;
    border-radius: 7px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-nav:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.light .btn-primary { color: #fff; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,119,187,0.25); }
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-full {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 8px;
    transition: all 0.2s;
}
.btn-full:hover { background: var(--accent2); transform: translateY(-1px); }

/* ── Landing ── */
.hero {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
}
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 100px; padding: 6px 16px;
    font-size: 0.75rem; color: var(--accent);
    margin-bottom: 32px; letter-spacing: 0.05em; text-transform: uppercase;
    animation: fadeUp 0.6s ease both;
}
.badge::before {
    content: ''; width: 6px; height: 6px;
    background: var(--accent); border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800; line-height: 1;
    letter-spacing: -0.03em; margin-bottom: 24px;
    animation: fadeUp 0.6s ease 0.1s both;
}
h1 .highlight { color: var(--accent); }
.subtitle {
    font-size: 1.1rem; color: var(--muted);
    max-width: 520px; line-height: 1.7; margin-bottom: 48px;
    animation: fadeUp 0.6s ease 0.2s both;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; animation: fadeUp 0.6s ease 0.3s both; }
.stats {
    position: relative; z-index: 1;
    display: flex; justify-content: center; gap: 60px;
    padding: 60px 40px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.features { position: relative; z-index: 1; padding: 100px 40px; max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; padding: 32px; transition: all 0.3s;
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 1.5rem; color: var(--accent); margin-bottom: 16px; }
.feature-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.cta { position: relative; z-index: 1; text-align: center; padding: 100px 40px; border-top: 1px solid var(--border); }
.cta h2 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
.cta p { color: var(--muted); margin-bottom: 40px; font-size: 1rem; }
footer { position: relative; z-index: 1; text-align: center; padding: 30px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; }

/* ── Auth ── */
.auth-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 48px 40px;
    width: 100%; max-width: 420px;
    animation: fadeUp 0.5s ease both;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.light .auth-card { box-shadow: 0 4px 24px rgba(0,0,0,0.07); }
.card-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; margin-top: 8px; }
.card-sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 28px; }
.field { margin-bottom: 16px; }
label { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
input[type=text], input[type=email], input[type=password] {
    width: 100%; background: var(--bg); border: 1px solid var(--border);
    color: var(--text); padding: 12px 14px; border-radius: 8px;
    font-family: var(--font-body); font-size: 0.9rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.light input[type=text], .light input[type=email], .light input[type=password] {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) inset;
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,119,187,0.12); }
.error-box {
    background: rgba(220,38,38,0.08); border: 1px solid var(--error);
    color: var(--error); padding: 10px 14px; border-radius: 8px;
    font-size: 0.82rem; margin-bottom: 16px;
}
.switch-link { text-align: center; margin-top: 24px; font-size: 0.82rem; color: var(--muted); }
.switch-link a { color: var(--accent); text-decoration: none; font-weight: 600; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ══════════════════════════════
   NAV LINKS & SCROLL
══════════════════════════════ */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 7px;
    transition: all 0.2s;
    cursor: pointer;
}
.nav-link:hover { color: var(--text); background: var(--card); }
.nav-scrolled {
    padding: 12px 40px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.light .nav-scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

/* ══════════════════════════════
   SCROLL REVEAL
══════════════════════════════ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0s);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════
   PRICING
══════════════════════════════ */
.pricing-section {
    position: relative; z-index: 1;
    padding: 100px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    padding: 10px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    line-height: 1;
}
.billing-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.save-badge {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}
.toggle-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border); border-radius: 24px;
    cursor: pointer; transition: background 0.2s;
}
.toggle-slider::before {
    content: ''; position: absolute;
    width: 18px; height: 18px; left: 3px; top: 3px;
    background: white; border-radius: 50%; transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 760px;
    margin: 0 auto;
    align-items: stretch;
}
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 28px 28px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}
.pricing-card.featured {
    border-color: var(--accent);
    background: var(--card);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(0,212,255,0.12);
}
.pricing-card.featured:hover {
    box-shadow: 0 0 0 1px var(--accent), 0 20px 48px rgba(0,212,255,0.2);
}
.pricing-popular {
    display: inline-flex;
    width: auto;
    align-self: flex-start;
    background: var(--accent);
    color: #000;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    font-family: var(--font-display);
    white-space: nowrap;
}
.pricing-tier {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 14px;
}
.price-amount {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
}
.price-period { font-size: 0.85rem; color: var(--muted); }
.pricing-desc { font-size: 0.84rem; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    flex: 1;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--text);
}
.pricing-features i { color: var(--accent); font-size: 0.75rem; flex-shrink: 0; }
.pricing-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 9px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.2s;
}
.pricing-btn:hover { border-color: var(--accent); color: var(--accent); }
.featured-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: #000 !important;
}
.featured-btn:hover { background: var(--accent2); border-color: var(--accent2); color: #fff !important; }

/* ══════════════════════════════
   FAQ
══════════════════════════════ */
.faq-section {
    position: relative; z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 40px;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 48px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover, .faq-item.open { border-color: var(--accent); }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    user-select: none;
    gap: 16px;
}
.faq-icon {
    color: var(--accent);
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
    padding: 0 24px;
}
.faq-item.open .faq-answer { padding-bottom: 20px; }

/* ══════════════════════════════
   HOW IT WORKS
══════════════════════════════ */
.howitworks {
    position: relative; z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 40px;
    text-align: center;
}
.hiw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 56px;
    position: relative;
}
.hiw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    position: relative;
}
.hiw-connector {
    position: absolute;
    top: 44px;
    right: -50%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--border));
    opacity: 0.4;
    z-index: 0;
}
.hiw-num {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    opacity: 0.7;
}
.hiw-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--card);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    position: relative; z-index: 1;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.hiw-step:hover .hiw-icon {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,212,255,0.15);
}
.hiw-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}
.hiw-desc {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 220px;
}

/* ══════════════════════════════
   SITE FOOTER
══════════════════════════════ */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 60px 60px 0;
}
.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
}
.footer-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: var(--accent);
}
.footer-logo span { color: var(--text); }
.footer-socials { display: flex; gap: 8px; }
.footer-social-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.footer-social-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}
.footer-col-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}
.footer-link {
    font-size: 0.86rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}
.footer-link:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 0.82rem;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-made i { margin: 0 3px; }

@media (max-width: 900px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-brand { align-items: flex-start; text-align: left; }
    .footer-col { align-items: flex-start; text-align: left; }
}
@media (max-width: 560px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
    .site-footer  { padding: 40px 24px 0; }
}

/* ── Nav User Menu ── */
.nav-user-menu { position: relative; }
.nav-user-btn {
    display: flex; align-items: center; gap: 8px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 20px; padding: 5px 12px 5px 6px;
    cursor: pointer; color: var(--text);
    font-family: var(--font-body); font-size: 0.86rem;
    transition: all 0.2s;
}
.nav-user-btn:hover { border-color: var(--accent); }
.nav-dropdown {
    display: none; position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; min-width: 180px; overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 999;
    animation: fadeUp 0.15s ease both;
}
.nav-dropdown.open { display: block; }
.nav-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; font-size: 0.86rem; color: var(--text);
    text-decoration: none; transition: background 0.15s;
}
.nav-dropdown-item:hover { background: var(--surface); }
.nav-dropdown-item i { width: 14px; color: var(--muted); }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
