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

/* ── Design Tokens ──────────────────────────────────────── */
:root {
    --primary: #eb2d3a;
    --primary-dark: #c9232f;
    --primary-deep: #a81c27;
    --bg: #f8f9fb;
    --surface: #ffffff;
    --surface2: #f3f4f9;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --text-faint: #9ca3af;
    --border: #e9ecef;
    --border-strong: #d1d5db;
    --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.10);
    --shadow-lg: 0 12px 36px rgba(26, 26, 46, 0.13);
    --shadow-xl: 0 24px 56px rgba(26, 26, 46, 0.16);
}


/* ── Base ───────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: radial-gradient(circle at top left, rgba(235, 45, 58, 0.06), transparent 26%), var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color .3s, color .3s;
    overflow-x: hidden;
}

/* ── Navigation ─────────────────────────────────────────── */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    height: 68px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
    transition: box-shadow .3s, background-color .3s;
}


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

.nav-logo img {
    height: 34px;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-links a {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all .18s;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface2);
}

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


/* ── Shared Button Base ─────────────────────────────────── */
.nav-btn,
.hero-btn-primary,
.hero-btn-secondary,
.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}

.nav-btn {
    padding: 10px 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    transition: all .2s;
    box-shadow: 0 3px 10px rgba(235, 45, 58, .25);
}

.nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(235, 45, 58, .35);
}

.nav-btn svg {
    width: 15px;
    height: 15px;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 60px 72px;
}

.hero-text {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 8px;
    background: rgba(235, 45, 58, .08);
    border: 1px solid rgba(235, 45, 58, .18);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    border-radius: 9999px;
    margin-bottom: 24px;
    letter-spacing: .05em;
    text-transform: uppercase;
    animation: fadeSlideDown .55s ease both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(1.6); }
}

.hero h1 {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 20px;
    animation: fadeSlideUp .6s .08s ease both;
}

.hero h1 .accent {
    color: var(--primary);
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 36px;
    animation: fadeSlideUp .6s .16s ease both;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    animation: fadeSlideUp .6s .24s ease both;
}

.hero-btn-primary {
    padding: 14px 30px;
    background: var(--primary);
    color: #fff;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 6px 22px rgba(235, 45, 58, .30);
    transition: all .22s;
}

.hero-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(235, 45, 58, .42);
}

.hero-btn-primary svg {
    width: 17px;
    height: 17px;
}

.hero-btn-secondary {
    padding: 14px 28px;
    background: var(--surface2);
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: all .2s;
}

.hero-btn-secondary:hover {
    background: var(--border);
    color: var(--text);
}

.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    animation: fadeSlideUp .6s .35s ease both;
}

.stat-val {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-val span {
    color: var(--primary);
}

.stat-lbl {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-faint);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ── Hero Visual (Dashboard Mock) ──────────────────────── */
.hero-visual {
    position: relative;
    animation: fadeSlideUp .7s .2s ease both;
}

.dash-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: perspective(1100px) rotateY(-6deg) rotateX(2deg);
    transition: transform .6s ease;
}

.dash-card:hover {
    transform: perspective(1100px) rotateY(-2deg) rotateX(.5deg);
}

.dash-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-deep) 100%);
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 8px;
}

.dash-bar-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dash-bar-dot:nth-child(1) { background: rgba(255, 255, 255, .5); }
.dash-bar-dot:nth-child(2) { background: rgba(255, 255, 255, .35); }
.dash-bar-dot:nth-child(3) { background: rgba(255, 255, 255, .25); }

.dash-bar-logo img {
    height: 18px;
    filter: brightness(0) invert(1);
}

.dash-bar-url {
    flex: 1;
    background: rgba(255, 255, 255, .15);
    border-radius: 5px;
    height: 24px;
    margin-left: 10px;
}

.dash-subnav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 4px;
    overflow: hidden;
}

.dash-nav-pill {
    height: 20px;
    border-radius: 4px;
    background: var(--surface2);
}

