:root {
    --bg-color: #050505;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #1a4299;
    --primary-hover: #15357a;
    --accent: #3b82f6;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-glass: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.1);
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    letter-spacing: 0.015rem;
    overflow-x: hidden;
    width: 100%;
}

/* Scroll Reveal */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 400;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(26, 66, 153, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 66, 153, 0.4);
}

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

.btn-secondary:hover {
    background: var(--surface-glass);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    color: var(--text-color) !important;
    cursor: pointer;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--text-color) !important;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

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

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

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

.hero-bg-glow {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 66, 153, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}

/* Carousel */
.carousel {
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-nav button {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.carousel-nav button:hover {
    background: var(--primary);
}

/* Features */
.features {
    padding: 100px 0;
    background: radial-gradient(circle at center, rgba(30, 30, 35, 1) 0%, var(--bg-color) 100%);
}

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

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--surface-glass);
    border-color: rgba(26, 66, 153, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(26, 66, 153, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

/* Split Layout / How it works */
.how-it-works {
    padding: 100px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.split-visual {
    width: 100%;
    max-width: 100%;
    overflow: auto;
    border-radius: 12px;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.check-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 400;
}

.code-block {
    background: #0d1117;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.glassy {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(10px);
}

.code-comment { color: #8b949e; }
.code-keyword { color: #ff7b72; }
.code-function { color: #d2a8ff; }
.code-string { color: #a5d6ff; }

/* CTA Section */
.cta-section {
    padding: 0;
}

.glassy-container {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--border);
    padding: 5rem 2rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Support Section */
.support-section {
    padding: 100px 0;
    background: radial-gradient(circle at bottom right, rgba(26, 66, 153, 0.05) 0%, transparent 50%);
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.support-info .section-title {
    margin-bottom: 1.5rem;
    text-align: left;
}

.support-meta {
    margin-top: 2rem;
    color: var(--text-muted);
}

.support-meta p {
    margin-bottom: 0.5rem;
}

.support-form-container {
    padding: 3rem !important;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.form-group input, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.btn-block {
    width: 100%;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-brand p {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-copyright {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-cta {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

.btn-footer {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 6px;
}

.btn-footer:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-grid, .split-layout, .support-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-content, .support-info { text-align: center; }
    .support-info .section-title { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer .logo { justify-content: center; }
    .footer-copyright {
        text-align: center;
    }
    .footer-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { padding: 0.5rem 1rem; font-size: 0.85rem; }
    .hero-title { font-size: 2.25rem; }
    .hero { padding: 100px 0 40px; }
    .section-title { font-size: 1.75rem; margin-bottom: 2rem; }
    .features, .how-it-works, .support-section { padding: 50px 0; }
    .cta-section { padding: 20px 0; }
    .glassy-container { padding: 3.5rem 1.5rem; }
    .cta-section h2 { font-size: 1.75rem; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .features-grid, .split-layout, .support-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .container { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.85rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .logo-text { font-size: 1.1rem; }
    .btn { padding: 0.6rem 1.2rem; }
}
