/* ==================== */
/* Design Tokens        */
/* ==================== */

:root {
    /* Colors from player app - dark theme */
    --bg: oklch(0.14 0 285.86);
    --card-bg: oklch(0.21 0.01 285.93);
    --panel: oklch(0.27 0.01 286.1);
    --border: oklch(0.27 0.01 286.1);

    --text: oklch(0.98 0 0);
    --text-muted: oklch(0.71 0.01 286.14);

    --primary: oklch(0.81 0.14 85.89);
    --primary-fg: oklch(0.21 0.01 285.93);

    --accent: oklch(0.27 0.01 286.1);
    --ring: oklch(0.87 0.01 286.49);

    /* Spacing */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px oklch(0 0 0 / 0.1);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.15);
    --shadow-lg: 0 8px 32px oklch(0 0 0 / 0.2);
    --shadow-xl: 0 16px 64px oklch(0 0 0 / 0.25);

    /* Glow effects */
    --glow-primary: 0 0 40px
        color-mix(in oklch, var(--primary) 40%, transparent);
    --glow-primary-strong: 0 0 60px
        color-mix(in oklch, var(--primary) 60%, transparent);
}

/* ==================== */
/* Reset & Base         */
/* ==================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==================== */
/* Background Effects   */
/* ==================== */

.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.glow {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    animation: float 30s ease-in-out infinite;
}

.glow-primary {
    background: radial-gradient(circle, var(--primary), transparent 70%);
    top: -10%;
    left: -10%;
}

.glow-secondary {
    background: radial-gradient(circle, var(--primary), transparent 70%);
    bottom: -20%;
    right: -10%;
    animation-delay: -15s;
    animation-duration: 40s;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

.grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 100px 100px;
    mask-image: radial-gradient(
        ellipse 80% 50% at 50% 50%,
        black 40%,
        transparent 100%
    );
    opacity: 0.15;
}

/* ==================== */
/* Layout               */
/* ==================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================== */
/* Navigation           */
/* ==================== */

.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    background: color-mix(in oklch, var(--bg) 70%, transparent);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo .accent {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ==================== */
/* Buttons              */
/* ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-fg);
    box-shadow: var(--glow-primary);
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: var(--accent);
    border-color: var(--border);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--panel);
    color: var(--text);
}

/* ==================== */
/* Hero Section         */
/* ==================== */

.hero {
    padding: 8rem 2rem 6rem;
    text-align: center;
}

.hero-badge {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        color-mix(in oklch, var(--primary) 70%, white) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(var(--glow-primary));
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.hero-cta a {
    text-decoration: none;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(12px);
    max-width: 700px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ==================== */
/* Section Headers      */
/* ==================== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    backdrop-filter: blur(12px);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

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

/* ==================== */
/* Features Section     */
/* ==================== */

.features-section {
    padding: 6rem 2rem;
}

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

.feature-card {
    position: relative;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top,
        color-mix(in oklch, var(--primary) 15%, transparent),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in oklch, var(--primary) 30%, var(--border));
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    position: relative;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    position: relative;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==================== */
/* Workflow Section     */
/* ==================== */

.workflow-section {
    padding: 6rem 2rem;
}

.workflow-steps {
    display: grid;
    gap: 2rem;
}

.workflow-step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.workflow-step:hover {
    border-color: color-mix(in oklch, var(--primary) 30%, var(--border));
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.step-visual {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--primary);
}

.step-visual svg {
    width: 64px;
    height: 64px;
}

/* ==================== */
/* Social Proof         */
/* ==================== */

.social-proof {
    padding: 6rem 2rem;
}

.proof-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.quote-text {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--primary-fg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==================== */
/* CTA Section          */
/* ==================== */

.cta-section {
    padding: 6rem 2rem;
}

.cta-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at right,
        color-mix(in oklch, var(--primary) 10%, transparent),
        transparent 70%
    );
}

.cta-content {
    position: relative;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons a {
    text-decoration: none;
}

.cta-visual {
    position: relative;
    height: 300px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    animation: float-card 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: 10%;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: -2s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: -4s;
}

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

.mini-icon {
    font-size: 1.5rem;
}

.mini-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ==================== */
/* Contact Section      */
/* ==================== */

.contact-section {
    padding: 6rem 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.contact-item svg {
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

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

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

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 20%, transparent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    text-align: center;
    margin-top: 0.5rem;
    display: none;
}

.form-status.success {
    display: block;
    background: color-mix(in oklch, var(--primary) 10%, transparent);
    border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
    color: var(--primary);
}

.form-status.error {
    display: block;
    background: color-mix(in oklch, oklch(0.62 0.21 25.75) 10%, transparent);
    border: 1px solid
        color-mix(in oklch, oklch(0.62 0.21 25.75) 30%, transparent);
    color: oklch(0.62 0.21 25.75);
}

/* ==================== */
/* Footer               */
/* ==================== */

.footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==================== */
/* Responsive           */
/* ==================== */

@media (max-width: 1024px) {
    .cta-card,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-visual {
        display: none;
    }

    .workflow-step {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        display: none;
    }

    .hero {
        padding: 5rem 1rem 4rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-lg {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
