:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --accent-red: #FF0000;
    --accent-soft: #FF4444;
    --grad-start: #6366f1;
    --grad-end: #a855f7;
    --text-main: #ffffff;
    --text-muted: #8888aa;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

html {
    scroll-behavior: smooth;
}

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

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: -1;
    pointer-events: none;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 6rem 0 4rem;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.15) 0%, rgba(255, 0, 0, 0) 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
}

.title {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    max-width: 800px;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.terminal-demo {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 3rem;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #1a1a1a;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #e6e6e6;
}

.prompt {
    color: var(--accent-soft);
    margin-right: 8px;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: #ffffff;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent-red);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.3);
}

.btn-primary:hover {
    background: #e60000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.badges {
    display: flex;
    justify-content: center;
    align-items: center;
}

.features {
    padding: 6rem 0 2rem 0;
}

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

.feature-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    z-index: 1;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

.feature-card:hover {
    transform: translateY(-5px);
}

.openclaw-emoji {
    font-size: 2.5rem;
    line-height: 1;
}

.card-glow {
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.feature-card:hover .card-glow {
    opacity: 0.8;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-header .feature-icon {
    margin-bottom: 0;
}

.feature-header .feature-title {
    margin-bottom: 0;
}

.feature-icon {
    color: var(--grad-end);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.feature-value {
    font-weight: 600;
    color: var(--grad-start);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.feature-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.usage {
    padding: 6rem 0 8rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
}

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

.step {
    display: flex;
    gap: 2rem;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.step-content {
    flex-grow: 1;
}

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

.code-block {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.code-block pre {
    padding: 1.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-block code {
    color: #e6e6e6;
}

.code-block .comment { color: #6b7280; }
.code-block .command { color: #60a5fa; }
.code-block .string { color: #a7f3d0; }

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    background: var(--bg-dark);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-left a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    vertical-align: middle;
}

.footer-left a:hover {
    text-decoration: underline;
}

.license {
    margin-top: 0.25rem;
    font-size: 0.8rem !important;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 768px) {
    .title {
        font-size: 3.5rem;
    }
    
    .tagline {
        font-size: 1.25rem;
    }
    

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .orbit-container {
        height: auto;
        flex-direction: column;
    }

    .orbit-ring {
        display: none;
    }
    
    .orbit-skills {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
        margin-top: 2rem;
    }
    
    .orbit-pill-wrapper {
        position: relative;
        animation: none !important;
        animation-delay: 0s !important;
    }
    
    .orbit-pill {
        position: relative;
        top: auto;
        left: auto;
        transform: none !important;
    }
    
    .orbit-pill > .skill-pill {
        animation: none !important;
        animation-delay: 0s !important;
    }

    
    .step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
/* Skills Section */


/* OpenClaw Showcase & Orbit Animation */
.openclaw-showcase {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 2rem 0;
}

.orbit-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 780px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 3rem;
    overflow: visible;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.08);
    pointer-events: none;
}

.orbit-ring-1 {
    width: 600px;
    height: 400px;
    transform: translate(-50%, -50%);
}

.orbit-ring-2 {
    width: 780px;
    height: 520px;
    transform: translate(-50%, -50%);
}

.orbit-ring-3 {
    width: 960px;
    height: 640px;
    transform: translate(-50%, -50%);
}

.openclaw-card {
    z-index: 10;
    width: 320px;
    text-align: center;
}

.openclaw-card .feature-badges {
    justify-content: center;
}

.orbit-skills {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 5;
    transform: scaleY(0.66);
}

.orbit-pill-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    animation: orbit var(--duration, 20s) linear infinite;
    animation-delay: calc(var(--duration, 20s) * var(--delay-ratio, 0) * -1);
}

.orbit-pill {
    position: absolute;
    top: -16px;
    left: -50px;
    transform: translateX(var(--radius, 200px));
}

.orbit-pill > .skill-pill {
    display: inline-flex;
    animation: counter-orbit var(--duration, 20s) linear infinite;
    animation-delay: calc(var(--duration, 20s) * var(--delay-ratio, 0) * -1);
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(calc(360deg * var(--direction, 1))); }
}

@keyframes counter-orbit {
    from { transform: rotate(0deg) scaleY(1.515); }
    to { transform: rotate(calc(-360deg * var(--direction, 1))) scaleY(1.515); }
}

.orbit-container:hover .orbit-pill-wrapper,
.orbit-container:hover .orbit-pill > .skill-pill {
    animation-play-state: paused;
}

.orbit-container:hover .skill-pill {
    transform: scale(1.05);
}


.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.skill-pill i {
    color: var(--grad-end);
    font-size: 1rem;
}

.skill-pill:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

.skills-footer {
    display: flex;
    justify-content: center;
}
