@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Core Design Tokens (Adopted from Kinetix Guidelines) --- */
:root {
    /* Colors - HSL for harmony & opacity control */
    --bg-darker: hsl(216, 60%, 5%); /* Deep Space Anchor: #050B14 */
    --bg-dark: hsl(216, 50%, 8%);
    --bg-panel: hsl(216, 40%, 12%);
    --bg-panel-light: hsl(216, 40%, 16%);
    
    --primary: hsl(220, 100%, 50%); /* Digital Azure: #0052FF */
    --primary-glow: rgba(0, 82, 255, 0.12);
    --primary-glow-strong: rgba(0, 82, 255, 0.3);
    --primary-dark: hsl(220, 100%, 40%);
    --primary-light: hsl(190, 100%, 50%); /* Electric Cyan: #00D2FF */
    
    --secondary: hsl(250, 100%, 65%); /* Electric Violet/Indigo complement */
    --secondary-glow: rgba(99, 102, 241, 0.15);
    --accent-cyan: hsl(190, 100%, 45%);
    --accent-green: hsl(142, 76%, 45%);
    --accent-red: hsl(350, 89%, 60%);

    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 20%, 75%);
    --text-muted: hsl(215, 15%, 50%);

    --border: hsla(216, 20%, 25%, 0.4);
    --border-light: hsla(216, 20%, 40%, 0.6);
    --border-glow: rgba(0, 82, 255, 0.25);
    
    --glass-bg: rgba(5, 11, 20, 0.7);
    --glass-bg-hover: rgba(10, 20, 35, 0.85);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-hover: rgba(0, 82, 255, 0.2);
    --glass-blur: blur(16px);
    
    /* Layout & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 35px -5px rgba(0, 82, 255, 0.25);
    --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.8);

    /* Fonts (Adopted from Kinetix Guidelines) */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Light Mode CSS Override (Adopted from Kinetix Guidelines) --- */
[data-theme="light"] {
    --bg-darker: hsl(220, 20%, 97%); /* Stark White: #FFFFFF / Cool Slate base */
    --bg-dark: hsl(220, 20%, 94%); /* Cool Slate Tint: #F1F5F9 */
    --bg-panel: hsl(0, 0%, 100%); /* Stark White Canvas */
    --bg-panel-light: hsl(220, 20%, 91%);
    
    --text-primary: hsl(216, 60%, 8%); /* Deep Space Text: #050B14 */
    --text-secondary: hsl(216, 20%, 35%);
    --text-muted: hsl(216, 15%, 55%);
    
    --border: hsla(216, 30%, 10%, 0.08);
    --border-light: hsla(216, 30%, 10%, 0.15);
    --border-glow: rgba(0, 82, 255, 0.3);
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-bg-hover: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 82, 255, 0.08);
    --glass-border-hover: rgba(0, 82, 255, 0.2);
    
    --shadow-soft: 0 10px 30px -10px rgba(5, 11, 20, 0.1);
    --shadow-card: 0 20px 40px -15px rgba(5, 11, 20, 0.15);
}

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

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

body {
    background-color: var(--bg-darker);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 82, 255, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-panel);
    border: 2px solid var(--bg-darker);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 65%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.grid {
    display: grid;
    gap: 32px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: border-color var(--transition-smooth), background var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--glass-border-hover);
}

.glass-panel-glow:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow), var(--shadow-soft);
}

/* --- Structured Nodes (Adopted from Kinetix Guidelines) --- */
.structured-node {
    border-left: 4px solid var(--primary);
    background: rgba(0, 82, 255, 0.015);
    transition: border-color var(--transition-smooth), background var(--transition-smooth);
}

.structured-node.cyan {
    border-left-color: var(--primary-light);
    background: rgba(0, 210, 255, 0.015);
}

.structured-node:hover {
    background: rgba(0, 82, 255, 0.04);
}

[data-theme="light"] .structured-node {
    background: rgba(0, 82, 255, 0.02);
}

[data-theme="light"] .structured-node:hover {
    background: rgba(0, 82, 255, 0.05);
}

/* --- Premium Navigation & Theme Visibility Fix --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 11, 20, 0.7); /* Deep Space Glass backdrop */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(5, 11, 20, 0.95);
}

