@import 'background-logo.css';

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --border: #e5e7eb;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

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

/* Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
}

.logo-icon {
    color: var(--primary);
}

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

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

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

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-primary.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Hero */
.hero {
    padding: 100px 0;
    display: flex;
    align-items: center;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-secondary {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-light);
}

/* Hero Image Placeholder CSS Art */
.app-window {
    background: white;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
}

.window-header {
    height: 40px;
    background: #f3f4f6;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

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

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.window-content {
    flex: 1;
    display: flex;
}

.sidebar {
    width: 20%;
    background: #f9fafb;
    border-right: 1px solid var(--border);
}

.main-area {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    height: 100px;
    background: #eff6ff;
    border-radius: 8px;
    border: 1px dashed #bfdbfe;
}

.list-item {
    height: 40px;
    background: #f3f4f6;
    border-radius: 6px;
    width: 100%;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

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

.bg-light {
    background: var(--bg-light);
}

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

.feature-card {
    padding: 30px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    color: var(--primary);
    margin-bottom: 20px;
    width: 40px;
    height: 40px;
}

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

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

/* Screenshots */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.screenshot-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 16px;
}

.caption {
    text-align: center;
    font-weight: 500;
}

/* How It Works steps */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 24px;
    box-shadow: 0 0 0 10px white;
}

.step-content h3 {
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0 20px;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin-top: 30px;
    /* Ideally this would be absolutely positioned behind, but flex works for simple cases */
}

/* Technical Dark Section */
.dark-mode {
    background: var(--bg-dark);
    color: white;
}

.dark-mode .section-header p {
    color: #9ca3af;
}

.tech-grid {
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

.tech-sidebar ul {
    width: 200px;
    border-right: 1px solid #374151;
}

.tech-sidebar li {
    padding: 12px 0;
    cursor: pointer;
    color: #9ca3af;
    transition: 0.2s;
    font-weight: 500;
}

.tech-sidebar li.active,
.tech-sidebar li:hover {
    color: white;
    padding-left: 10px;
    border-left: 2px solid var(--primary);
}

.tech-content {
    flex: 1;
}

.tech-pane h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.tech-pane p {
    color: #d1d5db;
    margin-bottom: 30px;
}

.stack-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stack-item {
    background: #1f2937;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #374151;
}

.stack-item strong {
    display: block;
    color: white;
    margin-bottom: 8px;
}

.stack-item span {
    font-size: 0.9rem;
    color: #9ca3af;
}

.tech-deep-dive {
    margin-top: 60px;
    background: #1f2937;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #374151;
}

.code-block {
    margin-top: 20px;
    background: #111827;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    border-left: 4px solid var(--primary);
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 60px 0;
}

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

.footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
    transform: translateY(20px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .grid-3,
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-line {
        display: none;
    }

    .tech-grid {
        flex-direction: column;
    }

    .tech-sidebar ul {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #374151;
        display: flex;
        gap: 20px;
        overflow-x: auto;
    }
}

.download-grid {
    text-align: center;
}

.download-card {
    background: #1f2937;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #374151;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.bg-dark {
    background: #111827;
    color: white;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.app-screenshot-main {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.screenshot-item img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 0 auto;
}

.footer-content.flex-col {
    flex-direction: column;
    justify-content: center;
}