/* =========================================
   VARIABLES & RESET
   ========================================= */
   :root {
    --bg-dark: #050505;
    --bg-surface: #111111;
    --primary-cyan: #00F0FF;
    --primary-purple: #7000FF;
    --accent-red: #FF2A54;
    --text-main: #FFFFFF;
    --text-muted: #A0A0AB;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-cyan);
}

/* =========================================
   GLOBAL CLASSES & TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.dark-bg {
    background-color: var(--bg-surface);
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* =========================================
   BACKGROUND GLOW EFFECTS
   ========================================= */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary-purple);
}

.blob-2 {
    top: 40%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary-cyan);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* =========================================
   NAVIGATION
   ========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

nav.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--primary-cyan);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 80px;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--primary-cyan);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-cyan);
    margin-bottom: 1.5rem;
}

#hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

#hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-cyan);
    color: var(--bg-dark);
    border: 1px solid var(--primary-cyan);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--primary-purple);
    background: rgba(112, 0, 255, 0.1);
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.hero-graphic .glass-panel {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
}

.screen-header {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.screen-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pulse-icon {
    font-size: 4rem;
    color: var(--primary-cyan);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; text-shadow: 0 0 0 rgba(0,240,255,0.7); }
    50% { transform: scale(1.1); opacity: 0.8; text-shadow: 0 0 20px rgba(0,240,255,0.5); }
    100% { transform: scale(1); opacity: 1; text-shadow: 0 0 0 rgba(0,240,255,0); }
}

.progress-bar {
    width: 80%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--primary-cyan);
    animation: load 3s infinite ease-in-out;
}

@keyframes load {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; transform: translateX(100%); }
}

/* =========================================
   CONCEPT SECTION
   ========================================= */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead {
    font-size: 1.3rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.concept-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.node {
    background: var(--glass-bg);
    border: 1px solid var(--primary-cyan);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.node.master i {
    font-size: 2.5rem;
    color: var(--primary-cyan);
}

.connections {
    display: flex;
    gap: 4rem;
    position: relative;
    height: 40px;
}

.connections .line {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-cyan), var(--primary-purple));
}

.clients {
    display: flex;
    gap: 1.5rem;
}

.node.client {
    border-color: var(--glass-border);
    padding: 1rem;
    box-shadow: none;
}

.node.client i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(112,0,255,0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(112, 0, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-cyan);
    margin-bottom: 1.5rem;
}

.icon-wrapper.danger {
    background: rgba(255, 42, 84, 0.1);
    color: var(--accent-red);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* =========================================
   USE CASES (TIMELINE)
   ========================================= */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    width: 100%;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 2rem;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--primary-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-cyan);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 15px rgba(0,240,255,0.3);
}

/* =========================================
   DEMO / WOW EFFECT SECTION
   ========================================= */
.demo-wrapper {
    padding: 4rem;
    border-color: rgba(0, 240, 255, 0.2);
}

.demo-header {
    text-align: center;
    margin-bottom: 4rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    border-left: 4px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.step:hover {
    border-left-color: var(--primary-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--glass-border);
    line-height: 1;
}

.step-number.highlight {
    color: var(--accent-red);
    text-shadow: 0 0 15px rgba(255,42,84,0.4);
}

.step-text h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 0 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.5);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   ANIMATIONS (Intersection Observer)
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.slide-up { transform: translateY(50px); }
.slide-right { transform: translateX(-50px); }
.slide-left { transform: translateX(50px); }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    h1 { font-size: 3.5rem !important; }
    .layout-grid { grid-template-columns: 1fr; gap: 3rem; }
    #hero { flex-direction: column; text-align: center; padding-top: 120px; }
    .hero-buttons { justify-content: center; }
    .hero-graphic .glass-panel { max-width: 100%; }
    .timeline::before { left: 30px; }
    .timeline-item { flex-direction: column !important; align-items: flex-start; padding-left: 80px; position: relative; }
    .timeline-icon { position: absolute; left: 5px; top: 0; }
    .timeline-content { width: 100%; }
}

@media (max-width: 768px) {
    h2 { font-size: 2.2rem; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .demo-wrapper { padding: 2rem; }
    .step { flex-direction: column; gap: 1rem; }
}