@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors - GitHub Dark Dimmed / Modern Aesthetic */
    --bg: #0D1117;
    --bg-darker: #090C10;
    --surface: #161b22;
    --surface-hover: #1c2128;
    --surface-active: #21262d;
    --accent: #00C853;
    --accent-glow: rgba(0, 200, 83, 0.3);
    --accent-dim: rgba(0, 200, 83, 0.1);
    --secondary: #1A73E8;
    --secondary-dim: rgba(26, 115, 232, 0.1);
    --text: #E6EDF3;
    --text-muted: #8b949e;
    --text-dim: #484f58;
    --border: rgba(255, 255, 255, 0.1);
    --border-bright: rgba(255, 255, 255, 0.2);
    
    /* Fonts */
    --font-sans: 'Outfit', sans-serif;
    --font-heading: 'Outfit', 'Syne', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    /* Spacing & Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --section-padding: 80px 24px;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── FOUNDATION ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

/* ── NOISE TEXTURE ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.2;
}

/* ── GRID BACKGROUND ── */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
    z-index: -1;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-active); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, .logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.mono {
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

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

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

.glass {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 12px;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    background: #00e676;
    box-shadow: 0 0 40px var(--accent-glow);
}

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    border-color: var(--text);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

/* ── NAVBAR ── */
nav {
    position: fixed;
    top: 0; width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    height: 64px;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-icon {
    width: 32px; height: 32px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 10px var(--accent-glow);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* ── HERO SECTION ── */
.hero {
    position: relative;
    padding: 140px 24px 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-glow);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s both;
}

.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFF 0%, var(--accent) 50%, #1A73E8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s 0.2s both;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.8s 0.4s both;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s 0.6s both;
}

.hero-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s 0.8s both;
}

.hero-meta span { color: var(--text-muted); }

.hero-mockup {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 1.2s 1s both;
}

.mockup-inner {
    background: var(--surface);
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 50px rgba(0,200,83,0.05);
}

.mockup-inner img {
    width: 100%;
    border-radius: var(--radius-md);
    display: block;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-text {
    text-align: left;
    z-index: 2;
}

.hero-visual {
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite, fadeInRight 1s 0.2s both;
}

.app-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 40px 80px rgba(0,0,0,0.6),
        0 0 50px rgba(0,200,83,0.1),
        0 0 0 1px rgba(255,255,255,0.05);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border);
}

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

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

.window-title {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.window-body {
    background: var(--bg);
}

.window-body img {
    width: 100%;
    display: block;
}

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }
}

/* ── SECTIONS ── */
section {
    padding: var(--section-padding);
}

.section-label {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 50px;
    line-height: 1.2;
}

/* ── GRID SYSTEM ── */
.bento-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(0, 200, 83, 0.08), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: var(--surface-hover);
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: block;
    color: var(--accent);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
}

/* ── HOW IT WORKS ── */
.steps {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

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

.step-circle {
    width: 80px; height: 80px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--accent);
    position: relative;
    transition: var(--transition);
}

.step:hover .step-circle {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.1);
}

.step-num {
    position: absolute;
    top: -5px; right: -5px;
    width: 25px; height: 25px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
}

/* ── DOWNLOAD ── */
.download-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    text-align: center;
    padding: 60px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    position: relative;
}

.download-card.featured {
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(0, 200, 83, 0.1);
}

.recommended-badge {
    position: absolute;
    top: 24px; right: 24px;
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 100px;
}

/* ── BLOG PREVIEWS ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-preview-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.blog-preview-card:hover { transform: translateY(-8px); border-color: var(--secondary); }

.blog-p-content { padding: 32px; }

.blog-p-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); margin-bottom: 12px; }

.blog-p-title { font-size: 1.35rem; margin-bottom: 16px; line-height: 1.3; }

.blog-p-link { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .bento-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .container { padding: 0 24px; }
    
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(13, 17, 23, 0.98);
        backdrop-filter: blur(20px);
        padding: 30px 24px;
        border-bottom: 1px solid var(--border);
        z-index: 1000;
        gap: 20px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-toggle { display: block !important; }
    
    .hero { padding: 120px 24px 60px; }
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .bento-grid, .blog-grid, .download-cards, .steps { grid-template-columns: 1fr; flex-direction: column; }
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1rem; }
    
    .section-title { margin-bottom: 32px; }
    .blog-p-title { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-badge { font-size: 0.7rem; }
    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
}