@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*,*::before,*::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --a-bg: #ffffff;
    --a-bg-alt: #f8fafc;
    --a-bg-dark: #0f172a;
    --a-text: #0f172a;
    --a-text-secondary: #64748b;
    --a-text-light: #94a3b8;
    --a-accent: #4f46e5;
    --a-accent-hover: #4338ca;
    --a-accent-light: rgba(79,70,229,.08);
    --a-border: #e2e8f0;
    --a-card-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --a-card-shadow-lg: 0 20px 60px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.04);
    --a-radius: 14px;
    --a-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.auth-body {
    font-family: var(--a-font);
    background: var(--a-bg);
    color: var(--a-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Navbar ─────────────────────────────────── */
.a-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; height: 64px;
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226,232,240,.6);
}
.a-nav-logo { font-size: 20px; font-weight: 900; color: var(--a-text); text-decoration: none; letter-spacing: -.5px; }
.a-nav-logo span { color: var(--a-accent); }
.a-nav-links { display: flex; gap: 8px; align-items: center; }
.a-nav-link {
    padding: 8px 20px; border-radius: 8px; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: all .15s;
}
.a-nav-link-ghost { color: var(--a-text-secondary); background: transparent; }
.a-nav-link-ghost:hover { color: var(--a-text); background: var(--a-bg-alt); }
.a-nav-link-primary { color: #fff; background: var(--a-accent); }
.a-nav-link-primary:hover { background: var(--a-accent-hover); }

/* ── Hero ───────────────────────────────────── */
.a-hero {
    position: relative; padding: 160px 40px 100px;
    text-align: center; overflow: hidden;
}
.a-hero-content {
    position: relative; z-index: 2;
    max-width: 800px; margin: 0 auto;
}
.a-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px; border-radius: 24px;
    background: var(--a-accent-light); color: var(--a-accent);
    font-size: 12px; font-weight: 700; margin-bottom: 24px;
    letter-spacing: .2px;
}
.a-hero-badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--a-accent); animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; } 50% { opacity: .4; }
}
.a-hero h1 {
    font-size: 56px; font-weight: 900; line-height: 1.05;
    letter-spacing: -2px; color: var(--a-text); margin-bottom: 20px;
}
.a-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--a-accent), #7c3aed);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.a-hero p {
    font-size: 18px; color: var(--a-text-secondary); line-height: 1.7;
    max-width: 540px; margin: 0 auto 36px;
}
.a-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.a-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 12px; font-size: 15px; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
    font-family: var(--a-font); transition: all .2s;
}
.a-btn-primary { background: var(--a-accent); color: #fff; box-shadow: 0 2px 8px rgba(79,70,229,.25); }
.a-btn-primary:hover { background: var(--a-accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,.35); }
.a-btn-outline { background: var(--a-bg); color: var(--a-text); border: 1.5px solid var(--a-border); }
.a-btn-outline:hover { border-color: var(--a-accent); color: var(--a-accent); background: var(--a-accent-light); }

/* ── Landing Visual Effects ─────────────────── */
.a-noise {
    position: fixed; inset: 0; z-index: 9999;
    pointer-events: none; opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.a-hero-mesh { position: absolute; inset: -200px; z-index: 0; pointer-events: none; overflow: visible; }
.a-mesh-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.a-mesh-orb-1 {
    width: 800px; height: 800px; top: -25%; left: -20%;
    background: radial-gradient(circle, rgba(79,70,229,.28) 0%, rgba(79,70,229,.06) 50%, transparent 70%);
    animation: meshDrift1 25s ease-in-out infinite;
}
.a-mesh-orb-2 {
    width: 600px; height: 600px; top: 5%; right: -15%;
    background: radial-gradient(circle, rgba(124,58,237,.22) 0%, rgba(124,58,237,.04) 50%, transparent 70%);
    animation: meshDrift2 30s ease-in-out infinite;
}
.a-mesh-orb-3 {
    width: 500px; height: 500px; bottom: -15%; left: 20%;
    background: radial-gradient(circle, rgba(6,182,212,.18) 0%, rgba(6,182,212,.03) 50%, transparent 70%);
    animation: meshDrift3 22s ease-in-out infinite;
}
.a-mesh-orb-4 {
    width: 350px; height: 350px; top: 25%; left: 55%;
    background: radial-gradient(circle, rgba(244,63,94,.12) 0%, transparent 60%);
    animation: meshDrift1 28s ease-in-out infinite reverse;
}
@keyframes meshDrift1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, -30px); }
    66% { transform: translate(-20px, 40px); }
}
@keyframes meshDrift2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-30px, 20px); }
    66% { transform: translate(20px, -40px); }
}
@keyframes meshDrift3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(25px, 25px); }
    66% { transform: translate(-35px, -15px); }
}
.a-hero-grid {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(79,70,229,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,70,229,.07) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}
.a-hero-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* Trusted bar */
.a-trusted { padding: 40px 40px 0; text-align: center; }
.a-trusted p { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--a-text-light); margin-bottom: 16px; }
.a-trusted-logos { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; opacity: .35; }
.a-trusted-item { font-size: 13px; font-weight: 800; letter-spacing: .5px; color: var(--a-text); }