/* Light theme overrides for high contrast header background */
[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(0, 82, 255, 0.08);
}

[data-theme="light"] header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 20px rgba(5, 11, 20, 0.04);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-smooth);
}

header.scrolled .nav-container {
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--primary);
}

.logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

/* High contrast links for Light Mode */
[data-theme="light"] .nav-link {
    color: var(--text-primary); /* Uses deep space dark text instead of grey */
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* --- Theme Toggle Button --- */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--glass-border-hover);
    transform: scale(1.05);
}

[data-theme="light"] .theme-toggle-btn {
    background: rgba(5, 11, 20, 0.04);
}
[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(5, 11, 20, 0.08);
}

/* --- Modern Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 82, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 82, 255, 0.5);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary {
    background: rgba(5, 11, 20, 0.03);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(5, 11, 20, 0.06);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: skewX(-20deg);
    transition: 0.75s;
}

.btn-glow:hover::before {
    left: 150%;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-tagline {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-tagline-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat .num {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stat .label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Hero Visual & Floating Elements */
.hero-visual {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    z-index: 1;
}

.hero-visual-core {
    position: relative;
    z-index: 2;
    width: 280px;
    height: 280px;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 20px 50px rgba(0, 82, 255, 0.4), inset 0 -10px 20px rgba(0, 0, 0, 0.2);
    animation: blob-animate 8s ease-in-out infinite alternate;
}

@keyframes blob-animate {
    0% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
    100% { border-radius: 65% 35% 42% 58% / 60% 38% 62% 40%; }
}

.hero-card-float {
    position: absolute;
    z-index: 3;
    background: rgba(5, 11, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-card);
    animation: float-slow 4s ease-in-out infinite alternate;
}

[data-theme="light"] .hero-card-float {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 82, 255, 0.1);
}

.hero-card-1 {
    top: 10%;
    left: -5%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-card-2 {
    bottom: 15%;
    right: -5%;
    width: 180px;
    animation-delay: -1.5s;
}

.hero-card-3 {
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    animation-delay: -3s;
    background: linear-gradient(135deg, rgba(0, 82, 255, 0.1) 0%, rgba(0, 82, 255, 0.02) 100%);
    border-color: rgba(0, 82, 255, 0.3);
}

@keyframes float-slow {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(2deg); }
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-glow-strong);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box-purple {
    background: var(--secondary-glow);
    color: var(--secondary);
}

/* --- Audited / Suggestions Header --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
}

.section-header .tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: inline-block;
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* --- Section: Auto-Tax Simulator --- */
.simulator-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: stretch;
}

.control-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sim-input-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

[data-theme="light"] .sim-input-group {
    background: rgba(5, 11, 20, 0.015);
}

.sim-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.sim-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sim-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.sim-val-display {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

[data-theme="light"] .sim-val-display {
    color: var(--primary-dark);
}

.slider-container {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-dark);
    outline: none;
    transition: opacity .2s;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--text-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: var(--transition-fast);
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-light);
}

.toggles-group {
    display: grid;
    gap: 12px;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

[data-theme="light"] .toggle-item {
    background: rgba(5, 11, 20, 0.01);
}

.toggle-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .toggle-item:hover {
    border-color: rgba(0, 82, 255, 0.15);
    background: rgba(0, 82, 255, 0.03);
}

.toggle-item.active {
    border-color: var(--border-glow);
    background: var(--primary-glow);
}

.toggle-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
}

.toggle-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-dark);
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 34px;
    border: 1px solid var(--border);
}

.slider-switch:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
}

input:checked + .slider-switch {
    background-color: var(--primary);
    border-color: var(--primary-light);
}

input:checked + .slider-switch:before {
    transform: translateX(20px);
    background-color: white;
}

/* Dynamic money pipes */
.visualizer-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 520px;
}

.pipes-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.pipes-svg {
    width: 100%;
    height: 100%;
}

.pipe-line {
    fill: none;
    stroke: var(--border);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke var(--transition-smooth);
}

.pipe-line.active {
    stroke: var(--primary);
    stroke-width: 4.5;
}

[data-theme="light"] .pipe-line.active {
    stroke: rgba(0, 82, 255, 0.6);
}

