/* ==================== CSS VARIABLES ==================== */
:root {
    --primary:        #2563EB;
    --primary-dark:   #1D4ED8;
    --primary-light:  #EFF6FF;
    --green:          #059669;
    --green-light:    #ECFDF5;
    --green-border:   #A7F3D0;
    --red-light:      #FEF2F2;
    --red-border:     #FECACA;
    --red:            #DC2626;

    --text-primary:   #111827;
    --text-secondary: #6B7280;
    --text-muted:     #9CA3AF;

    --bg:             #FFFFFF;
    --bg-alt:         #F9FAFB;
    --border:         #E5E7EB;
    --border-dark:    #D1D5DB;

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg:  0 20px 48px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.05);
    --shadow-blue: 0 4px 14px rgba(37, 99, 235, 0.35);

    --radius-sm:  8px;
    --radius:     12px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ==================== TYPOGRAPHY ==================== */
h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

p {
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ==================== LAYOUT ==================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 680px;
}

.section {
    padding: 96px 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section__header {
    text-align: center;
    margin-bottom: 56px;
}

.section__header p {
    margin-top: 12px;
    font-size: 1.1rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

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

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-blue);
}

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

.btn--ghost:hover {
    background: var(--bg-alt);
    border-color: var(--border-dark);
}

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

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

/* ==================== BADGE ==================== */
.badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 99px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge--outline {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

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

.nav__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
    text-decoration: none;
}

.nav__logo-mark {
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    list-style: none;
}

.nav__links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}

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

.nav__cta {
    margin-left: 12px;
    flex-shrink: 0;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

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

/* ==================== HERO ==================== */
.hero {
    padding: calc(var(--nav-height) + 72px) 0 96px;
    overflow: hidden;
}

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

.hero__text .badge {
    margin-bottom: 20px;
}

.hero__text h1 {
    margin-bottom: 20px;
}

.hero__text > p {
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── App Mockup ── */
.app-mockup {
    background: #1C1C1E;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(900px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.35s ease;
    max-width: 380px;
    margin-left: auto;
}

.app-mockup:hover {
    transform: perspective(900px) rotateY(-2deg) rotateX(1deg);
}

.app-mockup__bar {
    background: #2C2C2E;
    padding: 12px 16px;
    display: flex;
    gap: 7px;
    align-items: center;
    border-bottom: 1px solid #3A3A3C;
}

.app-mockup__bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #3A3A3C;
}

.app-mockup__bar span:nth-child(1) { background: #FF5F57; }
.app-mockup__bar span:nth-child(2) { background: #FFBD2E; }
.app-mockup__bar span:nth-child(3) { background: #28C840; }

.app-mockup__body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-mockup__shop-name {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    padding-bottom: 4px;
}

.app-mockup__label {
    font-size: 0.68rem;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-mockup__input {
    background: #2C2C2E;
    border: 1px solid #3A3A3C;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    font-family: var(--font);
    letter-spacing: 0.02em;
}

.app-mockup__btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 13px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: default;
    font-family: var(--font);
    letter-spacing: 0.01em;
}

.app-mockup__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.app-mockup__stat {
    background: #2C2C2E;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-mockup__stat span {
    font-size: 0.7rem;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.app-mockup__stat strong {
    font-size: 0.85rem;
    color: #FFFFFF;
    font-weight: 600;
}

.app-mockup__stat strong.green {
    color: #30D158;
}

/* ==================== HOW IT WORKS ==================== */
.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 16px;
    align-items: flex-start;
}

.step {
    text-align: center;
}

.step__number {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-blue);
}

.step h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step__arrow {
    font-size: 1.6rem;
    color: var(--border-dark);
    align-self: center;
    padding-bottom: 36px;
    user-select: none;
}

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

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.feature-card__icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.feature-card__icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

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

/* ==================== PRICING ==================== */
.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg);
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    box-shadow: var(--shadow-lg);
}

.pricing-card__header {
    text-align: center;
    margin-bottom: 32px;
}

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

.pricing-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 4px 0 12px;
}

.pricing-card__amount {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.pricing-card__period {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pricing-card__header > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-card__features {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.check {
    color: var(--green);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ==================== CONTACT FORM ==================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-success {
    display: none;
    text-align: center;
    color: var(--green);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px;
    background: var(--green-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--green-border);
}

.form-error {
    display: none;
    text-align: center;
    color: var(--red);
    font-size: 0.9rem;
    padding: 14px;
    background: var(--red-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--red-border);
}

.form-error a {
    color: var(--red);
    text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--text-primary);
    color: #fff;
    padding: 48px 0 24px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer__brand p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    max-width: 280px;
}

.footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.footer__links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.15s ease;
}

.footer__links a:hover {
    color: #fff;
}

.footer__bottom {
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.pricing-card__fine-print {
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

/* ==================== RESPONSIVE — TABLET ==================== */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    /* Nav */
    .nav__links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
        box-shadow: var(--shadow-md);
    }

    .nav__links.is-open {
        display: flex;
    }

    .nav__links a {
        font-size: 1rem;
    }

    .nav__cta {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        padding: calc(var(--nav-height) + 40px) 0 64px;
    }

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

    .hero__text > p {
        max-width: 100%;
    }

    .app-mockup {
        transform: none;
        max-width: 360px;
        margin: 0 auto;
    }

    .app-mockup:hover {
        transform: none;
    }

    /* Steps */
    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .step__arrow {
        display: none;
    }

    /* Contact form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 28px 20px;
    }

    /* Pricing */
    .pricing-card {
        padding: 32px 24px;
    }

    /* Footer */
    .footer__content {
        flex-direction: column;
        gap: 24px;
    }
}

/* ==================== RESPONSIVE — MOBILE ==================== */
@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

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

    .section__header {
        margin-bottom: 40px;
    }
}
