:root {
    --bg-color: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-blue: #007AFF;
    --accent-purple: #AF52DE;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(175, 82, 222, 0.5);
    }

    100% {
        box-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

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

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


/* Background Gradients */
.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 20% 30%, rgba(0, 122, 255, 0.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(175, 82, 222, 0.15), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

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

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: sticky;
    top: 20px;
    z-index: 100;
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

.logo {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(to right, #007AFF, #AF52DE);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}




.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

.gradient-text {
    background: linear-gradient(135deg, #007AFF, #AF52DE);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.gradient-text:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0 60px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.cta-button.primary {
    background: linear-gradient(135deg, #007AFF, #AF52DE);
    color: white;
    box-shadow: 0 10px 30px -10px rgba(0, 122, 255, 0.5);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cta-button.primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover {
    transform: translateY(-3px);
}

.cta-button.primary:hover {
    box-shadow: 0 20px 40px -10px rgba(175, 82, 222, 0.6);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-button.primary:hover::after {
    left: 100%;
}

/* Visual Representation (Deck Panel) */
.visual-demo {
    margin: 60px auto;
    width: 320px;
    animation: float 6s ease-in-out infinite;
}

.visual-panel {
    background: rgba(20, 20, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.visual-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 11px;
    font-weight: 700;
    font-family: SFMono-Regular, monospace;
    color: rgba(255, 255, 255, 0.85);
}

.visual-panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.visual-panel-title {
    flex: 1;
}

.visual-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
}

.visual-macro-card {
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.35), rgba(175, 82, 222, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.visual-macro-card:hover {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.75), rgba(175, 82, 222, 0.75));
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 20px rgba(175, 82, 222, 0.45);
    transform: translateY(-3px) scale(1.05);
}

/* Dim non-hovered siblings for focus */
.visual-panel-grid:has(.visual-macro-card:hover) .visual-macro-card:not(:hover) {
    opacity: 0.55;
    transform: scale(0.97);
}

.visual-panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    gap: 8px;
}

.visual-footer-pill {
    font-size: 10px;
    font-weight: 700;
    font-family: SFMono-Regular, monospace;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.visual-footer-pill.history {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.7), rgba(175, 82, 222, 0.7));
    color: white;
}

.visual-footer-pill.devdeck {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
}

/* Features Grid */
/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* Slightly wider cards */
    gap: 30px;
    /* Increased gap */
    padding: 80px 0;
    /* More vertical padding */
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #007AFF, #AF52DE);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
}

.feature-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.7;
}

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

footer a {
    color: var(--text-primary);
    text-decoration: none;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.icon-link i {
    font-size: 1.1em;
}

/* How it Works */
.how-it-works {
    text-align: center;
    padding: 100px 0;
    /* More padding */
}

.how-it-works h2 {
    font-size: 3rem;
    /* Larger */
    margin-bottom: 60px;
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    /* Larger gap */
    margin-top: 40px;
}

/* Integrations Carousel */
.integrations {
    text-align: center;
    padding: 40px 0;
    overflow: hidden;
}

.integrations p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    /* Add padding to prevent clipping on hover scale */
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 25s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-track i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s, transform 0.3s;
    margin-right: 40px;
}

.carousel-track i:hover {
    color: white;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
    }
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    text-align: left;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.step-number {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -10px;
    right: 20px;
    z-index: 0;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    /* Ensure correct font */
}

.step-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    display: inline-block;
    background: linear-gradient(135deg, #007AFF, #AF52DE);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

.step-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    color: var(--accent-blue);
    position: relative;
    z-index: 1;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* Global Layout */
    .container {
        padding: 0 16px;
    }

    /* Header */
    header {
        padding: 12px 20px;
        flex-direction: column;
        gap: 16px;
        top: 10px;
        margin-top: 10px;
    }

    .nav-links {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.85rem;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 3rem;
        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }

    .cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 1rem;
        width: auto;
        min-width: 200px;
        box-sizing: border-box;
        text-align: center;
    }

    /* Visual Demo (Deck Panel) */
    .visual-demo {
        width: 240px;
        margin: 40px auto;
    }

    /* Features Grid */
    .features {
        grid-template-columns: 1fr;
        padding: 40px 0;
        gap: 20px;
    }

    .feature-card {
        padding: 30px;
    }

    /* How it Works */
    .how-it-works {
        padding: 60px 0;
    }

    .how-it-works h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 20px;
    }

    .step-card {
        padding: 30px;
    }

    .step-number {
        font-size: 4rem;
        right: 16px;
    }

    .step-icon {
        font-size: 4rem;
        margin-bottom: 20px;
    }

    /* Footer */
    footer {
        padding: 40px 0;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .logo {
        font-size: 1.3rem;
        /* Slightly smaller logo */
    }
}