/* e-Lesson — platform homepage (marketing/home.php)
   Direction: between eduschool.uz (cool teal restraint) and my-school.uz
   (warmer green playfulness) — one confident teal-emerald accent, near-black
   headlines on a cool neutral ground, pill controls, rounded-2xl cards. */

:root {
    --ink: #0b1220;
    --ink-soft: #475569;
    --ink-faint: #5f6b7d;
    --paper: #f6f8f9;
    --paper-alt: #eef3f3;
    --surface: #ffffff;
    --line: rgba(11, 18, 32, 0.08);

    --accent: #0e9f8e;
    --accent-dark: #0a7166;
    --accent-ink: #ffffff;
    --accent-tint: #e3f6f3;

    --tile-blue-bg: #e8f0fe;
    --tile-blue-ic: #2563eb;
    --tile-amber-bg: #fef3e2;
    --tile-amber-ic: #b45309;
    --tile-rose-bg: #fde8ec;
    --tile-rose-ic: #be123c;
    --tile-violet-bg: #f0eafe;
    --tile-violet-ic: #6d28d9;
    --tile-slate-bg: #eef2f6;
    --tile-slate-ic: #475569;

    --footer-bg: #0a1018;
    --footer-text: #e2e8f0;
    --footer-muted: #8a97a8;

    --shadow-sm: 0 2px 8px -2px rgba(11, 18, 32, 0.08), 0 1px 3px rgba(11, 18, 32, 0.06);
    --shadow-md: 0 20px 40px -20px rgba(11, 18, 32, 0.22), 0 6px 16px -8px rgba(11, 18, 32, 0.1);
    --shadow-lg: 0 32px 64px -24px rgba(11, 18, 32, 0.28);

    --radius-card: 22px;
    --radius-pill: 999px;

    --font-display: 'Unbounded', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.14;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

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

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent-text {
    color: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 26px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: var(--surface);
    color: var(--ink);
    border: 1.5px solid var(--line);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.btn-accent {
    background: var(--accent-dark);
    color: var(--accent-ink);
    box-shadow: 0 16px 32px -14px rgba(14, 159, 142, 0.55);
}

.btn-accent:hover {
    background: #096a5f;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(246, 248, 249, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 19px;
    color: var(--ink);
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--ink);
    color: #fff;
    flex-shrink: 0;
}

.brand-mark i {
    width: 18px;
    height: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a {
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-soft);
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-burger {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    cursor: pointer;
}

.nav-burger i {
    width: 20px;
    height: 20px;
}

.mobile-sheet {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px 24px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.mobile-sheet.open {
    display: flex;
}

.mobile-sheet a {
    padding: 13px 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.mobile-sheet a:last-child {
    border-bottom: none;
}

.mobile-sheet .btn {
    margin-top: 10px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 76px 0 40px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -220px;
    right: -160px;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(14, 159, 142, 0.16), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: 1.02fr 1fr;
        gap: 40px;
    }
}

.hero-copy h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.4rem);
    font-weight: 800;
}

.hero-sub {
    margin-top: 22px;
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 50ch;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    font-size: 13.5px;
    color: var(--ink-faint);
}

.hero-trust i {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.hero-visual {
    position: relative;
}

.browser-frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: rotate(-1.4deg);
    border: 1px solid rgba(11, 18, 32, 0.07);
}

.browser-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f1f4f5;
    border-bottom: 1px solid var(--line);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d6dce0;
}

.browser-url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--ink-faint);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.browser-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border-radius: 16px;
    padding: 13px 18px;
    box-shadow: var(--shadow-md);
    font-size: 13.5px;
    font-weight: 700;
    border: 1px solid var(--line);
}

.float-chip .chip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--accent-tint);
    color: var(--accent-dark);
    flex-shrink: 0;
}

.float-chip .chip-icon i {
    width: 17px;
    height: 17px;
}

.float-chip .chip-sub {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ink-faint);
    margin-top: 1px;
}

