/* Enhanced Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* SHAMAN Color Palette */
:root {
    --primary: #3B82F6;
    --primary-dark: #1D4ED8;
    --secondary: #93C5FD;
    --background: #030712;
    --background-light: #0B1224;
    --card-bg: #111827;
    --card-hover: #172033;
    --text-primary: #FFFFFF;
    --text-secondary: #D7E4F5;
    --text-muted: #8EA3BF;
    --accent: #60A5FA;
    --success: #60A5FA;
    --warning: #F59E0B;
    --danger: #EF4444;
    --border: #26344F;
    --shadow: rgba(59, 130, 246, 0.2);
    --navbar-bg: rgba(3, 7, 18, 0.95);
    --navbar-scrolled: rgba(3, 7, 18, 0.98);
    --nav-shadow: rgba(0, 0, 0, 0.34);
    --primary-soft: rgba(59, 130, 246, 0.14);
    --hero-glow: rgba(59, 130, 246, 0.13);
    --button-on-primary: #FFFFFF;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

body {
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

body.theme-light {
    --primary: #1D4ED8;
    --primary-dark: #1E3A8A;
    --secondary: #0F172A;
    --background: #FFFFFF;
    --background-light: #EEF4FF;
    --card-bg: #FFFFFF;
    --card-hover: #F3F7FF;
    --text-primary: #050A18;
    --text-secondary: #1E293B;
    --text-muted: #64748B;
    --accent: #2563EB;
    --border: #CBD7EA;
    --shadow: rgba(29, 78, 216, 0.16);
    --navbar-bg: rgba(255, 255, 255, 0.94);
    --navbar-scrolled: rgba(255, 255, 255, 0.98);
    --nav-shadow: rgba(5, 10, 24, 0.12);
    --primary-soft: rgba(29, 78, 216, 0.1);
    --hero-glow: rgba(29, 78, 216, 0.12);
    --button-on-primary: #FFFFFF;
}

.investor-journey {
    --journey-progress: 0;
    position: fixed;
    left: clamp(0.7rem, 1.8vw, 1.25rem);
    top: 52%;
    width: 9rem;
    padding: 0.85rem;
    transform: translateY(-50%);
    background: color-mix(in srgb, var(--card-bg) 88%, transparent);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    pointer-events: none;
    z-index: 800;
    overflow: hidden;
}

body.theme-light .investor-journey {
    box-shadow: 0 18px 42px rgba(5, 10, 24, 0.08);
}

.journey-rail {
    position: absolute;
    top: 0.85rem;
    bottom: 0.85rem;
    left: 0.55rem;
    width: 0.18rem;
    background: rgba(142, 163, 191, 0.24);
    border-radius: 999px;
    overflow: hidden;
}

.journey-rail span {
    display: block;
    width: 100%;
    height: var(--journey-fill, 0%);
    background: var(--gradient);
    border-radius: inherit;
    transition: height 0.24s ease;
}

.journey-avatar {
    position: relative;
    width: 5.5rem;
    height: 6.2rem;
    margin: 0 auto 0.8rem;
    transform: translateY(var(--journey-shift, -9px));
    transition: transform 0.3s ease;
}

.avatar-head {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    width: 3.4rem;
    height: 3.35rem;
    transform: translateX(-50%);
    background: #F2C9A2;
    border-radius: 44% 44% 48% 48%;
    border: 2px solid rgba(15, 23, 42, 0.2);
    box-shadow: inset 0 -10px 18px rgba(172, 104, 56, 0.12);
    z-index: 2;
}

.avatar-hair {
    position: absolute;
    top: -0.18rem;
    left: 0.15rem;
    right: 0.15rem;
    height: 1rem;
    background: #1F2937;
    border-radius: 999px 999px 40% 40%;
}

.avatar-eye {
    position: absolute;
    top: 1.55rem;
    width: 0.28rem;
    height: 0.28rem;
    background: #111827;
    border-radius: 50%;
}

.avatar-eye.left {
    left: 0.9rem;
}

.avatar-eye.right {
    right: 0.9rem;
}

.avatar-brow {
    position: absolute;
    top: 1.18rem;
    width: 0.55rem;
    height: 0.12rem;
    background: #111827;
    border-radius: 999px;
    transition: transform 0.3s ease;
}

.avatar-brow.left {
    left: 0.72rem;
    transform: rotate(18deg);
}

.avatar-brow.right {
    right: 0.72rem;
    transform: rotate(-18deg);
}

.avatar-mouth {
    position: absolute;
    left: 50%;
    bottom: 0.72rem;
    width: 0.9rem;
    height: 0.35rem;
    border-top: 2px solid #111827;
    border-radius: 999px;
    transform: translateX(-50%);
    transition: width 0.3s ease, height 0.3s ease, border 0.3s ease, transform 0.3s ease;
}

.avatar-body {
    position: absolute;
    left: 50%;
    bottom: 0.1rem;
    width: 4.25rem;
    height: 2.5rem;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1E3A8A, #0F172A);
    border-radius: 1rem 1rem 0.55rem 0.55rem;
    border: 1px solid rgba(96, 165, 250, 0.22);
}

.avatar-tie {
    position: absolute;
    left: 50%;
    top: 0.35rem;
    width: 0.42rem;
    height: 1.35rem;
    transform: translateX(-50%);
    background: #60A5FA;
    clip-path: polygon(50% 0, 100% 28%, 70% 100%, 30% 100%, 0 28%);
    opacity: 0.55;
}

.clarity-stack {
    position: absolute;
    right: 0.05rem;
    bottom: 0.4rem;
    display: grid;
    gap: 0.18rem;
    z-index: 3;
}

.clarity-stack span {
    display: block;
    width: 0.95rem;
    height: 0.3rem;
    background: #E6C86A;
    border-radius: 999px;
    opacity: 0.2;
    transform: translateX(0.4rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.clarity-badge {
    position: absolute;
    right: 0.25rem;
    top: 0.25rem;
    width: 1.55rem;
    height: 1.55rem;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    opacity: 0;
    transform: scale(0.72);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 4;
}

.journey-copy {
    display: grid;
    gap: 0.2rem;
    padding-left: 0.45rem;
    text-align: center;
}

.journey-copy span {
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.journey-copy strong {
    color: var(--text-primary);
    font-size: 0.82rem;
    line-height: 1.25;
}

.journey-steps {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.7rem;
}

.journey-step {
    width: 0.42rem;
    height: 0.42rem;
    background: rgba(142, 163, 191, 0.42);
    border-radius: 50%;
    transition: background 0.24s ease, transform 0.24s ease;
}

.journey-step.active {
    background: var(--primary);
    transform: scale(1.28);
}

.investor-journey[data-stage="1"] .avatar-brow.left,
.investor-journey[data-stage="2"] .avatar-brow.left,
.investor-journey[data-stage="3"] .avatar-brow.left {
    transform: rotate(-4deg);
}

.investor-journey[data-stage="1"] .avatar-brow.right,
.investor-journey[data-stage="2"] .avatar-brow.right,
.investor-journey[data-stage="3"] .avatar-brow.right {
    transform: rotate(4deg);
}

.investor-journey[data-stage="1"] .avatar-mouth,
.investor-journey[data-stage="2"] .avatar-mouth,
.investor-journey[data-stage="3"] .avatar-mouth {
    height: 0.5rem;
    border-top: 0;
    border-bottom: 2px solid #111827;
}

.investor-journey[data-stage="2"] .clarity-stack span:nth-child(-n+2),
.investor-journey[data-stage="3"] .clarity-stack span {
    opacity: 1;
    transform: translateX(0);
}

.investor-journey[data-stage="3"] .clarity-badge {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--navbar-scrolled);
    box-shadow: 0 4px 20px var(--nav-shadow);
}

.brand {
    font-weight: 900;
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: default;
    letter-spacing: -0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.75rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.theme-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.theme-option:hover,
.theme-option.active {
    background: var(--gradient);
    color: var(--button-on-primary);
}

/* Main container */
main {
    padding-top: 90px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Enhanced Sections */
.section {
    padding: 4rem 0;
    scroll-margin-top: 100px;
}

.section:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0;
    background: radial-gradient(ellipse at center, var(--hero-glow) 0%, transparent 70%);
}


.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    /* Ensures cursor stays with text */
    text-align: left;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: var(--button-on-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--button-on-primary);
}

/* Section Headers */
h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Feature Cards */
.decision-loop {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 920px;
    margin: 2rem auto 2.75rem;
    padding: 0;
    background: transparent;
    border: 0;
    position: relative;
}

.decision-loop::before {
    content: '';
    position: absolute;
    top: 1.4rem;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.45), transparent);
    border-radius: 999px;
}

.decision-loop::after {
    display: none;
}

.loop-step {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 850;
    text-align: center;
    position: relative;
    z-index: 1;
}

.loop-step i {
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--card-bg), var(--background-light));
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: var(--primary);
    border-radius: 12px;
    font-size: 1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.feature-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    grid-template-areas:
        "market hub"
        "snapshot hub";
    gap: 1.6rem;
    align-items: stretch;
    margin-top: 0;
    position: relative;
}

