/* ============================================================
   THELAMUX — Website stylesheet
   Brand book: 00B4FF cyan · 386BFF blue · 7A2FFF purple · 111827 dark
   Type: Inter (web fallback for Satoshi)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --cyan:        #00B4FF;
    --blue:        #386BFF;
    --purple:      #7A2FFF;
    --ink:         #111827;
    --ink-2:       #1F2937;
    --muted:       #6B7280;
    --line:        #E5E7EB;
    --line-2:      #F3F4F6;
    --bg:          #FFFFFF;
    --bg-soft:     #FAFBFC;
    --bg-tint:     #F6F8FB;

    --grad:        linear-gradient(90deg, var(--cyan) 0%, var(--blue) 50%, var(--purple) 100%);
    --grad-soft:   linear-gradient(135deg, rgba(0,180,255,.06) 0%, rgba(122,47,255,.06) 100%);

    --sans:        'Inter', 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --maxw:        1200px;
    --radius:      14px;
    --radius-sm:   8px;
    --shadow:      0 1px 2px rgba(17,24,39,.04), 0 8px 24px rgba(17,24,39,.04);
    --shadow-lg:   0 20px 60px rgba(17,24,39,.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ----------- typography ----------- */

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); letter-spacing: -0.025em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; font-weight: 600; }

.eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--blue);
}
.eyebrow-muted { color: var(--muted); }

p { color: var(--ink-2); font-size: 1rem; }
.lead { font-size: 1.2rem; color: var(--ink-2); line-height: 1.55; font-weight: 400; }
.muted { color: var(--muted); }

.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ----------- layout ----------- */

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

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-bg-soft { background: var(--bg-soft); }
.section-bg-tint { background: var(--bg-tint); }
.section-bg-dark { background: var(--ink); color: #fff; }
.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3, .section-bg-dark h4 { color: #fff; }
.section-bg-dark p { color: rgba(255,255,255,0.78); }

.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.125rem; color: var(--muted); }

/* ----------- nav ----------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}
.nav-brand .brand-logo {
    height: 64px;
    width: auto;
    display: block;
}
.nav-brand .logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--grad);
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}
.nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: color .15s ease;
    position: relative;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -6px; left: 0; right: 0;
    height: 2px;
    background: var(--grad);
    border-radius: 2px;
}
.nav-cta {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform .15s ease, background .15s ease;
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }

/* mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--ink); margin: 4px 0; border-radius: 2px;
}

/* ----------- hero ----------- */

.hero {
    padding: 120px 0 96px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,180,255,.10) 0%, transparent 60%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: -200px; left: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(122,47,255,.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    max-width: 920px;
    z-index: 1;
}
.hero h1 { margin-bottom: 24px; }
.hero p { font-size: 1.25rem; color: var(--ink-2); max-width: 720px; line-height: 1.55; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-page {
    padding: 88px 0 56px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}
.hero-page .eyebrow { margin-bottom: 16px; display: block; }
.hero-page h1 { margin-bottom: 18px; font-size: clamp(2.25rem, 4vw, 3.4rem); }
.hero-page p { font-size: 1.18rem; color: var(--muted); max-width: 760px; }

/* ----------- buttons ----------- */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
    cursor: pointer;
    border: 0;
}
.btn-primary {
    background: var(--ink);
    color: #fff;
}
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(56,107,255,.25); }
.btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-gradient {
    background: var(--grad);
    color: #fff;
}
.btn-gradient:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(122,47,255,.25); }
.btn-ghost {
    color: var(--blue);
    padding: 0;
    background: transparent;
    font-weight: 600;
}
.btn-ghost::after { content: " →"; transition: transform .15s ease; display: inline-block; }
.btn-ghost:hover::after { transform: translateX(4px); }

/* ----------- cards / grids ----------- */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-accent { position: relative; overflow: hidden; }
.card-accent::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad);
}
.card h3 { margin-bottom: 12px; }
.card .eyebrow { margin-bottom: 16px; display: block; }
.card p { color: var(--muted); font-size: 0.96rem; }