/* ── Features ──────────────────────────────── */
.a-section { padding: 100px 40px; max-width: 1120px; margin: 0 auto; }
.a-section-alt {
    background: var(--a-bg-alt);
    background-image: radial-gradient(circle, rgba(79,70,229,.03) 1px, transparent 1px);
    background-size: 24px 24px;
}
.a-section-title {
    text-align: center; font-size: 36px; font-weight: 900;
    letter-spacing: -.8px; margin-bottom: 12px;
}
.a-section-sub { text-align: center; font-size: 16px; color: var(--a-text-secondary); margin-bottom: 56px; max-width: 500px; margin-left: auto; margin-right: auto; }
.a-features {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.a-feature {
    background: var(--a-bg); border: 1px solid var(--a-border); border-radius: var(--a-radius);
    padding: 32px; transition: all .25s;
}
.a-feature:hover { box-shadow: var(--a-card-shadow-lg); transform: translateY(-4px); border-color: transparent; }
.a-feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 18px;
}
.a-fi-indigo { background: rgba(79,70,229,.08); color: #4f46e5; }
.a-fi-emerald { background: rgba(16,185,129,.08); color: #059669; }
.a-fi-amber { background: rgba(245,158,11,.08); color: #d97706; }
.a-fi-rose { background: rgba(244,63,94,.08); color: #e11d48; }
.a-fi-cyan { background: rgba(6,182,212,.08); color: #0891b2; }
.a-fi-violet { background: rgba(139,92,246,.08); color: #7c3aed; }
.a-feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.2px; }
.a-feature p { font-size: 14px; color: var(--a-text-secondary); line-height: 1.6; }

/* ── Pricing ────────────────────────────────── */
.a-pricing {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    max-width: 1020px; margin: 0 auto; align-items: start;
}
.a-price-card {
    border: 1.5px solid var(--a-border); border-radius: 16px;
    padding: 36px; position: relative; background: var(--a-bg);
    transition: all .25s;
}
.a-price-card:hover { box-shadow: var(--a-card-shadow-lg); }
.a-price-card.featured {
    border-color: var(--a-accent); box-shadow: 0 0 0 1px var(--a-accent), 0 20px 60px rgba(79,70,229,.12);
    transform: scale(1.03);
}
.a-price-card.featured::before {
    content: 'Most Popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--a-accent), #7c3aed); color: #fff;
    font-size: 11px; font-weight: 700; padding: 4px 16px; border-radius: 12px;
    letter-spacing: .3px;
}
.a-price-header { margin-bottom: 24px; }
.a-price-name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--a-text-secondary); margin-bottom: 8px; }
.a-price-amount { font-size: 44px; font-weight: 900; letter-spacing: -1.5px; color: var(--a-text); line-height: 1; }
.a-price-amount span { font-size: 15px; font-weight: 500; color: var(--a-text-light); letter-spacing: 0; }
.a-price-desc { font-size: 13px; color: var(--a-text-secondary); margin-top: 8px; }
.a-price-divider { height: 1px; background: var(--a-border); margin: 0 0 20px; }
.a-price-list { list-style: none; margin: 0 0 28px; }
.a-price-list li {
    padding: 7px 0; font-size: 13px; color: var(--a-text-secondary);
    display: flex; align-items: center; gap: 10px; line-height: 1.4;
}
.a-price-check { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.a-price-check svg { width: 11px; height: 11px; }
.a-price-check-on { background: rgba(79,70,229,.1); color: var(--a-accent); }
.a-price-check-off { background: var(--a-bg-alt); color: var(--a-text-light); }
.a-price-list li.disabled { color: var(--a-text-light); }
.a-price-list li strong { color: var(--a-text); font-weight: 600; }

/* ── CTA Section ───────────────────────────── */
.a-cta {
    text-align: center; padding: 80px 40px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    background-size: 200% 200%; animation: ctaGrad 10s ease infinite;
    color: #fff; position: relative; overflow: hidden;
}
.a-cta::before {
    content: ''; position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(79,70,229,.25) 0%, transparent 70%);
    pointer-events: none; animation: meshDrift2 20s ease-in-out infinite;
}
.a-cta::after {
    content: ''; position: absolute; bottom: -200px; left: -100px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,.15) 0%, transparent 70%);
    pointer-events: none; animation: meshDrift3 18s ease-in-out infinite;
}
@keyframes ctaGrad {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.a-cta h2 { font-size: 32px; font-weight: 800; letter-spacing: -.6px; margin-bottom: 12px; position: relative; }
.a-cta p { font-size: 16px; color: #94a3b8; margin-bottom: 28px; position: relative; }
.a-cta .a-btn { position: relative; }

/* ── Footer ─────────────────────────────────── */
.a-footer {
    padding: 40px; text-align: center; font-size: 12px;
    color: var(--a-text-light); border-top: 1px solid var(--a-border);
}
.a-footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 12px; }
.a-footer-links a { color: var(--a-text-secondary); text-decoration: none; font-size: 13px; font-weight: 500; }
.a-footer-links a:hover { color: var(--a-accent); }

/* ── Auth Card (Login / Register / Verify) ─── */
.a-auth-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 32px 16px;
    background: var(--a-bg-alt);
    position: relative;
}
.a-auth-wrap::before {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(79,70,229,.05) 0%, transparent 70%);
    pointer-events: none;
}
.a-auth-card {
    width: 100%; max-width: 420px;
    background: var(--a-bg); border: 1px solid var(--a-border);
    border-radius: 18px; padding: 40px;
    box-shadow: var(--a-card-shadow-lg);
    position: relative;
}
.a-auth-logo {
    text-align: center; font-size: 22px; font-weight: 900;
    color: var(--a-text); margin-bottom: 4px; letter-spacing: -.5px;
}
.a-auth-logo span { color: var(--a-accent); }
.a-auth-sub { text-align: center; font-size: 13px; color: var(--a-text-secondary); margin-bottom: 28px; }