.feature-showcase::before {
    display: none;
}

.market-console,
.basket-snapshot,
.ai-hub {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--card-bg), var(--background-light));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    min-width: 0;
    position: relative;
    z-index: 1;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

body.theme-light .market-console,
body.theme-light .basket-snapshot,
body.theme-light .ai-hub {
    box-shadow: 0 18px 40px rgba(5, 10, 24, 0.08);
}

.market-console,
.basket-snapshot {
    padding: 1.35rem;
}

.market-console {
    grid-area: market;
}

.ai-hub {
    grid-area: hub;
}

.basket-snapshot {
    grid-area: snapshot;
}

.feature-showcase [data-feature-target] {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.feature-showcase[data-active-feature="report"] [data-feature-target="report"],
.feature-showcase[data-active-feature="forecast"] [data-feature-target="forecast"],
.feature-showcase[data-active-feature="allocation"] [data-feature-target="allocation"],
.feature-showcase[data-active-feature="flow"] [data-feature-target="flow"],
.feature-showcase[data-active-feature="simulate"] [data-feature-target="simulate"],
.feature-showcase[data-active-feature="learn"] [data-feature-target="learn"] {
    border-color: rgba(96, 165, 250, 0.62);
    box-shadow: 0 16px 30px var(--shadow);
}

.feature-showcase[data-active-feature="allocation"] .basket-snapshot,
.feature-showcase[data-active-feature="report"] .market-console,
.feature-showcase[data-active-feature="flow"] .market-console,
.feature-showcase[data-active-feature="forecast"] .ai-hub,
.feature-showcase[data-active-feature="simulate"] .ai-hub,
.feature-showcase[data-active-feature="learn"] .ai-hub {
    border-color: rgba(96, 165, 250, 0.5);
    transform: translateY(-3px);
}

.console-header,
.snapshot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.console-header span,
.snapshot-header span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.console-header strong,
.snapshot-header strong {
    color: var(--text-primary);
    font-size: 0.92rem;
}

.signal-stream {
    display: grid;
    gap: 0.7rem;
}

.signal-item {
    display: grid;
    grid-template-columns: 2.1rem 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.72rem;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    animation: signalLift 4.2s ease-in-out infinite;
}

.signal-item:nth-child(2) {
    animation-delay: 0.35s;
}

.signal-item:nth-child(3) {
    animation-delay: 0.7s;
}

.signal-item i {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border-radius: 10px;
    color: var(--primary);
}

.signal-item strong {
    color: var(--text-primary);
    font-size: 0.78rem;
    white-space: nowrap;
}

.pulse-bars {
    height: 5rem;
    display: flex;
    align-items: end;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(3, 7, 18, 0.22);
    border-radius: 12px;
}

body.theme-light .pulse-bars {
    background: rgba(238, 244, 255, 0.72);
}

.pulse-bars span {
    flex: 1;
    min-width: 0.55rem;
    height: var(--bar-size);
    background: var(--gradient);
    border-radius: 999px 999px 4px 4px;
    animation: pulseBar 2.8s ease-in-out infinite;
}

.pulse-bars span:nth-child(1) {
    --bar-size: 28%;
}

.pulse-bars span:nth-child(2) {
    --bar-size: 68%;
    animation-delay: 0.18s;
}

.pulse-bars span:nth-child(3) {
    --bar-size: 46%;
    animation-delay: 0.34s;
}

.pulse-bars span:nth-child(4) {
    --bar-size: 84%;
    animation-delay: 0.52s;
}

.pulse-bars span:nth-child(5) {
    --bar-size: 38%;
    animation-delay: 0.7s;
}

.pulse-bars span:nth-child(6) {
    --bar-size: 72%;
    animation-delay: 0.88s;
}

.ai-hub {
    min-height: 30rem;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.hub-ring {
    position: absolute;
    width: 13rem;
    height: 13rem;
    border: 1px dashed rgba(96, 165, 250, 0.42);
    border-radius: 50%;
    animation: hubRotate 16s linear infinite;
}

.hub-ring::before,
.hub-ring::after {
    content: '';
    position: absolute;
    inset: 1.35rem;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: inherit;
}

.hub-core {
    width: 7rem;
    height: 7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: var(--gradient);
    border-radius: 50%;
    color: var(--button-on-primary);
    font-weight: 900;
    text-align: center;
    box-shadow: 0 18px 40px var(--shadow);
    z-index: 2;
}

.hub-core i {
    font-size: 1.5rem;
}

.hub-core span {
    font-size: 0.82rem;
}

.hub-orbit {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 0.62rem;
    background: var(--card-bg);
    border: 1px solid rgba(96, 165, 250, 0.32);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 800;
    animation: orbitPulse 3.4s ease-in-out infinite;
}

.hub-orbit i {
    color: var(--primary);
}

.orbit-forecast {
    top: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-portfolio {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 0.35s;
}

.orbit-simulation {
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.7s;
}

.orbit-academy {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 1.05s;
}

.snapshot-row {
    --snapshot-color: var(--primary);
    display: grid;
    grid-template-columns: 5rem 1fr auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.68rem 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 800;
}

.snapshot-row::before {
    content: '';
    height: 0.62rem;
    width: var(--snapshot-width);
    background: var(--snapshot-color);
    border-radius: 999px;
    opacity: 0.82;
    animation: snapshotBuild 3.6s ease-in-out infinite;
}

.snapshot-row strong {
    color: var(--text-primary);
}

.snapshot-row.stock {
    --snapshot-color: #2563EB;
    --snapshot-width: 82%;
}

.snapshot-row.gold {
    --snapshot-color: #D97706;
    --snapshot-width: 54%;
}

.snapshot-row.usd {
    --snapshot-color: #059669;
    --snapshot-width: 42%;
}

.snapshot-row.cash {
    --snapshot-color: #7C3AED;
    --snapshot-width: 30%;
}

.feature-dock {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.feature-pill {
    --pill-color: var(--primary);
    min-height: 5.6rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--pill-color);
    border-radius: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 850;
    font-family: inherit;
    text-align: left;
    position: relative;
    overflow: hidden;
    animation: none;
    transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.feature-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.08), transparent 80%);
    transform: translateX(-130%);
    transition: transform 0.35s ease;
}

.feature-pill i,
.feature-pill span {
    position: relative;
    z-index: 1;
}

.feature-pill i {
    width: 2.65rem;
    height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--pill-color);
    border-radius: 12px;
    font-size: 1rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.feature-pill:hover,
.feature-pill:focus-visible,
.feature-pill.active {
    border-color: var(--pill-color);
    box-shadow: 0 16px 34px var(--shadow);
    outline: none;
}

.feature-pill:hover::before,
.feature-pill:focus-visible::before,
.feature-pill.active::before {
    transform: translateX(0);
}

.feature-pill.active {
    color: var(--text-primary);
}

.report-pill {
    --pill-color: #2563EB;
}

.forecast-pill {
    --pill-color: #0891B2;
    animation-delay: 0.14s;
}

.allocation-pill {
    --pill-color: #7C3AED;
    animation-delay: 0.28s;
}

.flow-pill {
    --pill-color: #059669;
    animation-delay: 0.42s;
}

.simulate-pill {
    --pill-color: #D97706;
    animation-delay: 0.56s;
}

.learn-pill {
    --pill-color: #DB2777;
    animation-delay: 0.7s;
}

.feature-explainer {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
    gap: 1rem;
    align-items: stretch;
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--card-bg), var(--background-light));
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.feature-explainer::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--gradient);
}

