/* EB5 Studios marketing site. MudBlazor supplies components; this file supplies the page design.
   Tokens: warm paper background, near-black ink, an amber signal colour, and Lecture.Bot's purple for its sections. */

:root {
    --paper: #F7F3EC;
    --paper-2: #EFE9DE;
    --ink: #14121F;
    --ink-2: #2A2738;
    --muted: #5D5A6B;
    --line: #E4DED3;
    --amber: #F2A93B;
    --amber-deep: #B8741A;
    --lb-1: #4232C2;
    --lb-2: #6266EA;
    --lb-dot: #FF5A5F;
    --radius: 22px;
    --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 800; }
h1 em, h2 em { font-style: normal; color: var(--muted); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { line-height: 1.6; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 32px); }
.muted { color: var(--muted); }

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 169, 59, .22); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 40rem; margin: 1.5rem 0 0; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-title { max-width: 22ch; margin-bottom: 2.5rem; }

/* ---------- app bar ---------- */
.site-bar.mud-appbar { backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-bar .mud-toolbar { width: min(1160px, 100% - 32px); margin-inline: auto; padding: 0; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-name span { font-weight: 500; color: var(--muted); }
.site-nav { display: flex; gap: .25rem; }
.site-nav-link { padding: .5rem .85rem; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--ink-2); transition: background .15s; }
.site-nav-link:hover { background: var(--paper-2); }
.site-nav-link.active { background: var(--ink); color: var(--paper); }
.bar-cta.mud-button-root { border-radius: 999px; padding-inline: 1.1rem; }
.menu-toggle { display: none !important; }

.site-drawer.mud-drawer { width: min(320px, 86vw); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1rem 1rem 1.25rem; }
.drawer-nav { display: flex; flex-direction: column; padding: .5rem 1rem; }
.drawer-nav a { padding: .9rem .75rem; border-radius: 12px; text-decoration: none; font-family: var(--display); font-size: 1.4rem; font-weight: 700; }
.drawer-nav a.active { background: var(--paper-2); }

.site-main.mud-main-content { padding-top: 64px; }

/* ---------- buttons ---------- */
.mud-button-root.mud-button-size-large { border-radius: 999px; padding: .75rem 1.5rem; font-size: 1rem; }
.btn-light.mud-button-root { background: #fff; color: var(--lb-1); }
.btn-light.mud-button-root:hover { background: #F1EFFF; }
.btn-ghost-light.mud-button-root { color: #fff; }
.btn-ghost-light.mud-button-root:hover { background: rgba(255, 255, 255, .12); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- home hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 169, 59, .28), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; }

.device { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 1.25rem; box-shadow: 0 30px 60px -20px rgba(20, 18, 31, .25), 0 0 0 10px rgba(255, 255, 255, .5); transform: rotate(1.5deg); }
.device-head { display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.rec { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; color: var(--muted); }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lb-dot); }
.callout { margin: 1rem 0; padding: 1rem 1.1rem; border-radius: 18px; background: linear-gradient(135deg, var(--lb-1), var(--lb-2)); color: #fff; }
.callout-tag { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.callout p { margin: .4rem 0 0; font-family: var(--display); font-size: 1.15rem; font-weight: 500; line-height: 1.35; }
.device-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mini { background: var(--paper); border-radius: 14px; padding: .75rem; display: flex; flex-direction: column; gap: .15rem; }
.mini strong { font-size: .85rem; }
.mini span { font-size: .75rem; color: var(--muted); }

/* ---------- Lecture.Bot band ---------- */
.product-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 3.5rem); padding: clamp(2rem, 5vw, 4rem); border-radius: 32px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #5A4BE0 0%, var(--lb-1) 40%, #241B7A 100%); position: relative; overflow: hidden; }
.product-band::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .07); }
.product-band p { color: rgba(255, 255, 255, .82); font-size: 1.1rem; max-width: 36rem; }
.product-band h2 { margin-top: 1.25rem; max-width: 18ch; }
.product-label { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.platforms { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.platforms li { padding: .3rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 500; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
.product-band-features { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; align-content: center; position: relative; z-index: 1; }
.product-band-features li { display: flex; gap: .9rem; padding: 1rem 1.1rem; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.product-band-features .mud-icon-root { color: var(--amber); flex: none; margin-top: .1rem; }
.product-band-features strong { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: .2rem; }
.product-band-features span { font-size: .92rem; color: rgba(255, 255, 255, .75); line-height: 1.5; }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.principles article { padding: 1.75rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.principles .num { display: inline-block; font-family: var(--display); font-weight: 800; color: var(--amber-deep); margin-bottom: 2.5rem; }
.principles p { color: var(--muted); margin: .6rem 0 0; }

/* ---------- CTA ---------- */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding: clamp(2rem, 4vw, 3rem); border-radius: 32px; background: var(--ink); color: var(--paper); }
.cta-band p { color: rgba(247, 243, 236, .7); margin: .5rem 0 0; }
.cta-band .mud-button-root { color: var(--ink); }

/* ---------- inner pages ---------- */
.page-hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(1rem, 3vw, 2rem); }
.page-hero-lb { color: #fff; padding-bottom: clamp(3rem, 7vw, 5rem); background: radial-gradient(120% 140% at 10% 0%, #5A4BE0 0%, var(--lb-1) 45%, #241B7A 100%); }
.page-hero-lb h1 { margin-top: 1.5rem; }
.page-hero-lb h1 em { color: rgba(255, 255, 255, .7); }
.page-hero-lb .lede { color: rgba(255, 255, 255, .82); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature { padding: 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature p { color: var(--muted); font-size: .95rem; margin: .5rem 0 0; }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #EFEFFD; color: var(--lb-1); margin-bottom: 1.25rem; }
.feature.flagship { background: linear-gradient(135deg, var(--lb-1), var(--lb-2)); color: #fff; border-color: transparent; }
.feature.flagship p { color: rgba(255, 255, 255, .82); }
.feature.flagship .feature-icon { background: rgba(255, 255, 255, .16); color: var(--amber); }

.steps { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding: 1.4rem 1.4rem 1.4rem 4.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--muted); line-height: 1.55; }
.steps li::before { content: counter(step); position: absolute; left: 1.4rem; top: 1.25rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 700; }
.steps li strong { color: var(--ink); }

.prose h2 { font-size: 1.6rem; margin: 2.5rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); font-size: 1.08rem; }
.prose a { color: var(--lb-1); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-card { display: flex; flex-direction: column; gap: .6rem; padding: 2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(20, 18, 31, .3); }
.contact-card h2 { font-size: 1.5rem; margin-top: 1rem; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card strong { margin-top: auto; padding-top: 1rem; font-weight: 600; }
.contact-card address { margin-top: auto; padding-top: 1rem; font-style: normal; font-weight: 600; line-height: 1.5; }
.site-footer address { font-style: normal; font-size: .9rem; line-height: 1.55; margin-top: 1rem; }
.contact-card.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.contact-card.primary p { color: rgba(247, 243, 236, .7); }
.contact-card.primary .mud-icon-root { color: var(--amber); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links h2 { font-family: var(--body); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.footer-links a { text-decoration: none; color: var(--ink-2); }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { margin-top: 3rem; font-size: .85rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .hero-grid, .product-band, .steps { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .principles { grid-template-columns: 1fr; }
    .hero-visual { max-width: 460px; }
}

@media (max-width: 720px) {
    .site-nav, .bar-cta { display: none !important; }
    .menu-toggle { display: inline-flex !important; }
    .feature-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .device { transform: none; }
    .site-main.mud-main-content { padding-top: 56px; }
}

/* ---------- Blazor error UI ---------- */
#blazor-error-ui { color-scheme: light only; background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2); box-sizing: border-box; display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 2000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
