:root {
    --navy: #d9a441;
    --navy-2: #d9a441;
    --card-dark: #d9a441;
    --yellow: white;
    --yellow-2: #c9962c;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --text-muted-dark: black;
    --text-muted-light: #6b7280;
    --heading-dark: #1c1e26;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--heading-dark);
    background: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
.brand {
    font-family: 'Poppins', system-ui, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 130%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

/* ---------- Header ---------- */
header {
    background: var(--navy);
    position: relative;
    z-index: 20;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: var(--yellow);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3;
    border: 1px solid white;
}

.brand-name {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: var(--heading-dark);
    letter-spacing: .3px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 44px;
    font-weight: 500;
    font-size: 16px;
}

nav a {
    color: var(--heading-dark);
    opacity: .85;
    transition: opacity .2s, color .2s;
}

nav a:hover {
    opacity: 1;
}

nav a.active {
    color: var(--yellow);
    opacity: 1;
}

/* ---------- Ticker ---------- */
.ticker-wrap {
    background: #111114;
    overflow: hidden;
    white-space: nowrap;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .04);
}

.ticker-track {
    display: inline-flex;
    gap: 34px;
    animation: ticker 26s linear infinite;
    font-size: 14.5px;
    color: #d7d9df;
}

.ticker-track span b {
    color: #fff;
    font-weight: 600;
}

.ticker-track .dot {
    color: #666;
    margin: 0 6px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ---------- Hero ---------- */
.hero {
    background: var(--navy);
    position: relative;
    padding-top: 70px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(60deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 90px),
        repeating-linear-gradient(-30deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 110px);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
    min-height: 560px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--heading-dark);
}

.hero h1 .accent {
    color: var(--yellow);
    display: block;
}

.hero p {
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted-dark);
    max-width: 480px;
}

.btn-yellow {
    display: inline-block;
    margin-top: 30px;
    background: var(--yellow);
    color: #1a1a1a;
    font-weight: 600;
    font-size: 15.5px;
    padding: 15px 28px;
    border-radius: 8px;
    transition: background .2s, transform .2s;
}

.btn-yellow:hover {
    background: var(--yellow-2);
    transform: translateY(-2px);
}

.btn-yellow-2 {
    display: inline-block;
    margin-top: 30px;
    background: var(--navy);
    color: #1a1a1a;
    font-weight: 600;
    font-size: 15.5px;
    padding: 15px 28px;
    border-radius: 8px;
    transition: background .2s, transform .2s;
}

.btn-yellow-2:hover {
    background: var(--yellow);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    border: 1.5px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-weight: 500;
    font-size: 14.5px;
    padding: 13px 22px;
    border-radius: 8px;
    background: transparent;
    transition: border-color .2s, background .2s;
}

.btn-outline:hover {
    border-color: var(--yellow);
    background: rgba(217, 164, 65, .08);
}

.hero-art {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
}

.wave-bottom {
    position: relative;
    z-index: 3;
    margin-top: -40px;
}

/* ---------- Dark feature rows (Fast Easy Safe / Open Hi-Tech) ---------- */
.feature-row {
    background: var(--light-bg);
    padding: 100px 0;
}

.feature-row.alt {
    background: var(--navy);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-grid.reverse .art {
    order: 2;
}

.feature-grid.reverse .text {
    order: 1;
}

.eyebrow-bar {
    width: 56px;
    height: 5px;
    background: var(--yellow);
    border-radius: 3px;
    margin: 18px 0 22px;
}

.feature-row h2 {
    font-size: 36px;
    font-weight: 700;
    color: black;
    line-height: 1.25;
}

.feature-row p {
    color: var(--text-muted-dark);
    font-size: 16px;
    line-height: 1.75;
    max-width: 460px;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    max-width: 900px;
}

.stat-card {
    background: white;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 26px 22px;
    text-align: center;
}

.stat-card .label {
    color: #9aa0ac;
    font-size: 14.5px;
    margin-bottom: 12px;
}

.stat-card .value {
    color: #000000;
    font-size: 26px;
    font-weight: 700;
}

.stat-card .delta {
    color: #4ade80;
    font-size: 13.5px;
    margin-top: 8px;
    font-weight: 600;
}

.stat-card .delta::after {
    content: " \25B2";
    font-size: 11px;
}

/* ---------- Light section: By the govt ---------- */
.section-light {
    background: var(--white);
    padding: 100px 0;
}

.section-light h2,
.section-gray h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--heading-dark);
    line-height: 1.25;
}