.explainer-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    padding-left: 0.4rem;
}

.explainer-copy span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.explainer-copy h3 {
    color: var(--text-primary);
    font-size: 1.12rem;
    line-height: 1.35;
}

.explainer-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.explainer-flow div {
    min-height: 5.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 12px;
    animation: explainerPulse 4.4s ease-in-out infinite;
}

.explainer-flow div:nth-of-type(2) {
    animation-delay: 0.24s;
}

.explainer-flow div:nth-of-type(3) {
    animation-delay: 0.48s;
}

.explainer-flow i {
    color: var(--primary);
    font-size: 0.9rem;
}

.explainer-flow small {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.explainer-flow strong {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.35;
}

.feature-explainer.is-updating {
    animation: explainerSwap 0.32s ease;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.4rem;
    margin-top: 2.4rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 0;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, transform 0.28s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card.active {
    border-color: rgba(96, 165, 250, 0.5);
    background: linear-gradient(135deg, var(--card-bg), var(--background-light));
    box-shadow: 0 20px 40px var(--shadow);
}

.feature-card:hover {
    transform: translateY(-3px);
    background: var(--card-hover);
}

.feature-card:hover::before,
.feature-card.active::before {
    transform: scaleX(1);
}

.feature-card-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.35rem;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.feature-card-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -4px;
}

.feature-card-toggle small {
    display: block;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    margin-bottom: 0.32rem;
    text-transform: uppercase;
}

.feature-card-toggle strong {
    color: var(--text-primary);
    display: block;
    font-size: 1rem;
    line-height: 1.35;
}

.feature-card-toggle > i {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.28s ease, transform 0.28s ease;
}

.feature-card.active .feature-card-toggle > i {
    color: var(--primary);
    transform: rotate(180deg);
}

.feature-icon {
    width: 3.2rem;
    height: 3.2rem;
    background: var(--gradient);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--button-on-primary);
    font-size: 1.15rem;
    flex: 0 0 auto;
}

