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

:root {
    --color-primary: #003B7E;
    --color-primary-light: #0050a8;
    --color-secondary: #5A7FA5;
    --color-bg: #ffffff;
    --color-bg-alt: #F5F7FA;
    --color-text: #1a1a2e;
    --color-text-muted: #5a6170;
    --color-border: #E2E6EC;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container: 1140px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-header p {
    margin-top: 12px;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.938rem;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

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

.btn--outline:hover {
    border-color: var(--color-primary);
    background: rgba(0, 59, 126, 0.04);
}

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

.btn--white:hover {
    background: #f0f4f8;
}

.btn--small {
    padding: 7px 16px;
    font-size: 0.875rem;
}

.btn--large {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.2s;
}

.header--scrolled {
    box-shadow: var(--shadow-md);
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-text);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header__nav a:not(.btn) {
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.15s;
}

.header__nav a:not(.btn):hover {
    color: var(--color-primary);
}

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

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

/* ===== Hero ===== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(168deg, #f8fafd 0%, #edf2f8 100%);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(0, 59, 126, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero h1 {
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.hero__note {
    font-size: 0.813rem;
    color: var(--color-text-muted);
}

/* Hero visual — mock banner */
.hero__visual {
    display: flex;
    justify-content: center;
}

.hero__banner-mock {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 32px rgba(0, 59, 126, 0.1);
}

.mock__header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.938rem;
    margin-bottom: 12px;
}

.mock__text {
    font-size: 0.813rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.mock__toggles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.mock__toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.toggle {
    display: inline-block;
    width: 36px;
    height: 20px;
    background: var(--color-border);
    border-radius: 10px;
    position: relative;
}

.toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.15s;
}

.toggle--on {
    background: var(--color-primary);
}

.toggle--on::after {
    transform: translateX(16px);
}

.mock__buttons {
    display: flex;
    gap: 8px;
}

.mock__btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.mock__btn--outline {
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.mock__btn--primary {
    background: var(--color-primary);
    color: #fff;
}

/* ===== Trust ===== */
.trust {
    padding: 48px 0;
    border-bottom: 1px solid var(--color-border);
}

.trust__label {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.trust__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust__logo {
    font-size: 0.875rem;
    font-weight: 600;
    color: #b0b8c4;
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    white-space: nowrap;
}

/* ===== Features ===== */
.features {
    padding: 96px 0;
}

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

.feature-card {
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.feature-card:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 59, 126, 0.06);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.feature-card h3 {
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.938rem;
}

.feature-card__code {
    margin-top: 14px;
    background: #1a1a2e;
    color: #a8d4ff;
    padding: 10px 14px;
    border-radius: var(--radius);
    overflow-x: auto;
}

.feature-card__code code {
    font-size: 0.75rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    white-space: nowrap;
}

/* ===== How it works ===== */
.how-it-works {
    padding: 96px 0;
    background: var(--color-bg-alt);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 76px;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.step__number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 50%;
}

.step__content h3 {
    margin-bottom: 8px;
}

.step__content p {
    color: var(--color-text-muted);
    font-size: 0.938rem;
}

.step__content code {
    background: rgba(0, 59, 126, 0.08);
    padding: 1px 6px;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

/* ===== Pricing ===== */
.pricing {
    padding: 96px 0;
}

.pricing__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.pricing__toggle-label {
    font-size: 0.938rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.15s;
}

.pricing__toggle-label--active {
    color: var(--color-text);
    font-weight: 600;
}

.pricing__save {
    font-size: 0.75rem;
    background: rgba(0, 59, 126, 0.08);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.pricing__switch {
    width: 44px;
    height: 24px;
    background: var(--color-border);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.pricing__switch--active {
    background: var(--color-primary);
}

.pricing__switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: var(--shadow-sm);
}

.pricing__switch--active .pricing__switch-knob {
    transform: translateX(20px);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: border-color 0.15s;
}

.pricing-card:hover {
    border-color: var(--color-secondary);
}

.pricing-card--popular {
    border-color: var(--color-primary);
    border-width: 2px;
    box-shadow: 0 4px 16px rgba(0, 59, 126, 0.12);
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 10px;
}

.pricing-card__header {
    margin-bottom: 20px;
}

.pricing-card__header h3 {
    margin-bottom: 4px;
}

.pricing-card__desc {
    font-size: 0.813rem;
    color: var(--color-text-muted);
}

.pricing-card__price {
    margin-bottom: 4px;
}

.pricing-card__amount {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pricing-card__period {
    color: var(--color-text-muted);
    font-size: 0.938rem;
}

.pricing-card__yearly-note {
    font-size: 0.813rem;
    color: var(--color-secondary);
    margin-bottom: 16px;
    min-height: 20px;
}

.pricing-card .btn {
    margin: 16px 0 20px;
}

.pricing-card__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-card__features li {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    padding-left: 22px;
    position: relative;
}

.pricing-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7l3 3 5-5' stroke='%23003B7E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
}

/* ===== FAQ ===== */
.faq {
    padding: 96px 0;
    background: var(--color-bg-alt);
}

.faq__list {
    max-width: 700px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    gap: 16px;
}

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

.faq__chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq__item--open .faq__chevron {
    transform: rotate(180deg);
}

.faq__answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item--open .faq__answer {
    max-height: 300px;
}

.faq__answer p {
    padding-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 0.938rem;
    line-height: 1.7;
}

.faq__answer code {
    background: rgba(0, 59, 126, 0.08);
    padding: 1px 6px;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

/* ===== CTA ===== */
.cta {
    padding: 96px 0;
    background: var(--color-primary);
    color: #fff;
}

.cta__inner {
    text-align: center;
}

.cta h2 {
    color: #fff;
    margin-bottom: 12px;
}

.cta p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
    padding: 64px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer__brand p {
    margin-top: 12px;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    max-width: 280px;
}

.footer__col h4 {
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer__col a {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    transition: color 0.15s;
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
}

.footer__bottom p {
    font-size: 0.813rem;
    color: var(--color-text-muted);
}

.footer__bottom-links {
    display: flex;
    gap: 20px;
}

.footer__bottom-links a {
    font-size: 0.813rem;
    color: var(--color-text-muted);
}

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

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

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.625rem; }

    .header__nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 0;
        border-top: 1px solid var(--color-border);
        overflow-y: auto;
    }

    .header__nav--open {
        display: flex;
    }

    .header__nav a:not(.btn) {
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .header__nav .btn {
        margin-top: 12px;
    }

    .header__burger {
        display: flex;
    }

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

    .hero {
        padding: 100px 0 60px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__visual {
        order: -1;
    }

    .hero__banner-mock {
        max-width: 340px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

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

    .pricing__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .trust__logos {
        gap: 16px;
    }

    .trust__logo {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}