.pipe-flow {
    fill: none;
    stroke: url(#pipeGradient);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 15, 100;
    stroke-dashoffset: 0;
    animation: flow-animate 4s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.pipe-flow.active {
    opacity: 1;
}

@keyframes flow-animate {
    to {
        stroke-dashoffset: -115;
    }
}

.flow-nodes {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    height: 100%;
    z-index: 2;
    position: relative;
    padding: 20px 0;
}

.input-node-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-node {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 10px 30px rgba(0, 82, 255, 0.4), 0 0 0 8px var(--primary-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-family: var(--font-heading);
    z-index: 3;
    transition: var(--transition-smooth);
}

.input-node:hover {
    transform: scale(1.05);
}

.input-node .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.input-node .amount {
    font-size: 20px;
    font-weight: 800;
}

.output-nodes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 60px;
    justify-content: center;
}

.output-node-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 11, 20, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    width: 100%;
    transform: scale(0.95);
    opacity: 0.5;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), opacity var(--transition-smooth), box-shadow var(--transition-smooth);
}

[data-theme="light"] .output-node-item {
    background: rgba(255, 255, 255, 0.9);
}

.output-node-item.active {
    transform: scale(1);
    opacity: 1;
    border-color: var(--primary-glow-strong);
    box-shadow: var(--shadow-soft);
}

.output-node-item.take-home {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.04);
}

.output-node-item.take-home.active {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.out-node-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.out-node-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition-smooth);
}

.output-node-item.active .out-node-circle {
    background: var(--primary-glow-strong);
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="light"] .output-node-item.active .out-node-circle {
    color: var(--primary-dark);
}

.output-node-item.take-home.active .out-node-circle {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.out-node-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
}

.out-node-rate {
    font-size: 11px;
    color: var(--text-muted);
}

.out-node-val {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

.take-home .out-node-val {
    color: var(--accent-green);
}

/* --- Section: Comparative Savings Calculator --- */
.calc-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-soft);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
}

.calc-sliders {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.calc-slider-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 20px;
}

[data-theme="light"] .calc-slider-box {
    background: rgba(5, 11, 20, 0.01);
    border-color: rgba(5, 11, 20, 0.04);
}

.calc-results {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.results-header {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.comparison-cards-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

[data-theme="light"] .comparison-card {
    background: rgba(5, 11, 20, 0.01);
}

.comparison-card.kinetix-card {
    border-color: var(--primary-glow-strong);
    background: radial-gradient(circle at 100% 0%, var(--primary-glow) 0%, rgba(255, 255, 255, 0.02) 50%);
    box-shadow: var(--shadow-soft);
}

[data-theme="light"] .comparison-card.kinetix-card {
    background: radial-gradient(circle at 100% 0%, rgba(0, 82, 255, 0.06) 0%, rgba(255, 255, 255, 0.95) 60%);
    border-color: rgba(0, 82, 255, 0.15);
}

.comparison-card.kinetix-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow), var(--shadow-soft);
}

.comp-card-title {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.kinetix-card .comp-card-title {
    color: var(--primary);
}

[data-theme="light"] .kinetix-card .comp-card-title {
    color: var(--primary-dark);
}

.comp-card-val {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.kinetix-card .comp-card-val {
    color: var(--text-primary);
}

.comp-card-footer {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .comp-card-footer {
    border-top-color: rgba(5, 11, 20, 0.06);
}

.savings-highlight-box {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.savings-highlight-box svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

.savings-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.savings-amt {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-green);
}

/* --- Section: Live Feature Sandbox --- */
.sandbox-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.sandbox-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 40px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

[data-theme="light"] .sandbox-tab-btn {
    background: rgba(5, 11, 20, 0.02);
}

.sandbox-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--glass-border-hover);
}

.sandbox-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary-light);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow-strong);
}

.sandbox-content-wrapper {
    position: relative;
    min-height: 500px;
}

