/* XIVRA Landing Page — xivra.pk */

:root {
    --purple: #6a5acd;
    --purple-dark: #5b4cc4;
    --purple-soft: #ede9fe;
    --green: #38ad68;
    --green-soft: #d7f5e4;
    --text: #0f172a;
    --text-muted: #64748b;
    --surface: #ffffff;
    --page: #f4f6fb;
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    --radius: 16px;
    --radius-lg: 24px;
    --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--page);
    line-height: 1.6;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 10px 24px rgba(106, 90, 205, 0.28);
}

.btn--primary:hover { background: var(--purple-dark); }

.btn--outline {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
}

.btn--white {
    background: #fff;
    color: var(--purple);
}

.btn--ghost-white {
    background: transparent;
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}

.btn--lg { padding: 14px 22px; font-size: 15px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.brand__logo {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(106, 90, 205, 0.2);
}

.brand__name { font-size: 1.1rem; }

.site-nav {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.site-nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
}

.site-nav a:hover { color: var(--purple); }

.site-header__actions {
    display: flex;
    gap: 10px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    margin-left: auto;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* Hero */
.hero {
    padding: 72px 0 48px;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(106, 90, 205, 0.12), transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(56, 173, 104, 0.1), transparent 35%),
        linear-gradient(180deg, #fff 0%, var(--page) 100%);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--purple);
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero__lead {
    margin: 0 0 28px;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 34rem;
}

.hero__lead strong {
    display: block;
    color: var(--text);
    margin-bottom: 8px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.pill--whatsapp { background: var(--green-soft); color: #166534; }
.pill--sms { background: #ffe8d6; color: #9a3412; }
.pill--social { background: #dbeafe; color: #1d4ed8; }
.pill--email { background: var(--purple-soft); color: #5b21b6; }

/* Hero animated scene */
.hero-scene {
    position: relative;
    min-height: 380px;
}

.hero-scene__orb {
    position: absolute;
    border-radius: 50%;
    animation: pulse-orb 6s ease-in-out infinite;
}

.hero-scene__orb--1 {
    width: 220px; height: 220px;
    top: 10%; left: 5%;
    background: rgba(106, 90, 205, 0.14);
}

.hero-scene__orb--2 {
    width: 140px; height: 140px;
    bottom: 8%; right: 8%;
    background: rgba(56, 173, 104, 0.16);
    animation-delay: -2s;
}

.hero-scene__orb--3 {
    width: 80px; height: 80px;
    top: 55%; left: 45%;
    background: rgba(59, 130, 246, 0.12);
    animation-delay: -4s;
}

.hero-scene__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.line {
    animation: dash-flow 3s linear infinite;
}

.line--b { animation-delay: -0.6s; }
.line--c { animation-delay: -1.2s; }
.line--d { animation-delay: -1.8s; }
.line--e { animation-delay: -2.4s; }

.float-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 96px;
    padding: 14px 12px;
    background: rgba(255,255,255,0.94);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    text-align: center;
    animation: float-y 5s ease-in-out infinite;
}

.float-card strong {
    font-size: 12px;
    color: var(--text);
}

.float-card span {
    font-size: 11px;
    color: var(--text-muted);
}

.float-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
}

.float-card__icon--hub { background: var(--purple-soft); color: var(--purple); }
.float-card__icon--wa { background: var(--green-soft); color: #16a34a; }
.float-card__icon--sms { background: #ffe8d6; color: #ea580c; }
.float-card__icon--social { background: #dbeafe; color: #2563eb; }
.float-card__icon--email { background: var(--purple-soft); color: #7c3aed; }
.float-card__icon--store { background: #fef3c7; color: #d97706; }

.float-card--hub {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 130px;
    padding: 18px 16px;
    z-index: 2;
    animation-name: float-hub;
}

.float-card--wa { top: 6%; left: 18%; }
.float-card--sms { top: 8%; right: 12%; animation-delay: -1s; }
.float-card--social { bottom: 28%; left: 4%; animation-delay: -2s; }
.float-card--email { bottom: 26%; right: 6%; animation-delay: -3s; }
.float-card--store { bottom: 2%; left: 42%; animation-delay: -1.5s; }

/* Stats */
.stats {
    padding: 24px 0 56px;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15,23,42,0.04);
}

.stat strong {
    display: block;
    font-size: 1.8rem;
    color: var(--purple);
    line-height: 1.2;
}

.stat span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section--soft {
    background: #fff;
}

.section__head {
    max-width: 640px;
    margin-bottom: 40px;
}

.section__head h2 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.02em;
}

.section__lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    margin-bottom: 16px;
    background-size: 28px;
    background-repeat: no-repeat;
    background-position: center;
}

.feature-card__icon--wa { background-color: var(--green-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2316a34a' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.486 2 2 6.486 2 12c0 1.811.487 3.514 1.338 4.978L2 22l5.233-1.371A9.954 9.954 0 0012 22c5.514 0 10-4.486 10-10S17.514 2 12 2z'/%3E%3C/svg%3E"); }
.feature-card__icon--auto { background-color: var(--purple-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%236a5acd' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83'/%3E%3C/svg%3E"); }
.feature-card__icon--sms { background-color: #ffe8d6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ea580c' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 15a4 4 0 01-4 4H8l-5 3V7a4 4 0 014-4h10a4 4 0 014 4z'/%3E%3C/svg%3E"); }
.feature-card__icon--social { background-color: #dbeafe; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232563eb' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M22 12a10 10 0 10-3.6 7.7M22 4L12 14.5 9 11.5'/%3E%3C/svg%3E"); }
.feature-card__icon--store { background-color: #fef3c7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23d97706' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 9l9-6 9 6v11a1 1 0 01-1 1H4a1 1 0 01-1-1V9z'/%3E%3C/svg%3E"); }
.feature-card__icon--contacts { background-color: #e0e7ff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%234f46e5' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2M9 11a4 4 0 100-8 4 4 0 000 8zM23 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E"); }

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step {
    background: var(--page);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

.step__num {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--purple);
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
}

.step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* Modules */
.modules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 15px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green-soft);
    box-shadow: inset 0 0 0 2px var(--green);
}

/* Dashboard mock */
.dashboard-mock {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: float-y 6s ease-in-out infinite;
}

.dashboard-mock__bar {
    display: flex;
    gap: 6px;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.dashboard-mock__bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}

.dashboard-mock__bar span:first-child { background: #fca5a5; }
.dashboard-mock__bar span:nth-child(2) { background: #fde68a; }
.dashboard-mock__bar span:nth-child(3) { background: #86efac; }

.dashboard-mock__body {
    display: grid;
    grid-template-columns: 72px 1fr;
    min-height: 260px;
}

.dashboard-mock__sidebar {
    background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
}

.dashboard-mock__content { padding: 20px; }

.mock-row {
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
    margin-bottom: 12px;
    width: 70%;
}

.mock-row--wide { width: 90%; height: 16px; margin-bottom: 20px; }

.mock-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.mock-card {
    height: 72px;
    border-radius: 12px;
    background: #e2e8f0;
}

.shimmer {
    background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: shimmer 2.4s ease-in-out infinite;
}

/* CTA band */
.cta-band {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--purple) 0%, #7c3aed 55%, var(--green) 140%);
    color: #fff;
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-band h2 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.cta-band p { margin: 0; opacity: 0.92; }

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Footer */
.site-footer {
    padding: 48px 0 24px;
    background: #0f172a;
    color: #94a3b8;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.brand--footer .brand__name { color: #fff; }

.site-footer__tagline {
    margin: 12px 0 0;
    font-size: 14px;
    max-width: 280px;
}

.site-footer h4 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 14px;
}

.site-footer a {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #94a3b8;
}

.site-footer a:hover { color: #fff; }

.site-footer__bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--delay { transition-delay: 0.15s; }

/* Keyframes */
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes float-hub {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

@keyframes pulse-orb {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.75; }
}

@keyframes dash-flow {
    to { stroke-dashoffset: -28; }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 960px) {
    .hero__grid,
    .modules,
    .feature-grid,
    .steps,
    .stats__grid {
        grid-template-columns: 1fr;
    }

    .hero__visual { order: -1; }
    .hero-scene { min-height: 320px; max-width: 420px; margin: 0 auto; }

    .site-nav,
    .site-header__actions {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 16px;
        flex-direction: column;
    }

    .site-nav.is-open,
    .site-header__actions.is-open {
        display: flex;
    }

    .site-header__inner { position: relative; flex-wrap: wrap; }
    .menu-toggle { display: flex; }

    .site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero { padding-top: 48px; }
    .float-card--store { display: none; }
    .mock-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
