/* Globals & Variables */
:root {
    --primary: #6C22D8;
    --primary-light: #9452F8;
    --primary-dark: #4d15a1;
    --secondary: #054DE2;
    --accent: #00e0ff;
    
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-hover: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    --shadow-soft: 0 10px 30px -10px rgba(108, 34, 216, 0.15);
    --shadow-strong: 0 20px 40px -10px rgba(108, 34, 216, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.text-white { color: var(--text-light); }

.center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.w-full { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

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

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: var(--shadow-soft);
}

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

.btn-secondary {
    background: rgba(108, 34, 216, 0.1);
    color: var(--primary);
}

.btn-secondary:hover {
    background: rgba(108, 34, 216, 0.15);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.brand-icon {
    color: var(--primary);
    width: 28px;
    height: 28px;
}

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

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

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

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: var(--primary-light);
    animation: floatShape 10s ease-in-out infinite alternate;
}

.shape-2 {
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--secondary);
    animation: floatShape 12s ease-in-out infinite alternate-reverse;
}

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

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108, 34, 216, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

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

/* Hero Visual Animations */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-scene {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-cube-container {
    position: relative;
    z-index: 2;
}

.floating-cube {
    width: 100px;
    height: 100px;
    background: var(--gradient-brand);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: var(--shadow-strong);
    animation: levitate 4s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

.cube-icon {
    width: 48px;
    height: 48px;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    animation: pulse 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: 1;
}

.speed-lines {
    position: absolute;
    top: 50%;
    right: 120%;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary));
    transform: translateY(-50%);
    animation: speedLine 2s linear infinite;
    opacity: 0.5;
}

.speed-lines.offset {
    top: 70%;
    right: 140%;
    width: 100px;
    animation-delay: 1s;
    background: linear-gradient(90deg, transparent, var(--secondary));
}

.hero-stats {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stat-card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.stat-1 {
    top: 10%;
    right: 0;
    animation: float1 6s ease-in-out infinite;
}

.stat-2 {
    bottom: 10%;
    left: 0;
    animation: float2 5s ease-in-out infinite alternate;
}

.stat-icon {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header.center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.img-fluid {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
}

.shadow-smooth {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.overlay-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-strong);
    border-left: 4px solid var(--primary);
}

.overlay-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.overlay-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-list {
    margin-top: 32px;
    display: grid;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
}

.feature-list i {
    color: var(--primary);
}

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

.step-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(108, 34, 216, 0.2);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(108, 34, 216, 0.05);
    line-height: 1;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: rgba(108, 34, 216, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.step-icon i {
    width: 32px;
    height: 32px;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-muted);
}

/* Interactive Solutions */
.solutions-interactive {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.solution-card {
    background: white;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.solution-card:hover {
    border-color: var(--primary-light);
    background: rgba(108, 34, 216, 0.02);
}

.solution-card.active {
    border-color: var(--primary);
    background: rgba(108, 34, 216, 0.04);
}

.solution-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.icon-main {
    color: var(--primary);
}

.solution-card h3 {
    font-size: 1.2rem;
}

.solution-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-right: 30px;
}

.chevron {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition);
}

.solution-card.active .chevron {
    color: var(--primary);
    transform: translateY(-50%) translateX(5px);
}

.solution-details {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-subtle);
    min-height: 250px;
    display: flex;
    align-items: center;
}

.detail-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.detail-content.active {
    display: block;
}

.detail-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 24px;
}

.detail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.detail-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
    max-width: 700px;
}

/* Differentials */
.diff-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.diff-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.diff-icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    padding: 12px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.diff-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: white;
}

.diff-item p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Glass Panel Visualization */
.infrastructure-preview {
    position: relative;
    padding: 20px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    color: white;
    font-weight: 600;
}

.pulse {
    animation: pulseIcon 2s infinite;
}

.panel-body {
    margin-bottom: 30px;
}

.progress-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.dot.active {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

.line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 -4px;
}

.line.active {
    background: var(--accent);
}

.track-labels {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 0.8rem;
}

/* CTA Section */
.cta-box {
    background: white;
    border-radius: var(--radius-xl);
    padding: 60px;
    box-shadow: var(--shadow-strong);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: var(--gradient-brand);
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.cta-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.form-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.arrow-divider {
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-shrink: 0;
}

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

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    background: white;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 34, 216, 0.1);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    color: white;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .brand {
    color: white;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
}

/* Animations Keyframes */
@keyframes floatShape {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 30px) rotate(15deg); }
}

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

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

@keyframes pulseIcon {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--accent); }
    50% { opacity: 0.5; text-shadow: none; }
}

@keyframes speedLine {
    0% { transform: translateY(-50%) translateX(0); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-50%) translateX(300px); opacity: 0; }
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -15px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, 10px); }
}

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

/* Scroll Revealing Utility Classes */
.reveal-up, .reveal-fade, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-scale { transform: scale(0.9); }

.reveal-fade.active, .reveal-up.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content, .about-grid, .diff-container, .cta-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title { font-size: 3rem; }
    
    .hero-text { text-align: center; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-cta { justify-content: center; }

    .about-text { text-align: center; order: -1; }
    .feature-list { max-width: 400px; margin: 32px auto 0; text-align: left; }
    
    .cta-box { padding: 40px; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .menu-toggle { display: block; }
    
    .steps-grid, .solutions-interactive { grid-template-columns: 1fr; }
    
    .diff-grid { grid-template-columns: 1fr; }
    
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    
    .form-row { flex-direction: column; gap: 16px; align-items: stretch; }
    .arrow-divider { display: none; }
    
    .footer-grid { grid-template-columns: 1fr; }
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 4px;
    border: 1px solid var(--border-subtle, rgba(0,0,0,0.1));
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 16px;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Brand Logo */
.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}