.feature-card-detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1.35rem;
    transform: translateY(-6px);
    transition: max-height 0.34s ease, opacity 0.24s ease, padding 0.34s ease, transform 0.34s ease;
}

.feature-card.active .feature-card-detail {
    max-height: 25rem;
    opacity: 1;
    padding: 0 1.35rem 1.35rem;
    transform: translateY(0);
}

.feature-card-detail p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-card-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.feature-card-flow span {
    min-height: 3.1rem;
    display: grid;
    place-items: center;
    padding: 0.6rem;
    background: var(--background-light);
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
    transition: border-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.feature-card.active .feature-card-flow span {
    animation: featureFlowPulse 2.8s ease-in-out infinite;
    border-color: rgba(96, 165, 250, 0.34);
    color: var(--text-primary);
}

.feature-card-flow span:nth-child(2) {
    animation-delay: 0.18s;
}

.feature-card-flow span:nth-child(3) {
    animation-delay: 0.36s;
}

/* Architecture Section */
.system-visual {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(54px, 0.35fr) minmax(150px, 1fr) minmax(54px, 0.35fr) minmax(150px, 1fr) minmax(54px, 0.35fr) minmax(150px, 1fr);
    gap: 0.75rem;
    align-items: center;
    margin-top: 2.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--card-bg), var(--background-light));
    border: 1px solid var(--border);
    border-radius: 16px;
}

.system-node {
    --node-color: var(--primary);
    appearance: none;
    min-height: 9rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    padding: 1rem;
    background: rgba(3, 7, 18, 0.22);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, transform 0.24s ease;
}

body.theme-light .system-node {
    background: rgba(238, 244, 255, 0.78);
}

.system-node::before {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: var(--node-color);
    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform 0.24s ease;
}

.system-node:hover,
.system-node:focus-visible,
.system-node.active {
    border-color: var(--node-color);
    box-shadow: 0 18px 34px var(--shadow);
    outline: none;
}

.system-node:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.26);
    outline-offset: 3px;
}

.system-node.active {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.14), rgba(3, 7, 18, 0.24));
}

body.theme-light .system-node.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0.88));
}

.system-node.active::before,
.system-node:hover::before {
    transform: scaleX(1);
}

.source-node {
    --node-color: #2563EB;
}

.ai-node {
    --node-color: #0891B2;
}

.risk-node {
    --node-color: #7C3AED;
}

.product-node {
    --node-color: #059669;
}

.system-node i {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border-radius: 12px;
    color: var(--node-color);
    font-size: 1.1rem;
}

.system-node span {
    color: var(--text-primary);
    font-weight: 900;
}

