/* ============================================
   In-Ventum — Style
   Minimalist, blue, system fonts, no tracking
   ============================================ */

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

:root {
    --primary: #1a56db;
    --primary-dark: #1e3a5f;
    --primary-light: #3b82f6;
    --accent: #60a5fa;
    --bg: #fafbfc;
    --bg-alt: #f0f4f8;
    --text: #1a1a2e;
    --text-light: #4a5568;
    --white: #ffffff;
    --shadow: 0 2px 16px rgba(26, 86, 219, 0.08);
    --shadow-hover: 0 8px 32px rgba(26, 86, 219, 0.14);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--primary-dark); }

.link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 251, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 86, 219, 0.06);
    transition: box-shadow var(--transition);
}

.header--scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__logo-img {
    height: 36px;
    width: auto;
}

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

.nav__list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav__link {
    color: var(--text-light);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition);
}

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

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

/* Language Toggle */
.lang-toggle {
    background: none;
    border: 1px solid rgba(26, 86, 219, 0.2);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    transition: all var(--transition);
    font-family: inherit;
}

.lang-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-toggle__active { color: var(--primary); }
.lang-toggle__sep { margin: 0 2px; opacity: 0.3; }
.lang-toggle__inactive { opacity: 0.5; }

/* Burger */
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Hero --- */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary-dark);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    font-family: inherit;
    text-align: center;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 86, 219, 0.25);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn--large {
    padding: 16px 40px;
    font-size: 1.0625rem;
}

/* --- Sections --- */
.section__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section__subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.0625rem;
    max-width: 520px;
    margin: 0 auto 48px;
}

/* --- Apps / Cards --- */
.apps {
    padding: 100px 0;
}

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

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px 32px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    text-align: center;
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card__icon {
    margin-bottom: 16px;
}

.card__icon-placeholder {
    font-size: 2.5rem;
    line-height: 1;
}

.card__badge {
    display: inline-block;
    background: #eef6ff;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.card__text {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.card__stores {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.store-badge { display: inline-block; }
.store-badge__svg { height: 36px; width: auto; }

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--bg-alt);
}

.services .cards {
    grid-template-columns: repeat(3, 1fr);
}

.services .card {
    text-align: left;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.service:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.service__icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.service__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.service__text {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* --- About --- */
.about {
    padding: 100px 0;
}

.about__content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.about__content p {
    color: var(--text-light);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about__content p:last-child {
    margin-bottom: 0;
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--bg-alt);
    text-align: center;
}

/* --- Footer --- */
.footer {
    padding: 32px 0;
    border-top: 1px solid rgba(26, 86, 219, 0.08);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copy {
    color: var(--text-light);
    font-size: 0.8125rem;
    margin-top: 4px;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    color: var(--text-light);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer__links a:hover { color: var(--primary); }

/* --- Animations (fade-in on scroll) --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav__list {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(250, 251, 252, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(26, 86, 219, 0.08);
    }

    .nav__list.active {
        display: flex;
    }

    .nav__burger { display: flex; }

    .nav__burger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav__burger.active span:nth-child(2) {
        opacity: 0;
    }
    .nav__burger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .cards,
    .services__grid,
    .services .cards {
        grid-template-columns: 1fr;
    }

    .hero { padding: 120px 0 80px; }

    .apps, .services, .about, .contact {
        padding: 72px 0;
    }

    .footer__inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__title { font-size: 1.75rem; }
    .container { padding: 0 16px; }
    .card { padding: 28px 20px 24px; }
}