.sandbox-content-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.sandbox-content-item.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.sandbox-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* Mock Dashboard / App styles */
.mock-dashboard-wrapper {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .mock-dashboard-wrapper {
    background: var(--bg-dark);
    border-color: rgba(5, 11, 20, 0.1);
}

.mock-dashboard-header {
    background: var(--bg-panel);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="light"] .mock-dashboard-header {
    background: var(--bg-panel-light);
}

.mock-header-circle {
    display: flex;
    gap: 6px;
}

.mock-header-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.mock-header-dot.red { background: #ef4444; }
.mock-header-dot.yellow { background: #f59e0b; }
.mock-header-dot.green { background: #10b981; }

.mock-dashboard-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.mock-dashboard-body {
    padding: 24px;
    min-height: 320px;
}

/* Custom form styles inside mock dashboards */
.mock-form-group {
    margin-bottom: 16px;
}

.mock-form-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.mock-form-input {
    width: 100%;
    background: var(--bg-panel-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-fast);
}

.mock-form-input option {
    background: var(--bg-panel-light);
    color: var(--text-primary);
}

.mock-form-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Invoice Sandbox Styles */
.mock-invoice-preview {
    background: white;
    color: #050B14; /* Deep space black */
    border-radius: var(--radius-sm);
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.invoice-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.invoice-logo {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: #050B14;
}

.invoice-logo span {
    color: var(--primary);
}

.invoice-meta {
    text-align: right;
    font-size: 12px;
    color: #64748b;
}

.invoice-client {
    margin-bottom: 20px;
}

.invoice-client-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
}

.invoice-client-name {
    font-weight: 700;
    font-size: 15px;
    color: #050B14;
}

.invoice-items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.invoice-items th {
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    padding: 8px 0;
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
}

.invoice-items td {
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 0;
    font-size: 13px;
}

.invoice-items .total-row td {
    font-weight: 700;
    font-size: 15px;
    border-bottom: none;
    padding-top: 16px;
}

/* Expense / Drag & Drop Sandbox */
.drag-drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: 280px;
}

.drag-drop-zone:hover, .drag-drop-zone.drag-active {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.drag-drop-icon {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--primary);
}

.drag-drop-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.drag-drop-text span {
    color: var(--primary);
    font-weight: 600;
}

.drag-drop-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.ocr-result-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ocr-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--accent-cyan);
}

.ocr-data-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ocr-data-row:last-child {
    border-bottom: none;
}

.ocr-label {
    color: var(--text-muted);
}

.ocr-val {
    font-weight: 600;
}

/* --- API Webhook Monospace Terminal (SaaS Trend) --- */
.terminal-window {
    background: #010409;
    border: 1px solid rgba(0, 82, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    font-family: 'SF Mono', 'Courier New', Courier, monospace;
}

.terminal-header {
    background: #0d1117;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0, 82, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-actions {
    display: flex;
    gap: 6px;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.close { background: #ff5f56; }
.terminal-dot.minimize { background: #ffbd2e; }
.terminal-dot.maximize { background: #27c93f; }

.terminal-title {
    font-size: 11px;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-size: 12px;
    color: #c9d1d9;
    min-height: 260px;
    overflow-y: auto;
    line-height: 1.5;
}

.term-green { color: #57ab5a; }
.term-cyan { color: #58a6ff; }
.term-purple { color: #bc8cff; }
.term-yellow { color: #d4bbff; }
.term-muted { color: #8b949e; }

/* --- Strategic Forecast Metrics (Runway Trend) --- */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.forecast-metric-card {
    background: rgba(255, 255, 255, 0.01);
    border-left: 3px solid var(--primary-light);
    border-radius: 4px;
    padding: 14px 18px;
}

[data-theme="light"] .forecast-metric-card {
    background: rgba(5, 11, 20, 0.015);
}

.forecast-metric-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.forecast-metric-val {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

.precision-gauge-container {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .precision-gauge-container {
    border-top-color: rgba(5, 11, 20, 0.06);
}

.gauge-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
}

.gauge-track {
    width: 100%;
    height: 8px;
    background: var(--bg-dark);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.gauge-fill {
    height: 100%;
    border-radius: 4px;
    transition: width var(--transition-smooth);
}

.gauge-fill.trad {
    background: var(--accent-red);
}

.gauge-fill.kinetix {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* 3D Debit Card Sandbox */
.card-sandbox-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    min-height: 320px;
}

.kinetix-debit-card {
    width: 340px;
    height: 215px;
    border-radius: 16px;
    background: linear-gradient(135deg, #101524 0%, #050b14 100%); /* Adopted Kinetix Deep Space */
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
    padding: 24px;
    color: white;
}

.card-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.06) 40%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 5;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.1s ease-out;
}

.card-chip {
    width: 44px;
    height: 34px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 6px;
    margin-bottom: 24px;
    position: relative;
}

.card-chip::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-image: 
        linear-gradient(90deg, transparent 50%, rgba(0,0,0,0.15) 50%),
        linear-gradient(0deg, transparent 50%, rgba(0,0,0,0.15) 50%);
    background-size: 10px 10px;
    border-radius: 6px;
}

.card-number {
    font-family: 'SF Mono', 'Courier New', Courier, monospace;
    font-size: 20px;
    letter-spacing: 0.12em;
    margin-bottom: 28px;
    color: #e2e8f0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-holder {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-holder .label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.card-holder .name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.card-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.card-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: white;
}

.card-logo-text span {
    color: var(--primary);
}

.card-brand {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #cbd5e1;
}

/* --- Section: Timeline (Kinetix vs Traditional) --- */
.timeline-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.timeline-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 16px;
    position: relative;
    transition: var(--transition-fast);
}

.timeline-tab-btn:hover {
    color: var(--text-secondary);
}

.timeline-tab-btn.active {
    color: var(--text-primary);
}

.timeline-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: var(--transition-smooth);
}

.timeline-tab-btn.active::after {
    width: 100%;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-right: 0;
    padding-left: 40px;
}

.timeline-badge {
    position: absolute;
    top: 6px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--border);
    z-index: 10;
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .timeline-badge {
    left: -10px;
}

.timeline-item.active .timeline-badge {
    background: var(--primary);
    border-color: var(--primary-light);
    box-shadow: 0 0 10px var(--primary);
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: var(--glass-border-hover);
}

.timeline-item.active .timeline-content {
    border-color: var(--primary-glow-strong);
    background: radial-gradient(circle at 0% 0%, var(--primary-glow) 0%, rgba(255, 255, 255, 0.01) 60%);
}

[data-theme="light"] .timeline-item.active .timeline-content {
    background: radial-gradient(circle at 0% 0%, rgba(0, 82, 255, 0.04) 0%, rgba(255, 255, 255, 0.98) 60%);
    border-color: rgba(0, 82, 255, 0.15);
}

.timeline-time {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.timeline-view-wrapper {
    position: relative;
    min-height: 600px;
}

.timeline-view-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.timeline-view-item.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

/* --- Section: FAQ Accordion --- */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--glass-border-hover);
}

.faq-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.faq-toggle-icon {
    font-size: 20px;
    color: var(--text-muted);
    transition: transform var(--transition-smooth);
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth) ease-out;
}

.faq-answer {
    padding: 0 24px 24px 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* --- Footer --- */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 64px;
}

.footer-logo-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-col p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

[data-theme="light"] .social-btn {
    background: rgba(5, 11, 20, 0.02);
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    color: white;
    transform: translateY(-2px);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-legal-link:hover {
    color: var(--text-secondary);
}

/* --- Floating Kinetix Chatbot --- */
.chat-trigger-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 200;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 82, 255, 0.4), 0 0 0 6px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition-smooth);
}

.chat-trigger-btn:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 15px 35px rgba(0, 82, 255, 0.6), 0 0 0 10px rgba(0, 82, 255, 0.25);
}

.chat-panel {
    position: fixed;
    bottom: 108px;
    right: 32px;
    width: 380px;
    height: 480px;
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.chat-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-close-btn:hover {
    color: var(--text-primary);
}

.chat-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    animation: message-fade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes message-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message.bot {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-message.user {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.2);
}

.chat-quick-queries {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.quick-query-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

[data-theme="light"] .quick-query-btn {
    background: rgba(5, 11, 20, 0.02);
}

.quick-query-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}

.chat-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-footer input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: white;
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition-fast);
}

[data-theme="light"] .chat-footer input {
    color: var(--text-primary);
}

.chat-footer input:focus {
    border-color: var(--primary);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        height: 380px;
    }
    .simulator-layout {
        grid-template-columns: 1fr;
    }
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .sandbox-view-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 40px;
    }
    .nav-menu {
        display: none; /* simple for mockup */
    }
    .timeline-container::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0 !important;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-badge {
        left: 10px !important;
        right: auto !important;
    }
    .audit-sidebar {
        width: 100%;
        right: -100%;
    }
    .comparison-cards-wrapper {
        grid-template-columns: 1fr;
    }
}

/* --- Contact Modal Overlays --- */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 11, 20, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

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

.contact-modal-content {
    width: 100%;
    max-width: 460px;
    padding: 32px;
    border-radius: var(--radius-md);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-smooth);
    
    /* Solid Theme Panel Overrides to force maximum text contrast (preventing backdrop bleed-through unreadability) */
    background: var(--bg-panel) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-card);
}