.system-node strong {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.system-explainer {
    margin-top: 1rem;
}

.system-runtime {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.runtime-card {
    min-height: 8.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--card-bg), var(--background-light));
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.runtime-card::before {
    display: none;
}

.runtime-tag,
.runtime-card strong,
.runtime-lines {
    position: relative;
    z-index: 1;
}

.runtime-tag {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.runtime-card strong {
    color: var(--text-primary);
    font-size: 0.94rem;
    line-height: 1.3;
}

.runtime-lines {
    display: grid;
    gap: 0.36rem;
}

.runtime-lines span {
    display: block;
    height: 0.4rem;
    background: rgba(96, 165, 250, 0.18);
    border-radius: 999px;
    transition: background 0.24s ease, width 0.24s ease;
}

.runtime-lines span:nth-child(1) {
    width: 88%;
}

.runtime-lines span:nth-child(2) {
    width: 64%;
}

.runtime-lines span:nth-child(3) {
    width: 74%;
}

.system-runtime[data-active-system="source"] .runtime-card[data-system-target="source"],
.system-runtime[data-active-system="ai"] .runtime-card[data-system-target="ai"],
.system-runtime[data-active-system="risk"] .runtime-card[data-system-target="risk"],
.system-runtime[data-active-system="product"] .runtime-card[data-system-target="product"] {
    border-color: rgba(96, 165, 250, 0.58);
    box-shadow: 0 18px 34px var(--shadow);
    transform: translateY(-4px);
}

.system-runtime[data-active-system="source"] .runtime-card[data-system-target="source"] .runtime-lines span,
.system-runtime[data-active-system="ai"] .runtime-card[data-system-target="ai"] .runtime-lines span,
.system-runtime[data-active-system="risk"] .runtime-card[data-system-target="risk"] .runtime-lines span,
.system-runtime[data-active-system="product"] .runtime-card[data-system-target="product"] .runtime-lines span {
    background: var(--primary);
}

.system-link {
    height: 0.28rem;
    background: rgba(142, 163, 191, 0.24);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.data-packet {
    display: none;
}

.packet-two,
.packet-four,
.packet-six {
    animation-delay: 0.7s;
}

.packet-three,
.packet-five {
    animation-delay: 0.35s;
}

.system-tech-rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.85rem;
    background: var(--background-light);
    border: 1px solid var(--border);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.system-tech-rail::before {
    display: none;
}

.tech-chip {
    min-height: 4.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 850;
    text-align: center;
    position: relative;
    z-index: 1;
}

.tech-chip i {
    color: var(--primary);
    font-size: 1.1rem;
}

.architecture-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.architecture-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.architecture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.architecture-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    box-shadow: 0 18px 34px var(--shadow);
}

.architecture-step {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: var(--gradient);
    color: var(--button-on-primary);
    font-size: 0.85rem;
    font-weight: 800;
}

.architecture-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.architecture-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.architecture-card-inner {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.status-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.status-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem;
    background: var(--background-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: center;
}

.status-pill i {
    color: var(--primary);
}

.basket-builder {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(520px, 1.25fr);
    gap: 2rem;
    align-items: stretch;
    margin-top: 3rem;
    padding: 1.4rem;
    background: linear-gradient(135deg, var(--card-bg), var(--background-light));
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: visible;
    position: relative;
}

.basket-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.basket-eyebrow {
    color: var(--accent);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.basket-copy h3 {
    color: var(--text-primary);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.basket-copy p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.basket-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.basket-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.7rem;
    background: var(--primary-soft);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
}

.basket-highlights i {
    color: var(--primary);
}

.basket-experience {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.allocation-flow {
    display: grid;
    grid-template-columns: auto minmax(48px, 1fr) auto minmax(48px, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.85rem;
    background: rgba(3, 7, 18, 0.22);
    border: 1px solid var(--border);
    border-radius: 14px;
}

body.theme-light .allocation-flow {
    background: rgba(238, 244, 255, 0.78);
}

.flow-step {
    min-width: 7.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem;
    background: var(--card-bg);
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    animation: flowStepPulse 3.6s ease-in-out infinite;
}

.flow-step i {
    color: var(--primary);
}

.optimizer-step {
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
    animation-delay: 0.55s;
}

.flow-connector {
    height: 0.18rem;
    background: rgba(142, 163, 191, 0.22);
    border-radius: 999px;
    overflow: hidden;
}

.flow-connector span {
    display: block;
    width: 42%;
    height: 100%;
    background: var(--gradient);
    border-radius: inherit;
    animation: connectorSweep 2.8s ease-in-out infinite;
}

.persona-baskets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.persona-card {
    padding: 1rem;
    background: rgba(3, 7, 18, 0.24);
    border: 1px solid var(--border);
    border-radius: 14px;
    min-width: 0;
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.persona-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 24px rgba(96, 165, 250, 0.08);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.persona-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px var(--shadow);
}

.persona-card:hover::before {
    opacity: 1;
}

body.theme-light .persona-card {
    background: rgba(238, 244, 255, 0.8);
}

.persona-card.conservative-profile {
    border-color: rgba(34, 197, 94, 0.4);
}

.persona-card.growth-profile {
    border-color: rgba(59, 130, 246, 0.45);
}

.persona-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.persona-avatar {
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border-radius: 14px;
    color: var(--primary);
    font-size: 1.25rem;
}

.persona-header span {
    color: var(--text-muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.persona-header h3 {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.3;
}

.risk-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 700;
}

.risk-line strong {
    color: var(--text-primary);
}

.profile-meter {
    height: 0.65rem;
    margin: 0.6rem 0 1rem;
    background: rgba(142, 163, 191, 0.22);
    border-radius: 999px;
    overflow: hidden;
}

.profile-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    animation: profileMeterPulse 3.6s ease-in-out infinite;
}

.low-meter span {
    width: 32%;
    background: linear-gradient(90deg, #22C55E, #86EFAC);
}

.high-meter span {
    width: 82%;
    background: linear-gradient(90deg, #F59E0B, #3B82F6);
}

.personal-basket {
    display: grid;
    gap: 0.55rem;
}

.basket-allocation-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.72rem 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--allocation-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 700;
    overflow: hidden;
    position: relative;
    animation: allocationFloat 4.8s ease-in-out infinite;
}

.basket-allocation-row::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -50%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
    transform: skewX(-18deg);
    animation: allocationShine 5.4s ease-in-out infinite;
}

.basket-allocation-row:nth-child(2) {
    animation-delay: 0.2s;
}

.basket-allocation-row:nth-child(3) {
    animation-delay: 0.4s;
}

.basket-allocation-row:nth-child(4) {
    animation-delay: 0.6s;
}

.basket-allocation-row span,
.basket-allocation-row strong {
    position: relative;
    z-index: 1;
}

.basket-allocation-row strong {
    color: var(--text-primary);
}

.basket-allocation-row.stock {
    --allocation-color: #2563EB;
}

.basket-allocation-row.gold {
    --allocation-color: #D97706;
}

.basket-allocation-row.usd {
    --allocation-color: #059669;
}

.basket-allocation-row.cash {
    --allocation-color: #7C3AED;
}

.basket-allocation-row.stock strong {
    background: #2563EB;
}

.basket-allocation-row.gold strong {
    background: #D97706;
}

.basket-allocation-row.usd strong {
    background: #059669;
}

.basket-allocation-row.cash strong {
    background: #7C3AED;
}

.basket-allocation-row strong {
    min-width: 3.1rem;
    padding: 0.24rem 0.45rem;
    border-radius: 999px;
    color: #FFFFFF;
    text-align: center;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tech Stack Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.tech-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tech-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Enhanced Screenshots */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.35rem;
    margin-top: 3rem;
}

.screenshot-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.screenshot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow);
}

.screenshot-card img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: var(--background-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 0.35rem;
    cursor: zoom-in;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.screenshot-card img:hover,
.screenshot-card img:focus-visible {
    filter: brightness(1.08);
    transform: scale(1.015);
}

.screenshot-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.screenshot-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-walkthrough {
    margin-top: 3rem;
}

.walkthrough-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
}

.walkthrough-description {
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 1.5rem;
    text-align: center;
    font-size: 1rem;
}

.walkthrough-video {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

/* Product Gallery Modal */
.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(3, 7, 18, 0.92);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: min(1180px, 100%);
    max-height: min(88vh, 820px);
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(11, 18, 36, 0.96));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

body.theme-light .modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 244, 255, 0.98));
    box-shadow: 0 30px 80px rgba(5, 10, 24, 0.2);
}

.modal-header,
.modal-footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modal-kicker {
    color: var(--text-muted);
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.modal-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    line-height: 1.25;
}

.modal-close,
.modal-nav {
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid rgba(96, 165, 250, 0.45);
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.modal-close:hover,
.modal-nav:hover,
.modal-close:focus-visible,
.modal-nav:focus-visible {
    background: var(--primary);
    color: var(--button-on-primary);
    transform: translateY(-2px);
    outline: none;
}

.modal-image-wrap {
    min-height: 0;
    height: min(66vh, 640px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--background-light);
    overflow: hidden;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.modal-image.is-swapping {
    opacity: 0;
    transform: scale(0.985);
}

.modal-caption {
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.55;
    margin: 0;
}

.modal-counter {
    color: var(--text-muted);
    flex: 0 0 auto;
    font-size: 0.9rem;
    font-weight: 800;
}

/* Video Section */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 40px var(--shadow);
    margin-top: 2rem;
    border: 1px solid var(--border);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 280px);
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.team-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 280px;
    /* fixed width to match grid */
    height: 340px;
    /* reduced height */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* distribute content nicely */
}


.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--shadow);
}

