/* SmartSnap — Landing Page Styles */

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

:root {
    --grad:         linear-gradient(135deg, #667eea, #764ba2);
    --grad-dark:    linear-gradient(135deg, #5a67d8, #6b46c1);
    --purple:       #8b9cf4;
    --violet:       #a78bfa;
    --text:         #ede9fd;
    --text-muted:   #8b82a8;
    --surface:      #0d0b18;
    --surface-tint: #161130;
    --border:       #2a2050;
    --border-light: #1e1840;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.25s, box-shadow 0.25s;
}

.nav.scrolled {
    background: rgba(13, 11, 24, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 30px;
    height: 30px;
    background: var(--grad);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0 auto;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

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

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding-left: 8px;
}

.btn-ghost:hover { color: var(--text); }

.btn-nav {
    background: var(--grad);
    color: white;
    font-size: 13.5px;
    padding: 9px 18px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.35);
    text-decoration: none;
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(102, 126, 234, 0.45);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    background: linear-gradient(160deg, #0d0b18 0%, #161130 55%, #1c1540 100%);
    display: flex;
    align-items: center;
    padding: 108px 0 80px;
}

.hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(139, 156, 244, 0.12);
    border: 1px solid rgba(139, 156, 244, 0.28);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--purple);
    margin-bottom: 22px;
}

h1 {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 22px;
    color: var(--text);
}

.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 34px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.proof-dot {
    width: 3px;
    height: 3px;
    background: #c4b5fd;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Hero Visual / Mockup ── */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
}

.glow-orb {
    position: absolute;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.card-mockup {
    background: white;
    border-radius: 16px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 16px 48px rgba(90, 103, 216, 0.2),
        0 0 0 1px rgba(90, 103, 216, 0.1);
    width: 320px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.card-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-logo-text {
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.card-close {
    color: rgba(255, 255, 255, 0.55);
    font-size: 18px;
    line-height: 1;
}

.card-body { padding: 15px; }

.card-label {
    font-size: 9px;
    font-weight: 700;
    color: #764ba2;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 3px;
}

.card-answer {
    font-size: 28px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.card-expl {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 14px;
}

.card-actions {
    display: flex;
    gap: 7px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.card-btn {
    flex: 1;
    padding: 8px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    cursor: default;
}

.card-btn-p {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.card-btn-s {
    background: #f3f4f6;
    color: #374151;
}

.thinking-badge {
    position: absolute;
    bottom: 28px;
    left: 16px;
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: white;
    font-size: 12.5px;
    font-weight: 500;
    box-shadow: 0 6px 24px rgba(90, 103, 216, 0.45);
    z-index: 3;
    animation: float 5s ease-in-out infinite;
    animation-delay: -2.5s;
}

.thinking-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.deco-ring {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px dashed rgba(102, 126, 234, 0.25);
    animation: ring-spin 12s linear infinite;
}

@keyframes ring-spin { to { transform: rotate(360deg); } }

/* ── Section shared ── */
.section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--purple);
    margin-bottom: 12px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.12;
    margin-bottom: 14px;
    color: var(--text);
}

.section-sub {
    font-size: 16.5px;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 540px;
    margin: 0 auto;
}

/* ── Features ── */
.features {
    padding: 110px 0;
    background: var(--surface);
}

.features-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 28px;
    background: var(--surface-tint);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.18);
    border-color: rgba(102, 126, 234, 0.4);
}

.feature-icon {
    font-size: 26px;
    margin-bottom: 16px;
    display: block;
}

.feature-title {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── How it works ── */
.how {
    padding: 110px 0;
    background: var(--surface-tint);
}

.how-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
}

.how-header {
    text-align: center;
    margin-bottom: 64px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(100% / 6 + 28px);
    right: calc(100% / 6 + 28px);
    height: 1px;
    background: linear-gradient(90deg, rgba(102,126,234,0.4), rgba(118,75,162,0.4));
    pointer-events: none;
}

.step {
    text-align: center;
    padding: 0 32px;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto 22px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 18px rgba(102, 126, 234, 0.45);
}

.step-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

.step-desc kbd {
    display: inline-block;
    padding: 2px 6px;
    font-family: 'Consolas', 'Menlo', monospace;
    font-size: 11px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 1px 0 #0a0814;
}

/* ── CTA ── */
.cta-section {
    padding: 110px 0;
    background: var(--grad);
    text-align: center;
}

.cta-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 32px;
}

.cta-title {
    font-size: 46px;
    font-weight: 800;
    color: white;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.cta-sub {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin-bottom: 38px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 15px 32px;
    background: white;
    color: #6b46c1;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    transition: all 0.18s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

/* ── Footer ── */
footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    background: #0a0814;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Pricing ── */
.pricing {
    padding: 110px 0;
    background: var(--surface-tint);
}

.pricing-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
}

.plan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.plan-card-pro {
    background: linear-gradient(160deg, #130f2a 0%, #1a1240 100%);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.15), 0 16px 48px rgba(102, 126, 234, 0.12);
}

.plan-popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad);
    color: white;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.plan-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.plan-card-pro .plan-name { color: var(--purple); }

.plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--text);
    line-height: 1;
}

.plan-period {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 32px;
    flex: 1;
}

.plan-features li {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feat-check {
    color: var(--purple);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.feat-check-extra { color: #a78bfa; }

.plan-btn-free {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 100%;
    justify-content: center;
}

.plan-btn-free:hover {
    border-color: rgba(102, 126, 234, 0.4);
    color: var(--text);
}

.plan-btn-pro {
    background: var(--grad);
    color: white;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.plan-btn-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.plan-btn-pro:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Auth Modal ── */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-overlay[hidden] { display: none; }

.auth-modal {
    background: var(--surface-tint);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}

.auth-close:hover { color: var(--text); }

.auth-logo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.auth-brand {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

.auth-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.auth-field input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.15s;
    outline: none;
}

.auth-field input::placeholder { color: var(--text-muted); opacity: 0.6; }

.auth-field input:focus { border-color: rgba(102, 126, 234, 0.6); }

.auth-error {
    font-size: 13px;
    color: #f87171;
    min-height: 18px;
    padding: 0 2px;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 14.5px;
    margin-top: 2px;
    position: relative;
}

.auth-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 8px;
    display: inline-block;
}

.auth-spinner[hidden] { display: none; }

.auth-toggle-row {
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 18px;
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-toggle-row a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
}

.auth-toggle-row a:hover { text-decoration: underline; }

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-tint);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 22px;
    font-size: 14px;
    color: var(--text);
    z-index: 2000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    max-width: 480px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
    white-space: nowrap;
}

.toast.visible { opacity: 1; }
.toast.toast-success { border-color: rgba(102, 126, 234, 0.5); }
.toast.toast-error { border-color: rgba(248, 113, 113, 0.5); color: #fca5a5; }

/* ── Fade-up animation ── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 960px) {
    h1 { font-size: 42px; letter-spacing: -1.2px; }
    .section-title { font-size: 32px; }
    .cta-title { font-size: 34px; }

    .hero { padding: 100px 0 60px; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 52px;
        text-align: center;
    }
    .hero-sub { max-width: 100%; }
    .hero-ctas { justify-content: center; }
    .hero-proof { justify-content: center; }
    .hero-visual { display: none; }

    .features-grid { grid-template-columns: 1fr 1fr; }

    .steps { grid-template-columns: 1fr; gap: 40px; }
    .steps::before { display: none; }

    .nav-links { display: none; }

    .pricing-cards { grid-template-columns: 1fr; max-width: 440px; }
}

@media (max-width: 600px) {
    .nav-inner { padding: 0 20px; }
    .hero-inner { padding: 0 20px; }
    .features-inner { padding: 0 20px; }
    .how-inner { padding: 0 20px; }
    .footer-inner { padding: 0 20px; flex-direction: column; gap: 10px; text-align: center; }

    h1 { font-size: 34px; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; align-items: center; }
}
