:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #131318;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --accent-blue: #667eea;
    --accent-purple: #764ba2;
    --accent-pink: #f093fb;
    --accent-cyan: #00f2fe;
    --accent-gold: #fbbf24;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-sm: 0 0 20px rgba(102, 126, 234, 0.3);
    --glow-md: 0 0 40px rgba(102, 126, 234, 0.4);
    --glow-lg: 0 0 80px rgba(102, 126, 234, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 242, 254, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

#particles-canvas {
    width: 100%;
    height: 100%;
}

/* Glass Effect */
.glass {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: slideInRight 3s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

a.logo {
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    position: relative;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 0.85) 0%, 
        rgba(10, 10, 15, 0.8) 50%,
        rgba(10, 10, 15, 0.75) 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(30deg, transparent 49%, rgba(102, 126, 234, 0.02) 50%, transparent 51%),
        linear-gradient(-30deg, transparent 49%, rgba(240, 147, 251, 0.02) 50%, transparent 51%);
    background-size: 50px 50px;
    z-index: 0;
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    position: relative;
    text-shadow: 0 0 40px rgba(102, 126, 234, 0.4);
    display: block;
    width: 100%;
}

.hero-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: pulse 4s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1.2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 400;
}

/* Email Form */
.email-form {
    margin-bottom: 60px;
}

.form-group {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.email-form input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Source Code Pro', 'Courier New', monospace;
    transition: all 0.3s ease;
}

.email-form input::placeholder {
    color: var(--text-tertiary);
}

.email-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Source Code Pro', 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4),
                0 20px 60px rgba(118, 75, 162, 0.3);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
}

.btn-primary .arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Evolution Section */
.evolution {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 60px;
    font-weight: 400;
}

.evolution-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-blue) 25%, 
        var(--accent-purple) 50%, 
        var(--accent-pink) 75%,
        transparent);
    z-index: 0;
}

.evolution-stage {
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.evolution-stage:nth-child(2) { animation-delay: 0.1s; }
.evolution-stage:nth-child(3) { animation-delay: 0.2s; }
.evolution-stage:nth-child(4) { animation-delay: 0.3s; }
.evolution-stage:nth-child(5) { animation-delay: 0.4s; }

.stage-marker {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    background: var(--bg-primary);
    background-image: linear-gradient(135deg, var(--bg-primary), rgba(102, 126, 234, 0.1));
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2),
                inset 0 0 20px rgba(102, 126, 234, 0.1);
}

.stage-marker::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-purple);
    opacity: 0;
    animation: pulse 2s ease-in-out infinite;
}

.evolution-stage:hover .stage-marker {
    transform: scale(1.1);
    border-color: var(--accent-purple);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.stage-number {
    font-weight: 700;
    color: var(--accent-blue);
}

.stage-card {
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stage-card:hover {
    transform: translateY(-10px) rotateX(-5deg) scale(1.02);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.05));
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3),
                0 30px 60px rgba(240, 147, 251, 0.2),
                inset 0 0 30px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.stage-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.stage-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.stage-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.stage-skills {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stage-skills li {
    padding-left: 20px;
    position: relative;
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.stage-skills li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

/* Changes Section */
.changes {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.changes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.change-card {
    padding: 40px;
    transition: all 0.3s ease;
}

.change-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.change-icon {
    margin-bottom: 30px;
}

.change-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.change-from, .change-to {
    flex: 1;
}

.change-arrow {
    font-size: 1.5rem;
    color: var(--accent-purple);
}

.change-from .label,
.change-to .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.change-from h4,
.change-to h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.change-to h4 {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Section */
.features {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-8px) rotateY(5deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(102, 126, 234, 0.05));
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.25),
                inset 0 1px 1px rgba(255, 255, 255, 0.2);
}


.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    display: inline-block;
    transition: all 0.3s ease;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 3px 10px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--accent-blue);
}

/* Stats Section */
.stats-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.stat-card {
    padding: 50px 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.stat-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.08);
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1;
    position: relative;
}

.stat-value::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    animation: pulse 2s ease-in-out infinite;
}

.stat-description {
    font-size: 1rem;
    margin-bottom: 8px;
}

.stat-detail {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

/* Newsletter Section */
.newsletter {
    padding: 120px 0;
}

.newsletter-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(102, 126, 234, 0.1), 
        transparent);
    pointer-events: none;
    z-index: -1;
}

.newsletter-card h2 {
    font-size: clamp(1.6rem, 3.2vw, 2rem);
    margin-bottom: 16px;
}

.newsletter-card > p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Source Code Pro', 'Courier New', monospace;
    position: relative;
    z-index: 1;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.btn-glow {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Source Code Pro', 'Courier New', monospace;
    cursor: pointer;
    position: relative;
}

.btn-glow:hover {
    opacity: 0.9;
}

.btn-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.newsletter-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.benefit svg {
    color: var(--accent-blue);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand .logo {
    margin-bottom: 12px;
    justify-content: flex-start;
}

.footer-brand .logo-icon {
    width: 28px;
    height: 28px;
}

.footer-brand p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

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

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.8),
                    0 0 60px rgba(118, 75, 162, 0.6);
    }
}

@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(102, 126, 234, 0.3);
    }
    50% {
        border-color: rgba(102, 126, 234, 0.8);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px) rotateX(-10deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

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

.scroll-reveal:nth-child(odd) {
    transform: translateX(-50px) translateY(50px);
}

.scroll-reveal:nth-child(even) {
    transform: translateX(50px) translateY(50px);
}

.scroll-reveal.active:nth-child(odd),
.scroll-reveal.active:nth-child(even) {
    transform: translateX(0) translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 1.4rem;
        white-space: normal;
        line-height: 1.3;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .evolution-timeline {
        grid-template-columns: 1fr;
    }
    
    .timeline-line {
        display: none;
    }
    
    .changes-grid {
        grid-template-columns: 1fr;
    }
    
    .change-content {
        flex-direction: column;
        text-align: center;
    }
    
    .change-arrow {
        transform: rotate(90deg);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-card {
        padding: 40px 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}