/* ========================================
   Global Styles & Reset
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0D6EFD;
    --primary-cyan: #00D4FF;
    --accent-teal: #00E5CC;
    --dark-bg: #0a0e27;
    --darker-bg: #060916;
    --card-bg: rgba(15, 23, 42, 0.8);
    --card-border: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --gradient-brand: linear-gradient(135deg, #0D6EFD 0%, #00D4FF 100%);
    --gradient-brand-hover: linear-gradient(135deg, #0b5ed7 0%, #00b8d9 100%);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
    scroll-behavior: smooth;
}

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

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

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* ========================================
   Animated Background
   ======================================== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 90% 60%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 33% 80%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 15% 55%, rgba(255,255,255,0.3), transparent);
    background-size: 200% 200%;
    animation: twinkle 10s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(13, 110, 253, 0.12), transparent 60%),
        radial-gradient(ellipse at 0% 50%, rgba(0, 212, 255, 0.08), transparent 50%),
        radial-gradient(ellipse at 100% 80%, rgba(0, 229, 204, 0.06), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transition: background 0.3s, box-shadow 0.3s;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text .highlight,
.footer-brand-name .highlight {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

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

.btn-nav-gh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.btn-nav-gh:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    color: white !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    z-index: 999;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--card-border);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--primary-cyan);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 540px;
}

/* Terminal snippet */
.install-snippet {
    background: var(--darker-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    max-width: 420px;
}

.snippet-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--card-border);
}

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

.snippet-dot.red { background: #ff5f57; }
.snippet-dot.yellow { background: #febc2e; }
.snippet-dot.green { background: #28c840; }

.snippet-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
    font-family: var(--font-mono);
}

.snippet-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px;
}

.snippet-body code {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--primary-cyan);
}

.prompt {
    color: var(--text-muted);
    margin-right: 8px;
}

.copy-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--primary-cyan);
}

.copy-btn.copied {
    color: var(--accent-teal);
    border-color: var(--accent-teal);
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 48px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-brand);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 212, 255, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.stat-item { text-align: left; }

.stat-value {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Hero image / bot */
.bot-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bot-icon {
    width: 360px;
    height: 360px;
    filter: drop-shadow(0 20px 50px rgba(0, 212, 255, 0.4));
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

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

.pulse-ring,
.pulse-ring-delay {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 50%;
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-ring-delay {
    border-color: rgba(13, 110, 253, 0.4);
    animation-delay: 1.5s;
}

@keyframes pulse {
    0% { transform: scale(0.85); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* ========================================
   Section Shared
   ======================================== */
.section-title {
    font-size: 44px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 14px;
    font-family: var(--font-heading);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 56px;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

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

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 36px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-cyan);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* ========================================
   Install Section
   ======================================== */
.install-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.15);
}

.install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.install-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.install-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.2);
}

.install-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--card-border);
    color: var(--primary-cyan);
}

.install-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.install-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--primary-cyan);
}

.install-code:last-child {
    border-bottom: none;
}

.install-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.install-note code {
    color: var(--primary-cyan);
    background: rgba(0, 212, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ========================================
   Strategies Section
   ======================================== */
.strategies-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.strategy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.strategy-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 36px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.strategy-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.2);
}

.strategy-card.featured {
    border-color: rgba(0, 212, 255, 0.3);
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.04) 0%, var(--card-bg) 100%);
}

.strategy-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 212, 255, 0.2);
    margin-bottom: 16px;
}

.strategy-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.strategy-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 20px;
}

.strategy-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.strategy-features li {
    color: var(--text-secondary);
    font-size: 14px;
    padding-left: 24px;
    position: relative;
}

.strategy-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-brand);
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.15);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 72px;
    height: 72px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.35);
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0 16px;
    font-size: 15px;
}

.step-content code {
    color: var(--primary-cyan);
    background: rgba(0, 212, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.4), rgba(13, 110, 253, 0.4));
    margin-top: 36px;
    flex-shrink: 0;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 36px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(13, 110, 253, 0.12);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-desc {
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(13, 110, 253, 0.08), transparent);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-brand);
    color: white;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 212, 255, 0.35);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: white;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.version-info {
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid var(--card-border);
    padding: 56px 0 28px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 60px;
    margin-bottom: 36px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 40px;
    height: 40px;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 280px;
}

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

.footer-column h4 {
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary-cyan);
}

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

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

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--primary-cyan);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title { font-size: 44px; }
    .hero-subtitle { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .install-snippet { margin: 0 auto 32px; }

    .bot-icon { width: 280px; height: 280px; }
    .pulse-ring, .pulse-ring-delay { width: 320px; height: 320px; }

    .steps { flex-direction: column; gap: 32px; }
    .step-connector { display: none; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }

    .hero { padding: 130px 0 80px; }
    .hero-title { font-size: 34px; }
    .hero-subtitle { font-size: 16px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .stat-value { font-size: 24px; }

    .section-title { font-size: 32px; }
    .section-subtitle { font-size: 16px; }

    .features-grid { grid-template-columns: 1fr; }
    .install-grid { grid-template-columns: 1fr; }
    .strategy-cards { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .cta-title { font-size: 32px; }
    .cta-buttons { flex-direction: column; align-items: center; }

    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .footer-links { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .install-snippet { max-width: 100%; }
}
