:root {
    --ink: #f4f2ec;
    --ink-2: #ffffff;
    --panel: #ffffff;
    --line: rgba(17, 20, 25, 0.11);
    --cream: #111419;
    --muted: #666b72;
    --flash: #1746f5;
    --flash-2: #0c35d4;
    --blue: #1746f5;
    --mint: #008e70;
    --aqua: #c8ff4d;
    --shadow: 0 24px 65px rgba(18, 24, 39, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body.page-home,
body.page-pricing {
    font-family: "Roboto", sans-serif;
    background: var(--ink);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section-header {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-header h2,
.benefits-text h2,
.about-text h2,
.contact-info h2 {
    font-family: "Roboto", sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.section-header p,
.hero-description,
.about-intro,
.contact-info > p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-top: 12px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--flash-2);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    border-radius: 999px;
    padding: 13px 22px;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    background: #1746f5;
    color: #fff;
    box-shadow: 0 12px 28px rgba(23, 70, 245, 0.22);
}

.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 1px solid var(--line);
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--line);
}

.navbar {
    padding: 14px 0;
}

.nav-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.logo-img {
    height: 38px;
    width: auto;
}

.logo h2 {
    font-size: 1.05rem;
    font-weight: 650;
}

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

.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 11px;
    border-radius: 999px;
}

.nav-link:hover {
    color: var(--cream);
    background: rgba(22, 29, 42, 0.05);
}

.nav-cta {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
}

.hamburger .bar {
    width: 22px;
    height: 2px;
    background: var(--cream);
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(200,255,77,.16), transparent 38%),
        radial-gradient(circle at 85% 26%, rgba(23,70,245,.12), transparent 28%),
        #f4f2ec;
    color: var(--cream);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% auto auto -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(200, 255, 77, 0.3), transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(23, 70, 245, 0.14), transparent 65%);
    pointer-events: none;
}

.hero-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: "Roboto", sans-serif;
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.99;
}