.float-chip-revenue {
    left: -26px;
    bottom: -22px;
}

.float-chip-sms {
    right: -14px;
    top: 36px;
}

.hero-caption {
    margin-top: 44px;
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-faint);
}

@media (max-width: 720px) {
    .float-chip-sms {
        display: none;
    }
    .float-chip-revenue {
        left: 6px;
        bottom: -16px;
        padding: 10px 14px;
        font-size: 12px;
    }
    .browser-frame {
        transform: rotate(0deg);
    }
}

/* ---------- Pain strip ---------- */

.pain {
    padding: 56px 0;
}

.pain-card {
    background: var(--ink);
    border-radius: 28px;
    padding: 44px clamp(20px, 5vw, 56px);
    color: #fff;
}

.pain-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}

.pain-head h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.pain-head p {
    color: rgba(255, 255, 255, 0.56);
    font-size: 14.5px;
    max-width: 38ch;
}

.pain-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.pain-item {
    display: flex;
    gap: 14px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pain-item i {
    width: 20px;
    height: 20px;
    color: #fca5a5;
    flex-shrink: 0;
    margin-top: 2px;
}

.pain-item p {
    font-size: 14.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
}

.pain-resolve {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

.pain-resolve i {
    width: 18px;
    height: 18px;
}

/* ---------- Section scaffolding ---------- */

section {
    padding: 96px 0;
}

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

.section-head h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.section-head p {
    margin-top: 16px;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}

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

/* ---------- Feature grid ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-card);
    border: 1px solid var(--line);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.feature-icon i {
    width: 24px;
    height: 24px;
}

.icon-teal { background: var(--accent-tint); color: var(--accent-dark); }
.icon-blue { background: var(--tile-blue-bg); color: var(--tile-blue-ic); }
.icon-amber { background: var(--tile-amber-bg); color: var(--tile-amber-ic); }
.icon-rose { background: var(--tile-rose-bg); color: var(--tile-rose-ic); }
.icon-violet { background: var(--tile-violet-bg); color: var(--tile-violet-ic); }
.icon-slate { background: var(--tile-slate-bg); color: var(--tile-slate-ic); }

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 9px;
}

.feature-card p {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* ---------- Showcase rows ---------- */

.showcase-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    padding: 48px 0;
}

.showcase-row + .showcase-row {
    border-top: 1px solid var(--line);
}

@media (min-width: 960px) {
    .showcase-row {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 64px;
    }
    .showcase-row.reverse {
        grid-template-columns: 0.9fr 1.1fr;
    }
    .showcase-row.reverse .showcase-media {
        order: 2;
    }
    .showcase-row.reverse .showcase-copy {
        order: 1;
    }
}

.showcase-media {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    background: var(--surface);
}

.showcase-media img {
    width: 100%;
    height: auto;
}

.showcase-copy h3 {
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    margin-bottom: 14px;
}

.showcase-copy > p {
    font-size: 15.5px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 48ch;
}

.showcase-points {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.showcase-points li {
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 14.5px;
    color: var(--ink);
    font-weight: 500;
}

.showcase-points i {
    width: 19px;
    height: 19px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---------- White-label section ---------- */

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

@media (min-width: 960px) {
    .whitelabel {
        grid-template-columns: 1fr 1fr;
    }
}

.whitelabel-copy h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin-bottom: 18px;
}

.whitelabel-copy p {
    font-size: 15.5px;
    color: var(--ink-soft);
    line-height: 1.65;
    max-width: 50ch;
}

.domain-card {
    background: var(--surface);
    border-radius: var(--radius-card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 10px;
}

.domain-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--paper-alt);
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.domain-bar i {
    width: 16px;
    height: 16px;
    color: var(--ink-faint);
}

.domain-bar .slug {
    color: var(--accent-dark);
}

.swatch-row {
    display: flex;
    gap: 10px;
    padding: 20px 18px 8px;
}

.swatch {
    flex: 1;
    height: 56px;
    border-radius: 12px;
}

.swatch-label {
    padding: 10px 18px 18px;
    font-size: 13px;
    color: var(--ink-faint);
    font-weight: 600;
}

/* ---------- FAQ ---------- */

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}

.faq-q i {
    width: 19px;
    height: 19px;
    color: var(--ink-faint);
    flex-shrink: 0;
    transition: transform 0.22s ease;
}

.faq-item.open .faq-q i {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-a {
    grid-template-rows: 1fr;
}

.faq-a-clip {
    overflow: hidden;
    min-height: 0;
}

.faq-a-inner {
    margin: 0;
    padding: 0 24px 22px 56px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ---------- Lead section ---------- */

.lead-section {
    padding: 100px 0 110px;
}

.lead-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    background: var(--ink);
    border-radius: 32px;
    padding: clamp(28px, 5vw, 56px);
    position: relative;
    overflow: hidden;
}

@media (min-width: 960px) {
    .lead-grid {
        grid-template-columns: 1fr 0.86fr;
        align-items: center;
    }
}

.lead-copy h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin-bottom: 16px;
}

.lead-copy p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15.5px;
    line-height: 1.6;
    max-width: 44ch;
}

