:root {
    /* Color Palette - Premium Dark */
    --bg-color: #020202;
    --surface-color: #0c0c0e;
    --surface-hover: #141417;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-color: #00f2ff;
    --accent-glow: rgba(0, 242, 255, 0.15);
    --border-color: rgba(255, 255, 255, 0.08);
    --success-color: #4ade80;

    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 140px 20px;
    --container-max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Custom Cursor --- */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(0, 242, 255, 0.3);
    border: 1.5px solid var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s, height 0.3s, background 0.3s;
    transform: translate(-50%, -50%);
    mix-blend-mode: plus-lighter;
    display: none;
}

@media (min-width: 1025px) {
    .cursor-follower {
        display: block;
    }

    body {
        cursor: none;
    }

    a,
    button,
    .btn,
    .problem-card,
    .service-card {
        cursor: none;
    }
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 255, 0.1);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
    background: rgba(2, 2, 2, 0.8);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

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

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 2000;
}

#mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(2, 2, 2, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu a {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
}



/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1rem;
    gap: 10px;
    font-family: var(--font-heading);
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(250%) rotate(45deg);
    }
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.3), 0 0 100px rgba(0, 242, 255, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 0% 0%, rgba(0, 242, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(0, 242, 255, 0.03) 0%, transparent 50%);
}

/* Technical Grid/Mesh Background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 80px;
}

.hero-content {
    flex: 1.2;
    text-align: left;
    max-width: none;
    margin: 0;
}

.hero h1 {
    font-size: 6rem;
    line-height: 0.95;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 0 48px;
    line-height: 1.6;
}

/* --- Hero System Flow (Architectural Redesign) --- */
.hero-system-flow {
    flex: 0.8;
    position: relative;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Central Vertical Axis */
.hero-system-flow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent,
            rgba(0, 242, 255, 0.2) 20%,
            rgba(0, 242, 255, 0.2) 80%,
            transparent);
}