.contact-modal.open .contact-modal-content {
    transform: scale(1) translateY(0);
}

.contact-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted) !important;
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.contact-modal-close-btn:hover {
    color: var(--text-primary) !important;
}

.contact-modal-header {
    margin-bottom: 24px;
}

.contact-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary) !important;
}

.contact-modal-header p {
    font-size: 13px;
    color: var(--text-secondary) !important;
    line-height: 1.5;
}

.contact-form .mock-form-group {
    margin-bottom: 16px;
}

.contact-form textarea.mock-form-input {
    min-height: 100px;
}

/* Success State styling */
.contact-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    animation: message-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon-wrapper {
    font-size: 54px;
    color: var(--accent-green);
    margin-bottom: 16px;
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.3));
}

.contact-success-state h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary) !important;
}

.contact-success-state p {
    font-size: 13px;
    color: var(--text-secondary) !important;
    line-height: 1.6;
}

/* --- Section: How It Works --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.steps-card {
    position: relative;
    padding: 32px;
    overflow: hidden;
}

.steps-card h3 {
    font-size: 18px;
    margin: 20px 0 12px 0;
}

.steps-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

.step-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.12;
    line-height: 1;
}

/* Trust badge strip */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 40px;
    margin-top: 48px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.015);
}

[data-theme="light"] .trust-strip {
    background: rgba(5, 11, 20, 0.015);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.trust-item i {
    color: var(--primary);
    font-size: 16px;
}

/* --- Section: Pricing --- */
.pricing-panel {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.pricing-figure {
    font-family: var(--font-heading);
    font-size: 96px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-pct {
    font-size: 64px;
}

.pricing-gst {
    font-size: 24px;
    -webkit-text-fill-color: initial;
    color: var(--text-muted);
    font-weight: 600;
}

.pricing-sub {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 8px 0 20px 0;
}

.pricing-cap {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.pricing-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

.pricing-includes-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.pricing-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-list li i {
    color: var(--accent-green);
    margin-top: 3px;
    flex-shrink: 0;
}

/* --- Section: Testimonials --- */
.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.rating-stars i, .testimonial-stars i {
    color: #f5b301;
    font-size: 14px;
}

.rating-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-quote {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.65;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
}

.testimonial-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Section: Why Kinetix --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    padding: 28px;
}

.why-card h3 {
    font-size: 16px;
    margin: 16px 0 10px 0;
}

.why-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* --- Section: Final CTA --- */
.final-cta {
    text-align: center;
    padding: 64px 48px;
    background: radial-gradient(circle at 50% 0%, var(--primary-glow) 0%, var(--glass-bg) 60%);
}

.final-cta h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.final-cta p {
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 24px auto;
}

.persona-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.persona-chip {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .persona-chip {
    background: rgba(5, 11, 20, 0.02);
}

/* --- Mobile Navigation --- */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-fast);
}

[data-theme="light"] .mobile-menu-btn {
    background: rgba(5, 11, 20, 0.04);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Responsive: new sections + mobile nav dropdown --- */
@media (max-width: 1024px) {
    .steps-grid, .why-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    header.nav-open .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 16px 24px 24px 24px;
        background: rgba(5, 11, 20, 0.98);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-card);
    }
    [data-theme="light"] header.nav-open .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }
    header.nav-open .nav-menu .nav-link {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        width: 100%;
    }
    .pricing-figure {
        font-size: 64px;
    }
    .pricing-panel {
        padding: 28px;
    }
    .final-cta h2 {
        font-size: 28px;
    }
    .final-cta {
        padding: 48px 24px;
    }
}