.card-flat {
    background: var(--bg-soft);
    border: 0;
    border-radius: var(--radius);
    padding: 32px;
}

/* stat tile */
.stat {
    padding: 28px 0;
}
.stat .num {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}
.stat .lbl { color: var(--muted); font-size: 0.95rem; }

/* divider */
.divider { height: 1px; background: var(--line); margin: 0; }
.divider-grad { height: 3px; background: var(--grad); border: 0; }

/* badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.badge-cyan { background: rgba(0,180,255,.12); color: #006FA8; }
.badge-blue { background: rgba(56,107,255,.12); color: #2547B4; }
.badge-purple { background: rgba(122,47,255,.12); color: #5119B5; }
.badge-amber { background: rgba(245,158,11,.14); color: #92400E; }
.badge-red   { background: rgba(239,68,68,.14); color: #991B1B; }
.badge-gray  { background: var(--line-2); color: var(--ink-2); }

/* ----------- pipeline table ----------- */

.pipeline-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.pipeline-table th, .pipeline-table td {
    text-align: left;
    padding: 18px 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
}
.pipeline-table th {
    background: var(--bg-tint);
    font-weight: 600;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.pipeline-table tr:last-child td { border-bottom: 0; }
.stage-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    align-items: center;
}
.stage-cell {
    height: 8px;
    border-radius: 4px;
    background: var(--line-2);
}
.stage-cell.filled {
    background: var(--grad);
}
.stage-cell.cyan { background: var(--cyan); }
.stage-cell.blue { background: var(--blue); }
.stage-cell.purple { background: var(--purple); }
.stage-labels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ----------- step / approach diagram ----------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
}
.step .num {
    width: 36px; height: 36px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* split section: image left / text right */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.split-text h2 { margin-bottom: 20px; }
.split-text p { font-size: 1.08rem; line-height: 1.65; margin-bottom: 16px; color: var(--ink-2); }
.split-visual {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--grad-soft);
    padding: 48px;
    min-height: 320px;
    display: grid;
    place-items: center;
}

/* ----------- CTA banner ----------- */

.cta-banner {
    background: var(--ink);
    border-radius: 22px;
    padding: 64px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: "";
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(122,47,255,.4) 0%, transparent 60%);
}
.cta-banner h2 { color: #fff; margin-bottom: 16px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 28px; position: relative; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-banner .btn { position: relative; }

/* ----------- footer ----------- */

footer.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.7);
    padding: 72px 0 32px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 56px;
}
.footer-grid h5 {
    color: #fff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 18px;
    font-weight: 700;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.65); font-size: 0.92rem; transition: color .15s ease; }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand { font-weight: 800; font-size: 1.4rem; color: #fff; margin-bottom: 14px; letter-spacing: 0.01em; }
.footer-logo { height: 56px; width: auto; display: block; margin-bottom: 18px; }
.footer-tag { font-size: 0.96rem; color: rgba(255,255,255,0.65); max-width: 320px; line-height: 1.55; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.45);
}

/* ----------- people / team ----------- */

.person {
    text-align: center;
}
.person .avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    background: var(--grad-soft);
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    color: var(--blue);
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: -0.02em;
}
.person h4 { margin-bottom: 4px; }
.person .role { color: var(--muted); font-size: 0.92rem; }

/* ----------- news cards ----------- */

.news-card {
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 32px;
    align-items: start;
    transition: padding .15s ease;
}
.news-card:hover { padding-left: 8px; }
.news-card .date { color: var(--muted); font-size: 0.88rem; }
.news-card h4 { margin-bottom: 6px; }
.news-card p { color: var(--muted); font-size: 0.95rem; }
.news-card .tag { align-self: start; }

/* ----------- form ----------- */

.form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.98rem;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(56,107,255,.15);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ----------- responsive ----------- */

@media (max-width: 920px) {
    .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 96px; left: 0; right: 0;
        flex-direction: column;
        background: #fff;
        padding: 16px 28px 24px;
        border-bottom: 1px solid var(--line);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .news-card { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
    .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .hero { padding: 80px 0 56px; }
    .cta-banner { padding: 40px 24px; }
}
