/* ============================================================
   QUANTUM LOOM — Site Stylesheet
   Monochrome Authority System: white / gold / ink, Cinzel + Inter
   No gradients, glows, or heavy shadows (per brand guide).
   ============================================================ */

:root {
    --gold: #a9842c;
    --gold-deep: #8a6d24;
    --gold-soft: #c2a24a;
    --gold-tint: #f5efe0;

    --ink: #141414;
    --ink-soft: #3a3a3a;
    --muted: #6f6a5f;

    --bg: #ffffff;
    --bg-alt: #faf8f3;      /* warm ivory */
    --bg-ink: #101010;      /* near-black sections/footer */

    --line: #e9e4d7;        /* warm hairline */
    --line-strong: #d8cfb8;

    --wrap: 1180px;
    --nav-h: 72px;

    --serif: 'Cinzel', 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography ---------- */
h1, h2, h3, .serif {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--ink);
}

.eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.lead { color: var(--muted); font-size: 1.12rem; line-height: 1.75; }

/* thin gold rule */
.rule { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 22px 0; }
.rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; }
.brand .name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
}

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
    font-size: 0.86rem; font-weight: 500; letter-spacing: 0.04em;
    color: var(--ink-soft); transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--sans); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.04em;
    padding: 13px 26px; border: 1.5px solid transparent; border-radius: 2px;
    cursor: pointer; transition: all 0.2s ease; min-height: 46px; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn-outline { background: transparent; color: var(--gold-deep); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-alt); }
