/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

ul,
ol {
    list-style: none;
}

input,
textarea {
    font-family: inherit;
}

/* ════════════════════════════════════════════════════════════
   DESIGN TOKENS — DARK MODE DEFAULT
   ════════════════════════════════════════════════════════════ */
:root {
    /* Brand palette – never reassigned */
    --brand-royal-blue: #080E68;
    --brand-jacksons-purple: #252C98;
    --brand-royal-blue2: #352197;
    --brand-royal-blue3: #3D0A7B;
    --brand-heliotrope: #A347FF;
    --brand-green: #2BCB15;
    --brand-orange: #F98112;
    --brand-red: #FA0000;
    --brand-blue: #228BEC;

    /* ─ Dark mode surfaces
     We use deep navy-charcoal instead of the saturated brand blue
     (#080E68) as a page background — that colour belongs on logos
     and accents, not behind 90% of the UI.
  ─ */
    --bg-root: #090C1A;
    --bg-surface: #0D1122;
    --bg-card: rgba(255, 255, 255, 0.046);
    --bg-card-hover: rgba(255, 255, 255, 0.080);
    --bg-card-solid: #111828;
    --bg-input: #0F1526;
    --bg-nav: rgba(9, 12, 26, 0.86);
    --bg-section-alt: #0B0F20;

    --border-subtle: rgba(163, 71, 255, 0.11);
    --border-medium: rgba(163, 71, 255, 0.26);
    --border-strong: rgba(163, 71, 255, 0.52);
    --border-line: rgba(255, 255, 255, 0.055);

    --text-primary: #E8ECFF;
    --text-secondary: rgba(200, 210, 255, 0.60);
    --text-muted: rgba(170, 185, 240, 0.36);
    --text-nav: rgba(210, 218, 255, 0.76);

    --nav-border-bottom: rgba(163, 71, 255, 0.13);
    --shadow-card: 0 8px 36px rgba(0, 0, 0, 0.50), 0 1px 0 rgba(255, 255, 255, 0.035);
    --shadow-glow: 0 0 60px rgba(163, 71, 255, 0.16);
    --shadow-btn: 0 4px 20px rgba(163, 71, 255, 0.38);
    --shadow-nav: 0 4px 30px rgba(0, 0, 0, 0.40);

    --accent: #A347FF;
    --accent-alt: #228BEC;
    --success: #2BCB15;
    --warning: #F98112;
    --danger: #FA0000;

    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 150ms;
    --dur-base: 250ms;
    --dur-slow: 450ms;

    --nav-h: 72px;
    --radius-s: 8px;
    --radius-m: 14px;
    --radius-l: 22px;
    --radius-xl: 32px;
    --max-w: 1200px;
    --gap: 1.5rem;
}

/* ── LIGHT MODE ──────────────────────────────────────────── */
[data-theme="light"] {
    --bg-root: #F2F4FF;
    --bg-surface: #FAFBFF;
    --bg-card: rgba(255, 255, 255, 0.82);
    --bg-card-hover: rgba(255, 255, 255, 0.97);
    --bg-card-solid: #FFFFFF;
    --bg-input: #FFFFFF;
    --bg-nav: rgba(242, 244, 255, 0.90);
    --bg-section-alt: #E9ECFF;

    --border-subtle: rgba(53, 33, 151, 0.08);
    --border-medium: rgba(53, 33, 151, 0.18);
    --border-strong: rgba(53, 33, 151, 0.42);
    --border-line: rgba(8, 14, 104, 0.06);

    --text-primary: #09114A;
    --text-secondary: rgba(9, 17, 74, 0.58);
    --text-muted: rgba(9, 17, 74, 0.34);
    --text-nav: rgba(9, 17, 74, 0.70);

    --nav-border-bottom: rgba(53, 33, 151, 0.09);
    --shadow-card: 0 4px 24px rgba(8, 14, 104, 0.06), 0 1px 0 rgba(8, 14, 104, 0.04);
    --shadow-glow: 0 0 50px rgba(163, 71, 255, 0.08);
    --shadow-btn: 0 4px 20px rgba(163, 71, 255, 0.26);
    --shadow-nav: 0 2px 20px rgba(8, 14, 104, 0.08);
}

