/* ===== CSS Variables & Design Tokens ===== */
:root {
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-tertiary: #1a1a24;
    --color-bg-card: rgba(255, 255, 255, 0.03);
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-accent-primary: #6366f1;
    --color-accent-secondary: #8b5cf6;
    --color-accent-tertiary: #a78bfa;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem;
    --radius-xl: 1rem; --radius-2xl: 1.5rem; --radius-full: 9999px;
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-family); font-size: 1rem; line-height: 1.6; color: var(--color-text-primary); background: var(--color-bg-primary); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-family: var(--font-family); font-size: 0.875rem; font-weight: 500; border-radius: var(--radius-lg); border: none; cursor: pointer; transition: all 0.25s ease; white-space: nowrap; }
.btn-primary { background: var(--gradient-primary); color: white; box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.4); }
.btn-secondary { background: transparent; color: var(--color-text-primary); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-bg-card); border-color: var(--color-border-hover); }
.btn-light { background: white; color: var(--color-bg-primary); font-weight: 600; }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-large { padding: 1rem 2rem; font-size: 1rem; }

/* Navigation */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 0; background: rgba(10, 10, 15, 0.8); backdrop-filter: blur(20px); border-bottom: 1px solid transparent; transition: all 0.25s ease; }
.navbar.scrolled { border-bottom-color: var(--color-border); padding: 0.75rem 0; }
.nav-container { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; }
.logo-icon { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.5rem; }
.logo-accent { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--color-text-secondary); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--color-text-primary); }
.nav-cta { margin-left: 1rem; }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--color-text-primary); }

/* Hero Section */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 6rem 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.gradient-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.5; }
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%); top: -200px; right: -200px; animation: float 20s ease-in-out infinite; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%); bottom: -100px; left: -200px; animation: float 25s ease-in-out infinite reverse; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 40%, transparent 100%); }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, 40px); } }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.hero-content { max-width: 600px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: 0.875rem; color: var(--color-text-secondary); margin-bottom: 1.5rem; }
.badge-dot { width: 8px; height: 8px; background: var(--color-accent-primary); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero-title { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.125rem; color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 1.5rem; font-weight: 700; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.875rem; color: var(--color-text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--color-border); }
.hero-visual { position: relative; height: 500px; }
.float-card { position: absolute; display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; background: var(--color-bg-card); backdrop-filter: blur(20px); border: 1px solid var(--color-border); border-radius: var(--radius-xl); font-size: 0.875rem; font-weight: 500; animation: floatCard 6s ease-in-out infinite; box-shadow: var(--shadow-lg); }
.float-card .card-icon { font-size: 1.5rem; }
.card-1 { top: 10%; left: 10%; } .card-2 { top: 30%; right: 5%; animation-delay: 1s; } .card-3 { bottom: 30%; left: 5%; animation-delay: 2s; } .card-4 { bottom: 10%; right: 15%; animation-delay: 3s; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--color-text-muted); font-size: 0.875rem; animation: bounce 2s ease-in-out infinite; }
.mouse { width: 24px; height: 40px; border: 2px solid var(--color-border); border-radius: var(--radius-full); display: flex; justify-content: center; padding-top: 8px; }
.wheel { width: 3px; height: 8px; background: var(--color-text-muted); border-radius: var(--radius-full); animation: scroll 2s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }
@keyframes scroll { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: 0.5; transform: translateY(6px); } }

/* Section Common */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-tag { display: inline-block; padding: 0.5rem 1rem; background: var(--gradient-subtle); border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent-tertiary); margin-bottom: 1rem; }
.section-title { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.125rem; color: var(--color-text-secondary); }