.dash-nav-pill.active {
    background: rgba(235, 45, 58, .12);
}

.dash-body {
    padding: 12px;
    background: var(--bg);
}

.dash-greet { margin-bottom: 10px; }

.dash-greet-h,
.dc-head,
.dl-head,
.dl-name,
.dt-val {
    background: var(--text);
    opacity: .55;
}

.dash-greet-h {
    height: 10px;
    width: 160px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.dash-greet-s,
.dt-lbl,
.dl-sub {
    background: var(--border-strong);
}

.dash-greet-s {
    height: 7px;
    width: 240px;
    border-radius: 3px;
}

.dash-tiles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.dash-tile,
.dash-chart-card,
.dash-list-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
}

.dash-tile {
    position: relative;
    overflow: hidden;
}

.dash-tile::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2.5px;
    border-radius: 0 0 8px 8px;
}

.dash-tile-r::after { background: var(--primary); }
.dash-tile-g::after { background: #2d8a4e; }
.dash-tile-b::after { background: #4e588c; }
.dash-tile-o::after { background: #c97a10; }
.dash-tile-t::after { background: #0d9488; }

.dt-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    margin-bottom: 6px;
}

.dash-tile-r .dt-icon { background: rgba(235, 45, 58, .12); }
.dash-tile-g .dt-icon { background: rgba(45, 138, 78, .12); }
.dash-tile-b .dt-icon { background: rgba(78, 88, 140, .12); }
.dash-tile-o .dt-icon { background: rgba(201, 122, 16, .12); }
.dash-tile-t .dt-icon { background: rgba(13, 148, 136, .12); }

.dt-val { height: 12px; width: 24px; border-radius: 3px; margin-bottom: 4px; }
.dt-lbl { height: 6px; width: 52px; border-radius: 2px; }

.dash-charts,
.dash-lists {
    display: grid;
    gap: 6px;
}

.dash-charts {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 10px;
}

.dash-lists {
    grid-template-columns: 1fr 1fr 1fr;
}

.dc-head,
.dl-head {
    height: 8px;
    width: 90px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.sparkline {
    width: 100%;
    height: 50px;
}

.dl-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.dl-av {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dl-info { flex: 1; }

.dl-name { height: 6px; border-radius: 2px; margin-bottom: 3px; }
.dl-sub  { height: 5px; width: 60%; border-radius: 2px; }

.dl-badge {
    height: 14px;
    width: 38px;
    border-radius: 9999px;
    flex-shrink: 0;
}

/* ── Floating Cards on Hero Visual ─────────────────────── */
.float-notif,
.float-comp {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: var(--shadow-lg);
    animation: floatY 3.5s ease-in-out infinite;
}

.float-notif {
    top: -20px;
    right: -24px;
    min-width: 190px;
}

.float-comp {
    bottom: -16px;
    left: -28px;
    min-width: 170px;
    animation-delay: 1.75s;
}

.fn-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2d8a4e;
    display: inline-block;
    margin-right: 5px;
}

.fn-tag,
.fc-lbl {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.fn-tag { color: #2d8a4e; margin-bottom: 4px; }

.fn-val,
.fc-pct {
    font-weight: 900;
    line-height: 1;
    margin-bottom: 3px;
}

.fn-val { font-size: 17px; }

.fn-sub,
.fc-lbl { color: var(--text-faint); }

.fn-sub { font-size: 10px; font-weight: 600; }

.fc-pct { font-size: 20px; color: #2d8a4e; }

.fc-bar-bg {
    height: 4px;
    background: var(--surface2);
    border-radius: 9999px;
    overflow: hidden;
}

.fc-bar-fill {
    height: 100%;
    background: #2d8a4e;
    animation: barGrow 1.5s .8s ease both;
    transform-origin: left;
}

@keyframes barGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ── Sections ───────────────────────────────────────────── */
.section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 90px 60px;
    width: 100%;
}

.section-eyebrow,
.cta-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-eyebrow { color: var(--primary); }

.section-title {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin-bottom: 14px;
}

.section-sub {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 52px;
}

/* ── Features Grid ──────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feat-card,
.mod-card,
.step {
    opacity: 0;
    transform: translateY(24px);
}

.feat-card,
.mod-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}

.feat-card { padding: 28px 24px; }

.feat-card.vis,
.mod-card.vis,
.step.vis {
    animation: fadeSlideUp .5s ease forwards;
}

.feat-card:hover,
.mod-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(235, 45, 58, .22);
}

.feat-icon,
.mod-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feat-icon { background: rgba(235, 45, 58, .08); }

.feat-icon svg,
.mod-icon svg {
    width: 22px;
    height: 22px;
}

.feat-card h3,
.step h3,
.mod-name {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 9px;
}

.feat-card p,
.step p,
.mod-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Modules Section ────────────────────────────────────── */
.modules-section {
    background: var(--surface2);
    padding: 90px 0;
}

.modules-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 60px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.mod-card {
    padding: 20px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mod-text {
    min-width: 0;
}

.mod-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.mc-red    { background: rgba(235, 45, 58, .10);  color: var(--primary); }
.mc-green  { background: rgba(45, 138, 78, .10);  color: #2d8a4e; }
.mc-blue   { background: rgba(78, 88, 140, .10);  color: #4e588c; }
.mc-orange { background: rgba(201, 122, 16, .10); color: #c97a10; }
.mc-teal   { background: rgba(13, 148, 136, .10); color: #0d9488; }
.mc-purple { background: rgba(124, 58, 237, .10); color: #7c3aed; }
.mc-navy   { background: rgba(30, 35, 56, .10);   color: #1e2338; }


/* ── How-It-Works Steps ─────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 34px;
    left: calc(16.667% + 20px);
    right: calc(16.667% + 20px);
    height: 1.5px;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(235, 45, 58, .2) 100%);
}

.step {
    text-align: center;
    padding: 0 28px;
}

.step-num {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(235, 45, 58, .15);
}

/* ── CTA Section ────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    padding: 88px 60px;
    position: relative;
    overflow: hidden;
}

.cta-bg1,
.cta-bg2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}

.cta-bg1 { width: 500px; height: 500px; top: -180px; right: -80px; }
.cta-bg2 { width: 360px; height: 360px; bottom: -140px; left: -60px; background: rgba(255, 255, 255, .05); }

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-eyebrow { color: rgba(255, 255, 255, .65); margin-bottom: 16px; }

.cta-inner h2 {
    font-size: 2.6rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 18px;
}

.cta-inner p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .78);
    line-height: 1.75;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    padding: 15px 32px;
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    transition: transform .2s, box-shadow .2s;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.btn-cta-secondary {
    padding: 15px 28px;
    background: rgba(255, 255, 255, .13);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    transition: background .2s, transform .2s;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, .22);
    transform: translateY(-1px);
}

#openDemoModal,
#openBrandModal {
    background: rgba(255, 255, 255, .16);
    border: 1.5px solid rgba(255, 255, 255, .55);
    color: #fff;
    transition: background .2s, transform .2s, box-shadow .2s;
}

#openDemoModal:hover,
#openBrandModal:hover {
    background: rgba(255, 255, 255, .28);
    border-color: rgba(255, 255, 255, .75);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-logo img { height: 26px; }

.footer-copy {
    font-size: 12.5px;
    color: var(--text-faint);
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    background: rgba(235, 45, 58, .08);
    border: 1px solid rgba(235, 45, 58, .15);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
}

/* ── Keyframes ──────────────────────────────────────────── */
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive: Tablet (≤1100px) ──────────────────────── */
@media (max-width: 1100px) {
    nav,
    .hero,
    .section,
    .modules-inner,
    .cta-section,
    footer {
        padding-left: 32px;
        padding-right: 32px;
    }

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

/* ── Hamburger / Mobile Nav ─────────────────────────────── */
.hamburger-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
    padding: 0;
}

.hamburger-btn:hover { background: var(--border); color: var(--text); }
.hamburger-btn svg { width: 20px; height: 20px; }
.hamburger-btn .hb-close { display: none; }
.hamburger-btn.is-open .hb-open  { display: none; }
.hamburger-btn.is-open .hb-close { display: block; }

.mobile-nav-panel {
    display: none;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 199;
    padding: 10px 16px 18px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.mobile-nav-panel.is-open { display: block; }

.mobile-nav-link {
    display: block;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: background .15s, color .15s;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.mobile-nav-link:hover { background: var(--surface2); color: var(--text); }
.mobile-nav-divider { height: 1px; background: var(--border); margin: 8px 0; }

.mobile-nav-apply {
    display: block;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid rgba(235, 45, 58, .22);
    background: rgba(235, 45, 58, .05);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    width: 100%;
    margin-bottom: 6px;
    transition: background .15s, border-color .15s;
}

.mobile-nav-apply:hover { background: rgba(235, 45, 58, .11); border-color: rgba(235, 45, 58, .4); }

.mobile-nav-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    background: var(--primary);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
    margin-top: 4px;
}

.mobile-nav-login:hover { background: var(--primary-dark); }

/* ── Responsive: Mobile (≤768px) ────────────────────────── */
@media (max-width: 768px) {
    nav {
        height: 60px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-links,
    .hero-visual,
    .steps::before {
        display: none;
    }

    .hamburger-btn { display: flex; }
    .nav-btn        { display: none; }

    .lang-btn { width: 36px; padding: 0; gap: 0; }
    .lang-btn span { display: none; }
    .lang-dropdown { right: -10px; }

    .hero {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 40px 20px 48px;
    }

    .hero-text { max-width: none; }

    .hero-badge {
        margin-bottom: 18px;
        font-size: 10px;
    }

    .hero h1 { font-size: 2rem; }

    .hero p {
        font-size: .96rem;
        line-height: 1.65;
        margin-bottom: 28px;
    }

    /* Primary CTA stretches full-width; secondary stays compact */
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-btn-primary {
        width: 100%;
        padding: 13px 20px;
        font-size: 14px;
        text-align: center;
        justify-content: center;
    }

    .hero-btn-secondary {
        align-self: flex-start;
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 999px;
        gap: 6px;
        box-shadow: none;
    }

    .hero-btn-secondary svg {
        width: 13px;
        height: 13px;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 14px;
        margin-top: 36px;
        padding-top: 22px;
    }

    .stat-item {
        min-width: calc(50% - 7px);
    }

    .stat-item:last-child {
        min-width: 100%;
    }

    .cta-actions { flex-direction: column; align-items: stretch; }

    .section,
    .modules-inner,
    .cta-section,
    footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-title {
        font-size: 1.9rem;
        line-height: 1.15;
    }

    .section-sub {
        max-width: none;
        margin-bottom: 34px;
        font-size: .95rem;
        line-height: 1.65;
    }

    /* 2 cards per row on mobile */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .feat-card {
        min-height: 100%;
        padding: 18px 14px;
    }

    .feat-icon,
    .mod-icon {
        width: 36px;
        height: 36px;
    }

    .feat-icon {
        margin-bottom: 14px;
    }

    .feat-icon svg,
    .mod-icon svg {
        width: 18px;
        height: 18px;
    }

    .feat-card h3,
    .mod-name {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .feat-card p,
    .mod-desc {
        font-size: 12px;
        line-height: 1.5;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mod-card {
        flex-direction: column;
        padding: 14px 12px;
        gap: 8px;
    }

    .mod-text {
        width: 100%;
    }

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

    .cta-inner h2 { font-size: 1.9rem; }

    footer { flex-direction: column; text-align: center; }

    .app-modal { border-radius: 14px; max-height: 92vh; }
    .app-modal-body { padding: 16px 18px; gap: 12px; }
    .app-modal-header { padding: 18px 18px 0; }
    .app-modal-footer { padding: 0 18px 18px; }
    .app-form-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ── Responsive: Small Mobile (≤480px) ─────────────────── */
@media (max-width: 480px) {
    .hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero h1 { font-size: 1.72rem; }
    .nav-actions { gap: 6px; }

    .hero-btn-secondary {
        padding: 7px 12px;
        font-size: 11.5px;
    }

    .section-title { font-size: 1.65rem; }
    .section-sub { font-size: .92rem; }

    .features-grid { gap: 8px; }
    .feat-card { padding: 14px 10px; }

    .modules-grid { gap: 8px; }
    .mod-card { padding: 12px 10px; }
    .mod-icon { width: 34px; height: 34px; }
    .mod-icon svg { width: 17px; height: 17px; }
}

/* ── Application Modals ──────────────────────────────────── */
.app-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 10, 20, .55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity .22s ease;
}

.app-modal-overlay.is-open { opacity: 1; pointer-events: all; }

.app-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-xl);
    width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
    transform: translateY(18px) scale(.97);
    transition: transform .22s ease;
}

.app-modal-overlay.is-open .app-modal { transform: none; }

.app-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.app-modal-title  { font-size: 1.15rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }

.app-modal-close {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .18s, color .18s;
    flex-shrink: 0;
}

.app-modal-close:hover { background: var(--border); color: var(--text); }

.app-modal-body   { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.app-form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.app-form-group   { display: flex; flex-direction: column; gap: 6px; }
.app-form-label   { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }

.app-form-input {
    padding: 10px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.app-form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(235, 45, 58, .12); }
.app-form-input::placeholder { color: var(--text-faint); }

.app-form-feedback { font-size: 13px; border-radius: 8px; min-height: 0; transition: all .18s; }
.app-form-feedback.is-error   { padding: 10px 13px; background: rgba(235, 45, 58, .08); border: 1px solid rgba(235, 45, 58, .2); color: var(--primary); }
.app-form-feedback.is-success { padding: 10px 13px; background: rgba(45, 138, 78, .08); border: 1px solid rgba(45, 138, 78, .2); color: #2d8a4e; }

.app-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 22px; }

.app-btn-cancel {
    padding: 10px 20px;
    background: var(--surface2);
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    font-family: inherit; font-size: 13.5px; font-weight: 700;
    cursor: pointer;
    transition: background .18s;
}

.app-btn-cancel:hover { background: var(--border); }

.app-btn-submit {
    padding: 10px 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-family: inherit; font-size: 13.5px; font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .18s;
}

.app-btn-submit:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); }
.app-btn-submit:disabled { opacity: .6; cursor: not-allowed; }

@media (max-width: 540px) { .app-form-row { grid-template-columns: 1fr; } }

.app-form-textarea { resize: vertical; min-height: 84px; line-height: 1.55; }

/* ── Language Switcher ───────────────────────────────────── */
.lang-switcher { position: relative; }

.lang-btn {
    height: 38px;
    border-radius: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    font-size: 13px;
    font-weight: 700;
    gap: 5px;
    padding: 0 11px;
    white-space: nowrap;
    font-family: inherit;
}

.lang-btn:hover { background: var(--border); color: var(--text); }
.lang-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 168px;
    padding: 5px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s;
    z-index: 300;
}

.lang-switcher.is-open .lang-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: background .14s, color .14s;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.lang-option:hover  { background: var(--surface2); color: var(--text); }
.lang-option.active { color: var(--primary); background: rgba(235, 45, 58, .07); }
.lang-option-check  { margin-left: auto; color: var(--primary); }
.lang-flag { font-size: 17px; line-height: 1; }

/* ── Nav Application Links ──────────────────────────────── */
.nav-apply-link {
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(235, 45, 58, .28);
    background: rgba(235, 45, 58, .06);
    color: var(--primary) !important;
    cursor: pointer;
    font-family: inherit;
    transition: all .18s;
}

.nav-apply-link:hover {
    background: rgba(235, 45, 58, .13) !important;
    border-color: rgba(235, 45, 58, .5);
    color: var(--primary) !important;
}

/* ── Global WebView / Mobile Optimizations ──────────────── */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 68px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: none;
}

a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

img, svg {
    -webkit-user-select: none;
    user-select: none;
}

/* ── Safe Area Insets (iOS notch / home bar) ─────────────── */
#main-nav {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(68px + env(safe-area-inset-top, 0px));
}

footer {
    padding-bottom: max(20px, calc(10px + env(safe-area-inset-bottom, 0px)));
}

.app-modal-overlay {
    padding-top:    max(20px, env(safe-area-inset-top, 20px));
    padding-right:  max(20px, env(safe-area-inset-right, 20px));
    padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
    padding-left:   max(20px, env(safe-area-inset-left, 20px));
}

/* ── Mobile: safe area + inputs + touch targets (≤768px) ─── */
@media (max-width: 768px) {
    html { scroll-padding-top: calc(60px + env(safe-area-inset-top, 0px)); }

    #main-nav {
        height: calc(60px + env(safe-area-inset-top, 0px));
    }

    .mobile-nav-panel {
        top: calc(60px + env(safe-area-inset-top, 0px));
        max-height: calc(100vh - 60px - env(safe-area-inset-top, 0px));
    }

    /* Prevent iOS auto-zoom on focus (font-size must be >= 16px) */
    .app-form-input { font-size: 16px; }

    /* Minimum 44px touch targets */
    .hamburger-btn,
    .theme-toggle,
    .lang-btn        { min-height: 44px; min-width: 44px; }

    .hero-btn-primary                              { min-height: 50px; }
    .hero-btn-secondary                            { min-height: 40px; }

    .btn-cta-primary,
    .btn-cta-secondary,
    #openDemoModal,
    #openBrandModal                                { min-height: 50px; }

    .mobile-nav-link,
    .mobile-nav-apply {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .mobile-nav-login  { min-height: 52px; }

    .app-btn-cancel,
    .app-btn-submit    { min-height: 46px; padding: 12px 20px; font-size: 14px; }
}

/* ── Bottom-sheet modal on small screens (≤540px) ────────── */
@media (max-width: 540px) {
    .app-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .app-modal {
        border-radius: 20px 20px 0 0;
        max-height: 94vh;
        -webkit-overflow-scrolling: touch;
    }

    .app-modal-footer {
        padding-bottom: max(18px, calc(8px + env(safe-area-inset-bottom, 0px)));
    }
}

/* ── Very Small Phones (≤360px) ─────────────────────────── */
@media (max-width: 360px) {
    .hero           { padding: 30px 14px 38px; }
    .hero h1        { font-size: 1.52rem; }
    .hero-badge     { font-size: 9.5px; padding: 4px 10px 4px 6px; }
    .hero p         { font-size: .9rem; }

    .section,
    .modules-inner,
    .cta-section,
    footer          { padding-left: 14px; padding-right: 14px; }

    .section-title  { font-size: 1.5rem; }
    .section-sub    { font-size: .88rem; }
    .cta-inner h2   { font-size: 1.65rem; }
    .cta-inner p    { font-size: .92rem; }

    .features-grid,
    .modules-grid   { gap: 6px; }

    .feat-card      { padding: 12px 8px; }
    .feat-icon      { width: 32px; height: 32px; margin-bottom: 10px; }
    .feat-icon svg  { width: 15px; height: 15px; }
    .feat-card h3   { font-size: 12px; }
    .feat-card p    { font-size: 11px; }

    .mod-card       { padding: 10px 8px; }
    .mod-icon       { width: 32px; height: 32px; }
    .mod-icon svg   { width: 15px; height: 15px; }
    .mod-name       { font-size: 12px; }
    .mod-desc       { font-size: 11px; }

    .hero-btn-primary { font-size: 13px; padding: 12px 16px; }

    .step           { padding: 0 14px; }
    .step-num       { width: 56px; height: 56px; font-size: 18px; }
}
