/* ===== Fonts: Ravi ===== */
@font-face {
    font-family: "Ravi";
    src: url("../fonts/Ravi-Regular.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Ravi";
    src: url("../fonts/Ravi-Medium.woff2") format("woff2");
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Ravi";
    src: url("../fonts/Ravi-SemiBold.woff2") format("woff2");
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Ravi";
    src: url("../fonts/Ravi-Bold.woff2") format("woff2");
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Ravi";
    src: url("../fonts/Ravi-Black.woff2") format("woff2");
    font-weight: 900; font-style: normal; font-display: swap;
}

/* ===== Design tokens ===== */
:root {
    --bg: #0a0a12;
    --bg-2: #0f0f1c;
    --surface: #15152a;
    --surface-2: #1c1c38;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #ECECF5;
    --muted: #9C9CBE;
    --primary: #8b5cf6;
    --accent: #c084fc;
    --grad: linear-gradient(120deg, #c084fc, #8b5cf6 45%, #6366f1);
    --grad-soft: linear-gradient(120deg, rgba(192,132,252,0.16), rgba(99,102,241,0.16));
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 16px 50px rgba(139, 92, 246, 0.35);
    --radius: 18px;
    --radius-lg: 28px;
    --container: 1180px;
    --font: "Ravi", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.9;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a[data-nav] { cursor: pointer; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
    width: 1.25em; height: 1.25em; display: inline-block;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round; vertical-align: middle;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 110px 0; position: relative; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.85rem; font-weight: 700; color: var(--accent);
    margin-bottom: 16px; padding: 5px 15px;
    border: 1px solid var(--line-strong); border-radius: 999px;
    background: rgba(168, 85, 247, 0.08);
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.45; margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.06rem; max-width: 640px; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head .section-lead { margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px; font-family: var(--font);
    font-weight: 700; font-size: 0.98rem; cursor: pointer; border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn .ic { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(139, 92, 246, 0.55); }
.btn-primary:hover .ic { transform: translateX(-4px); transition: transform 0.25s ease; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); transform: translateY(-3px); }
.btn-block { width: 100%; }

/* ===== Scroll progress ===== */
.scroll-progress { position: fixed; top: 0; right: 0; height: 3px; width: 0%; background: var(--grad); z-index: 200; transition: width 0.1s linear; }

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; inset-inline: 0; z-index: 100;
    padding: 18px 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.navbar.scrolled {
    background: rgba(10, 10, 18, 0.96);
    padding: 11px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; }
.brand-mark {
    width: 40px; height: 40px; display: grid; place-items: center;
    background: var(--grad); color: #fff; border-radius: 13px;
    font-family: system-ui, sans-serif; font-weight: 800; font-size: 1.2rem;
    box-shadow: var(--shadow-glow); position: relative; overflow: hidden;
}
.brand-mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent 55%); }
.brand-text .accent { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.98rem; position: relative; transition: color 0.2s ease; }
.nav-links a::after { content: ""; position: absolute; bottom: -6px; right: 0; width: 0; height: 2px; background: var(--grad); transition: width 0.25s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { padding: 9px 20px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 170px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(95px); opacity: 0.55; }
.blob-1 { width: 500px; height: 500px; background: #7c3aed; top: -130px; left: -110px; animation: float 12s ease-in-out infinite; }
.blob-2 { width: 440px; height: 440px; background: #4f46e5; bottom: -150px; right: -90px; animation: float 14s ease-in-out infinite reverse; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 72%);
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 20px; }
.hero-content { max-width: 760px; }
.hero-actions, .hero-stats { justify-content: center; }
.hero-sub { margin-inline: auto; }
.hero-title { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 900; line-height: 1.35; }
.hero-title .grad {
    background: linear-gradient(120deg, #e9d5ff, #c4a4ff 45%, #a5b4fc);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 22px rgba(168, 85, 247, 0.5));
}
.hero-role { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.2rem); font-weight: 500; margin-top: 20px; max-width: 600px; margin-inline: auto; }
.hero-tagline { font-size: clamp(1.25rem, 2.8vw, 1.7rem); font-weight: 800; margin-top: 12px; margin-bottom: 38px; max-width: 640px; margin-inline: auto; }
.num-ltr { unicode-bidi: isolate; direction: ltr; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 42px; margin-top: 50px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat .num { font-size: 2.2rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .lbl { color: var(--muted); font-size: 0.9rem; }

/* ===== Marquee ===== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: scroll-x 60s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 38px; padding-inline-start: 38px; white-space: nowrap; }
.marquee-track span { color: var(--muted); font-weight: 700; font-size: 1.05rem; }
.marquee-track i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.6; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ===== Pain points ===== */
.pains { background: var(--bg-2); }
.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.pain-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 26px; transition: transform 0.3s ease, border-color 0.3s ease;
    border-top: 3px solid rgba(168, 85, 247, 0.5);
}
.pain-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.pain-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--grad-soft); color: var(--accent); margin-bottom: 18px; }
.pain-icon .ic { width: 1.5em; height: 1.5em; }
.pain-card h3 { font-size: 1.12rem; margin-bottom: 8px; line-height: 1.6; }
.pain-card p { color: var(--muted); font-size: 0.97rem; }

/* ===== Cards (services) ===== */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; top: 0; right: 0; width: 100%; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform 0.35s ease; }
.card:hover { transform: translateY(-8px); border-color: rgba(168, 85, 247, 0.4); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card:hover .card-icon { background: var(--grad); color: #fff; transform: rotate(-6deg) scale(1.05); }
.card-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 15px; background: rgba(168, 85, 247, 0.12); color: var(--accent); border: 1px solid var(--line); margin-bottom: 18px; transition: 0.3s ease; }
.card-icon .ic { width: 1.55em; height: 1.55em; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 16px; }
.card-out { display: inline-flex; font-size: 0.85rem; font-weight: 600; color: var(--accent); padding-top: 14px; border-top: 1px solid var(--line); width: 100%; }

/* ===== Why ===== */
.why-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.why-img-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.why-img-wrap img { width: 100%; }
.why-img-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,18,0.85), transparent 45%); }
.why-quote { position: absolute; z-index: 2; bottom: 18px; inset-inline: 18px; display: flex; align-items: center; gap: 12px; background: rgba(21,21,42,0.7); backdrop-filter: blur(10px); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 16px; }
.why-quote .ic { width: 1.6em; height: 1.6em; color: var(--accent); flex-shrink: 0; }
.why-quote span { font-size: 0.92rem; font-weight: 600; }
.why-list { display: grid; gap: 22px; margin-top: 28px; }
.why-row { display: flex; gap: 16px; }
.why-ic { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 13px; background: var(--grad-soft); border: 1px solid var(--line); color: var(--accent); }
.why-ic .ic { width: 1.35em; height: 1.35em; }
.why-row h3 { font-size: 1.12rem; margin-bottom: 4px; }
.why-row p { color: var(--muted); font-size: 0.97rem; }