/* Services */
.services { padding: 6rem 0; background: var(--color-bg-secondary); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card { position: relative; padding: 2rem; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-2xl); transition: all 0.25s ease; overflow: hidden; }
.service-card:hover { transform: translateY(-4px); border-color: var(--color-border-hover); box-shadow: var(--shadow-glow); }
.service-card.featured { grid-column: span 2; background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%); border-color: rgba(99, 102, 241, 0.3); }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--gradient-primary); border-radius: var(--radius-lg); color: white; margin-bottom: 1.25rem; }
.service-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.service-card p { color: var(--color-text-secondary); font-size: 0.875rem; line-height: 1.6; }
.service-features { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.service-features li { padding: 0.5rem 0.75rem; background: rgba(99, 102, 241, 0.1); border-radius: var(--radius-md); font-size: 0.75rem; color: var(--color-accent-tertiary); }

/* About */
.about { padding: 6rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-content { max-width: 520px; }
.about-text { color: var(--color-text-secondary); margin-bottom: 2rem; }
.about-features { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.about-feature { display: flex; gap: 1rem; }
.feature-icon { flex-shrink: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--gradient-primary); border-radius: var(--radius-md); color: white; font-size: 0.875rem; font-weight: 700; }
.about-feature h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.about-feature p { font-size: 0.875rem; color: var(--color-text-muted); }
.visual-card { width: 100%; max-width: 450px; background: var(--color-bg-tertiary); border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.visual-header { padding: 0.75rem 1rem; background: var(--color-bg-secondary); border-bottom: 1px solid var(--color-border); }
.visual-dots { display: flex; gap: 0.5rem; }
.visual-dots span { width: 12px; height: 12px; border-radius: 50%; }
.visual-dots span:nth-child(1) { background: #ff5f57; } .visual-dots span:nth-child(2) { background: #ffbd2e; } .visual-dots span:nth-child(3) { background: #28ca42; }
.visual-content { padding: 1.5rem; font-family: 'SF Mono', Monaco, monospace; font-size: 0.875rem; line-height: 1.8; }
.code-line { white-space: pre; } .code-line.indent { padding-left: 1.5rem; }
.code-keyword { color: #c678dd; } .code-var { color: #e5c07b; } .code-prop { color: #61afef; } .code-string { color: #98c379; } .code-func { color: #61afef; } .code-comment { color: #5c6370; }

/* CTA */
.cta-section { padding: 4rem 0; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem 4rem; background: var(--gradient-primary); border-radius: var(--radius-2xl); box-shadow: var(--shadow-glow); }
.cta-content h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.cta-content p { font-size: 1.125rem; opacity: 0.9; }

/* Contact */
.contact { padding: 6rem 0; background: var(--color-bg-secondary); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.contact-card { text-align: center; padding: 2.5rem; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-2xl); transition: all 0.25s ease; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--color-border-hover); }
.contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: var(--gradient-subtle); border: 1px solid var(--color-border); border-radius: var(--radius-xl); color: var(--color-accent-primary); margin-bottom: 1.25rem; }
.contact-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.contact-card p { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.contact-link { font-size: 0.875rem; font-weight: 500; color: var(--color-accent-tertiary); transition: color 0.15s ease; }
.contact-link:hover { color: var(--color-accent-primary); }

/* Footer */
.footer { padding: 4rem 0 2rem; background: var(--color-bg-primary); border-top: 1px solid var(--color-border); }
.footer-content { display: flex; align-items: center; justify-content: space-between; padding-bottom: 2rem; border-bottom: 1px solid var(--color-border); margin-bottom: 2rem; }
.footer-brand p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--color-text-muted); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.875rem; color: var(--color-text-secondary); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--color-text-primary); }
.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 0.875rem; color: var(--color-text-muted); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-ctas, .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-content { max-width: 100%; text-align: center; }
    .about-features { align-items: center; }
    .about-feature { text-align: left; }
    .about-visual { display: flex; justify-content: center; }
    .cta-card { flex-direction: column; text-align: center; padding: 2.5rem; }
    .service-card.featured { grid-column: span 1; }
}
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero { min-height: auto; padding: 5rem 0 4rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
    .stat-divider { display: none; }
    .scroll-indicator { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-ctas { flex-direction: column; }
    .btn-large { width: 100%; }
    .section-title { font-size: 1.5rem; }
}
