/* ─────────────────────────────────────────────────────────────
   Forge Auto Solid CAD — landing site stylesheet.
   Dark theme mirrors the desktop app palette:
     background     #1B2A4A  (deep navy)
     accent         #2A9D8F  (teal)
     surface        #13203B
     text           #E6EAF5
     muted text     #9AA5C1
   ───────────────────────────────────────────────────────────── */

:root {
    --bg:          #1B2A4A;
    --bg-alt:      #13203B;
    --surface:     #1F3157;
    --surface-2:   #283F6E;
    --accent:      #2A9D8F;
    --accent-2:    #3AB5A6;
    --text:        #E6EAF5;
    --text-muted:  #9AA5C1;
    --border:      rgba(255, 255, 255, 0.08);
    --radius:      12px;
    --max-width:   1120px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

/* ─── Site header ─────────────────────────────────────────── */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.brand:hover { text-decoration: none; }

.brand-mark {
    width: 32px;
    height: 32px;
}

.primary-nav {
    display: flex;
    gap: 1.4rem;
    font-size: 0.95rem;
}

.primary-nav a {
    color: var(--text-muted);
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    color: var(--text);
    text-decoration: none;
}

/* ─── Hero ────────────────────────────────────────────────── */

.hero {
    padding: 4rem 1.5rem 5rem;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(42, 157, 143, 0.18), transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(58, 181, 166, 0.12), transparent 55%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin: 0 0 0.6rem;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    margin: 0 0 1.25rem;
    color: var(--accent-2);
    font-weight: 500;
}

.hero-sub {
    max-width: 640px;
    margin: 0 auto 2.2rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.hero-cta {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-meta {
    margin-top: 1.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ─── Buttons ─────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.1s ease, background 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--accent);
    color: #0B1B24;
}

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

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ─── Sections ────────────────────────────────────────────── */

.section {
    padding: 4rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-alt {
    background: var(--bg-alt);
    max-width: none;
    margin: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-alt > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 0.75rem;
    letter-spacing: -0.015em;
}

.section-lede {
    color: var(--text-muted);
    margin: 0 0 2.2rem;
    max-width: 640px;
    font-size: 1.02rem;
}

/* ─── Feature grid ────────────────────────────────────────── */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    transition: border-color 0.15s ease, transform 0.1s ease;
}

.feature-card:hover {
    border-color: rgba(58, 181, 166, 0.5);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(42, 157, 143, 0.18);
    color: var(--accent-2);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.97rem;
}

/* ─── Screenshot ──────────────────────────────────────────── */

.screenshot-wrap {
    padding: 1rem 0;
    text-align: center;
}

.screenshot {
    width: 100%;
    max-width: 1100px;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 0 auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.screenshot-caption {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ─── Download ────────────────────────────────────────────── */

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    max-width: 760px;
    margin: 0 auto;
}

.btn-download {
    flex-direction: column;
    padding: 1.2rem 1.4rem;
    gap: 0.3rem;
    text-align: center;
}

.btn-platform {
    font-size: 1.05rem;
    font-weight: 700;
}

.btn-sub {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(11, 27, 36, 0.75);
}

.download-grid .btn-download.is-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.download-grid .btn-download.is-secondary .btn-sub {
    color: var(--text-muted);
}

.download-grid .btn-download.is-secondary:hover {
    background: var(--surface-2);
    border-color: rgba(255, 255, 255, 0.15);
}

.download-meta {
    text-align: center;
    margin-top: 1.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ─── Requirements ────────────────────────────────────────── */

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

.req-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
}

.req-card h3 {
    margin: 0 0 0.8rem;
    color: var(--accent-2);
}

.req-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
}

.req-card li {
    margin-bottom: 0.35rem;
}

/* ─── Footer ──────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 1.25rem;
}

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

.footer-nav a:hover {
    color: var(--text);
    text-decoration: none;
}

/* ─── Long-form documents (privacy) ───────────────────────── */

.doc {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.doc-body h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

.doc-body h2 {
    font-size: 1.3rem;
    margin: 2.2rem 0 0.8rem;
    color: var(--accent-2);
}

.doc-body h3 {
    font-size: 1.05rem;
    margin: 1.4rem 0 0.5rem;
}

.doc-body p,
.doc-body ul {
    color: var(--text);
}

.doc-body ul {
    padding-left: 1.2rem;
}

.doc-body li {
    margin-bottom: 0.3rem;
}

.doc-body code {
    background: rgba(255, 255, 255, 0.07);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.doc-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* ─── Mobile tweaks ───────────────────────────────────────── */

@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        gap: 0.9rem;
        padding: 1rem 1.25rem;
    }

    .primary-nav {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 2.5rem 1.25rem 3.25rem;
    }

    .section {
        padding: 2.8rem 1.25rem;
    }

    .site-footer {
        padding: 1.5rem 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}
