/* Base and Variables */
:root {
    --bg-dark: #0a0f18;
    --bg-darker: #05080c;
    --primary: #3b82f6;
    --secondary: #06b6d4;
    --accent: #8b5cf6;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

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

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
}

.logo i {
    font-size: 28px;
    color: var(--secondary);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

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

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(10, 15, 24, 0) 70%);
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

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

.hero-visual {
    flex: 1;
    position: relative;
}

.mockup-container {
    padding: 10px;
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--secondary);
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
}

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

.section-dark {
    background-color: var(--bg-darker);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
}

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

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Workflow Section */
.workflow {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.workflow::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0.3;
}

.workflow-step {
    display: flex;
    gap: 32px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    z-index: 2;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 22px;
    margin-bottom: 8px;
    margin-top: 10px;
}

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

/* Technology Section */
.tech-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.tech-content {
    flex: 1;
}

.tech-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.tech-content p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 30px;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
}

.tech-list i {
    color: var(--secondary);
    font-size: 20px;
}

.tech-visual {
    flex: 1;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
}

.code-window {
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
}

.window-header {
    background: #1e293b;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.code-window pre {
    padding: 24px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 14px;
    color: #cbd5e1;
}

/* Footer */
footer {
    background: #020617;
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
}

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

.footer-brand p {
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 300px;
    font-size: 14px;
}

.footer-links h4 {
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 14px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 13px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards ease-out;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 42px; }
    .hero-container { flex-direction: column; text-align: center; padding-top: 40px;}
    .hero-subtitle { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .tech-layout { flex-direction: column; }
    
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-toggle { display: block; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .workflow::before { left: 20px; }
    .step-number { width: 40px; height: 40px; font-size: 14px; }
    .feature-card { padding: 24px; }
}
