/* Modern Reset & Variables */
:root {
    --bg-dark: #050507;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.5);
    --secondary: #ec4899;
    --secondary-glow: rgba(236, 72, 153, 0.5);
    --accent: #06b6d4;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glass: blur(20px);
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-main: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--easing);
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s var(--easing);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--text-main);
}

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

/* Background Effects */
.bg-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    animation: float 20s infinite ease-in-out;
}

.bg-glow-2 {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    z-index: -1;
    right: -10%;
    bottom: -10%;
    pointer-events: none;
    animation: float 25s infinite ease-in-out reverse;
}

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

/* Header / Nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s var(--easing);
}

.navbar.scrolled {
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: white;
}

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

.nav-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--easing);
    border: 1px solid var(--border);
}

.social-icon:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.social-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

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

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.version-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 100px;
    color: #a5b4fc;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.version-pill:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: var(--primary);
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* Features Grid (Bento) */
.section {
    padding: 8rem 0;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    perspective: 1000px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.5s var(--easing);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.01);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

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

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: var(--primary);
    border: 1px solid var(--border);
}

.bento-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.bento-card.large {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .bento-card.large {
        grid-column: span 1;
    }
}

/* Workflow Section */
.workflow-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.workflow-item:nth-child(even) {
    flex-direction: row-reverse;
}

.workflow-content {
    flex: 1;
}

.workflow-visual {
    flex: 1;
    position: relative;
}

.workflow-visual img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s var(--easing);
}

.workflow-item:hover .workflow-visual img {
    transform: scale(1.02);
}

.step-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    margin-bottom: -1rem;
    display: block;
}

.workflow-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.workflow-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Installation Tabs */
.install-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 100px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    padding: 0.8rem 2rem;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-main);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s var(--easing);
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.code-block {
    background: #000;
    padding: 1.5rem;
    border-radius: 12px;
    font-family: 'Fira Code', monospace;
    color: #a5b4fc;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    position: relative;
    overflow-x: auto;
}

pre.code-block {
    white-space: pre;
    line-height: 1.8;
}

.code-block::before {
    content: '$';
    color: var(--secondary);
    margin-right: 10px;
    user-select: none;
}

pre.code-block::before {
    content: none;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
}

.step-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    font-weight: 700;
    flex-shrink: 0;
    color: var(--primary);
    border: 1px solid var(--border);
}

/* Common Problems Section */
.problems-container {
    max-width: 900px;
    margin: 0 auto;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    transition: all 0.5s var(--easing);
}

.problem-card:hover {
    border-color: rgba(255, 200, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.problem-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.problem-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.code-container {
    position: relative;
    margin: 1.5rem 0;
}

.code-container .code-block {
    margin: 0;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s var(--easing);
    z-index: 10;
    width: 40px;
    height: 40px;
}

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

.copy-btn.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.copy-btn.copied svg {
    stroke: #10b981;
}

.copy-btn svg {
    flex-shrink: 0;
}

.terminal-code {
    background: #000;
    padding: 2rem;
    padding-top: 4rem;
    border-radius: 12px;
    font-family: 'Fira Code', monospace;
    color: #a5b4fc;
    border: 1px solid var(--border);
    overflow-x: auto;
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre;
}

.note-box {
    padding: 1.5rem;
    background: rgba(255, 200, 0, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 200, 0, 0.3);
    margin-top: 2rem;
}

.note-box p {
    margin: 0;
    color: #fbbf24;
    font-size: 1rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
}

footer a {
    color: var(--text-main);
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .workflow-item, 
    .workflow-item:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
    }
    
    .install-container {
        padding: 1.5rem;
    }
    
    .problem-card {
        padding: 1.5rem;
    }
    
    .copy-btn {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .terminal-code {
        padding: 1.5rem;
        font-size: 0.85rem;
    }
    
    .nav-links {
        display: none; /* Mobile menu to be implemented if needed, for now simple */
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--easing);
}

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