/* ===== LGINI brand tokens (derived from the logo in D:\_LGini\LOGO LGINI) =====
   Teal  #0D666B  - lamp, wordmark and tagline
   Amber #FBB03B -> Yellow #FCDD22 - the logo's gold gradient (flame, G, "i")  */
:root {
    --brand-teal: #0d666b;
    --brand-teal-600: #14818a;
    --brand-teal-800: #084a4e;
    --brand-teal-900: #052f32;
    --brand-amber: #fbb03b;
    --brand-yellow: #fcdd22;
    --grad-gold: linear-gradient(90deg, var(--brand-amber), var(--brand-yellow));
    --grad-teal: linear-gradient(135deg, var(--brand-teal-600), var(--brand-teal-800));

    --bg: #ffffff;
    --bg-alt: #eef6f6;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, .72);
    --text: #10272a;
    --text-muted: #4b6366;
    --border: #d5e4e5;
    --accent: var(--brand-teal);
    --shadow: 0 10px 30px -12px rgba(8, 74, 78, .28);

    --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 20px;
    --header-h: 76px;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #071d20;
    --bg-alt: #0a2a2d;
    --surface: #0d3236;
    --surface-glass: rgba(7, 29, 32, .7);
    --text: #eaf5f5;
    --text-muted: #a3bfc1;
    --border: #164a4f;
    --accent: var(--brand-yellow);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #071d20;
        --bg-alt: #0a2a2d;
        --surface: #0d3236;
        --surface-glass: rgba(7, 29, 32, .7);
        --text: #eaf5f5;
        --text-muted: #a3bfc1;
        --border: #164a4f;
        --accent: var(--brand-yellow);
        --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
    line-height: 1.65; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(3rem, 9vw, 6.2rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h4 { font-size: 1.1rem; letter-spacing: 0; margin-bottom: .4em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-amber); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; margin-inline: auto; }
.mt { margin-top: 2.5rem; }
.grad { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); }
.lead.strong { color: var(--text); font-weight: 600; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand-teal); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: var(--surface-glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.scrolled .site-header { border-color: var(--border); box-shadow: 0 6px 20px -14px rgba(0, 0, 0, .35); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.brand img { height: 62px; width: auto; }
:root[data-theme="dark"] .brand img { background: #fff; border-radius: 12px; padding: 2px 8px; height: 54px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { background: #fff; border-radius: 12px; padding: 2px 8px; height: 54px; } }
.nav-links { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text); opacity: .85; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-links .nav-cta { color: #1a1a1a; opacity: 1; }
.nav-tools { display: flex; gap: .4rem; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--accent); }
.menu-btn { display: none; }

@media (max-width: 960px) {
    .menu-btn { display: grid; }
    .nav-links {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem 1.5rem;
        background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
        transform: translateY(-120%); visibility: hidden; transition: transform .35s ease, visibility .35s; margin: 0;
    }
    .menu-open .nav-links { transform: none; visibility: visible; }
    .nav-links a { padding: .95rem .25rem; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
    .nav-links .nav-cta { margin-top: 1rem; text-align: center; border: 0; }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.7rem; font: inherit; font-weight: 700; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn .icon { width: 1.2em; height: 1.2em; }
.btn-sm { padding: .55rem 1.2rem; font-size: .92rem; }
.btn-gold { background: var(--grad-gold); color: #1a1a1a; box-shadow: 0 10px 24px -10px rgba(251, 176, 59, .8); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(251, 176, 59, .95); }
.btn-ghost { border-color: var(--accent); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--accent); color: var(--bg); }
:root:not([data-theme="dark"]) .btn-ghost:hover { color: #fff; }
.btn-ghost.light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost.light:hover { background: #fff; color: var(--brand-teal-800); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.btn-row.center { justify-content: center; }
.wide { width: 100%; }

/* ===== Sections ===== */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.band { background: var(--bg-alt); }
.dark { background: radial-gradient(900px 400px at 85% 0%, rgba(252, 221, 34, .16), transparent 60%), var(--grad-teal); color: #fff; }
.dark .lead { color: rgba(255, 255, 255, .8); }
.dark .eyebrow { color: var(--brand-yellow); }
.section-head { max-width: 860px; margin-bottom: 3rem; }
.section-head.center, .center .section-head { margin-inline: auto; }

/* ===== Hero ===== */
.hero {
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
    background:
        radial-gradient(700px 420px at 90% 10%, rgba(252, 221, 34, .28), transparent 65%),
        radial-gradient(600px 400px at 0% 100%, rgba(13, 102, 107, .18), transparent 65%), var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: .35em; color: var(--text); }
.hero-art img { filter: drop-shadow(0 30px 40px rgba(8, 74, 78, .25)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 520px; margin-inline: auto; } }

/* ===== Features ===== */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.feature.flip .feature-media { order: 2; }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 1rem; }
.chip .icon { width: 1.2em; height: 1.2em; }
.feature-body p { color: var(--text-muted); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-media { order: 0; } }

.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.ticks.cols { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; font-size: .98rem; }
.ticks .icon { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .15rem; padding: 2px; border-radius: 50%; background: var(--grad-gold); stroke: #1a1a1a; stroke-width: 3; }

.flow { list-style: none; counter-reset: s; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.2rem 0 0; }
.flow li { counter-increment: s; padding: .5rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: .92rem; }
.flow li:not(:last-child)::after { content: "›"; margin-left: .75rem; color: var(--brand-amber); font-weight: 900; }

/* ===== Cards ===== */
.grid { display: grid; gap: 1.25rem; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); transition: transform .25s, border-color .25s; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.card:hover { transform: translateY(-5px); border-color: var(--brand-amber); }
.card:hover::before { transform: scaleX(1); }
.card p { color: var(--text-muted); margin: 0; font-size: .98rem; }
.card.tall { min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; }
.card.tall h4 { font-size: 1.15rem; margin: 0; }
.ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-teal); color: #fff; margin-bottom: 1.1rem; }
.ico.gold { background: var(--grad-gold); color: #1a1a1a; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reveal-group { margin-top: 1rem; }

/* ===== Steps / pills / timeline ===== */
.steps { list-style: none; counter-reset: st; padding: 0; margin: 2rem auto; display: grid; gap: .7rem; max-width: 620px; text-align: left; }
.steps li { counter-increment: st; display: flex; align-items: center; gap: 1rem; padding: .9rem 1.2rem; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); font-weight: 600; }
.steps li::before { content: counter(st); flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: #1a1a1a; font-weight: 800; }

.ai-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr; } }
.pills { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pills li { padding: .5rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .92rem; }
.pills li:hover { border-color: var(--brand-amber); }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.timeline li { display: flex; gap: 1rem; padding: 1.4rem; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); }
.timeline .num { flex: none; font-size: 2.2rem; font-weight: 900; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timeline h4 { margin-bottom: .3em; }
.timeline p { margin: 0; color: rgba(255, 255, 255, .8); font-size: .97rem; }

/* ===== CTA ===== */
.cta { padding: clamp(4.5rem, 10vw, 8rem) 0; background-color: var(--brand-teal-800); background-size: cover; background-position: center; color: #fff; }
.cta .lead { color: rgba(255, 255, 255, .85); }
.cta .lead.strong { color: #fff; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--surface-glass); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 28px; padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
label span { color: var(--brand-amber); }
input, textarea { width: 100%; padding: .85rem 1rem; font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { outline: none; border-color: var(--brand-amber); box-shadow: 0 0 0 4px rgba(251, 176, 59, .25); }
textarea { resize: vertical; min-height: 130px; }
input.invalid, textarea.invalid { border-color: #d64545; }
.validation-message, .form-error { color: #d64545; font-size: .86rem; margin-top: .3rem; font-weight: 600; }
:root[data-theme="dark"] .validation-message, :root[data-theme="dark"] .form-error { color: #ff8a8a; }
.success { text-align: center; padding: 2rem 0; }
.success .icon { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--grad-gold); stroke: #1a1a1a; stroke-width: 3; margin: 0 auto 1rem; }

/* ===== Footer ===== */
.site-footer { background: var(--brand-teal-900); color: #cfe3e4; padding: 3.5rem 0 1.5rem; }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-logo img { background: #fff; border-radius: 14px; padding: 4px 12px; height: 70px; width: auto; }
.footer-tag { font-weight: 900; letter-spacing: .1em; color: var(--brand-yellow); margin: 1.2rem 0 .3rem; font-size: 1.15rem; }
.footer-sub { max-width: 560px; font-size: .95rem; opacity: .85; }
.footer-nav { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a { text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--brand-yellow); }
.copyright { margin: 2.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; opacity: .75; }

/* ===== Scroll reveal ===== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease var(--d, 0s), transform .8s ease var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .hero-art img { animation: none; }
    * { transition-duration: .01ms !important; }
}

/* Blazor error UI */
#blazor-error-ui { display: none; }
.blazor-error-boundary { background: #b32121; padding: 1rem; color: #fff; }
.blazor-error-boundary::after { content: "An error has occurred."; }

/* Photo images */
.hero-art img { border-radius: var(--radius); }
