/* ========================================
   Valtrics Landing Page — Styles
   ======================================== */

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

:root {
    --color-bg: #000000;
    --color-surface: #0a0a0a;
    --color-surface-raised: #111111;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.16);
    --color-text: #ededed;
    --color-text-secondary: #888888;
    --color-text-tertiary: #555555;
    --color-accent: #ffffff;
    --color-accent-light: #cccccc;
    --color-accent-glow: rgba(255, 255, 255, 0.06);
    --gradient-primary: linear-gradient(180deg, #ffffff 0%, #d4d4d4 100%);
    --gradient-bg: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.05), transparent);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navigation ---- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    border-color: var(--color-border-hover);
    background: var(--color-surface);
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 255, 255, 0.03), transparent 70%),
        radial-gradient(ellipse 40% 30% at 30% 10%, rgba(255, 255, 255, 0.02), transparent 60%),
        radial-gradient(ellipse 40% 30% at 70% 10%, rgba(255, 255, 255, 0.015), transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent-light);
    background: var(--color-accent-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
    letter-spacing: 0.01em;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    padding: 14px 32px;
    background: #ffffff;
    color: #000000;
    border-radius: 100px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: #e0e0e0;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 4px 16px rgba(255, 255, 255, 0.06);
}

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

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* ---- Sections ---- */

.section-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 48px;
    color: var(--color-text);
}

/* ---- Problem ---- */

.problem {
    padding: 120px 0;
    position: relative;
}

.problem .container {
    max-width: 720px;
    text-align: center;
}

.problem-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.problem-card p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.problem-card strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ---- Solution / Features ---- */

.solution {
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.solution::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 255, 255, 0.015), transparent);
    pointer-events: none;
}

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

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-glow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    color: var(--color-text);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: var(--color-text);
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

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

.cta {
    padding: 120px 0;
}

.cta-card {
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.cta-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 50% -10%, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-description {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.cta .btn {
    position: relative;
    z-index: 1;
}

.cta-email {
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    position: relative;
    z-index: 1;
}

.cta-email a {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-text-tertiary);
    transition: all 0.2s ease;
}

.cta-email a:hover {
    color: #fff;
}

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

.footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.footer-location {
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
    padding-left: 12px;
    border-left: 1px solid var(--color-border);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social a {
    color: var(--color-text-tertiary);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

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

.footer-copyright {
    width: 100%;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    margin-top: 16px;
}

/* ---- Animations ---- */

.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .problem,
    .solution,
    .cta {
        padding: 80px 0;
    }

    .problem-card {
        padding: 32px 24px;
    }

    .cta-card {
        padding: 56px 24px;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        gap: 8px;
    }

    .footer-location {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        margin-bottom: 24px;
    }

    .hero-description {
        margin-bottom: 32px;
    }

    .feature-card {
        padding: 32px 24px;
    }
}
