/* =========================================================================
   OrdiBee public landing ("/", Layout/LandingLayout.razor + Pages/Landing).
   Self-contained: no MudBlazor components render here and no --mud-palette-* vars exist, so every
   colour comes from the tokens below (palette A, Branding/README.md). Everything is scoped under
   .lp so nothing leaks into the app. Always dark, like the app bar and the login brand panel.
   Radii: buttons/inputs 10px, panels 16px, chips full.
   ========================================================================= */

/* Without a MudThemeProvider the app's body background var is empty; paint the canvas ourselves. */
html:has(.lp), body:has(.lp) { background: #13161C; }

.lp {
    --lp-ink: #13161C;
    --lp-ink-2: #161A22;
    --lp-surface: #1A1E27;
    --lp-raised: #1F2430;
    --lp-line: #2A303D;
    --lp-gold: #C9A227;
    --lp-gold-hover: #D9B23A;
    --lp-gold-2: #E3C565;
    --lp-blue: #4A86C5;
    --lp-green: #3FA372;
    --lp-red: #D9594C;
    --lp-cream: #ECE8DD;
    --lp-muted: #9AA1AF;
    --lp-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --lp-hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104'%3E%3Cpath d='M30 0 L60 17 L60 52 L30 69 L0 52 L0 17 Z M30 69 L30 104' fill='none' stroke='%23C9A227' stroke-width='1.2'/%3E%3C/svg%3E");

    position: relative;
    min-height: var(--mole-vh100, 100vh);
    background: var(--lp-ink);
    color: var(--lp-cream);
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
}

/* Resets use :where() so they stay at class-level specificity and every .lp-* rule below wins. */
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; padding: 0; }
.lp :where(ul, ol) { list-style: none; }
.lp :where(img) { display: block; max-width: 100%; height: auto; }
.lp :where(a) { color: inherit; text-decoration: none; }
.lp ::selection { background: rgba(201, 162, 39, 0.28); color: var(--lp-cream); }
.lp :focus-visible { outline: 2px solid var(--lp-gold); outline-offset: 3px; border-radius: 8px; }
/* App.razor's FocusOnNavigate focuses the h1 (and the skip link focuses main): no ring for those. */
.lp main:focus, .lp h1:focus, .lp h1:focus-visible { outline: none; }
.lp section[id] { scroll-margin-top: 84px; }

.lp-container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.lp-gold { color: var(--lp-gold); }
.lp-blue { color: var(--lp-blue); }

.lp-ic { width: 24px; height: 24px; flex: none; }
.lp-ic-sm { width: 20px; height: 20px; flex: none; }

.lp-skip { position: absolute; left: -9999px; top: 8px; z-index: 30; padding: 10px 16px; border-radius: 10px; background: var(--lp-gold); color: var(--lp-ink); font-weight: 600; }
.lp-skip:focus { left: 12px; }
.lp-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }

/* ---------- buttons ---------- */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
    padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
    font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
    transition: transform 0.2s var(--lp-ease), background-color 0.2s ease, border-color 0.2s ease;
}
.lp-btn:active { transform: translateY(1px) scale(0.99); }
.lp-btn-primary { background: var(--lp-gold); color: var(--lp-ink); box-shadow: 0 12px 30px -14px rgba(201, 162, 39, 0.7); }
.lp-btn-primary:hover { background: var(--lp-gold-hover); transform: translateY(-1px); }
.lp-btn-ghost { color: var(--lp-cream); border-color: var(--lp-line); background: rgba(255, 255, 255, 0.02); }
.lp-btn-ghost:hover { border-color: #4A5162; background: rgba(255, 255, 255, 0.05); }
.lp-btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.lp-btn-lg { padding: 14px 26px; font-size: 1.05rem; }

/* ---------- header ---------- */
.lp-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(19, 22, 28, 0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color 0.25s ease;
}
.lp-header.is-scrolled { border-bottom-color: var(--lp-line); }
.lp-header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.lp-brand { display: inline-flex; align-items: center; }
.lp-nav { display: flex; gap: 4px; }
.lp-nav a { padding: 8px 12px; border-radius: 10px; color: var(--lp-muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s ease, background-color 0.2s ease; }
.lp-nav a:hover { color: var(--lp-cream); background: rgba(255, 255, 255, 0.04); }
.lp-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lp-menu { display: none; margin-left: auto; position: relative; }
.lp-menu summary {
    list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 10px; border: 1px solid var(--lp-line); color: var(--lp-cream);
}
.lp-menu summary::-webkit-details-marker { display: none; }
.lp-menu nav {
    position: absolute; right: 0; top: 54px; width: min(260px, calc(100vw - 40px)); display: grid; gap: 2px; padding: 8px;
    background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 16px;
    box-shadow: 0 30px 60px -20px rgba(5, 6, 9, 0.9);
}
.lp-menu nav a { padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.lp-menu nav a:hover { background: rgba(255, 255, 255, 0.05); }
.lp-menu nav a.lp-menu-primary { margin-top: 6px; background: var(--lp-gold); color: var(--lp-ink); text-align: center; font-weight: 600; }

/* ---------- shared section bits ---------- */
.lp-section { padding: clamp(64px, 8vw, 112px) 0; }
.lp-alt { background: var(--lp-ink-2); border-block: 1px solid rgba(42, 48, 61, 0.7); }
.lp-eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lp-gold); }
.lp :where(h2) { font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: var(--lp-cream); }
.lp-head { max-width: 680px; }
.lp-head .lp-eyebrow + h2 { margin-top: 16px; }
.lp-head p, .lp-sub { margin-top: 18px; max-width: 620px; font-size: 1.1rem; line-height: 1.65; color: var(--lp-muted); }
.lp-sub a { color: var(--lp-gold); text-decoration: underline; text-underline-offset: 4px; }

.lp-hexbg {
    position: absolute; inset: 0; pointer-events: none; opacity: 0.09; background-image: var(--lp-hex);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 78% 30%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 60% at 78% 30%, #000 10%, transparent 70%);
}
.lp-hexbg-soft {
    opacity: 0.07;
    -webkit-mask-image: radial-gradient(ellipse 55% 90% at 100% 50%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 55% 90% at 100% 50%, #000 10%, transparent 70%);
}

/* ---------- hero ---------- */
.lp-hero { position: relative; overflow: hidden; padding: clamp(48px, 6vw, 88px) 0 clamp(80px, 9vw, 128px); }
.lp-hero::before {
    content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -300px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.13), transparent 62%);
}
.lp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.lp-hero h1 { margin-top: 22px; font-size: clamp(2.4rem, 4vw, 2.85rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; }
.lp-lead { margin-top: 22px; max-width: 540px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--lp-muted); }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.lp-hero-art { position: relative; }
.lp-shot {
    width: 122%; border-radius: 16px; overflow: hidden; border: 1px solid var(--lp-line); background: var(--lp-ink);
    box-shadow: 0 50px 100px -40px rgba(5, 6, 9, 0.95), 0 0 0 1px rgba(201, 162, 39, 0.06);
}
.lp-hero-phone { position: absolute; left: -26px; bottom: -52px; width: 150px; filter: drop-shadow(0 24px 40px rgba(5, 6, 9, 0.75)); }

