:root {
    --bg-primary: #ffffff;
    /* White */
    --bg-secondary: #fafafa;
    /* Zinc 50 */
    --text-primary: #18181b;
    /* Zinc 900 */
    --text-secondary: #52525b;
    /* Zinc 600 */
    --accent-primary: #4f46e5;
    /* Indigo 600 */
    --accent-hover: #4338ca;
    /* Indigo 700 */
    --border-color: #e4e4e7;
    /* Zinc 200 */
    --glow-color: rgba(79, 70, 229, 0.1);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

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

.nav-links a:not(.btn-primary-sm) {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:not(.btn-primary-sm):hover {
    color: var(--text-primary);
}

.btn-primary-sm {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary-sm:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 8rem 1.5rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(to bottom right, #18181b 30%, #52525b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

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

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 5rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #27272a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: var(--text-secondary);
}

/* App Mockup */
.hero-image-container {
    position: relative;
    margin: 0 auto;
    max-width: 900px;
}

.app-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.window-header {
    background: #fafafa;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

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

.red {
    background: #ef4444;
}

.yellow {
    background: #f59e0b;
}

.green {
    background: #10b981;
}

.window-title {
    flex-grow: 1;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.window-content-placeholder {
    height: 500px;
    display: flex;
    background: #ffffff;
}

.placeholder-sidebar {
    width: 250px;
    border-right: 1px solid var(--border-color);
    background: #f4f4f5;
}

.placeholder-chat {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: flex-end;
}

.chat-message {
    padding: 1rem;
    border-radius: 8px;
    max-width: 80%;
    position: relative;
}

.chat-message.ai {
    background: var(--bg-secondary);
    align-self: flex-start;
    display: flex;
    gap: 1rem;
    border: 1px solid var(--border-color);
    width: 100%;
}

.chat-message.user {
    background: var(--accent-primary);
    align-self: flex-end;
    color: white;
}

.chat-message .avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.chat-message .lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.line {
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.w-75 {
    width: 75%;
}

.w-50 {
    width: 50%;
}

.w-60 {
    width: 60%;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Features */
.features {
    padding: 6rem 1.5rem;
    background: var(--bg-primary);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

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

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-secondary);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: #fafafa;
}

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

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

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    line-height: 1;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 200px;
    margin: 0 auto;
}

.step-connector {
    flex-grow: 1;
    height: 1px;
    background: var(--border-color);
    margin-top: 2rem;
    /* Align with approx center of step logic visually */
    display: none;
    /* Hidden on mobile, shown on desktop via media query */
}

/* Footer */
.footer {
    padding: 4rem 1.5rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    opacity: 0.8;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.copyright {
    color: #52525b;
    /* Zinc 600 */
    font-size: 0.85rem;
}

/* Utilities & Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

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

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

/* Responsive */
@media (min-width: 768px) {
    .steps {
        flex-direction: row;
    }

    .step-connector {
        display: block;
        margin-top: 50px;
        /* Adjust based on step-number height */
    }
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        gap: 3rem;
    }

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

    .nav-links {
        display: none;
        /* Basic mobile menu hiding for MVP */
    }
}

/* Installation Section */
.install-section {
    padding: 6rem 1.5rem;
    background: var(--bg-primary);
}

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

.install-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-badge {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    color: var(--text-primary);
}

.install-content {
    flex: 1;
}

.install-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.install-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.code-block {
    background: #18181b;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: 'SF Mono', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.code-block code {
    color: #10b981;
    /* Emerald 500 */
    white-space: nowrap;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.1);
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

/* Demo Video Section */
.demo-section {
    padding: 4rem 1.5rem;
    background: var(--bg-primary);
    /* Match hero background or slightly different if needed */
    text-align: center;
}

.video-wrapper {
    max-width: 1000px;
    /* Match hero content width */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.demo-video {
    width: 100%;
    height: auto;
    display: block;
}