* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f5f5; color: #1a1a1a; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #111;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
}
.topbar__logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    text-transform: uppercase;
}
.topbar__nav {
    display: flex;
    gap: 28px;
    align-items: center;
}
.topbar__nav__link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}
.topbar__nav__link:hover { color: #fff; }
.topbar__phone {
    font-size: 20px;
    font-weight: 200;
    letter-spacing: 0.1em;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
}

.banner {
    width: 100%;
    height: 520px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg {
    width: 380px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.tg__header {
    background: #212d3b;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.tg__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.tg__info { flex: 1; }
.tg__name { font-size: 14px; font-weight: 600; color: #fff; }
.tg__status { font-size: 12px; color: #7db5d8; margin-top: 1px; }

.hero-heading {
    font-size: 70px;
    font-weight: 700;
    color: #0f3460;
    text-align: center;
    padding: 48px 32px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-char {
    display: inline-block;
    opacity: 0;
    animation-name: charReveal;
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

@keyframes charReveal {
    0%   { opacity: 0; transform: translateY(-14px); color: #4facfe; }
    50%  { color: #2260a8; }
    100% { opacity: 1; transform: translateY(0);    color: #0f3460; }
}

@keyframes charWave {
    0%, 100% { opacity: 1; color: #0f3460; }
    50%      { opacity: 1; color: #4facfe; }
}

.tg__body {
    background: #0e1621;
    position: relative;
    height: 420px;
}

.chat-slide {
    position: absolute;
    inset: 0;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.chat-slide--active {
    opacity: 1;
    pointer-events: auto;
}

.tg__msg {
    max-width: 78%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(8px);
}
.tg__msg--out {
    align-self: flex-end;
    background: #2b5278;
    color: #fff;
    border-bottom-right-radius: 4px;
    animation: msgIn 0.3s ease forwards 0.6s;
}
.tg__msg--in {
    align-self: flex-start;
    background: #212d3b;
    color: #e8e8e8;
    border-bottom-left-radius: 4px;
    animation: msgIn 0.3s ease forwards 2.2s;
}
.tg__msg__time {
    font-size: 11px;
    opacity: 0.55;
    text-align: right;
    margin-top: 4px;
}
.tg__msg--out .tg__msg__time { color: #a8c9e8; }
.tg__msg--in  .tg__msg__time { color: #7a8a99; }
.tg__msg__doc {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #4facfe;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.tg__msg__doc svg { flex-shrink: 0; }

.tg__typing {
    align-self: flex-start;
    background: #212d3b;
    border-radius: 14px 14px 14px 4px;
    padding: 10px 14px;
    display: flex;
    gap: 4px;
    align-items: center;
    opacity: 0;
    animation: msgIn 0.3s ease forwards 1.4s, typingOut 0.2s ease forwards 2.0s;
}
.tg__typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7a8a99;
    animation: dot 1.2s infinite;
}
.tg__typing span:nth-child(2) { animation-delay: 0.2s; }
.tg__typing span:nth-child(3) { animation-delay: 0.4s; }

/* ── Layout ── */
.section {
    padding: 96px 24px;
}
.section__inner {
    max-width: 1100px;
    margin: 0 auto;
}
.section__inner--narrow {
    max-width: 720px;
}
.section__title {
    font-size: 40px;
    font-weight: 700;
    color: #0f3460;
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -0.02em;
}

/* ── Hero ── */
.hero {
    background: #fff;
    text-align: center;
    padding: 0 24px 80px;
}
.hero-sub {
    font-size: 20px;
    color: #555;
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn--primary { background: #0f3460; color: #fff; }
.btn--ghost   { background: transparent; color: #0f3460; border: 2px solid #0f3460; }

/* ── Features ── */
.features { background: #f5f5f5; }
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}
.feature {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.feature__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #eef3fb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f3460;
    margin-bottom: 20px;
}
.feature__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #111; }
.feature__text  { font-size: 15px; color: #666; line-height: 1.6; }

/* ── How it works ── */
.how { background: #fff; }
.steps {
    display: flex;
    align-items: stretch;
    gap: 16px;
}
.step {
    flex: 1;
    text-align: center;
    padding: 32px 24px;
    background: #f5f5f5;
    border-radius: 16px;
}
.step__num {
    font-size: 48px;
    font-weight: 800;
    color: #dde7f7;
    line-height: 1;
    margin-bottom: 16px;
}
.step__title { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 10px; }
.step__text  { font-size: 15px; color: #666; line-height: 1.6; }
.step__arrow {
    display: flex;
    align-items: center;
    color: #bbb;
    flex-shrink: 0;
}

/* ── Testimonials ── */
.testimonials { background: #f5f5f5; }
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.testimonial {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.testimonial__text {
    font-size: 16px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f3460, #4facfe);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.testimonial__name { font-size: 14px; font-weight: 700; color: #111; }
.testimonial__role { font-size: 13px; color: #888; margin-top: 2px; }

/* ── Pricing ── */
.pricing { background: #fff; }
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    align-items: start;
}
.plan {
    border: 2px solid #e8e8e8;
    border-radius: 20px;
    padding: 36px 32px;
    position: relative;
}
.plan--featured {
    border-color: #0f3460;
    box-shadow: 0 8px 40px rgba(15,52,96,0.15);
}
.plan__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f3460;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}
.plan__name  { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 12px; }
.plan__price {
    font-size: 36px;
    font-weight: 800;
    color: #0f3460;
    margin-bottom: 28px;
    line-height: 1;
}
.plan__price span { font-size: 16px; font-weight: 500; color: #888; }
.plan__features {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.plan__features li {
    font-size: 15px;
    color: #444;
    padding-left: 20px;
    position: relative;
}
.plan__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4facfe;
    font-weight: 700;
}

/* ── FAQ ── */
.faq { background: #f5f5f5; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.faq__question {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq__question::after {
    content: '+';
    font-size: 22px;
    color: #0f3460;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.faq__item[open] .faq__question::after { transform: rotate(45deg); }
.faq__answer {
    padding: 0 24px 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

/* ── CTA ── */
.cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    text-align: center;
}
.cta__title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}
.cta__sub {
    font-size: 18px;
    color: #a8c9e8;
    margin-bottom: 40px;
}
.cta-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.cta-form__input {
    padding: 14px 20px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    width: 220px;
    outline: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.cta-form__input::placeholder { color: rgba(255,255,255,0.5); }
.cta-form__input:focus { border-color: #4facfe; background: rgba(255,255,255,0.15); }

.cta-alert {
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
}
.cta-alert--success { background: rgba(79,250,154,0.15); color: #4ffa9a; border: 1px solid rgba(79,250,154,0.3); }
.cta-alert--error   { background: rgba(255,80,80,0.15);  color: #ff8080; border: 1px solid rgba(255,80,80,0.3); }

/* ── Footer ── */
.footer {
    background: #111;
    padding: 24px;
}
.footer .section__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer__logo { font-size: 16px; font-weight: 700; letter-spacing: 0.12em; color: #fff; }
.footer__copy { font-size: 13px; color: #666; }

@keyframes msgIn {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes typingOut {
    to { opacity: 0; transform: translateY(4px); }
}
@keyframes dot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* ── Mobile: iPhone 15 (393px) and similar ── */
@media (max-width: 480px) {
    /* Topbar */
    .topbar { padding: 0 20px; }
    .topbar__nav { display: none; }

    /* Banner */
    .banner { height: auto; padding: 40px 16px; }
    .tg     { width: 100%; }

    /* Hero */
    .hero { padding: 0 20px 56px; }
    .hero-heading { font-size: 36px; padding: 32px 0 20px; letter-spacing: -0.01em; }
    .hero-sub     { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; text-align: center; }

    /* Sections */
    .section { padding: 56px 20px; }
    .section__title { font-size: 26px; margin-bottom: 36px; }

    /* Features */
    .features__grid { grid-template-columns: 1fr; gap: 16px; }

    /* How it works */
    .steps { flex-direction: column; gap: 0; }
    .step  { padding: 24px 20px; }
    .step__num { font-size: 36px; }
    .step__arrow {
        padding: 0;
        text-align: center;
        transform: rotate(90deg);
        margin: 8px auto;
    }

    /* Testimonials */
    .testimonials__grid { grid-template-columns: 1fr; gap: 16px; }

    /* Pricing */
    .pricing__grid { grid-template-columns: 1fr; gap: 20px; }
    .plan { padding: 28px 24px; }
    .plan__price { font-size: 28px; }

    /* FAQ */
    .faq__question { font-size: 15px; padding: 16px 20px; }
    .faq__answer   { padding: 0 20px 16px; }

    /* CTA */
    .cta__title { font-size: 24px; }
    .cta__sub   { font-size: 15px; }
    .cta-form { flex-direction: column; align-items: stretch; }
    .cta-form__input { width: 100%; }
    .cta-form .btn { width: 100%; text-align: center; }

    /* Footer */
    .footer .section__inner { flex-direction: column; gap: 8px; text-align: center; }
}