.hero-title .highlight {
    font-style: normal;
    color: var(--flash);
    background: linear-gradient(90deg, #1746f5, #008e70);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .hero-description { color: var(--muted); }
.hero .kicker { color: var(--flash); }
.hero .btn-secondary { color: var(--cream); border-color: #c9c7c0; background: transparent; }
.hero .stat { background: rgba(255,255,255,.72); border-color: rgba(17,20,25,.1); }
.hero .stat p { color: var(--muted); }

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 36px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    background: var(--panel);
}

.stat h3 {
    font-family: "Roboto", sans-serif;
    font-size: 1.8rem;
}

.stat p {
    color: var(--muted);
    font-size: 0.85rem;
}

.hero-panel {
    background: #1746f5;
    color: #fff;
    border: 8px solid #111419;
    border-radius: 26px;
    padding: 22px;
    box-shadow: var(--shadow);
    transform: rotate(1deg);
}

.hero-proof-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-top: 24px;
    list-style: none;
    color: #48516c;
    font-size: .86rem;
    font-weight: 600;
}

.hero-proof-list i {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    margin-right: 5px;
    border-radius: 50%;
    background: #dff8ef;
    color: #00956f;
    font-size: .62rem;
}

.hero-panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

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

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

.dots span:first-child { background: #ff5c1a; }
.dots span:nth-child(2) { background: #ffb020; }

.panel-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,.66);
}

.hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.metric {
    background: rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 16px;
}

.metric b {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.metric span {
    color: rgba(255,255,255,.66);
    font-size: 0.82rem;
}

.metric.wide {
    grid-column: 1 / -1;
}

.pulse-bar {
    height: 8px;
    border-radius: 99px;
    background: rgba(22, 29, 42, 0.08);
    overflow: hidden;
    margin-top: 12px;
}

.pulse-bar i {
    display: block;
    height: 100%;
    width: 72%;
    background: linear-gradient(90deg, var(--flash), var(--mint));
}

.services,
.modules,
.testimonials,
.about,
.contact {
    padding: 96px 0;
}

.features,
.benefits,
.customers {
    padding: 96px 0;
    background: var(--ink-2);
}

.services-grid {
    display: grid;
    gap: 16px;
}

.service-card {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 24px;
    align-items: start;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
}

.service-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-icon,
.feature-icon,
.module-icon,
.benefit-icon,
.about-feature i,
.contact-item i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(91, 92, 240, 0.1);
    color: var(--flash-2);
}

.platform-overview {
    padding: 110px 0;
    background: #111419;
    color: #fff;
}

.platform-overview .kicker { color: #c8ff4d; }

.platform-heading {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 52px;
}

.platform-heading h2,
.flow-copy h2 {
    font-size: clamp(2.25rem, 4.8vw, 4.4rem);
    line-height: 1.03;
    letter-spacing: -.055em;
}

.platform-heading p {
    color: rgba(255,255,255,.62);
    font-size: 1.05rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.platform-card {
    position: relative;
    min-height: 320px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 26px;
    background: #1a1e24;
    transition: transform .25s ease, background .25s ease;
}

.platform-card:hover {
    transform: translateY(-5px);
    background: #22272e;
}

.platform-card > span {
    position: absolute;
    right: 22px;
    top: 20px;
    color: rgba(255,255,255,.26);
    font-size: .75rem;
    font-weight: 800;
}

.platform-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    border-radius: 17px;
    font-size: 1.15rem;
}

.sales-card .platform-icon { background: #dfe6ff; color: #4252d0; }
.inventory-card .platform-icon { background: #d9faef; color: #008b68; }
.purchase-card .platform-icon { background: #fff0ce; color: #c56a00; }
.accounts-card .platform-icon { background: #eee4ff; color: #7241cf; }
.customer-card .platform-icon { background: #ffe0e9; color: #d23762; }
.analytics-card .platform-icon { background: #dff5ff; color: #087da8; }
.workshop-card .platform-icon { background: #ffe5d6; color: #c95818; }
.production-card .platform-icon { background: #e3f0ff; color: #1366b8; }
.payroll-card .platform-icon { background: #ffe0e8; color: #c52f57; }
.location-card .platform-icon { background: #e4f8da; color: #438c22; }
.restaurant-card .platform-icon { background: #fff1c9; color: #a96700; }
.inspection-card .platform-icon { background: #e9e1ff; color: #6844b7; }

.platform-card h3 { font-size: 1.18rem; margin-bottom: 11px; }
.platform-card p { color: rgba(255,255,255,.6); font-size: .91rem; }

.platform-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
    list-style: none;
}

.platform-card li {
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;
    color: rgba(255,255,255,.78);
    font-size: .69rem;
}

.platform-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 18px;
    padding: 32px;
    border-radius: 26px;
    background: #c8ff4d;
    color: #111419;
}

.platform-callout span {
    display: block;
    margin-bottom: 6px;
    color: rgba(17,20,25,.58);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.platform-callout h3 { max-width: 720px; font-size: clamp(1.25rem, 2.5vw, 2rem); }
.platform-callout .btn { flex: 0 0 auto; background: #111419; color: #fff; box-shadow: none; }

.business-flow {
    padding: 110px 0;
    overflow: hidden;
    background: #fff;
}

.flow-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.flow-copy > p { margin-top: 20px; color: var(--muted); font-size: 1.03rem; }
.flow-points { display: grid; gap: 18px; margin-top: 32px; }
.flow-points div { display: grid; gap: 2px; padding-left: 18px; border-left: 3px solid #d9dcff; }
.flow-points span { color: var(--muted); font-size: .9rem; }

.flow-visual {
    position: relative;
    min-height: 520px;
    border: 1px solid #e2e6f4;
    border-radius: 42px;
    background:
        radial-gradient(circle at center, rgba(23,70,245,.14), transparent 25%),
        linear-gradient(#eef0f8 1px, transparent 1px),
        linear-gradient(90deg, #eef0f8 1px, transparent 1px), #f9faff;
    background-size: auto, 32px 32px, 32px 32px;
}

.flow-center,
.flow-node {
    position: absolute;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: 0 18px 50px rgba(42,51,104,.14);
}

.flow-center {
    inset: 50% auto auto 50%;
    width: 180px;
    height: 180px;
    transform: translate(-50%,-50%);
    border-radius: 38px;
    z-index: 2;
}

.flow-center img { height: 48px; width: auto; }
.flow-center b { margin-top: -18px; font-size: 1.3rem; }
.flow-center span { margin-top: -25px; color: var(--muted); font-size: .72rem; }

.flow-node {
    width: 112px;
    height: 90px;
    border-radius: 22px;
    color: var(--flash);
}

.flow-node span { color: var(--cream); font-size: .78rem; font-weight: 700; }
.node-sales { left: 8%; top: 12%; }
.node-stock { right: 8%; top: 13%; color: #00a27e; }
.node-buy { left: 10%; bottom: 10%; color: #df7a00; }
.node-report { right: 9%; bottom: 10%; color: #7045cf; }

.service-card:nth-child(1) .service-icon {
    background: linear-gradient(145deg, #e9f2ff, #dce8ff);
    color: #1764d8;
}

.service-card:nth-child(2) .service-icon {
    background: linear-gradient(145deg, #e4fbef, #d1f5e1);
    color: #07945a;
}

.service-card:nth-child(3) .service-icon {
    background: linear-gradient(145deg, #fff1df, #ffe4c4);
    color: #ee7b12;
}

.service-card:nth-child(4) .service-icon {
    background: linear-gradient(145deg, #f0eaff, #e3d8ff);
    color: #6840ce;
}

.service-card:nth-child(5) .service-icon {
    background: linear-gradient(145deg, #ffe8ef, #ffd7e2);
    color: #dc315f;
}

.service-card .service-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 8px 20px rgba(25,40,90,.08);
}

.service-card h3,
.feature-card h3,
.module-card h3,
.benefit-content h3,
.about-feature h4 {
    font-size: 1.25rem;
}

.service-card p,
.feature-card p,
.module-content p,
.benefit-content p,
.about-feature p {
    color: var(--muted);
}

.service-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.service-features li {
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--cream);
}

.service-card:nth-child(1) .service-features li {
    background: #eaf2ff;
    border-color: #cfe0ff;
    color: #1858ba;
}

.service-card:nth-child(2) .service-features li {
    background: #e5f8ef;
    border-color: #c7eedc;
    color: #087c4d;
}

.service-card:nth-child(3) .service-features li {
    background: #fff1df;
    border-color: #ffddb4;
    color: #b85c08;
}

.service-card:nth-child(4) .service-features li {
    background: #f0eaff;
    border-color: #ddd0ff;
    color: #5932b8;
}

.service-card:nth-child(5) .service-features li {
    background: #ffe9ef;
    border-color: #ffcfdc;
    color: #b92750;
}

.service-features li:nth-child(even) {
    filter: saturate(.82) brightness(1.015);
}

.service-action {
    align-self: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 26px;
    min-height: 220px;
}

.feature-card:first-child {
    grid-column: span 2;
    background:
        radial-gradient(circle at 90% 10%, rgba(115, 230, 209, 0.24), transparent 30%),
        var(--ink);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.updates-badge {
    display: inline-block;
    background: rgba(15, 157, 120, 0.14);
    color: var(--mint);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

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

.module-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    min-height: 100%;
}

.module-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.module-highlight {
    margin-top: 16px;
    color: var(--mint);
    font-size: 0.82rem;
    font-weight: 600;
}

.modules-cta {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    border: 1px dashed var(--line);
    border-radius: 20px;
}

.benefits-content,
.about-content,
.contact-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.benefit-item,
.about-feature {
    display: flex;
    gap: 16px;
    margin-top: 22px;
}

.dashboard-mockup,
.about-visual {
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.dashboard-header,
.visual-header {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.dashboard-stats {
    display: grid;
    gap: 12px;
}

.stat-card {
    background: var(--panel);
    border-radius: 16px;
    padding: 18px;
}

.stat-number {
    font-family: "Roboto", sans-serif;
    font-size: 1.8rem;
}

.stat-label {
    color: var(--muted);
    font-size: 0.85rem;
}

.testimonials-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.testimonials-grid {
    display: flex;
    gap: 16px;
    overflow: hidden;
}

.testimonial-card {
    min-width: 340px;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 26px;
}

.testimonial-content p {
    font-family: "Roboto", sans-serif;
    font-size: 1.08rem;
    line-height: 1.55;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    gap: 12px;
}

.author-info h4 {
    font-size: 0.98rem;
}

.author-info span {
    color: var(--muted);
    font-size: 0.82rem;
}

.rating {
    color: #ffb020;
    font-size: 0.8rem;
}

.testimonial-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--cream);
    cursor: pointer;
}

.testimonial-nav-btn:disabled {
    opacity: 0.35;
}

.industry-section {
    margin-bottom: 36px;
}

.industry-title {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--flash-2);
    margin-bottom: 16px;
}

.customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.customer-logo {
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 12px 12px;
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.customer-logo img {
    height: 64px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.customer-name {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--muted);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 28px 0 8px;
}

.about-stat {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.about-stat h3 {
    font-family: "Roboto", sans-serif;
    font-size: 1.7rem;
}

.about-stat p,
.map-placeholder p {
    color: var(--muted);
    font-size: 0.85rem;
}

.map-placeholder {
    min-height: 160px;
    border-radius: 18px;
    background: rgba(91, 92, 240, 0.08);
    display: grid;
    place-items: center;
    text-align: center;
    margin-bottom: 16px;
    gap: 8px;
}

.map-placeholder i {
    font-size: 2rem;
    color: var(--flash-2);
}

.office-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.office {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.contact-details {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item a {
    text-decoration: none;
}

.contact-form {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--cream);
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(22, 29, 42, 0.42);
}

.form-group select option {
    color: #111;
}

.contact-form .btn {
    width: 100%;
    margin-top: 8px;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 48px 0 24px;
    background: #111419;
    color: #fff;
}

.footer .footer-section p,
.footer .footer-section a,
.footer .footer-bottom {
    color: rgba(255,255,255,.58);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 12px;
}

.footer-section p,
.footer-section a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
}

.footer-section ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.social-links {
    margin-top: 14px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

.language-switch {
    direction: ltr;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 7px;
    border: 1px solid rgba(20, 43, 69, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 5px 15px rgba(20, 43, 69, .06);
}

.language-switch button {
    min-width: 29px;
    padding: 4px 6px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64717a;
    font: 700 .7rem/1 "Roboto", sans-serif;
    cursor: pointer;
}

.language-switch button.active {
    background: #10233e;
    color: #fff;
}

.language-switch span { color: #a4adb4; font-size: .65rem; }

html[dir="rtl"] body { font-family: "Roboto", "Tahoma", sans-serif; }
html[dir="rtl"] .nav-menu { direction: rtl; }
html[dir="rtl"] .hero-content,
html[dir="rtl"] .section-header,
html[dir="rtl"] .service-card,
html[dir="rtl"] .module-card,
html[dir="rtl"] .modules-cta,
html[dir="rtl"] .benefits-content,
html[dir="rtl"] .about-content,
html[dir="rtl"] .footer-section,
html[dir="rtl"] .pricing-hero-content,
html[dir="rtl"] .feature-name { text-align: right !important; }
html[dir="rtl"] .service-features li,
html[dir="rtl"] .hero-benefits li,
html[dir="rtl"] .contact-cta-card,
html[dir="rtl"] .testimonial-author { direction: rtl; }
html[dir="rtl"] .service-features li:hover { transform: translateX(-5px) scale(1.02); }
html[dir="rtl"] .module-badge { right: auto; left: 28px; }
html[dir="rtl"] .testimonial-company { direction: rtl; }

@media (max-width: 860px) {
    .language-switch { margin-left: auto; }
    html[dir="rtl"] .language-switch { margin-right: auto; margin-left: 0; }
}

@media (min-width: 1100px) {
    .nav-cta {
        display: inline-flex;
        padding: 10px 16px;
        font-size: 0.88rem;
    }
}

@media (max-width: 1100px) {
    .hero-container,
    .platform-heading,
    .flow-layout,
    .benefits-content,
    .about-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .service-card,
    .modules-grid,
    .features-grid,
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .service-card {
        grid-template-columns: 1fr;
    }

    .feature-card:first-child {
        grid-column: span 2;
    }

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

    .platform-grid { grid-template-columns: 1fr 1fr; }
    .flow-copy { max-width: 700px; }
}

@media (max-width: 860px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        inset: 68px 16px auto;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
        border-radius: 18px;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 12px 14px;
    }

    .hero {
        padding-top: 118px;
    }

    .hero-stats,
    .platform-grid,
    .features-grid,
    .modules-grid,
    .about-stats,
    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .feature-card:first-child {
        grid-column: auto;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        overflow-x: auto;
    }

    .testimonial-nav-btn {
        display: none;
    }

    .modules-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .platform-heading { gap: 20px; }
    .platform-callout { flex-direction: column; align-items: flex-start; }
    .flow-visual { min-height: 440px; }
}

@media (max-width: 640px) {
    .container,
    .hero-container,
    .nav-container {
        width: min(100% - 28px, 1180px);
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-proof-list { display: grid; }
    .platform-overview,
    .business-flow { padding: 76px 0; }
    .platform-card { min-height: auto; }
    .flow-visual { min-height: 390px; border-radius: 28px; }
    .flow-center { width: 140px; height: 140px; border-radius: 30px; }
    .flow-node { width: 88px; height: 76px; }
    .node-sales, .node-buy { left: 5%; }
    .node-stock, .node-report { right: 5%; }

    .customer-logo {
        min-height: 120px;
    }
}

/* Editorial commerce redesign */
.page-home {
    background: #fbfaf7;
}

.page-home .header {
    top: 14px;
    width: min(1180px, calc(100% - 28px));
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(17,20,25,.08);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(17,20,25,.06);
}

.page-home .navbar { padding: 9px 0; }
.page-home .nav-container { width: calc(100% - 24px); }

.page-home .hero {
    min-height: auto;
    padding: 150px 0 90px;
    background: #fbfaf7;
}

.page-home .hero::before {
    width: 700px;
    height: 700px;
    left: auto;
    right: -20%;
    top: -30%;
    background: radial-gradient(circle, rgba(255,208,86,.34), transparent 62%);
}

.page-home .hero::after {
    width: 460px;
    height: 460px;
    left: -15%;
    right: auto;
    bottom: -25%;
    background: radial-gradient(circle, rgba(83,214,181,.2), transparent 64%);
}

.page-home .hero-container {
    grid-template-columns: minmax(0, 1fr) minmax(420px, .78fr);
    gap: 72px;
}

.page-home .hero-title {
    max-width: 760px;
    font-size: clamp(3.4rem, 6.9vw, 6.7rem);
    line-height: .91;
    letter-spacing: -.075em;
}

.page-home .hero-title .highlight {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 8px;
    padding: 4px 18px 10px;
    border: 3px solid #111419;
    border-radius: 999px;
    background: #c8ff4d;
    color: #111419;
    -webkit-text-fill-color: #111419;
    transform: rotate(-2deg);
    font-size: .76em;
    line-height: 1;
    letter-spacing: -.065em;
    white-space: nowrap;
    box-sizing: border-box;
}

.page-home .hero-description { max-width: 650px; font-size: 1.15rem; }
.page-home .hero-stats { max-width: 620px; }
.page-home .stat { border: 0; border-top: 2px solid #111419; border-radius: 0; background: transparent; padding: 15px 0; }

.page-home .hero-panel {
    position: relative;
    padding: 26px;
    border: 0;
    border-radius: 42px 42px 120px 42px;
    background: #1746f5;
    box-shadow: 28px 28px 0 #c8ff4d;
    transform: none;
}

.page-home .hero-panel::before {
    content: "Live business view";
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    color: #111419;
    font-size: .72rem;
    font-weight: 800;
}

.page-home .hero-panel-top { display: none; }
.page-home .hero-metrics { grid-template-columns: 1fr; }
.page-home .metric { min-height: 105px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; }
.page-home .metric.wide { grid-column: auto; min-height: 180px; background: #fff; color: #111419; }
.page-home .metric.wide span { color: #676b75; }
.page-home .metric b { font-size: 2rem; }

.page-home .platform-overview {
    padding: 110px 0;
    background: #eef1ff;
    color: #111419;
}

.page-home .platform-overview .kicker { color: #1746f5; }
.page-home .platform-heading { grid-template-columns: 1fr 1fr; align-items: center; }
.page-home .platform-heading p { color: #626b82; }

.page-home .platform-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
}

.page-home .platform-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 30px;
    background: #fff;
    color: #111419;
    box-shadow: 0 8px 0 rgba(17,20,25,.06);
}

.page-home .platform-card:nth-child(1),
.page-home .platform-card:nth-child(8) {
    grid-column: span 2;
}

.page-home .platform-card:nth-child(1) { background: #1746f5; color: #fff; }
.page-home .platform-card:nth-child(2) { background: #dff9ee; }
.page-home .platform-card:nth-child(3) { background: #fff0c9; }
.page-home .platform-card:nth-child(4) { background: #f1e8ff; }
.page-home .platform-card:nth-child(5) { background: #ffe7ed; }
.page-home .platform-card:nth-child(8) { background: #111419; color: #fff; }
.page-home .platform-card:nth-child(10) { background: #e2edff; }

.page-home .platform-card:hover { background: #fff; transform: translateY(-8px) rotate(-1deg); }
.page-home .platform-card:nth-child(1):hover { background: #1746f5; }
.page-home .platform-card:nth-child(8):hover { background: #111419; }
.page-home .platform-card > span { color: currentColor; opacity: .35; }
.page-home .platform-card p { color: #626b72; }
.page-home .platform-card:nth-child(1) p,
.page-home .platform-card:nth-child(8) p { color: rgba(255,255,255,.68); }
.page-home .platform-card ul { margin-top: auto; padding-top: 20px; }
.page-home .platform-card li { border-color: rgba(17,20,25,.12); color: #30343a; background: rgba(255,255,255,.35); }
.page-home .platform-card:nth-child(1) li,
.page-home .platform-card:nth-child(8) li { border-color: rgba(255,255,255,.2); color: #fff; }

.page-home .platform-callout {
    margin-top: 32px;
    border-radius: 30px;
    background: #c8ff4d;
}

.page-home .business-flow {
    padding: 120px 0;
    background: #fbfaf7;
}

.page-home .flow-layout {
    padding: 44px;
    border-radius: 44px;
    background: #ffded0;
}

.page-home .flow-visual {
    border: 0;
    background: #fbfaf7;
    transform: rotate(1.2deg);
    box-shadow: 16px 16px 0 #111419;
}

.page-home .services { padding: 82px 0; background: #fff; }
.page-home .services .section-header { margin-bottom: 32px; }
.page-home .services-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.page-home .service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 24px;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #f4f2ec;
}

.page-home .service-card:first-child { grid-column: span 2; min-height: 310px; background: #dce7ff; }
.page-home .service-card:nth-child(2) { background: #e1f8ed; }
.page-home .service-card:nth-child(3) { background: #fff0cf; }
.page-home .service-card:nth-child(4) { background: #eee5ff; }
.page-home .service-card:nth-child(5) { background: #ffe5ec; }
.page-home .service-header { max-width: 320px; gap: 9px; }
.page-home .service-header h3 { font-size: 1.1rem; }
.page-home .service-card .service-icon { width: 46px; height: 46px; border-radius: 14px; font-size: 1rem; }
.page-home .service-card > div:nth-child(2) { margin-top: auto; max-width: 620px; }
.page-home .service-card p { font-size: .86rem; line-height: 1.55; }
.page-home .service-action { position: absolute; right: 24px; top: 24px; }
.page-home .service-action .btn { padding: 9px 14px; font-size: .75rem; }
.page-home .service-features { margin-top: 14px; gap: 6px; }
.page-home .service-features li { padding: 5px 8px; border: 0; background: rgba(255,255,255,.58) !important; color: #20252d !important; font-size: .7rem; }

.page-home .features { background: #fbfaf7; }
.page-home .feature-card { border: 0; border-radius: 28px; box-shadow: 0 1px 0 rgba(17,20,25,.08); }
.page-home .feature-card:first-child { background: #1746f5; color: #fff; }
.page-home .feature-card:first-child p { color: rgba(255,255,255,.68); }

.page-home .modules { background: #ffe7d8; color: #111419; }
.page-home .modules .section-header p { color: #67615d; }
.page-home .module-card { border: 0; background: rgba(255,255,255,.72); }
.page-home .module-card:nth-child(2n) { background: #fff6cf; }
.page-home .module-card p { color: #68635f; }

@media (max-width: 1100px) {
    .page-home .hero-container { grid-template-columns: 1fr; }
    .page-home .hero-panel { max-width: 680px; }
    .page-home .platform-grid { grid-template-columns: repeat(2, 1fr); }
    .page-home .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .page-home .header { top: 8px; }
    .page-home .hero { padding-top: 125px; }
    .page-home .hero-title { font-size: clamp(2.8rem, 14vw, 4.5rem); }
    .page-home .hero-title .highlight { width: auto; }
    .page-home .hero-title .highlight { font-size: .7em; white-space: normal; text-align: center; }
    .page-home .platform-grid,
    .page-home .services-grid { grid-template-columns: 1fr; }
    .page-home .platform-card:nth-child(1),
    .page-home .platform-card:nth-child(8),
    .page-home .service-card:first-child { grid-column: auto; }
    .page-home .platform-heading { grid-template-columns: 1fr; }
    .page-home .flow-layout { padding: 24px; }
    .page-home .service-card { min-height: 360px; }
    .page-home .service-action { position: static; margin-top: 22px; }
}