.section-light p,
.section-gray p {
    color: var(--text-muted-light);
    font-size: 16px;
    line-height: 1.75;
    max-width: 460px;
}

.section-gray {
    background: var(--light-bg);
    padding: 100px 0;
}

/* ---------- How it works ---------- */
.toggle-pill {
    display: inline-flex;
    background: transparent;
    gap: 10px;
    margin: 26px 0 60px;
}

.toggle-pill button {
    padding: 11px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1.5px solid #d8dadf;
    background: #fff;
    color: #374151;
    transition: all .2s;
}

.toggle-pill button.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.step-icon {
    width: 110px;
    height: 110px;
    background: var(--navy);
    border-radius: 22px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps-row h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.steps-row p {
    color: var(--text-muted-light);
    font-size: 14.5px;
    max-width: 230px;
    margin: 0 auto;
}

.steps-panel {
    display: none;
}

.steps-panel.active {
    display: block;
}

/* ---------- Trusted by ---------- */
.trusted {
    background: var(--white);
    padding: 80px 0 40px;
}

.trusted .eyebrow {
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
}

.trusted h2 {
    font-size: 30px;
    font-weight: 700;
    margin-top: 6px;
}

.logo-row {
    margin-top: 34px;
    margin-bottom: 60px;
}

.juspay-logo,
.ondc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 26px;
    color: #1f2937;
}

.juspay-logo .dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 5px solid #1877f2;
}

.ondc-logo {
    font-size: 24px;
}

.ondc-logo .o {
    color: #0a66c2;
}

.ondc-logo small {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* ---------- Footer ---------- */
.footer-top {
    background: var(--navy-2);
    padding: 90px 0 60px;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    align-items: center;
    gap: 40px;
}

.footer-top h2 {
    color: black;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
}

.qr-box {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    width: 158px;
    height: 158px;
    margin-left: auto;
}

footer {
    background: var(--navy-2);
}

.footer-cols {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.6fr;
    gap: 30px;
    padding-top: 56px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-cols h4 {
    color: white;
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    font-weight: 700;
}

.footer-cols a,
.footer-cols p {
    display: block;
    color: black;
    font-size: 14.5px;
    line-height: 2;
}

.footer-cols a:hover {
    color: var(--yellow);
}

.footer-cols u,
.footer-cols a.underline {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: 28px 0;
    color: #ffffff;
    font-size: 13.5px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    margin-top: 50px;
}

@media (max-width:900px) {
    nav ul {
        display: none;
    }

    .hero-grid,
    .feature-grid,
    .footer-top-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid.reverse .art {
        order: 1;
    }

    .feature-grid.reverse .text {
        order: 2;
    }

    .stat-cards,
    .steps-row {
        grid-template-columns: 1fr;
    }

    .footer-cols {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 38px;
    }

    .qr-box {
        margin: 0 auto;
    }
}

/* Header app store download buttons — premium version
   Matches the JoharR black + gold brand palette */

.header-download {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-download .store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 14px;
    border-radius: 10px;
    background: linear-gradient(145deg, #1c1c24, #0e0e12);
    border: 1px solid rgba(217, 164, 65, 0.35);
    color: #fff;
    text-decoration: none;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.header-download .store-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 164, 65, 0.8);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(217, 164, 65, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-download .store-btn:active {
    transform: translateY(0);
}

.header-download .store-btn svg {
    flex-shrink: 0;
}

.header-download .store-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-family: 'Inter', sans-serif;
}

.header-download .store-btn-text small {
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.6px;
    color: #d9a441;
    text-transform: uppercase;
}

.header-download .store-btn-text {
    font-size: 14.5px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .header-download {
        gap: 8px;
    }

    .header-download .store-btn {
        padding: 6px 12px 6px 10px;
    }

    .header-download .store-btn-text {
        font-size: 12.5px;
    }

    .header-download .store-btn-text small {
        font-size: 8px;
    }
}

@media (max-width: 480px) {

    /* Collapse to icon-only badges on very small screens */
    .header-download .store-btn-text {
        display: none;
    }

    .header-download .store-btn {
        padding: 9px;
    }
}

/* Header layout: logo | nav links | download buttons */
.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Main nav links (Home / Services / About) */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: right;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: rgba(28, 28, 36, 0.65);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.15s ease;
}

.main-nav a:hover {
    color: #1c1c24;
}

.main-nav a.active {
    color: #1c1c24;
    font-weight: 700;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    border-radius: 2px;
    background: #1c1c24;
}

/* Collapse nav on smaller screens so it doesn't crowd the download buttons */
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
}

/* Scroll to top button */
#scrollTopBtn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #1c1c24;
    color: #d9a441;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.15s ease;
    z-index: 999;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background: #d9a441;
    color: #1c1c24;
}