/* Tabs */
.a-tabs { display: flex; gap: 2px; background: var(--a-bg-alt); border-radius: 10px; padding: 3px; margin-bottom: 24px; }
.a-tab {
    flex: 1; padding: 10px 12px; text-align: center; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: var(--a-text-secondary);
    cursor: pointer; transition: all .15s; border: none; background: transparent;
    font-family: var(--a-font);
}
.a-tab.active { background: var(--a-bg); color: var(--a-text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.a-tab-panel { display: none; }
.a-tab-panel.active { display: block; }

/* Form */
.a-form-group { margin-bottom: 18px; }
.a-form-group label {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--a-text-secondary); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: .4px;
}
.a-input {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--a-border);
    border-radius: 10px; font-size: 14px; color: var(--a-text);
    background: var(--a-bg); font-family: var(--a-font);
    outline: none; transition: all .15s;
}
.a-input:focus { border-color: var(--a-accent); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.a-input-code {
    font-size: 26px; font-weight: 700; text-align: center;
    letter-spacing: 10px; padding: 14px;
}
.a-input-hint { font-size: 11px; color: var(--a-text-light); margin-top: 5px; }
.a-submit {
    width: 100%; padding: 13px; border: none; border-radius: 12px;
    background: var(--a-accent); color: #fff; font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: var(--a-font); transition: all .2s;
    box-shadow: 0 2px 8px rgba(79,70,229,.2);
}
.a-submit:hover { background: var(--a-accent-hover); box-shadow: 0 4px 16px rgba(79,70,229,.3); }
.a-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Alerts */
.a-alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 18px; }
.a-alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.a-alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.a-alert-info { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

/* Auth footer link */
.a-auth-footer { text-align: center; margin-top: 22px; font-size: 13px; color: var(--a-text-secondary); }
.a-auth-footer a { color: var(--a-accent); text-decoration: none; font-weight: 600; }
.a-auth-footer a:hover { text-decoration: underline; }

/* Info box (for verify pages) */
.a-info-box {
    background: rgba(79,70,229,.04); border-left: 3px solid var(--a-accent);
    padding: 12px 16px; border-radius: 0 10px 10px 0;
    margin-bottom: 22px; font-size: 13px; color: var(--a-text-secondary); line-height: 1.5;
}

/* ── Contact Form ──────────────────────────── */
.a-contact-form {
    max-width: 640px; margin: 0 auto;
}
.a-contact-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-bottom: 16px;
}
.a-contact-field { margin-bottom: 16px; }
.a-contact-row .a-contact-field { margin-bottom: 0; }
.a-contact-field label {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--a-text-secondary); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: .4px;
}
.a-contact-textarea {
    resize: vertical; min-height: 100px;
    line-height: 1.6;
}
.a-contact-bottom {
    display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap;
}
.a-contact-status {
    font-size: 13px; font-weight: 500;
    min-height: 20px; transition: opacity .2s;
}
.a-contact-status-success { color: #16a34a; }
.a-contact-status-error { color: #dc2626; }

/* ── Privacy Page ──────────────────────────── */
.a-privacy-wrap {
    padding: 120px 40px 80px;
    max-width: 780px; margin: 0 auto;
}
.a-privacy h1 {
    font-size: 36px; font-weight: 900; letter-spacing: -.8px;
    margin-bottom: 8px; color: var(--a-text);
}
.a-privacy-updated {
    font-size: 13px; color: var(--a-text-light);
    margin-bottom: 40px;
}
.a-privacy h2 {
    font-size: 20px; font-weight: 700; letter-spacing: -.3px;
    margin: 36px 0 12px; color: var(--a-text);
}
.a-privacy h3 {
    font-size: 15px; font-weight: 600;
    margin: 20px 0 8px; color: var(--a-text);
}
.a-privacy p {
    font-size: 14px; line-height: 1.7;
    color: var(--a-text-secondary); margin-bottom: 12px;
}
.a-privacy ul {
    margin: 0 0 16px 20px; padding: 0;
}
.a-privacy ul li {
    font-size: 14px; line-height: 1.7;
    color: var(--a-text-secondary); margin-bottom: 4px;
}
.a-privacy a {
    color: var(--a-accent); text-decoration: none; font-weight: 500;
}
.a-privacy a:hover { text-decoration: underline; }
.a-privacy strong { color: var(--a-text); }

/* ── Footer Contact ────────────────────────── */
.a-footer-contact {
    margin-bottom: 10px;
}
.a-footer-contact a {
    font-size: 13px; color: var(--a-text-secondary);
    text-decoration: none; font-weight: 500;
}
.a-footer-contact a:hover { color: var(--a-accent); }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 960px) {
    .a-pricing { grid-template-columns: 1fr; max-width: 400px; }
    .a-price-card.featured { transform: none; }
}

@media (max-width: 768px) {
    .a-nav { padding: 0 20px; }
    .a-hero { padding: 120px 24px 70px; }
    .a-hero-grid, .a-hero-canvas { display: none; }
    .a-mesh-orb { transform: scale(.5); opacity: .4; }
    .a-hero h1 { font-size: 36px; letter-spacing: -1px; }
    .a-hero p { font-size: 16px; }
    .a-features { grid-template-columns: 1fr; }
    .a-section { padding: 64px 24px; }
    .a-section-title { font-size: 28px; }
    .a-auth-card { padding: 28px 20px; }
    .a-cta { padding: 60px 24px; }
    .a-cta h2 { font-size: 26px; }
    .a-contact-row { grid-template-columns: 1fr; }
    .a-privacy-wrap { padding: 100px 24px 60px; }
    .a-privacy h1 { font-size: 28px; }
}

@media (max-width: 480px) {
    .a-hero h1 { font-size: 28px; }
    .a-hero-actions { flex-direction: column; align-items: center; }
    .a-btn { width: 100%; justify-content: center; }
    .a-nav-link { padding: 8px 12px; font-size: 12px; }
    .a-contact-bottom { flex-direction: column; align-items: stretch; }
    .a-contact-bottom .a-btn { width: 100%; justify-content: center; }
}
