:root {
    --accent:        #4f46e5;
    --accent-hover:  #3730a3;
    --accent-light:  #eef2ff;
    --accent-mid:    #c7d2fe;
    --text:          #0f0f12;
    --muted:         #5a5a72;
    --faint:         #a0a0b8;
    --border:        #e4e4ef;
    --border-light:  #f0f0f8;
    --surface:       #fafafa;
    --white:         #ffffff;
    --shadow-soft:   0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-card:   0 2px 16px rgba(0,0,0,0.06);
    --gutter:        9%;
    --radius:        14px;
}

.title { font-family: "Roboto Slab", serif; }

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

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

body {
    background: var(--white);
    color: var(--text);
    font-family: "Nunito Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── HEADER ── */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 9%;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 20px rgba(15,15,18,0.05);
}
.logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text);
}
.logo-mark {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; transform: translateY(-3px); }
.logo-name { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 32px; }
.nav-link {
    padding: 8px 13px; font-size: .9rem; font-weight: 500;
    color: var(--muted); border-radius: 8px; text-decoration: none;
    transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--border-light); }
.nav-auth { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ── Lang switcher ── */
.lang-dropdown {
    position: relative;
}
.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    font-size: .82rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    cursor: pointer;
    transition: border-color .15s, background .15s;
    white-space: nowrap;
}
.lang-dropdown-btn ion-icon {
    font-size: .75rem;
    color: var(--faint);
    transition: transform .2s;
}
.lang-dropdown.open .lang-dropdown-btn ion-icon { transform: rotate(180deg); }
.lang-dropdown-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.lang-dropdown-name { font-size: .82rem; }

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 4px;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 130px;
    z-index: 200;
}
.lang-dropdown.open .lang-dropdown-menu { display: flex; }

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: none;
    background: none;
    font-size: .85rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text);
    cursor: pointer;
    border-radius: 7px;
    text-align: left;
    transition: background .13s;
    white-space: nowrap;
}
.lang-dropdown-item:hover { background: var(--surface); }
.lang-dropdown-item.active { font-weight: 700; color: var(--accent); background: var(--accent-light); }
.btn-primary {
    background: var(--accent); color: #fff;
    padding: 8px 20px; border-radius: 9px;
    font-size: .9rem; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
    transition: background .2s;
    display: inline-flex; align-items: center; gap: 5px;
}
.btn-primary:hover { background: var(--accent-hover); }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse at center, rgba(99,102,241,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent-light); color: var(--accent);
    font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 100px; margin-bottom: 28px;
    border: 1px solid var(--accent-mid);
}
.hero-eyebrow-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.4rem);
    font-weight: 400;
    line-height: 1.12;
    color: var(--text);
    max-width: 780px;
    margin-bottom: 22px;
    letter-spacing: -.02em;
}
.hero-title em {
    font-style: italic;
    color: var(--accent);
}
.hero-desc {
    font-size: 1.1rem; line-height: 1.75;
    color: var(--muted); max-width: 520px;
    margin-bottom: 44px;
    font-weight: 400;
}
.hero-form {
    width: 100%; max-width: 620px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    transition: border-color .25s, box-shadow .25s;
}
.hero-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(79,70,229,0.08), var(--shadow-card);
}
.hero-form textarea {
    resize: none; width: 100%;
    height: 110px; overflow: hidden;
    padding: 20px 22px;
    font-size: 1rem; font-weight: 400;
    color: var(--text); background: transparent;
    border: none; outline: none;
    font-family: inherit; line-height: 1.6;
    scrollbar-width: none;
}
.hero-form textarea::-webkit-scrollbar { display: none; }
.hero-form textarea::placeholder { color: var(--faint); }
.hero-form-footer {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 0 14px 12px;
}
.hero-form-hint { font-size: .8rem; color: var(--faint); }
.hero-btn {
    padding: 9px 22px; border-radius: 9px;
    font-size: .9rem; font-weight: 600;
}
.hero-note { font-size: .82rem; color: var(--faint); }


