:root {
    --primary: #714B67;
    --primary-dark: #5a3c52;
    --primary-light: #9a6b8c;
    --accent: #00C9A7;
    --accent-2: #FFB400;
    --text: #0f172a;
    --text-soft: #334155;
    --muted: #64748b;
    --bg: #fafaff;
    --card: #ffffff;
    --border: rgba(15, 23, 42, 0.08);
    --error: #dc2626;
    --grad-1: linear-gradient(135deg, #714B67 0%, #00C9A7 100%);
    --grad-2: linear-gradient(135deg, #00C9A7 0%, #FFB400 100%);
    --grad-3: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f59e0b 100%);
    --shadow-lg: 0 25px 50px -12px rgba(113, 75, 103, 0.18);
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* ── gradient orbs (decorative bg) ── */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: #714B67; top: -100px; left: -200px; }
.orb-2 { width: 600px; height: 600px; background: #00C9A7; top: 30%; right: -250px; animation-delay: -7s; }
.orb-3 { width: 400px; height: 400px; background: #FFB400; bottom: 0; left: 30%; animation-delay: -14s; opacity: 0.25; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ── header ── */
.site-header {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; }
.logo-mark {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: var(--grad-1);
    color: white;
    border-radius: 10px;
    font-size: 1.3rem;
    box-shadow: var(--shadow-sm);
}
.logo-text span { color: var(--muted); font-weight: 500; }
.site-header nav { display: flex; gap: 1.5rem; font-size: 0.92rem; }
.site-header nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.site-header nav a:hover { color: var(--primary); }

/* ── main layout ── */
main { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem 5rem; }

/* ── hero ── */
.hero {
    padding: 3rem 0 5rem;
    text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text-soft);
    font-weight: 500;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 201, 167, 0.25);
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(0, 201, 167, 0.25); }
    50% { box-shadow: 0 0 0 10px rgba(0, 201, 167, 0); }
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}
.hero h1 .grad {
    background: var(--grad-3);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shift 6s ease-in-out infinite;
}
@keyframes shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-tail { color: var(--text-soft); font-weight: 700; }

.hero-sub {
    font-size: 1.18rem;
    color: var(--text-soft);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ── form ── */
.demo-form {
    display: flex;
    gap: 0.5rem;
    max-width: 540px;
    margin: 0 auto 2rem;
    padding: 0.4rem;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.demo-form input[type="email"] {
    flex: 1;
    padding: 0.9rem 1rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
}
.demo-form input[type="email"]:focus { outline: none; }
.demo-form button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: var(--grad-1);
    color: white;
    border: 0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(113, 75, 103, 0.35);
}
.demo-form button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(113, 75, 103, 0.45);
}
.demo-form button:disabled { opacity: 0.6; cursor: wait; }
.btn-arrow { transition: transform 0.2s; }
.demo-form button:hover .btn-arrow { transform: translateX(3px); }

/* ── hero stats ── */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 540px;
    margin: 2rem auto 1.5rem;
}
.hero-stats > div {
    text-align: center;
    padding: 1rem 0.5rem;
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}
.hero-stats strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.hero-stats span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-fine { color: var(--muted); font-size: 0.85rem; max-width: 540px; margin: 0 auto; }
.hero-fine strong { color: var(--text-soft); }

/* ── status ── */
.status-card {
    max-width: 540px;
    margin: 2rem auto 3rem;
    padding: 2rem 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.spinner {
    width: 48px; height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#status-msg { font-size: 1.3rem; margin-bottom: 0.5rem; }
.muted { color: var(--muted); font-size: 0.95rem; }

.progress {
    height: 4px;
    background: rgba(113, 75, 103, 0.15);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 1.5rem;
}
.progress-bar {
    height: 100%;
    width: 30%;
    background: var(--grad-1);
    border-radius: 999px;
    animation: progress 2.5s ease-in-out infinite;
}
@keyframes progress {
    0% { transform: translateX(-100%); width: 30%; }
    50% { transform: translateX(50%); width: 60%; }
    100% { transform: translateX(280%); width: 30%; }
}

.success-emoji, .error-emoji {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    margin: 0 auto 1rem;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 800;
    color: white;
}
.success-emoji { background: var(--grad-2); }
.error-emoji  { background: var(--error); }

.big-link {
    display: inline-block;
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 201, 167, 0.08);
    border: 1px solid rgba(0, 201, 167, 0.3);
    border-radius: 10px;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    text-decoration: none;
    word-break: break-all;
    transition: all 0.15s;
}
.big-link:hover { background: rgba(0, 201, 167, 0.15); transform: scale(1.01); }

.creds {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.creds > div { text-align: left; }
.creds span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.25rem;
}
.creds code {
    font-family: 'JetBrains Mono', monospace;
    background: #f1f5f9;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
}

.ghost-btn {
    margin-top: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: white;
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    cursor: pointer;
}
.ghost-btn:hover { background: #f8fafc; }

/* ── features ── */
.features {
    margin: 5rem 0;
    text-align: center;
}
.features > h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.features-sub { color: var(--muted); margin-bottom: 3rem; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    text-align: left;
}
.feature-card {
    padding: 1.75rem 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(113, 75, 103, 0.2);
}
.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(113, 75, 103, 0.08), rgba(0, 201, 167, 0.08));
    border-radius: 12px;
}
.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.feature-card p { color: var(--muted); font-size: 0.9rem; }

.more-card {
    background: var(--grad-1);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.more-card strong { font-size: 2rem; font-weight: 800; margin-bottom: 0.25rem; }
.more-card span { font-size: 0.85rem; opacity: 0.9; }
.more-card:hover { border-color: transparent; box-shadow: 0 25px 50px -12px rgba(0, 201, 167, 0.35); }

/* ── how ── */
.how {
    margin: 5rem 0;
    text-align: center;
}
.how > h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}
.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    text-align: left;
}
.step {
    padding: 1.75rem 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
}
.step-num {
    position: absolute;
    top: -16px;
    left: 24px;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    background: var(--grad-1);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}
.step h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}
.step p { color: var(--muted); font-size: 0.92rem; }

/* ── privacy ── */
.privacy {
    margin: 5rem 0;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1px solid #fed7aa;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.08);
}
.privacy h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #9a3412;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
    flex-wrap: wrap;
}
.privacy .badge {
    background: #c2410c;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.privacy ul { padding-left: 1.25rem; color: #7c2d12; font-size: 0.95rem; }
.privacy li { margin-bottom: 0.5rem; }
.privacy li strong { color: #431407; }
.privacy code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(194, 65, 12, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}
.privacy .warn {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(194, 65, 12, 0.1);
    border-left: 3px solid #c2410c;
    border-radius: 6px;
    color: #7c2d12;
    font-size: 0.9rem;
}

/* ── footer ── */
footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 4rem;
    padding: 3rem 1.5rem 2rem;
}
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem 3rem;
}
.footer-inner > div:first-child strong {
    display: block;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.footer-inner p { color: #94a3b8; font-size: 0.9rem; }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-links a:hover { color: white; }

.footer-legal {
    grid-column: 1 / -1;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
}
.footer-legal p {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.6;
}

/* ── responsive ── */
@media (max-width: 640px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .demo-form { flex-direction: column; }
    .demo-form button { width: 100%; justify-content: center; }
    .footer-inner { grid-template-columns: 1fr; }
    .creds { flex-direction: column; gap: 0.75rem; }
}
