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

/* ─── CSS Custom Properties ─────────────────────────────────────────────────── */
:root {
    /* Brand colours */
    --clr-bg:           #060812;
    --clr-bg-2:         #0B0E20;
    --clr-card:         #0F1226;
    --clr-card-hover:   #141830;
    --clr-border:       rgba(255, 255, 255, 0.07);
    --clr-border-glow:  rgba(107, 78, 255, 0.35);

    --clr-purple:       #6B4EFF;
    --clr-purple-light: #8B72FF;
    --clr-cyan:         #00C9FF;
    --clr-pink:         #FF3CAC;

    --gradient-brand:   linear-gradient(135deg, #6B4EFF 0%, #00C9FF 100%);
    --gradient-glow:    linear-gradient(135deg, rgba(107,78,255,0.15) 0%, rgba(0,201,255,0.15) 100%);
    --gradient-card:    linear-gradient(135deg, rgba(107,78,255,0.08) 0%, rgba(0,201,255,0.04) 100%);
    --gradient-hero:    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(107,78,255,0.35) 0%, transparent 70%);

    /* Typography */
    --font-sans:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    --fs-xs:    0.75rem;
    --fs-sm:    0.875rem;
    --fs-base:  1rem;
    --fs-lg:    1.125rem;
    --fs-xl:    1.25rem;
    --fs-2xl:   1.5rem;
    --fs-3xl:   1.875rem;
    --fs-4xl:   2.25rem;
    --fs-5xl:   3rem;
    --fs-6xl:   3.75rem;
    --fs-7xl:   4.5rem;

    --fw-light:     300;
    --fw-regular:   400;
    --fw-medium:    500;
    --fw-semibold:  600;
    --fw-bold:      700;
    --fw-extrabold: 800;

    --lh-tight:   1.1;
    --lh-snug:    1.25;
    --lh-normal:  1.5;
    --lh-relaxed: 1.75;

    /* Spacing */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Layout */
    --max-w:        1280px;
    --max-w-text:   760px;
    --container-px: clamp(1.25rem, 5vw, 2.5rem);

    /* Effects */
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  32px;
    --radius-full: 9999px;

    --shadow-sm:   0 2px 8px rgba(0,0,0,0.25);
    --shadow-md:   0 8px 32px rgba(0,0,0,0.35);
    --shadow-lg:   0 16px 60px rgba(0,0,0,0.45);
    --shadow-glow: 0 0 60px rgba(107,78,255,0.2);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);

    /* Transitions */
    --ease-fast:   150ms ease;
    --ease-base:   250ms ease;
    --ease-slow:   400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Text colours */
    --clr-text:         #FFFFFF;
    --clr-text-muted:   #8B9AB5;
    --clr-text-subtle:  #5A6882;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ─── Typography ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--fs-4xl), 6vw, var(--fs-7xl)); font-weight: var(--fw-extrabold); }
h2 { font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl)); font-weight: var(--fw-bold); }
h3 { font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-3xl)); }
h4 { font-size: clamp(var(--fs-lg), 2vw, var(--fs-2xl)); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

p { line-height: var(--lh-relaxed); color: var(--clr-text-muted); }

.text-gradient {
    display: inline;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.lead {
    font-size: clamp(var(--fs-lg), 2vw, var(--fs-xl));
    line-height: var(--lh-relaxed);
    color: var(--clr-text-muted);
    font-weight: var(--fw-regular);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-purple-light);
    margin-bottom: var(--space-4);
}

.eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--container-px);
}

.container--narrow {
    max-width: calc(var(--max-w-text) + (var(--container-px) * 2));
}

section {
    padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section--flush-top {
    padding-block-start: 0;
}

.section-header {
    margin-bottom: clamp(var(--space-12), 5vw, var(--space-20));
}

.section-header--center {
    text-align: center;
    max-width: var(--max-w-text);
    margin-inline: auto;
    margin-bottom: clamp(var(--space-12), 5vw, var(--space-20));
}

/* ─── Grid Systems ───────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-6); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── Flex Utilities ─────────────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.01em;
    transition: all var(--ease-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 20px rgba(107,78,255,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(107,78,255,0.55);
}

.btn-outline {
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: var(--clr-purple);
    background: rgba(107,78,255,0.1);
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--clr-purple-light);
    padding-inline: var(--space-2);
}

.btn-ghost:hover {
    color: #fff;
    gap: var(--space-3);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--fs-base);
}

.btn svg, .btn .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform var(--ease-base);
}

.btn-ghost:hover svg {
    transform: translateX(4px);
}

/* ─── Cards ──────────────────────────────────────────────────────────────────── */
.card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all var(--ease-slow);
    box-shadow: var(--shadow-card);
}