/* ── HOW IT WORKS ── */
.how {
    padding: 100px var(--gutter);
    background: var(--surface);
}
.section-head { margin-bottom: 56px; }
.section-label {
    font-size: .75rem; font-weight: 600; letter-spacing: .08em;
    color: var(--accent); margin-bottom: 12px;
}
.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 400; line-height: 1.2;
    color: var(--text); letter-spacing: -.02em;
    margin-bottom: 14px;
}
.section-desc {
    font-size: 1rem; color: var(--muted);
    max-width: 500px; line-height: 1.75;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
    padding: 28px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: var(--radius);
    display: flex; flex-direction: column; gap: 18px;
    box-shadow: var(--shadow-card);
    transition: box-shadow .25s ease;
}
.step-card:hover { box-shadow: var(--shadow-soft); }

.step-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-badge {
    font-size: .75rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    padding: 4px 11px; border-radius: 100px;
}
.step-badge--1 { background: #fff7ed; color: #c2410c; }
.step-badge--2 { background: #f5f3ff; color: #6d28d9; }
.step-badge--3 { background: #ecfdf5; color: #059669; }

.step-icon {
    width: 42px; height: 42px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-soft, #3f3f46); font-size: 1.15rem;
    flex-shrink: 0;
}
.step-title { font-size: 1rem; font-weight: 600; color: var(--text); }
.step-desc { font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* ── TESTIMONIALS ── */
.testimonials {
    padding: 100px var(--gutter);
    background: var(--white);
}
.testimonials-track-wrap {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.testimonials-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: testimonials-scroll 28s linear infinite;
}
.testimonials-track:hover { animation-play-state: paused; }
@keyframes testimonials-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 340px;
    flex-shrink: 0;
}
.testimonial-stars {
    color: #f59e0b;
    font-size: .95rem;
    letter-spacing: 2px;
}
.testimonial-text {
    font-size: .9rem;
    color: var(--text);
    line-height: 1.7;
    flex: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
    border-top: 1px solid var(--border-light);
}
.testimonial-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    letter-spacing: .02em;
}
.testimonial-name {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
}
.testimonial-role {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 1px;
}

/* ── PRICING ── */
.pricing {
    padding: 100px var(--gutter);
    background: var(--surface);
}
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    background: var(--white);
    display: flex; flex-direction: column; gap: 16px;
    position: relative;
    transition: box-shadow .25s, border-color .25s;
}
.plan:hover { box-shadow: var(--shadow-card); }
.plan-featured {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-soft);
    background: #fafafe;
}
.plan-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 12px; border-radius: 100px; white-space: nowrap;
}
.plan-name {
    font-size: .75rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted);
}
.plan-price {
    font-family: "Roboto Slab", serif;
    font-size: 2.8rem; font-weight: 400;
    color: var(--text); line-height: 1;
}
.plan-period { font-size: .9rem; color: var(--faint); }
.plan-desc { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.btn-plan {
    display: block; text-align: center;
    padding: 11px 20px; border-radius: 9px;
    font-size: .9rem; font-weight: 600;
    text-decoration: none;
}
.btn-outline {
    border: 1.5px solid var(--border); color: var(--text);
    transition: border-color .2s, color .2s, background .2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.plan-features {
    list-style: none;
    display: flex; flex-direction: column; gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.plan-features li {
    display: flex; align-items: center; gap: 9px;
    font-size: .88rem;
}
.plan-features li.yes { color: var(--text); }
.plan-features li.no { color: var(--text); }
.plan-features li ion-icon { font-size: 1rem; flex-shrink: 0; }
.plan-features li.yes ion-icon { color: #16a34a; }
.plan-features li.no ion-icon { color: #dc2626; }

/* ── FAQ ── */
.faq {
    padding: 100px var(--gutter);
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start;
    background: var(--white);
}
.faq-head { position: sticky; top: 80px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0; background: none; border: none; text-align: left;
    font-family: inherit; font-size: .98rem; font-weight: 600;
    color: var(--text); cursor: pointer; gap: 16px;
}
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.faq-icon { flex-shrink: 0; font-size: 1.1rem; color: var(--faint); transition: transform .3s, color .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }
.faq-a p { font-size: .92rem; color: var(--muted); line-height: 1.8; }

/* ── FINAL CTA ── */
.final-cta {
    width: auto;
    margin: 40px 24px 24px;
    background: var(--accent);
    border-radius: 20px;
    padding: 80px 60px;
    text-align: center;
    position: relative; overflow: hidden;
}
.final-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.final-cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400; color: #fff;
    margin-bottom: 12px; letter-spacing: -.02em;
}
.final-cta p { font-size: 1rem; color: rgba(255,255,255,0.75); margin-bottom: 32px; }
.btn-white {
    background: #fff; color: var(--accent);
    padding: 13px 30px; border-radius: 10px;
    font-size: .95rem; font-weight: 700;
    text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
    transition: background .2s;
}
.btn-white:hover { background: #f0f0ff; }

/* ── FOOTER ── */
.footer {
    width: auto;
    margin: 0 24px 24px;
    background: var(--text);
    border-radius: 18px;
    padding: 60px 72px;
    color: var(--white);
}
.footer-inner {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 60px; flex-wrap: wrap;
}
.footer-brand { max-width: 260px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand .logo-name { color: #fff; }
.footer-tagline { font-size: .9rem; color: rgba(255,255,255,0.55); line-height: 1.65; }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,0.35); margin-top: 4px; }
.footer-nav { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
    font-size: .72rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 4px;
}
.footer-col a {
    font-size: .9rem; color: rgba(255,255,255,0.7);
    text-decoration: none; transition: color .15s;
}
.footer-col a:hover { color: #fff; }

/* ── FADE IN ON SCROLL ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger delays for reveal animations */
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }

/* FAQ desc narrower width */
.faq-desc { max-width: 280px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .steps { grid-template-columns: 1fr; max-width: 480px; }
    .testimonial-card { width: 280px; }
    .testimonials-track { animation-duration: 20s; }
    .plans { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .faq { grid-template-columns: 1fr; gap: 40px; }
    .faq-head { position: static; }
}
/* ── Burger ── */

.nav-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
}
.nav-mobile-signup { font-size: .85rem; padding: 7px 14px; }

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none; border: none;
    cursor: pointer; padding: 4px;
    border-radius: 8px;
    transition: background .15s;
}
.nav-burger:hover { background: var(--border-light); }
.nav-burger span {
    display: block;
    height: 2px; width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: opacity .15s;
}

/* ── Mobile menu ── */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu-inner {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: var(--white);
    border-radius: 0 0 20px 20px;
    padding: 0 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(-100%);
    transition: transform .25s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.mobile-menu.open .mobile-menu-inner {
    transform: translateY(0);
}
.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.mobile-menu-close {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: none; border: none;
    cursor: pointer; color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.mobile-menu-close:hover { background: var(--border-light); color: var(--text); }
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
}
.mobile-menu-link {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 10px;
    transition: background .13s;
}
.mobile-menu-link:hover { background: var(--border-light); }
/* ── Floating lang FAB (mobile only) ── */
.lang-fab {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 150;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.lang-fab-btn {
    border-radius: 10px;
    padding: 9px 14px;
    gap: 8px;
    font-size: .9rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.lang-fab-chevron { font-size: .75rem !important; }
.lang-fab .lang-dropdown-menu {
    position: static;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: none;
}
.lang-fab.open .lang-dropdown-menu { display: flex; }
.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.mobile-menu-btn {
    display: block;
    text-align: center;
    padding: 13px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.mobile-menu-btn--primary {
    background: var(--accent);
    color: #fff;
}
.mobile-menu-btn--primary:hover { background: var(--accent-hover); }
.mobile-menu-btn--outline {
    border: 1.5px solid var(--border);
    color: var(--text);
}
.mobile-menu-btn--outline:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 768px) {
    :root { --gutter: 5%; }
    .header { padding: 0 var(--gutter); }
    .nav-links, .nav-auth { display: none; }
    #lang-dropdown-nav { display: none; }
    .lang-fab { display: flex; }
    .nav-mobile-actions { display: flex; }
    .nav-burger { display: flex; }
    .mobile-menu { display: block; }
    .hero { padding: 100px var(--gutter) 60px; }
    .how, .testimonials, .pricing, .faq { padding: 60px var(--gutter); }
    .final-cta { margin: 48px var(--gutter) var(--gutter); padding: 56px 24px; }
    .footer { margin: 0 var(--gutter) var(--gutter); padding: 40px 28px; border-radius: 14px; }
    .footer-nav { gap: 36px; }
}