/* ── Theme animation ─────────────────────────────────────── */
html,
body,
nav,
.card,
.feat-card,
.step-card,
.app-point,
.about-point,
.fl-card,
footer {
    transition:
        background-color var(--dur-slow) ease,
        border-color var(--dur-slow) ease,
        color var(--dur-slow) ease,
        box-shadow var(--dur-slow) ease;
}

/* ════════════════════════════════════════════════════════════
   BASE
   ════════════════════════════════════════════════════════════ */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-root);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ════════════════════════════════════════════════════════════ */
.heading-1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.heading-2 {
    font-size: clamp(1.85rem, 3.8vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.heading-3 {
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
}

.body-lg {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.78;
}

.body-base {
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.72;
}

.body-sm {
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.65;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-heliotrope) 0%, var(--brand-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #7B1FDB 0%, #1A72D4 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ════════════════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5%, 3rem);
}

.text-center {
    text-align: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.875rem;
}

.section-label::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.section-label.centered {
    justify-content: center;
}

.section-label.centered::before {
    display: none;
}

.section {
    padding-block: 6rem;
    position: relative;
}

.section-alt {
    background: var(--bg-section-alt);
}

/* ════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: var(--nav-h);
    background: var(--bg-nav);
    border-bottom: 1px solid var(--nav-border-bottom);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.nav-logo .logo-wordmark {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.nav-links a {
    position: relative;
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-nav);
    border-radius: var(--radius-s);
    transition: color var(--dur-base) ease, background var(--dur-base) ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(163, 71, 255, 0.09);
}

.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-pill {
    display: inline-block;
    background: var(--brand-orange);
    color: #1F0800;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.45rem;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--dur-base) ease;
}

.theme-toggle:hover {
    background: rgba(163, 71, 255, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(22deg);
}

.nav-btn {
    padding: 0.5rem 1.3rem !important;
    background: linear-gradient(135deg, var(--brand-heliotrope), var(--brand-royal-blue2)) !important;
    color: #fff !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    box-shadow: var(--shadow-btn) !important;
    transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) ease !important;
}

.nav-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 28px rgba(163, 71, 255, 0.55) !important;
    background: linear-gradient(135deg, #B55DFF, #4535C0) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    background: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-s);
    transition: background var(--dur-fast) ease;
}

.hamburger:hover {
    background: rgba(163, 71, 255, 0.09);
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    display: block;
    transition: transform var(--dur-base) ease, opacity var(--dur-base) ease;
}

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

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 899;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(22px);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.15rem;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--dur-base) ease, transform var(--dur-base) ease;
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-menu a {
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-nav);
    border-radius: var(--radius-s);
}

.mobile-menu a:hover {
    background: rgba(163, 71, 255, 0.09);
    color: var(--text-primary);
}

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 50px;
    transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) ease, background var(--dur-base) ease, border-color var(--dur-base) ease;
}

.btn:active {
    transform: scale(0.97) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-heliotrope) 0%, var(--brand-royal-blue2) 100%);
    color: #fff;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(163, 71, 255, 0.55);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-medium);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: rgba(163, 71, 255, 0.07);
}

.btn-orange {
    background: linear-gradient(135deg, #F98112, #E06800);
    color: #fff;
    box-shadow: 0 4px 20px rgba(249, 129, 18, 0.35);
}

.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249, 129, 18, 0.50);
}

.btn-ghost {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    border-color: var(--border-medium);
    background: var(--bg-card-hover);
}

.btn-lg {
    padding: 0.9rem 2.25rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.45rem 1.1rem;
    font-size: 0.8125rem;
}

/* ════════════════════════════════════════════════════════════
   BADGE
   ════════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.badge-purple {
    background: rgba(163, 71, 255, 0.11);
    color: var(--brand-heliotrope);
    border: 1px solid rgba(163, 71, 255, 0.24);
}

.badge-orange {
    background: rgba(249, 129, 18, 0.11);
    color: var(--brand-orange);
    border: 1px solid rgba(249, 129, 18, 0.26);
}

.badge-green {
    background: rgba(43, 203, 21, 0.09);
    color: var(--brand-green);
    border: 1px solid rgba(43, 203, 21, 0.24);
}

.badge-blue {
    background: rgba(34, 139, 236, 0.09);
    color: var(--brand-blue);
    border: 1px solid rgba(34, 139, 236, 0.24);
}

.badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: 0.3;
        transform: scale(0.62)
    }
}

/* ════════════════════════════════════════════════════════════
   CARD
   ════════════════════════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-l);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform var(--dur-base) var(--ease-out-quart), box-shadow var(--dur-base) ease, border-color var(--dur-base) ease, background var(--dur-base) ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: var(--border-medium);
    background: var(--bg-card-hover);
}

/* ════════════════════════════════════════════════════════════
   DIVIDER
   ════════════════════════════════════════════════════════════ */
.divider-glow {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--brand-heliotrope) 30%, var(--brand-blue) 70%, transparent 100%);
    opacity: 0.20;
}