/* Animated Pulse Path */
.hero-system-flow::after {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    width: 3px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    filter: blur(2px);
    animation: flowPulse 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes flowPulse {
    0% {
        transform: translateY(-120px);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

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

.flow-node {
    margin-left: 50px;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 32px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.flow-node:hover {
    background: rgba(0, 242, 255, 0.05);
    border-color: rgba(0, 242, 255, 0.2);
    transform: translateX(10px);
}

.flow-node::before {
    content: '';
    position: absolute;
    left: -53px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-color);
    z-index: 5;
    border: 2px solid #000;
}

/* Horizontal Connector */
.flow-node::after {
    content: '';
    position: absolute;
    left: -50px;
    top: 50%;
    width: 50px;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 242, 255, 0.5), transparent);
    z-index: 1;
}

.flow-node h3 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.flow-node p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.stars {
    color: #fbbf24;
    gap: 4px;
    display: flex;
}

.stars i {
    width: 14px;
    height: 14px;
}

/* --- Badge --- */
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 100px;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

/* --- ROI Calculator --- */
.calculator-section {
    background: #080808;
    position: relative;
    overflow: hidden;
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background: var(--surface-color);
    padding: 60px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
}

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

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-row label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.value-badge {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.9rem;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: #222;
    border-radius: 3px;
    border: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 0 15px var(--accent-glow);
}

.calc-result-box {
    text-align: center;
}

.calc-result-card {
    background: var(--bg-color);
    padding: 60px 40px;
    border-radius: 32px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 20px 50px rgba(0, 242, 255, 0.1);
    position: relative;
}

.result-label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.result-value {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 30px var(--accent-glow);
}

.result-yearly {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* --- Vision 88 Operating System Diagram --- */
.system-diagram-section {
    padding: var(--section-padding);
    background: #020202;
    position: relative;
    overflow: hidden;
}

.system-diagram-container {
    position: relative;
    max-width: 1100px;
    margin: 80px auto;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central Hub */
.system-hub {
    position: relative;
    width: 200px;
    height: 200px;
    background: #000;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow:
        0 0 40px rgba(0, 242, 255, 0.2),
        inset 0 0 20px rgba(0, 242, 255, 0.1);
    animation: hubPulse 4s ease-in-out infinite;
}

@keyframes hubPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(0, 242, 255, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 60px rgba(0, 242, 255, 0.4);
    }
}

.system-hub h2 {
    font-size: 3.5rem;
    margin-bottom: -10px;
    color: #fff;
    letter-spacing: -0.05em;
}

.system-hub span {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Path Connectors */
.system-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.system-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2;
}

.system-path-glow {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 2;
    stroke-dasharray: 100, 1000;
    stroke-linecap: round;
    animation: flowData 4s linear infinite;
}

@keyframes flowData {
    from {
        stroke-dashoffset: 1100;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Floating Feature Cards */
.system-card {
    position: absolute;
    width: 300px;
    background: rgba(12, 12, 14, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 24px;
    z-index: 15;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.system-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 50px rgba(0, 242, 255, 0.1);
}

.system-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}

.system-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.system-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Positions */
.sys-tl {
    top: 0;
    left: 0;
    transform: translateY(-20px);
}

.sys-tr {
    top: 0;
    right: 0;
    transform: translateY(-20px);
}

.sys-bl {
    bottom: 0;
    left: 0;
    transform: translateY(20px);
}

.sys-br {
    bottom: 0;
    right: 0;
    transform: translateY(20px);
}

@media (max-width: 1024px) {
    .system-diagram-container {
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 250px;
    }

    .system-hub {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .system-card {
        position: static;
        width: 100%;
        transform: none !important;
    }

    .system-svg {
        display: none;
    }

    .hero-system-flow {
        display: none;
    }
}

/* --- Section Foundations --- */
section {
    padding: var(--section-padding);
}

.section-header {
    max-width: 800px;
    margin: 0 auto 80px;
    text-align: center;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

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

/* --- Revenue Leakage Section (Redesign) --- */
.leakage-section {
    background: #020202;
    position: relative;
    padding: var(--section-padding);
    overflow: hidden;
}

.leakage-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.8));
    pointer-events: none;
    z-index: 2;
}

.leakage-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(239, 68, 68, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(239, 68, 68, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
}

.leakage-header {
    margin-bottom: 100px;
    text-align: left;
    position: relative;
    z-index: 5;
}

.leakage-header h2 {
    font-size: 5rem;
    color: #fff;
    margin-bottom: 24px;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.leakage-header p {
    color: #ef4444;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.subleak-text {
    font-size: 1.6rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-top: 30px;
    line-height: 1.4;
}

.leak-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 5;
}

.leak-card {
    background: #0c0c0e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: cardFloat 6s ease-in-out infinite alternate;
}

@keyframes cardFloat {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-15px);
    }
}

.leak-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: #111114;
    transform: translateY(-20px) scale(1.02) !important;
}

.card-header {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-dot {
    width: 32px;
    height: 32px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}

.card-body {
    padding: 50px;
}

.leak-card-major {
    grid-row: span 2;
    min-height: 750px;
    display: flex;
    flex-direction: column;
}

.leak-card h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.leak-card-major h3 {
    font-size: 4rem;
}

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

/* Alert Indicator */
.alert-indicator {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-dot {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 20px #ef4444;
    animation: alertPulse 2s infinite;
}

@keyframes alertPulse {

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

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Problem Visuals */
.leak-visual {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Phone Ringer Visual */
.phone-ringer {
    position: relative;
    font-size: 5rem;
    color: #ef4444;
}

.ring-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid #ef4444;
    border-radius: 50%;
    animation: ringWave 1.5s infinite;
}

@keyframes ringWave {
    from {
        width: 80px;
        height: 80px;
        opacity: 1;
    }

    to {
        width: 250px;
        height: 250px;
        opacity: 0;
    }
}

/* Dead End Visual */
.dead-end-visual {
    width: 100%;
    height: 4px;
    background: #222;
    position: relative;
}

.dead-end-wall {
    position: absolute;
    right: 0;
    top: -30px;
    width: 6px;
    height: 64px;
    background: #ef4444;
    box-shadow: 0 0 30px #ef4444;
}

/* Fade Stars Visual */
.review-visual {
    display: flex;
    gap: 12px;
}

.star-faded {
    color: #1a1a1a;
}

.star-glow {
    color: #fbbf24;
    filter: drop-shadow(0 0 15px #fbbf24);
    animation: starPulse 3s infinite;
}

@keyframes starPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* --- Principles Section (Redesign) --- */
.principles-section {
    padding: 160px 0;
    background: #050505;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.principles-container {
    max-width: 1000px;
    margin: 0 auto;
}

.principles-header {
    margin-bottom: 100px;
    text-align: center;
}

.principles-header h2 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.principles-header p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    position: relative;
}

.principles-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 33.33%;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateY(-50%);
}

.principles-grid::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 66.66%;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateY(-50%);
}

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

.principle-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.principle-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .principles-grid::before,
    .principles-grid::after {
        display: none;
    }

    .principles-header h2 {
        font-size: 2.5rem;
    }
}

/* --- Architecture Section (Redesign) --- */
.architecture-section {
    padding: 160px 0;
    background: var(--bg-color);
}

.architecture-container {
    max-width: 800px;
    margin: 0 auto;
}

.architecture-header {
    margin-bottom: 120px;
    text-align: left;
}

.architecture-header h2 {
    font-size: 3.5rem;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.architecture-layers {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.architecture-layers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    opacity: 0.2;
}

.layer-item {
    padding: 60px 0 60px 40px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.layer-item:last-child {
    border-bottom: none;
}

.layer-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 70px;
    width: 9px;
    height: 9px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-color);
}

.layer-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin-bottom: 12px;
    display: block;
}