.lead-reassure {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.lead-reassure li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 14.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.lead-reassure i {
    width: 19px;
    height: 19px;
    color: var(--accent);
    flex-shrink: 0;
}

.lead-card {
    background: var(--surface);
    border-radius: 22px;
    padding: clamp(22px, 4vw, 34px);
    box-shadow: var(--shadow-lg);
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
    margin-bottom: 7px;
}

.field input,
.field textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 13px 15px;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
    background: #fff;
}

.field textarea {
    resize: vertical;
    min-height: 76px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-error {
    display: none;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 14px;
}

.form-error.visible {
    display: block;
}

.lead-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 20px 6px 8px;
}

.lead-success.visible {
    display: flex;
}

.lead-success .success-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--accent-tint);
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lead-success .success-icon i {
    width: 28px;
    height: 28px;
}

.lead-success h4 {
    font-size: 18px;
}

.lead-success p {
    font-size: 14.5px;
    color: var(--ink-soft);
    max-width: 36ch;
}

#leadForm.hidden {
    display: none;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 64px 0 28px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 760px) {
    .footer-top {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

.footer-brand .brand {
    color: #fff;
}

.footer-brand .brand-mark {
    background: var(--accent);
}

.footer-brand p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--footer-muted);
    max-width: 38ch;
}

.footer-col h3,
.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--footer-muted);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: var(--footer-text);
    font-size: 14.5px;
    padding: 7px 0;
    opacity: 0.86;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding-top: 26px;
    font-size: 13px;
    color: var(--footer-muted);
}

/* ---------- Scroll reveal (one authored motion moment) ---------- */

/* Reveal is visible by default — safe with no JS. JS adds .reveal-armed only
   after it successfully initializes the IntersectionObserver below, so content
   can never be stuck invisible if a script fails to load or run. */
.reveal-armed {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-armed.in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-armed {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Responsive nav ---------- */

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }
    .nav-actions > .btn {
        display: none;
    }
    .nav-burger {
        display: flex;
    }
    .hero {
        padding-top: 54px;
    }
}

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

/* ---------- Language switch ---------- */

.lang-switch {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
}

.lang-switch button {
    min-width: 36px;
    height: 32px;
    padding: 0 9px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink-soft);
    font: 600 12.5px/1 var(--font-body);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.lang-switch button:hover {
    color: var(--ink);
}

.lang-switch button[aria-pressed="true"] {
    background: var(--ink);
    color: #fff;
}

.lang-switch button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 860px) {
    .nav-actions {
        gap: 10px;
    }
}

@media (max-width: 380px) {
    .lang-switch button {
        min-width: 32px;
        padding: 0 7px;
    }
}