/* ════════════════════════════════════════════════════════════
   INPUT
   ════════════════════════════════════════════════════════════ */
.input-field {
    width: 100%;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1.5px solid var(--border-subtle);
    border-radius: 50px;
    padding: 0.85rem 1.4rem;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(163, 71, 255, 0.12);
}

.input-field.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(250, 0, 0, 0.09);
}

/* ════════════════════════════════════════════════════════════
   TOOLTIP
   ════════════════════════════════════════════════════════════ */
.q-tooltip {
    position: fixed;
    z-index: 9999;
    background: #0E1328;
    border: 1px solid rgba(163, 71, 255, 0.38);
    color: #C4A0FF;
    font-family: 'Poppins', sans-serif;
    font-size: 0.74rem;
    font-weight: 500;
    padding: 0.42rem 0.88rem;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 12px rgba(163, 71, 255, 0.10);
    pointer-events: none;
    white-space: normal;
    max-width: 220px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 130ms ease, transform 130ms ease;
}

.q-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 14px;
    width: 9px;
    height: 9px;
    background: #0E1328;
    border-left: 1px solid rgba(163, 71, 255, 0.38);
    border-top: 1px solid rgba(163, 71, 255, 0.38);
    transform: rotate(45deg);
}

.q-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="light"] .q-tooltip {
    background: #fff;
    color: var(--brand-royal-blue2);
    border-color: rgba(53, 33, 151, 0.22);
    box-shadow: 0 8px 24px rgba(8, 14, 104, 0.11);
}

[data-theme="light"] .q-tooltip::before {
    background: #fff;
    border-color: rgba(53, 33, 151, 0.22);
}

/* ════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--ease-out-quart), transform 0.6s var(--ease-out-quart);
}

.reveal.from-left {
    transform: translateX(-26px);
}

.reveal.from-right {
    transform: translateX(26px);
}

.reveal.scale-in {
    transform: scale(0.93);
}

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.reveal-d1 {
    transition-delay: 0.07s
}

.reveal-d2 {
    transition-delay: 0.14s
}

.reveal-d3 {
    transition-delay: 0.21s
}

.reveal-d4 {
    transition-delay: 0.28s
}

.reveal-d5 {
    transition-delay: 0.35s
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
footer {
    background: var(--bg-root);
    border-top: 1px solid var(--border-line);
    padding-top: 4rem;
    padding-bottom: 2.5rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand {
    flex: 0 0 100%;
    max-width: 300px;
}

.footer-col {
    flex: 1 1 110px;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.footer-wordmark {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.footer-brand .body-sm {
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all var(--dur-base) ease;
}

.social-icon:hover {
    background: rgba(163, 71, 255, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.footer-col h5 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col ul a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color var(--dur-fast) ease;
}

.footer-col ul a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-line);
    margin-top: 3rem;
    padding-top: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════
   KEYFRAMES
   ════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(32px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-14px)
    }
}

@keyframes orbPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8
    }
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width:900px) {
    .nav-links {
        display: none
    }

    .hamburger {
        display: flex
    }

    .section {
        padding-block: 4rem
    }
}

@media (max-width:600px) {
    :root {
        --nav-h: 64px
    }

    .section {
        padding-block: 3rem
    }

    .footer-brand {
        max-width: 100%
    }

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