.card:hover {
    border-color: var(--clr-border-glow);
    background: var(--clr-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card--gradient {
    background: var(--gradient-card);
    border-color: var(--clr-border-glow);
}

/* Card inner elements — stacked column: icon → title → desc, tag badge top-right */
.card:has(.card-tag) {
    position: relative;
}

.card-icon {
    margin-bottom: var(--space-5);
}

.card-tag {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
}

.card-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--clr-text);
    margin-bottom: var(--space-3);
    line-height: var(--lh-snug);
}

.card-desc {
    font-size: var(--fs-sm);
    color: var(--clr-text-muted);
    line-height: var(--lh-relaxed);
    margin: 0;
}

/* ─── Tags / Badges ──────────────────────────────────────────────────────────── */
.tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: .55em;
}

.tag-purple {
    background: rgba(107,78,255,0.15);
    color: var(--clr-purple-light);
    border: 1px solid rgba(107,78,255,0.25);
}

.tag-cyan {
    background: rgba(0,201,255,0.12);
    color: var(--clr-cyan);
    border: 1px solid rgba(0,201,255,0.2);
}

.tag-pink {
    background: rgba(255,60,172,0.12);
    color: var(--clr-pink);
    border: 1px solid rgba(255,60,172,0.2);
}

/* ─── Dividers ───────────────────────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--clr-border);
    margin-block: var(--space-12);
}

/* ─── Section Backgrounds ────────────────────────────────────────────────────── */
.bg-alt { background: var(--clr-bg-2); }
.bg-card { background: var(--clr-card); }

/* ─── Icon Container ─────────────────────────────────────────────────────────── */
.icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-card);
    border: 1px solid var(--clr-border-glow);
    flex-shrink: 0;
}

.icon-wrap svg {
    width: 22px;
    height: 22px;
    color: var(--clr-purple-light);
}

.icon-wrap--lg {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
}

.icon-wrap--lg svg { width: 28px; height: 28px; }

/* ─── Scroll Reveal Animations ───────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── Noise texture overlay ──────────────────────────────────────────────────── */
.noise::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.04;
    border-radius: inherit;
}

/* ─── Glow Orbs (decorative) ─────────────────────────────────────────────────── */
.orb {
    position: absolute!important;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.orb--purple {
    background: rgba(107, 78, 255, 0.25);
    width: 600px;
    height: 600px;
}

.orb--cyan {
    background: rgba(0, 201, 255, 0.15);
    width: 400px;
    height: 400px;
}

/* ─── Responsive Visibility ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* ─── Focus Styles (Accessibility) ──────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--clr-purple);
    outline-offset: 3px;
}

/* ─── Selection ──────────────────────────────────────────────────────────────── */
::selection {
    background: rgba(107, 78, 255, 0.4);
    color: #fff;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--clr-bg-2); }
::-webkit-scrollbar-thumb {
    background: rgba(107,78,255,0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--clr-purple); }

/* ─── Spacing Utilities ──────────────────────────────────────────────────────── */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* ─── Text Utilities ─────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted   { color: var(--clr-text-muted); }
.text-subtle  { color: var(--clr-text-subtle); }
.text-purple  { color: var(--clr-purple-light); }
.text-cyan    { color: var(--clr-cyan); }

/* ─── Prose (blog/long-form content) ────────────────────────────────────────── */
.prose h2 { font-size: var(--fs-3xl); margin-top: var(--space-12); margin-bottom: var(--space-4); }
.prose h3 { font-size: var(--fs-2xl); margin-top: var(--space-10); margin-bottom: var(--space-3); }
.prose p  { margin-bottom: var(--space-6); }
.prose ul, .prose ol { margin-bottom: var(--space-6); padding-left: var(--space-6); }
.prose li { margin-bottom: var(--space-2); color: var(--clr-text-muted); }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a  { color: var(--clr-purple-light); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
    border-left: 3px solid var(--clr-purple);
    padding: var(--space-4) var(--space-6);
    background: var(--gradient-card);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-block: var(--space-8);
    font-size: var(--fs-lg);
    font-style: italic;
    color: var(--clr-text);
}