.team-card:hover::before {
    transform: scaleX(1);
}

.supervisor-card {
    border-color: #D8B45A;
    box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.18);
}

.supervisor-card::before {
    background: linear-gradient(135deg, #D8B45A 0%, #FFF2B8 100%);
}

.team-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.team-pic-ismail {
    object-position: center 0%;
}

.team-card:hover .team-pic {
    transform: scale(1.05);
    box-shadow: 0 12px 35px var(--shadow);
}

.team-name {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.team-role {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.supervisor-role {
    color: #E6C86A;
    font-weight: 700;
}

.team-bio {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.team-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.team-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.4rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.team-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient);
    z-index: 1001;
    transition: width 0.1s ease;
}

@media (max-width: 1380px) {
    .investor-journey {
        top: auto;
        bottom: 1rem;
        left: 1rem;
        width: 5.8rem;
        padding: 0.55rem;
        transform: none;
    }

    .journey-rail,
    .journey-copy,
    .journey-steps {
        display: none;
    }

    .journey-avatar {
        width: 4.7rem;
        height: 5.2rem;
        margin-bottom: 0;
        transform: translateY(0) scale(0.86);
    }
}

@media (max-width: 900px) {
    .investor-journey {
        display: none;
    }
}

@media (max-width: 1200px) {
    .feature-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "market snapshot"
            "hub hub";
    }

    .feature-dock,
    .system-tech-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .system-runtime {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-hub {
        min-height: 24rem;
    }

    .system-visual {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .system-link {
        display: none;
    }

    .architecture-flow {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1080px) {
    main {
        padding-top: 135px;
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.85rem 1rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.45rem;
    }
}

@media (max-width: 980px) {
    .team-grid {
        grid-template-columns: repeat(2, 280px);
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
        width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding-top: 175px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .decision-loop::before,
    .decision-loop::after,
    .feature-showcase::before {
        display: none;
    }

    h2 {
        font-size: 2rem;
    }

    .features-grid,
    .decision-loop,
    .feature-showcase,
    .feature-dock,
    .feature-explainer,
    .system-runtime,
    .system-tech-rail,
    .tech-grid,
    .architecture-flow,
    .status-strip {
        grid-template-columns: 1fr;
    }

    .feature-showcase {
        grid-template-areas:
            "market"
            "hub"
            "snapshot";
    }

    .ai-hub {
        min-height: 21rem;
    }

    .system-visual {
        grid-template-columns: 1fr;
    }

    .system-node {
        min-height: auto;
    }

    .explainer-flow {
        grid-template-columns: 1fr;
    }

    .explainer-flow i {
        transform: rotate(90deg);
        justify-self: center;
    }

    .basket-builder {
        grid-template-columns: 1fr;
    }

    .allocation-flow {
        grid-template-columns: 1fr;
    }

    .flow-connector {
        width: 0.2rem;
        height: 1.3rem;
        justify-self: center;
    }

    .flow-connector span {
        width: 100%;
        height: 42%;
        animation-name: connectorSweepVertical;
    }

    .persona-baskets {
        grid-template-columns: 1fr;
    }

    .modal-content {
        grid-template-columns: 1fr 1fr;
        max-height: 92vh;
    }

    .modal-image-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
        height: min(58vh, 560px);
    }

    .modal-prev {
        grid-column: 1;
        grid-row: 3;
        justify-self: end;
    }

    .modal-next {
        grid-column: 2;
        grid-row: 3;
        justify-self: start;
    }

    .modal-footer {
        grid-column: 1 / -1;
        grid-row: 4;
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .feature-card-flow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    main {
        padding-top: 205px;
    }

    .navbar {
        padding: 0.8rem;
    }

    .brand {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    h2 {
        font-size: 1.8rem;
    }

    .team-card {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 0;
    }

    .feature-card-toggle {
        grid-template-columns: 1fr auto;
        gap: 0.8rem;
        padding: 1rem;
    }

    .feature-card-toggle .feature-icon {
        grid-column: 1 / -1;
    }

    .feature-card.active .feature-card-detail {
        padding: 0 1rem 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .signal-item {
        grid-template-columns: 2.1rem 1fr;
    }

    .signal-item strong {
        grid-column: 2;
    }

    .snapshot-row {
        grid-template-columns: 4.5rem 1fr auto;
    }

    .basket-builder {
        padding: 1rem;
    }

    .basket-copy h3 {
        font-size: 1.35rem;
    }

    .flow-step {
        width: 100%;
        min-width: 0;
    }

    .basket-highlights {
        align-items: flex-start;
        flex-direction: column;
    }

    .persona-card {
        padding: 0.85rem;
    }

    .persona-header {
        align-items: flex-start;
    }

    .basket-allocation-row {
        font-size: 0.78rem;
    }

    .modal-overlay {
        padding: 0.6rem;
    }

    .modal-content {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .modal-title {
        font-size: 1rem;
    }

    .modal-close,
    .modal-nav {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Animations */
@keyframes signalLift {

    0%,
    100% {
        transform: translateX(0);
        border-color: rgba(96, 165, 250, 0.16);
    }

    50% {
        transform: translateX(4px);
        border-color: rgba(96, 165, 250, 0.42);
    }
}

@keyframes pulseBar {

    0%,
    100% {
        transform: scaleY(0.72);
        opacity: 0.7;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes hubRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitPulse {

    0%,
    100% {
        filter: brightness(0.96);
    }

    50% {
        filter: brightness(1.18);
    }
}

@keyframes snapshotBuild {

    0%,
    100% {
        transform: scaleX(0.72);
        transform-origin: left;
    }

    50% {
        transform: scaleX(1);
        transform-origin: left;
    }
}

@keyframes featureFloat {

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

    50% {
        transform: translateY(-5px);
    }
}

@keyframes featureScan {

    0%,
    62% {
        transform: translateX(-130%);
        opacity: 0;
    }

    72% {
        opacity: 1;
    }

    100% {
        transform: translateX(130%);
        opacity: 0;
    }
}

@keyframes featureFlowPulse {

    0%,
    100% {
        transform: translateY(0);
        border-color: rgba(96, 165, 250, 0.16);
    }

    50% {
        transform: translateY(-2px);
        border-color: rgba(96, 165, 250, 0.48);
    }
}

@keyframes decisionDot {

    0%,
    12% {
        left: 1rem;
    }

    33%,
    45% {
        left: calc(33.33% - 0.35rem);
    }

    58%,
    70% {
        left: calc(66.66% - 0.35rem);
    }

    88%,
    100% {
        left: calc(100% - 1.7rem);
    }
}

@keyframes explainerPulse {

    0%,
    100% {
        border-color: rgba(96, 165, 250, 0.18);
        transform: translateY(0);
    }

    50% {
        border-color: rgba(96, 165, 250, 0.42);
        transform: translateY(-2px);
    }
}

@keyframes explainerSwap {
    from {
        opacity: 0.62;
        transform: translateY(6px);
    }

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

@keyframes nodeSignal {

    0%,
    100% {
        transform: scaleX(0.28);
    }

    50% {
        transform: scaleX(1);
    }
}

@keyframes packetMove {

    0% {
        transform: translate(-100%, -50%);
        opacity: 0;
    }

    20%,
    80% {
        opacity: 1;
    }

    100% {
        transform: translate(920%, -50%);
        opacity: 0;
    }
}

@keyframes railSweep {

    0%,
    58% {
        left: -32%;
        opacity: 0;
    }

    70% {
        opacity: 1;
    }

    100% {
        left: 108%;
        opacity: 0;
    }
}

@keyframes chipPulse {

    0%,
    100% {
        transform: translateY(0);
        border-color: rgba(96, 165, 250, 0.18);
    }

    50% {
        transform: translateY(-3px);
        border-color: rgba(96, 165, 250, 0.42);
    }
}

@keyframes runtimeSweep {

    0%,
    62% {
        transform: translateX(-120%);
        opacity: 0;
    }

    74% {
        opacity: 1;
    }

    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes runtimeLine {

    0%,
    100% {
        transform: scaleX(0.72);
        transform-origin: left;
        opacity: 0.68;
    }

    50% {
        transform: scaleX(1);
        transform-origin: left;
        opacity: 1;
    }
}

@keyframes profileMeterPulse {

    0%,
    100% {
        filter: brightness(0.95);
    }

    50% {
        filter: brightness(1.16);
    }
}

@keyframes flowStepPulse {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 0 rgba(59, 130, 246, 0);
    }

    50% {
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(59, 130, 246, 0.16);
    }
}

@keyframes connectorSweep {

    0% {
        transform: translateX(-115%);
        opacity: 0;
    }

    25%,
    70% {
        opacity: 1;
    }

    100% {
        transform: translateX(260%);
        opacity: 0;
    }
}

@keyframes connectorSweepVertical {

    0% {
        transform: translateY(-115%);
        opacity: 0;
    }

    25%,
    70% {
        opacity: 1;
    }

    100% {
        transform: translateY(260%);
        opacity: 0;
    }
}

@keyframes allocationFloat {

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

    50% {
        transform: translateY(-2px);
    }
}

@keyframes allocationShine {

    0%,
    65% {
        left: -55%;
        opacity: 0;
    }

    75% {
        opacity: 1;
    }

    100% {
        left: 115%;
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus Styles for Accessibility */
.nav-link:focus,
.btn:focus,
.theme-option:focus,
.team-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .navbar,
    .scroll-progress {
        display: none;
    }

    main {
        padding-top: 0;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Desktop Interlocking Chevron Flow for System Architecture */
@media (min-width: 1201px) {
    .architecture-flow {
        display: flex;
        gap: 0.35rem;
    }

    .architecture-card {
        flex: 1;
        background: var(--border);
        padding: 1px;
        border: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    /* Outer shapes */
    .architecture-card.step-1 {
        clip-path: polygon(0% 0%, calc(100% - 18px) 0%, 100% 50%, calc(100% - 18px) 100%, 0% 100%);
    }
    .architecture-card.step-2,
    .architecture-card.step-3 {
        clip-path: polygon(0% 0%, calc(100% - 18px) 0%, 100% 50%, calc(100% - 18px) 100%, 0% 100%, 18px 50%);
    }
    .architecture-card.step-4 {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 18px 50%);
    }

    /* Inner containers */
    .architecture-card-inner {
        background: var(--card-bg);
        padding: 1.8rem 1.8rem 1.8rem 2.4rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        transition: background 0.3s ease;
    }

    .architecture-card.step-1 .architecture-card-inner {
        clip-path: polygon(0% 0%, calc(100% - 18px) 0%, 100% 50%, calc(100% - 18px) 100%, 0% 100%);
        padding-left: 1.8rem;
    }
    
    .architecture-card.step-2 .architecture-card-inner,
    .architecture-card.step-3 .architecture-card-inner {
        clip-path: polygon(0% 0%, calc(100% - 18px) 0%, 100% 50%, calc(100% - 18px) 100%, 0% 100%, 18px 50%);
    }

    .architecture-card.step-4 .architecture-card-inner {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 18px 50%);
        padding-right: 1.8rem;
    }

    .architecture-card:hover {
        transform: translateY(-4px);
        filter: drop-shadow(0 12px 24px var(--shadow));
    }

    .architecture-card:hover .architecture-card-inner {
        background: var(--card-hover);
    }

    .architecture-card::before {
        display: none;
    }
}

