:root {
    /* Default Dark Theme */
    --bg-color: #0f1115;
    --bg-gradient: radial-gradient(circle at 50% 0%, #1e2330 0%, #0f1115 100%);
    --card-bg: #1c1f26;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --btn-secondary-bg: #2d313a;
    --btn-secondary-hover: #374151;
    --border-color: #2d313a;
    --glow-color: rgba(99, 102, 241, 0.15);
    --header-bg: rgba(15, 17, 21, 0.6);
    --header-border: rgba(255, 255, 255, 0.05);
    --hero-title-gradient: linear-gradient(to right, #ffffff 20%, #9ca3af 100%);
    --hero-badge-bg: rgba(99, 102, 241, 0.1);
    --hero-badge-border: rgba(99, 102, 241, 0.2);
    --hero-badge-text: var(--accent-color);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #f3f4f6;
        --bg-gradient: radial-gradient(circle at 50% 0%, #ffffff 0%, #f3f4f6 100%);
        --card-bg: #ffffff;
        --text-primary: #111827;
        --text-secondary: #4b5563;
        --accent-color: #4f46e5;
        --accent-hover: #4338ca;
        --btn-secondary-bg: #e5e7eb;
        --btn-secondary-hover: #d1d5db;
        --border-color: #e5e7eb;
        --glow-color: rgba(79, 70, 229, 0.1);
        --header-bg: rgba(243, 244, 246, 0.8);
        --header-border: rgba(17, 24, 39, 0.08);
        --hero-title-gradient: linear-gradient(to right, #111827 15%, #4b5563 100%);
        --hero-badge-bg: rgba(79, 70, 229, 0.08);
        --hero-badge-border: rgba(79, 70, 229, 0.16);
        --hero-badge-text: var(--accent-color);
    }
}

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

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    padding: 0.4rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--header-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.nav-links a svg {
    display: inline-block;
    width: 12px;
    height: 12px;
    opacity: 0.8;
    margin-left: 4px;
    vertical-align: middle;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-disabled {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.btn-secondary.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.35), 0 0 22px rgba(99, 102, 241, 0.6);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover);
    transform: translateY(-1px);
}

.btn-disabled {
    background-color: var(--btn-secondary-bg);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Hero Section */
.hero {
    padding-top: 68px; /* Offset for fixed header */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

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

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40px; /* Counter-offset for true visual centering */
}

.hero .badge,
.hero-title,
.hero-subtitle,
.hero-buttons {
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero .badge { animation-delay: 0.15s; }
.hero-title { animation-delay: 0.3s; }
.hero-subtitle { animation-delay: 0.5s; }
.hero-buttons { animation-delay: 0.7s; }

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--hero-badge-bg);
    color: var(--hero-badge-text);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 0.95rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--hero-badge-border);
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.04em;
    line-height: 1.05;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 80%;
    margin: 0 auto 1.05rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-subtitle span {
    display: block;
}

.hero-subtitle span:nth-child(2),
.hero-subtitle span:nth-child(3) {
    display: inline;
}

.hero-subtitle span:last-child {
    font-size: 0.92em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Studio Preview */
.studio-preview {
    margin-top: 1.6rem;
    width: 80vw;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.studio-stack {
    position: relative;
    height: clamp(210px, 28vw, 330px);
}

.studio-frame {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}

.studio-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.studio-frame-dark {
    background: #0b0d12;
}

.studio-frame-light {
    display: none;
    border-color: rgba(255, 255, 255, 0.16);
}

/* Features Section */
.features {
    padding: 10rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-color);
    margin-bottom: 1.25rem;
}

.icon-box svg {
    display: block;
}

/* Get Started Section */
.get-started {
    padding: 10rem 0 12rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    align-items: flex-start;
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.5;
    line-height: 1;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .hero-subtitle span:nth-child(1),
    .hero-subtitle span:nth-child(3) {
        display: block;
    }

    .hero-subtitle span:nth-child(2) {
        display: none;
    }

    .studio-stack {
        height: clamp(170px, 55vw, 240px);
    }

    .studio-frame {
        width: 100%;
    }

    .step {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav.container {
        flex-direction: row;
        gap: 0.75rem;
    }

    .nav-links {
        width: auto;
        justify-content: flex-end;
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

@media (prefers-color-scheme: light) {
    .studio-frame-dark {
        display: none;
    }

    .studio-frame-light {
        display: block;
    }
}

.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--glow-color);
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