/* ===== Process ===== */
.process { background: var(--bg-2); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px; position: relative; transition: transform 0.3s ease, border-color 0.3s ease; overflow: hidden; }
.step:hover { transform: translateY(-6px); border-color: rgba(168, 85, 247, 0.4); }
.step-icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--grad); color: #fff; border-radius: 15px; box-shadow: var(--shadow-glow); margin-bottom: 18px; }
.step-icon .ic { width: 1.5em; height: 1.5em; }
.step-no { position: absolute; top: 16px; left: 18px; font-size: 2.2rem; font-weight: 900; color: rgba(255,255,255,0.06); }
.step h3 { font-size: 1.14rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ===== Contact ===== */
.contact-card { text-align: center; background: linear-gradient(135deg, var(--surface), var(--surface-2)); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 64px 54px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; width: 360px; height: 360px; background: var(--primary); filter: blur(130px); opacity: 0.22; top: -130px; right: -80px; }
.contact-card .eyebrow, .contact-card .section-title, .contact-card .contact-lead, .contact-card .contact-actions { position: relative; z-index: 1; }
.contact-lead { color: var(--muted); font-size: 1.06rem; max-width: 620px; margin: 0 auto 34px; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-lg .ic { width: 1.25em; height: 1.25em; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 46px 0; background: var(--bg-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-info { display: flex; flex-direction: column; gap: 12px; }
.footer-tag { color: var(--muted); }
.footer-copy { color: var(--muted); font-size: 0.88rem; }
.footer-enamad { flex-shrink: 0; }
.footer-enamad img { max-height: 110px; width: auto; border-radius: 10px; }
@media (max-width: 600px) {
    .footer-inner { flex-direction: column; text-align: center; align-items: center; }
    .footer-info { align-items: center; }
}

/* ===== FAB (phone call) ===== */
.fab { position: fixed; bottom: 24px; left: 24px; z-index: 90; width: 56px; height: 56px; display: grid; place-items: center; background: var(--grad); color: #fff; border-radius: 50%; box-shadow: var(--shadow-glow); transition: transform 0.25s ease; animation: pulse 2.6s ease-in-out infinite; }
.fab .ic { width: 1.5em; height: 1.5em; }
.fab:hover { transform: scale(1.1); }

/* ===== Reveal ===== */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ===== Keyframes ===== */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 12px 30px rgba(139, 92, 246, 0.5); } 50% { box-shadow: 0 12px 42px rgba(139, 92, 246, 0.85); } }

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .cards-3 { grid-template-columns: repeat(2, 1fr); }
    .why-inner { grid-template-columns: 1fr; }
    .why-media { max-width: 440px; margin-inline: auto; }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .contact-card { padding: 36px; }
}
@media (max-width: 760px) {
    /* backdrop-filter on the navbar would trap the fixed menu in the bar's box */
    .navbar, .navbar.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .navbar.scrolled { background: rgba(8, 8, 16, 0.95); }
    .brand { position: relative; z-index: 101; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; position: relative; z-index: 101; }
    .nav-links {
        position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center;
        gap: 30px; background: rgba(8, 8, 16, 0.98); backdrop-filter: blur(18px);
        opacity: 0; visibility: hidden; transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease; z-index: 99;
    }
    .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-links a { font-size: 1.5rem; font-weight: 700; color: var(--text); }
    .nav-links a::after { display: none; }
    body.menu-open { overflow: hidden; }
}
@media (max-width: 640px) {
    .section { padding: 80px 0; }
    .cards-3, .timeline { grid-template-columns: 1fr; }
    .hero-stats { gap: 26px; }
    .stat .num { font-size: 1.8rem; }
    .contact-card { padding: 36px 26px; }
}