.layer-item h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 12px;
}

.layer-item p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .architecture-header h2 {
        font-size: 2.5rem;
    }

    .layer-item h3 {
        font-size: 1.5rem;
    }
}

/* --- Footer --- */
footer {
    padding: 100px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    /* Hero Responsive */
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero .container {
        flex-direction: column;
        gap: 60px;
        text-align: center;
    }

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

    .hero h1 {
        font-size: 3.5rem;
        margin-bottom: 24px;
    }

    .hero p {
        margin: 0 auto 40px;
    }

    .hero-system-flow {
        width: 100%;
        gap: 24px;
    }

    .flow-node {
        margin-left: 40px;
        padding: 20px;
    }

    .flow-node::before {
        left: -44px;
    }

    .flow-node::after {
        left: -40px;
        width: 40px;
    }

    /* Revenue Leakage Responsive */
    .leakage-header h2 {
        font-size: 2.5rem;
    }

    .subleak-text {
        font-size: 1.2rem;
    }

    .leak-grid {
        grid-template-columns: 1fr;
    }

    .leak-card-major {
        min-height: auto;
    }

    .leak-card-major h3 {
        font-size: 2.5rem;
    }

    .card-body {
        padding: 30px;
    }

    /* ROI Calculator Responsive */
    .calc-container {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        gap: 40px;
    }

    .result-value {
        font-size: 3rem;
    }

    @media (max-width: 1024px) {

        /* System Diagram Responsive */
        .system-diagram-container {
            display: flex !important;
            flex-direction: column !important;
            height: auto !important;
            gap: 32px !important;
            transform: none !important;
            margin: 60px auto !important;
            align-items: center !important;
            justify-content: center !important;
            width: 100% !important;
            max-width: 100% !important;
            left: 0 !important;
            right: 0 !important;
        }

        .system-svg {
            display: none !important;
        }

        .system-hub {
            order: -1;
            width: 180px !important;
            height: 180px !important;
            margin: 0 auto 40px auto !important;
            position: relative !important;
            left: auto !important;
            right: auto !important;
            top: auto !important;
            transform: none !important;
            display: flex !important;
        }

        .system-card {
            position: relative !important;
            width: 100% !important;
            max-width: 450px !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            bottom: auto !important;
            transform: none !important;
            margin: 0 auto !important;
            background: #0c0c0e !important;
        }
    }

    /* Architecture Section Responsive */
    .architecture-header h2 {
        font-size: 2.5rem;
    }

    .layer-item h3 {
        font-size: 1.5rem;
    }

    .layer-item p {
        font-size: 1rem;
    }

    /* Final CTA Responsive */
    #cta h2 {
        font-size: 2.5rem !important;
    }

    /* Footer Responsive */
    .footer-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
}