/* ---------- lifecycle ---------- */
.lp-flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.lp-flow::before {
    content: ""; position: absolute; left: 28px; right: 0; top: 28px; height: 1px; opacity: 0.45;
    background: linear-gradient(to right, var(--lp-gold), var(--lp-blue) 45%, var(--lp-green) 80%, transparent);
}
.lp-flow li { position: relative; }
.lp-flow h3 { margin-top: 12px; font-size: 1.2rem; font-weight: 600; color: var(--lp-cream); }
.lp-flow p { margin-top: 8px; font-size: 1rem; line-height: 1.6; color: var(--lp-muted); }
.lp-node {
    position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px;
    margin-bottom: 26px; background: var(--lp-ink);
    clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}
.lp-node::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0.16; }
.lp-node.lp-tone-gold { color: var(--lp-gold); }
.lp-node.lp-tone-blue { color: var(--lp-blue); }
.lp-node.lp-tone-green { color: var(--lp-green); }
.lp-chip { display: inline-flex; padding: 3px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.lp-chip.lp-tone-gold { color: var(--lp-gold-2); background: rgba(201, 162, 39, 0.16); }
.lp-chip.lp-tone-blue { color: #8DB8E6; background: rgba(74, 134, 197, 0.18); }
.lp-chip.lp-tone-green { color: #7FD0A6; background: rgba(63, 163, 114, 0.18); }

/* ---------- features bento ---------- */
.lp-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.lp-cell { position: relative; overflow: hidden; grid-column: span 2; padding: 36px; border-radius: 16px; border: 1px solid var(--lp-line); background: var(--lp-surface); }
.lp-cell h3 { margin-top: 20px; font-size: 1.25rem; font-weight: 600; color: var(--lp-cream); }
.lp-cell p { margin-top: 8px; font-size: 1rem; line-height: 1.6; color: var(--lp-muted); }
.lp-cell-wide { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; padding-bottom: 0; }
.lp-cell-wide h3 { font-size: 1.5rem; }
.lp-cell-wide p { max-width: 560px; font-size: 1.08rem; }
.lp-cell-shot { margin-top: auto; padding-top: 32px; margin-right: -36px; }
.lp-cell-shot img { width: 100%; border-top-left-radius: 12px; border-left: 1px solid var(--lp-line); border-top: 1px solid var(--lp-line); }
.lp-cell-half { grid-column: span 3; }
.lp-cell-gold { background: linear-gradient(140deg, rgba(201, 162, 39, 0.12), var(--lp-surface) 55%); }
.lp-cell-blue { background: linear-gradient(140deg, rgba(74, 134, 197, 0.14), var(--lp-surface) 55%); }
.lp-cell-hex::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.1; background-image: var(--lp-hex);
    -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
    mask-image: linear-gradient(to left, #000, transparent 70%);
}
.lp-sms {
    margin-top: 22px; max-width: 19rem; padding: 12px 16px; border-radius: 16px 16px 16px 6px;
    background: var(--lp-raised); border: 1px solid var(--lp-line); font-size: 0.95rem; line-height: 1.45; color: var(--lp-cream);
}

/* ---------- devices + trust ---------- */
.lp-devices { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.lp-devices-art { position: relative; width: 260px; }
.lp-devices-art img { position: relative; width: 100%; filter: drop-shadow(0 30px 50px rgba(5, 6, 9, 0.6)); }
.lp-halo { position: absolute; inset: 10% -30% 0; border-radius: 50%; background: radial-gradient(circle, rgba(74, 134, 197, 0.16), transparent 65%); }
.lp-points { display: grid; gap: 20px; margin-top: 36px; max-width: 580px; }
.lp-points li { display: flex; gap: 16px; align-items: flex-start; font-size: 1.05rem; color: rgba(236, 232, 221, 0.9); }
.lp-points li > span:last-child { padding-top: 9px; }
.lp-point-ic {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
    border-radius: 10px; border: 1px solid var(--lp-line); background: var(--lp-surface); color: var(--lp-gold);
}
.lp-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--lp-line); }
.lp-trust li { display: flex; align-items: center; gap: 12px; font-size: 0.98rem; color: var(--lp-muted); }

/* ---------- FAQ ---------- */
.lp-faq { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 48px; }
.lp-faq-head { align-self: start; position: sticky; top: 100px; }
.lp-faq-list { border-block: 1px solid var(--lp-line); }
.lp-faq-list details + details { border-top: 1px solid var(--lp-line); }
.lp-faq-list summary {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none;
    font-size: 1.12rem; font-weight: 500; color: var(--lp-cream); transition: color 0.2s ease;
}
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary:hover { color: var(--lp-gold-2); }
.lp-faq-plus {
    display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none;
    border-radius: 50%; border: 1px solid var(--lp-line); color: var(--lp-gold); transition: transform 0.3s var(--lp-ease);
}
.lp-faq-list details[open] .lp-faq-plus { transform: rotate(45deg); }
.lp-faq-list details p { padding: 0 48px 24px 0; font-size: 1.02rem; line-height: 1.65; color: var(--lp-muted); }

/* ---------- final call to action ---------- */
.lp-final { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 104px) 0; }
.lp-final-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.lp-final .lp-cta { margin-top: 0; }

/* ---------- footer ---------- */
.lp-footer { border-top: 1px solid var(--lp-line); background: var(--lp-ink-2); padding: 56px 0 32px; }
.lp-footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.lp-footer-tag { margin-top: 16px; max-width: 320px; font-size: 0.95rem; color: var(--lp-muted); }
.lp-footer h2 { font-size: 0.9rem; font-weight: 600; letter-spacing: 0; color: var(--lp-cream); }
.lp-footer ul { display: grid; gap: 10px; margin-top: 14px; }
.lp-footer ul a { font-size: 0.95rem; color: var(--lp-muted); transition: color 0.2s ease; }
.lp-footer ul a:hover { color: var(--lp-gold); }
.lp-footer-legal {
    grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
    margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--lp-line); font-size: 0.88rem; color: var(--lp-muted);
}
.lp-footer-legal a:hover { color: var(--lp-gold); }

