/* ===== Design Tokens (from tailspotted app) ===== */

:root {
    --bg: #0a0c10;
    --bg-card: #12151e;
    --bg-elevated: #1a1e2e;
    --bg-glass: rgba(18, 21, 30, 0.8);
    --bg-hover: #1e2233;
    --text: #e4e7f0;
    --text-muted: #7c819a;
    --accent: #6b9fff;
    --accent-hover: #8db4ff;
    --glow: rgba(107, 159, 255, 0.15);
    --green: #4caf50;
    --green-glow: rgba(76, 175, 80, 0.2);
    --border: rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 24px;
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-glow: 0 0 20px var(--glow);
    --transition: 0.2s ease;
    --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* ===== Reset ===== */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== Navbar ===== */

.navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand a {
    color: var(--text);
    font-weight: 600;
    font-size: 1.15em;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand a:hover { color: var(--text); }

.nav-logo {
    width: 32px;
    height: 32px;
}

.nav-github {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-github:hover { color: var(--text); }

/* ===== Section Layout ===== */

.section {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 40px;
}

.section-alt {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-alt .section {
    padding: 80px 40px;
}

.section-wide {
    max-width: 1060px;
}

.section-title {
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05em;
    margin-bottom: 48px;
}

/* ===== Hero ===== */

.hero {
    text-align: center;
    padding: 100px 40px 80px;
    max-width: 960px;
    margin: 0 auto;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 32px;
    filter: drop-shadow(0 0 32px rgba(107, 159, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 3.2em;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.3em;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1em;
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    font-family: inherit;
    transition: all var(--transition);
    text-decoration: none;
}

.btn:hover {
    background: var(--bg-elevated);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-elevated);
    border-color: var(--border);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Screenshot Carousel ===== */

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-elevated);
    background: var(--bg-elevated);
}

.carousel-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.carousel-caption {
    padding: 14px 20px;
    font-size: 0.9em;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 16px));
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 2;
}

.carousel-btn:hover {
    background: var(--bg-elevated);
    border-color: rgba(255, 255, 255, 0.12);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 0 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--text-muted);
    opacity: 0.3;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
}

.carousel-dot.active {
    opacity: 1;
    background: var(--accent);
}

/* ===== How It Works ===== */

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

.step-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

.section-alt .step-card {
    background: var(--bg-elevated);
}

.step-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    text-transform: none;
    letter-spacing: normal;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9em;
    line-height: 1.5;
}

/* ===== Install ===== */

.install-block {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.section-alt .install-block {
    background: var(--bg);
}

.install-block pre {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    overflow-x: auto;
    margin-bottom: 16px;
    border: 1px solid var(--border-subtle);
}

.install-block code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--accent);
    line-height: 1.8;
}

.install-note {
    color: var(--text-muted);
    font-size: 0.88em;
    line-height: 1.5;
}

.install-note a {
    font-weight: 500;
}

/* ===== Features ===== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

.section-alt .feature-card {
    background: var(--bg-elevated);
}

.feature-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-1px);
}

.feature-icon {
    font-size: 1.5em;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    text-transform: none;
    letter-spacing: normal;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.88em;
    line-height: 1.5;
}

/* ===== Footer ===== */

.site-footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-muted);
    font-size: 0.78em;
    border-top: 1px solid var(--border);
}

.site-footer a {
    color: var(--text-muted);
    margin-left: 16px;
}

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

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .navbar { padding: 0 16px; }

    .hero { padding: 60px 20px 48px; }
    .hero h1 { font-size: 2.2em; }
    .hero-tagline { font-size: 1.1em; }
    .hero-desc { font-size: 1em; }
    .hero-logo { width: 88px; }

    .section { padding: 48px 20px; }
    .section-alt .section { padding: 48px 20px; }

    .section-title { font-size: 1.5em; }

    .carousel-btn { width: 32px; height: 32px; }
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }
    .steps-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }

    .install-block { padding: 20px; }
    .install-block pre { padding: 16px; }
    .install-block code { font-size: 0.82em; }

    .hero-buttons { flex-direction: column; align-items: center; }
}