@media (max-width: 600px) {
    #scrollTopBtn {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

:root {
    --gold-1: #e0a83c;
    --gold-2: #cf9530;
    --ink: #14171f;
    --ink-soft: #2a2d36;
    --cream: #f4f4f4;
    --white: #ffffff;
    --badge-bg: rgba(20, 23, 31, .08);
    --badge-border: rgba(20, 23, 31, .28);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--cream);
    color: var(--ink);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ============ HEADER ============ */
header {
    position: relative;
    z-index: 5;
    padding-top: 26px;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-icon svg {
    width: 22px;
    height: 22px;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.main-nav ul {
    display: flex;
    gap: 36px;
}

.main-nav a {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink-soft);
    transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--ink);
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: var(--white);
    padding: 10px 20px 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.15;
    box-shadow: 0 10px 24px rgba(20, 23, 31, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(20, 23, 31, .32);
}

.store-btn-text small {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .08em;
    opacity: .75;
    text-transform: uppercase;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    background: linear-gradient(160deg, var(--gold-1), var(--gold-2));
    padding-top: 56px;
    padding-bottom: 120px;
    overflow: hidden;
    isolation: isolate;
}

/* scattered dot texture, matching reference */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(20, 23, 31, .10) 4px, transparent 4px);
    background-size: 140px 140px;
    background-position: 20px 30px;
    opacity: .6;
    z-index: 0;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 40px;
    padding-top: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid rgba(20, 23, 31, .55);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 999px;
    margin-bottom: 36px;
}

.badge svg {
    width: 14px;
    height: 14px;
    fill: var(--ink);
}

/* big brand lockup inside hero, matching reference */
.hero-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}

.hero-brand .brand-icon-lg {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(160deg, #000000, #000000);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, .35), 0 10px 18px rgba(20, 23, 31, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-left: 5px;
}

.hero-brand .brand-icon-lg svg {
    width: 32px;
    height: 32px;
}

.hero-brand span {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.text h1 {
    font-size: 60px;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 26px;
    color: var(--ink);
}

.text h1 .line-light {
    display: block;
    color: var(--white);
}

.text p {
    max-width: 440px;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(20, 23, 31, .75);
    font-weight: 500;
    margin: 0 0 34px;
}

.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-yellow,
.btn-outline {
    display: inline-block;
    background: var(--ink);
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    padding: 16px 30px;
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(20, 23, 31, .28);
    transition: transform .2s ease, box-shadow .2s ease;
    border: none;
}

.btn-yellow:hover,
.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(20, 23, 31, .34);
}

/* ============ HERO ART (browser preview card) ============ */
.hero-art {
    position: relative;
    z-index: 2;
}

.preview-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--gold-1);
    box-shadow: 0 30px 60px rgba(20, 23, 31, .35);
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #7b5cff, #ff5c8a, #ffd166) 1;
}

.preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
}

.preview-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-brand .mini-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-brand .mini-icon svg {
    width: 11px;
    height: 11px;
}

.preview-brand span {
    font-weight: 800;
    font-size: 12px;
    color: var(--ink);
}

.preview-nav {
    display: flex;
    gap: 16px;
}

.preview-nav span {
    font-size: 10px;
    font-weight: 600;
    color: rgba(20, 23, 31, .65);
}

.preview-store {
    background: var(--ink);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.preview-store svg {
    width: 9px;
    height: 9px;
}

.preview-body {
    padding: 34px 22px 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.preview-text h2 {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 10px;
}

.preview-text h2 span {
    display: block;
    color: var(--white);
}

.preview-text p {
    font-size: 9px;
    line-height: 1.6;
    color: rgba(20, 23, 31, .72);
    max-width: 200px;
    margin: 0 0 16px;
    font-weight: 500;
}

.preview-text .mini-btn {
    display: inline-block;
    background: var(--white);
    color: var(--ink);
    font-size: 9px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
}

.vehicles {
    display: flex;
    align-items: flex-end;
    gap: -6px;
}

.vehicles svg {
    display: block;
    margin-left: -14px;
}

.vehicles svg:first-child {
    margin-left: 0;
}

.preview-wave {
    display: block;
    width: 100%;
}

.wave-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    z-index: 1;
}

@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 10px;
    }

    .text h1 {
        font-size: 42px;
    }

    .main-nav {
        display: none;
    }

    .preview-body {
        flex-direction: column;
        align-items: flex-start;
    }
}