/* ========================================
   Cuvanto — Public Site Styles
   Dark, polished, professional.
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #09090e;
    --bg-secondary: #0f0f17;
    --bg-card: #141420;
    --bg-card-hover: #1a1a2a;
    --text-primary: #eaeaef;
    --text-secondary: #94949f;
    --text-muted: #5c5c6a;
    --accent: #4f7df5;
    --accent-hover: #6b93ff;
    --accent-subtle: #7c5bf5;
    --accent-glow: rgba(79, 125, 245, 0.12);
    --border: #1e1e2c;
    --border-hover: #2e2e40;
    --radius: 14px;
    --radius-sm: 8px;
    --max-width: 980px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* ---- Header ---- */

.site-header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: rgba(9, 9, 14, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.logo:hover {
    color: var(--text-primary);
}

.logo-mark {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

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

/* ---- Main ---- */

main {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 4rem;
    position: relative;
}

/* ---- Hero Glow ---- */

.hero-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(79, 125, 245, 0.08) 0%, rgba(124, 91, 245, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Hero ---- */

.hero {
    text-align: center;
    padding: 6rem 0 3rem;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1.125rem;
    border-radius: 100px;
    border: 1px solid rgba(79, 125, 245, 0.2);
    margin-bottom: 2.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    background: linear-gradient(180deg, #fff 40%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    letter-spacing: 0.005em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-subtle) 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(79, 125, 245, 0.2);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 24px rgba(79, 125, 245, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.02);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
}

/* ---- Feature Cards ---- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 2rem 0 3rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.25s ease;
    text-align: center;
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    margin-bottom: 1.25rem;
    line-height: 1;
    display: flex;
    justify-content: center;
}

.feature-icon svg {
    display: block;
}

.feature-card h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---- Capabilities Strip ---- */

.capabilities-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2.5rem 0;
    margin: 0.5rem 0 2.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.capability {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    padding: 0 3rem;
    text-align: center;
}

.cap-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.cap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    justify-content: center;
}

.cap-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.25rem 0.625rem;
    letter-spacing: 0.01em;
    transition: border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.cap-tag:hover {
    border-color: rgba(79, 125, 245, 0.35);
    color: var(--text-primary);
}

.cap-divider {
    width: 1px;
    height: 52px;
    background: var(--border);
    flex-shrink: 0;
}

/* ---- Waitlist / CTA ---- */

.waitlist-section {
    text-align: center;
    padding: 4rem 0 2rem;
    margin: 2rem 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.waitlist-section h2 {
    font-size: 1.625rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.waitlist-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ---- Footer ---- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.site-footer a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--text-secondary);
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    margin-bottom: 1rem;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ---- Legal Pages ---- */

.legal-page {
    max-width: 700px;
    margin: 0 auto;
    padding-top: 2rem;
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-page h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.legal-page h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-page p,
.legal-page ul,
.legal-page ol {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.75;
}

.legal-page ul,
.legal-page ol {
    padding-left: 1.5rem;
}

.legal-page li {
    margin-bottom: 0.375rem;
}

.legal-page strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ---- 404 ---- */

.error-page {
    text-align: center;
    padding: 8rem 0;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-subtle) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .capabilities-strip {
        flex-direction: column;
        gap: 1.75rem;
    }

    .capability {
        padding: 0;
    }

    .cap-divider {
        width: 40px;
        height: 1px;
    }
}

@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem 1.25rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    main {
        padding: 0 1.25rem 3rem;
    }

    .hero {
        padding: 4rem 0 2rem;
    }

    .hero-glow {
        width: 300px;
        height: 250px;
    }
}