.section.ink { background: var(--bg-ink); color: #efe9da; }
.section.tight { padding: 72px 0; }

.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: 2.5rem; margin-bottom: 18px; }
.section-head .lead { font-size: 1.1rem; }
.section.ink .section-head h2 { color: #fff; }
.section.ink .lead, .section.ink p { color: #b7b1a3; }

/* ---------- Hero ---------- */
.hero {
    padding: calc(var(--nav-h) + 90px) 0 100px;
    background: var(--bg);
    text-align: center;
}
.hero .emblem { width: 96px; height: 96px; margin: 0 auto 30px; }
.hero h1 { font-size: 3.6rem; letter-spacing: 0.015em; margin-bottom: 8px; }
.hero .tagline { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-deep); letter-spacing: 0.05em; margin-top: 14px; }
.hero .lead { max-width: 640px; margin: 26px auto 38px; font-size: 1.2rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { text-align: center; }
.stat .num { font-family: var(--serif); font-size: 2.7rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat .lab { margin-top: 12px; font-size: 0.82rem; letter-spacing: 0.05em; color: var(--muted); text-transform: uppercase; }

/* ---------- Generic card grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: 3px;
    padding: 34px 32px; transition: border-color 0.25s, transform 0.25s;
    position: relative;
}
.card:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.section.alt .card { background: #fff; }
.card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.card .kicker { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* status badge (e.g. Now Available) */
.badge {
    display: inline-block; font-family: var(--sans); font-size: 0.64rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: #fff; background: var(--gold);
    padding: 5px 11px; border-radius: 2px; margin-bottom: 14px;
}
.badge.quiet { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }

/* card that is a link */
a.card { display: block; color: inherit; }
a.card h3 { transition: color 0.2s; }
a.card:hover h3 { color: var(--gold-deep); }
.card .more { display: inline-block; margin-top: 20px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }

/* note line under a grid */
.note { text-align: center; margin-top: 40px; font-size: 0.95rem; color: var(--muted); }
.note a { color: var(--gold-deep); font-weight: 600; border-bottom: 1px solid transparent; }
.note a:hover { border-bottom-color: var(--gold-deep); }
.section.ink .note { color: #b7b1a3; }
.section.ink .note a { color: var(--gold-soft); }

/* icon chip */
.chip {
    width: 52px; height: 52px; border: 1.5px solid var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.chip svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 1.6; }

/* feature/spec lists */
.speclist { list-style: none; margin-top: 20px; }
.speclist li {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 11px 0; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft);
}
.speclist li:first-child { border-top: 0; }
.speclist li::before {
    content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-top: 7px;
    background: var(--gold); transform: rotate(45deg);
}
.section.ink .speclist li { border-color: rgba(255,255,255,0.12); color: #cfc9ba; }

/* spec table (products) */
.spec-rows { list-style: none; margin-top: 8px; }
.spec-rows li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.spec-rows li:first-child { border-top: 0; }
.spec-rows .k { color: var(--gold-deep); font-weight: 600; letter-spacing: 0.03em; }
.spec-rows .v { color: var(--ink-soft); }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; background: #fff; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.05em; color: var(--ink); border-bottom: 2px solid var(--gold); white-space: nowrap; }
.cmp thead th:first-child { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.cmp tbody th { font-weight: 600; color: var(--gold-deep); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.cmp td { color: var(--ink-soft); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .none { color: var(--line-strong); }

/* ---------- Product feature (alternating) ---------- */
.product {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    padding: 70px 0; border-top: 1px solid var(--line);
}
.product:first-of-type { border-top: 0; }
.product .body .kicker { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.product .body h3 { font-size: 2rem; margin-bottom: 8px; }
.product .body .tag { font-family: var(--serif); color: var(--gold-deep); font-size: 1.05rem; margin-bottom: 6px; }
.product .visual {
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: 3px;
    aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
}
.product .visual img { width: 46%; opacity: 0.9; }
.product.reverse .visual { order: -1; }

/* ---------- CTA band ---------- */
.cta { background: var(--bg-ink); color: #fff; text-align: center; padding: 100px 0; }
.cta h2 { color: #fff; font-size: 2.4rem; margin-bottom: 14px; }
.cta p { color: #b7b1a3; margin-bottom: 30px; font-size: 1.1rem; }
.cta .emails { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.cta .emails a { color: var(--gold-soft); font-weight: 500; letter-spacing: 0.03em; border-bottom: 1px solid transparent; }
.cta .emails a:hover { border-bottom-color: var(--gold-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-ink); color: #cfc9ba; padding: 72px 0 34px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; }
.footer .brand .name { color: var(--gold-soft); }
.footer .about { margin-top: 18px; font-size: 0.9rem; color: #9c968a; max-width: 320px; }
.footer h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 11px; }
.footer li a { font-size: 0.9rem; color: #cfc9ba; transition: color 0.2s; }
.footer li a:hover { color: var(--gold-soft); }
.footer-bottom { margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: #7d786d; }

/* ---------- Page header (interior pages) ---------- */
.page-head { padding: calc(var(--nav-h) + 76px) 0 60px; text-align: center; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 3rem; margin-bottom: 10px; }
.page-head .lead { max-width: 620px; margin: 0 auto; }

/* ---------- Prose (privacy/about text) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--ink-soft); margin-bottom: 22px; font-size: 1.05rem; }
.prose h2 { font-size: 1.7rem; margin: 40px 0 16px; }
.prose ul { margin: 0 0 22px; padding-left: 20px; }
.prose li { color: var(--ink-soft); margin-bottom: 10px; font-size: 1rem; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--gold-deep); font-weight: 600; border-bottom: 1px solid transparent; }
.prose a:hover { border-bottom-color: var(--gold-deep); }
.prose .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
/* legal document: numbered sections divided by hairlines */
.legal h2 { font-size: 1.3rem; margin: 0 0 14px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal section:first-child h2 { padding-top: 0; border-top: 0; }
.legal p { font-size: 1rem; }
.legal .allcaps { font-size: 0.9rem; color: var(--muted); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px; max-width: 940px; margin: 0 auto; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 38px 34px; }
.team-card .avatar { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--gold); margin-bottom: 22px; }
.team-card h3 { font-size: 1.45rem; margin-bottom: 4px; }
.team-card .role { color: var(--gold-deep); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.76rem; margin-bottom: 16px; }
.team-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.team-card .creds { font-size: 0.8rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.team-card .contact a { color: var(--gold-deep); font-weight: 600; }
.team-card .contact a:hover { color: var(--gold); }

/* ---------- Media (investors) ---------- */
.media-block { max-width: 940px; margin: 0 auto 72px; }
.media-block:last-child { margin-bottom: 0; }
.frame { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #000; }
.frame video { width: 100%; display: block; }
.podcast { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 3px; padding: 30px; }
.podcast audio { width: 100%; margin-top: 14px; }
.slideshow { position: relative; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #faf8f3; }
.slide { display: none; }
.slide.active { display: block; }
.slide img { width: 100%; }
.sl-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(20,20,20,0.55); color: #fff; border: 0; width: 46px; height: 56px; font-size: 22px; cursor: pointer; transition: background 0.2s; }
.sl-nav:hover { background: var(--gold); }
.sl-nav.prev { left: 0; } .sl-nav.next { right: 0; }
.sl-count { text-align: center; padding: 14px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.1em; }

/* ---------- Mobile nav ---------- */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 1001; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: all 0.3s; }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-nav { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 999; padding: calc(var(--nav-h) + 30px) 28px 40px; flex-direction: column; gap: 4px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--serif); font-size: 1.35rem; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .btn { margin-top: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.9rem; }
    .section { padding: 80px 0; }
}
@media (max-width: 760px) {
    .nav-links { display: none; }
    .burger { display: flex; }
    .grid-2, .grid-3, .team { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
    .product { grid-template-columns: 1fr; gap: 30px; padding: 48px 0; }
    .product.reverse .visual { order: 0; }
    .hero { padding: calc(var(--nav-h) + 50px) 0 64px; }
    .hero h1 { font-size: 2.2rem; }
    .hero .lead { font-size: 1.05rem; }
    .section { padding: 62px 0; }
    .section-head { margin-bottom: 42px; }
    .section-head h2, .cta h2 { font-size: 1.9rem; }
    .page-head h1 { font-size: 2.1rem; }
    .spec-rows li { grid-template-columns: 120px 1fr; gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; }
}
@media (max-width: 420px) {
    .wrap { padding: 0 18px; }
    .stat .num { font-size: 2.1rem; }
    .hero h1 { font-size: 1.9rem; }
}