/* ---------- motion (hero entrance + scroll reveal), all off under reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    .lp-enter { animation: lp-rise 0.9s var(--lp-ease) both; }
    .lp-enter-late { animation-delay: 0.15s; }
    .lp.lp-js .lp-reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }
    .lp.lp-js .lp-reveal.is-in { transition: opacity 0.8s var(--lp-ease), transform 0.8s var(--lp-ease); transition-delay: var(--d, 0ms); }
}
@keyframes lp-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1023.98px) {
    .lp-nav { display: none; }
    .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
    .lp-shot { width: 100%; }
    .lp-hero-phone { left: -10px; bottom: -40px; width: 120px; }
    .lp-flow { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-left: 80px; }
    .lp-flow::before { left: 27px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; background: linear-gradient(to bottom, var(--lp-gold), var(--lp-blue) 50%, var(--lp-green)); }
    .lp-node { position: absolute; left: -80px; top: 0; margin: 0; }
    .lp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-cell, .lp-cell-half { grid-column: span 1; }
    .lp-cell-wide { grid-column: span 2; grid-row: auto; }
    .lp-faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .lp-faq-head { position: static; }
    .lp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
    .lp-container { width: calc(100% - 32px); }
    .lp-actions { display: none; }
    .lp-menu { display: block; }
    .lp-br { display: none; }
    .lp-hero-phone { display: none; }
    .lp-cta .lp-btn { flex: 1 1 100%; }
    .lp-bento { grid-template-columns: minmax(0, 1fr); }
    .lp-cell, .lp-cell-half, .lp-cell-wide { grid-column: auto; padding: 26px; }
    .lp-cell-wide { padding-bottom: 0; }
    .lp-cell-shot { margin-right: -26px; }
    .lp-devices { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .lp-devices-art { width: 220px; margin-inline: auto; }
    .lp-trust { grid-template-columns: minmax(0, 1fr); }
    .lp-faq-list details p { padding-right: 0; }
    .lp-footer-grid { grid-template-columns: minmax(0, 1fr); }
}
