/* ============================================
   LLMSetup Landing Page — styles.css
   Nordic minimalist design (upnorth.ai inspired)
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f9f9f9;
    --color-surface: #f5f5f5;
    --color-border: #e5e5e5;
    --color-text: #111111;
    --color-text-muted: rgba(0, 0, 0, 0.5);
    --color-text-faint: rgba(0, 0, 0, 0.35);
    --color-accent: #c41e1e;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
    --radius-md: 10px;
    --radius-lg: 14px;
    --max-w: 1120px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    display: block;
}

::selection {
    background-color: rgba(196, 30, 30, 0.12);
    color: var(--color-text);
}

/* ---------- Container ---------- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

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

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

.section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-faint);
    margin-bottom: 12px;
    text-align: center;
}

.section-heading {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 16px;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 32px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-text);
    color: #ffffff;
    border-color: var(--color-text);
}

.btn-primary:hover {
    background: #333333;
    border-color: #333333;
}

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

.btn-secondary:hover {
    background: var(--color-bg-alt);
    border-color: #cccccc;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    height: 64px;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    width: 32px;
    height: 32px;
}

.navbar-brand span {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.navbar-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.15s;
}

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

.navbar-github {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.15s;
}

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

.navbar-github span {
    display: inline;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    padding: 160px 0 112px;
}

.hero-inner {
    text-align: center;
    max-width: 800px;
}

.hero-logo {
    width: 128px;
    height: 128px;
    margin: 0 auto 48px;
}

.hero-headline {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--color-text);
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 19px;
    color: var(--color-text-muted);
    max-width: 580px;
    margin: 0 auto 48px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   INSTALL CODE BLOCK
   ======================================== */
.install-inner {
    max-width: 640px;
    text-align: center;
}

.code-block {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    text-align: left;
}

.code-block code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 14px;
    color: rgba(0, 0, 0, 0.75);
    white-space: nowrap;
    overflow-x: auto;
    line-height: 1.5;
}

.copy-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--color-text);
    color: #ffffff;
    border-color: var(--color-text);
}

.copy-btn.copied {
    background: var(--color-text);
    color: #ffffff;
    border-color: var(--color-text);
}

/* ========================================
   STACK GRID (Featured Project)
   ======================================== */
.stack-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stack-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 32px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

/* Remove right border on right-column cards */
.stack-card:nth-child(2n) {
    border-right: none;
}

/* Remove bottom border on last row */
.stack-card:nth-last-child(-n+2) {
    border-bottom: none;
}

.stack-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.stack-name {
    font-size: 15px;
    font-weight: 650;
    color: var(--color-text);
    margin-bottom: 4px;
}

.stack-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.stack-badge-wrap {
    text-align: center;
    margin-top: 40px;
}

.stack-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.accent-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}

/* ========================================
   FEATURE GRID
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: #cccccc;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.feature-title {
    font-size: 17px;
    font-weight: 650;
    color: var(--color-text);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    border-top: 1px solid var(--color-border);
    padding-top: 72px;
    padding-bottom: 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 28px;
    height: 28px;
}

.footer-logo span {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.footer-tagline {
    font-size: 14px;
    color: var(--color-text-faint);
    line-height: 1.6;
}

.footer-columns {
    display: flex;
    gap: 72px;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-faint);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 14px;
    color: var(--color-text-muted);
    transition: color 0.15s;
}

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

.footer-bottom {
    margin-top: 56px;
    padding: 24px 32px;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--color-text-faint);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 64px 0;
    }

    /* Navbar */
    .navbar-links {
        display: none;
    }

    .navbar-github span {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 120px 0 72px;
    }

    .hero-logo {
        width: 96px;
        height: 96px;
        margin-bottom: 32px;
    }

    .hero-headline {
        font-size: 34px;
        letter-spacing: -0.025em;
    }

    .hero-sub {
        font-size: 16px;
        margin-bottom: 36px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    /* Section headings */
    .section-heading {
        font-size: 28px;
    }

    .section-sub {
        margin-bottom: 36px;
    }

    /* Code block */
    .code-block {
        padding: 16px 18px;
    }

    .code-block code {
        font-size: 12px;
    }

    /* Stack */
    .stack-grid {
        grid-template-columns: 1fr;
    }

    .stack-card {
        border-right: none !important;
    }

    .stack-card:last-child {
        border-bottom: none;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 28px 24px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 36px;
    }

    .footer-columns {
        gap: 48px;
    }

    .footer-bottom {
        margin-top: 36px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 28px;
    }

    .section-heading {
        font-size: 24px;
    }
}