:root {
    --landing-navy: #14235f;
    --landing-navy-deep: #0d1745;
    --landing-orange: #ff642e;
    --landing-orange-dark: #e94f1d;
    --landing-red: #d73535;
    --landing-ink: #182033;
    --landing-muted: #657087;
    --landing-line: #e5e8ef;
    --landing-surface: #ffffff;
    --landing-bg: #f6f7fa;
    --landing-shell: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--landing-bg); color: var(--landing-ink); font-family: "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.public-shell { width: min(var(--landing-shell), calc(100% - 48px)); margin-inline: auto; }
.public-skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: #fff; color: var(--landing-navy); border-radius: 6px; }
.public-skip-link:focus { top: 12px; }

.public-header { position: sticky; top: 0; z-index: 30; height: 72px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--landing-line); backdrop-filter: blur(12px); }
.public-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.public-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--landing-navy); text-decoration: none; }
.public-brand img { width: 42px; height: 42px; object-fit: contain; }
.public-brand span { display: grid; line-height: 1.05; }
.public-brand strong { font-size: 19px; letter-spacing: .02em; }
.public-brand small { margin-top: 5px; color: var(--landing-muted); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.public-nav { display: flex; align-items: center; justify-content: flex-end; gap: 23px; font-size: 14px; font-weight: 650; }
.public-nav a { text-decoration: none; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.public-nav > a:not(.public-login-link):not(.public-open-cde):hover { color: var(--landing-orange-dark); }
.public-login-link, .public-open-cde { padding: 10px 18px; color: #fff; background: var(--landing-navy); border-radius: 7px; }
.public-login-link:hover, .public-open-cde:hover { background: var(--landing-orange-dark); }
.public-user { max-width: 150px; overflow: hidden; color: var(--landing-muted); text-overflow: ellipsis; white-space: nowrap; }

.landing-hero { position: relative; overflow: hidden; min-height: 610px; background: linear-gradient(128deg, var(--landing-navy-deep) 0%, var(--landing-navy) 56%, #752746 100%); color: #fff; }
.landing-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; bottom: -280px; border-radius: 50%; background: rgba(255,100,46,.35); filter: blur(4px); }
.landing-hero-grid { position: relative; z-index: 1; min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); align-items: center; gap: 72px; padding-block: 72px; }
.landing-hero-copy h1 { max-width: 700px; margin: 0; font-size: clamp(48px, 5.2vw, 76px); line-height: .99; letter-spacing: -.055em; }
.landing-hero-copy h1 span { color: #ff8a5f; }
.landing-hero-copy > p { max-width: 680px; margin: 28px 0 0; color: rgba(255,255,255,.84); font-size: 18px; line-height: 1.7; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.landing-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 21px; border: 1px solid transparent; border-radius: 7px; text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .035em; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.landing-button:hover { transform: translateY(-2px); }
.landing-button-primary { background: linear-gradient(135deg, var(--landing-orange), var(--landing-red)); color: #fff; box-shadow: 0 12px 30px rgba(215,53,53,.25); }
.landing-button-primary:hover { box-shadow: 0 16px 35px rgba(215,53,53,.38); }
.landing-button-light { background: #fff; color: var(--landing-navy); }
.landing-button-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.landing-button-ghost:hover { background: rgba(255,255,255,.1); }
.landing-trust-line { display: flex; flex-wrap: wrap; gap: 9px 24px; margin-top: 27px; color: rgba(255,255,255,.68); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.landing-trust-line span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--landing-orange); }

.landing-hero-visual { position: relative; justify-self: center; width: 430px; aspect-ratio: 1; }
.landing-orbit { position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.landing-orbit-small { inset: 25%; border-color: rgba(255,138,95,.44); }
.landing-core { position: absolute; inset: 30%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.34); border-radius: 28px; background: rgba(255,255,255,.1); box-shadow: 0 25px 70px rgba(0,0,0,.23); backdrop-filter: blur(12px); }
.landing-core img { width: 48px; height: 48px; object-fit: contain; }
.landing-core strong { margin-top: 8px; font-size: 28px; letter-spacing: .08em; }
.landing-core small { margin-top: 5px; color: rgba(255,255,255,.65); font-size: 9px; text-transform: uppercase; }
.landing-node { position: absolute; padding: 10px 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 7px; background: rgba(13,23,69,.72); box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 12px; font-weight: 700; }
.landing-node::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--landing-orange); }
.landing-node-doc { top: 5%; left: 35%; }
.landing-node-bim { right: -1%; top: 48%; }
.landing-node-plan { bottom: 9%; left: 8%; }

.landing-alert { margin-top: 20px; padding: 13px 16px; border: 1px solid #f4b7b7; border-radius: 8px; background: #fff1f1; color: #9c2020; }
.landing-principles { background: #fff; border-bottom: 1px solid var(--landing-line); }
.landing-principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.landing-principles article { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 34px 30px; border-right: 1px solid var(--landing-line); }
.landing-principles article:first-child { padding-left: 0; }
.landing-principles article:last-child { border-right: 0; padding-right: 0; }
.landing-principles article > strong { color: var(--landing-orange); font-size: 13px; }
.landing-principles h2 { margin: 0 0 8px; color: var(--landing-navy); font-size: 18px; }
.landing-principles p { margin: 0; color: var(--landing-muted); font-size: 14px; line-height: 1.6; }

.landing-products { padding: 88px 0 96px; }
.landing-section-heading { max-width: 720px; margin-bottom: 36px; }
.landing-section-heading h2 { margin: 0; color: var(--landing-navy); font-size: clamp(32px, 4vw, 48px); letter-spacing: -.035em; }
.landing-section-heading p { margin: 13px 0 0; color: var(--landing-muted); font-size: 17px; line-height: 1.6; }
.landing-product-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--landing-line); background: #fff; box-shadow: 0 22px 60px rgba(27,35,64,.08); }
.landing-product { min-height: 440px; padding: 44px; }
.landing-product + .landing-product { border-left: 1px solid var(--landing-line); }
.landing-product-label { color: var(--landing-orange-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.landing-product h3 { margin: 15px 0 12px; color: var(--landing-navy); font-size: 30px; letter-spacing: -.025em; }
.landing-product p { max-width: 490px; color: var(--landing-muted); line-height: 1.7; }
.landing-product ul { margin: 27px 0 34px; padding: 0; list-style: none; }
.landing-product li { position: relative; margin: 13px 0; padding-left: 24px; line-height: 1.5; }
.landing-product li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--landing-orange); }
.landing-product a { color: var(--landing-navy); font-weight: 800; text-underline-offset: 4px; }
.landing-product-pro { background: var(--landing-navy); color: #fff; }
.landing-product-pro h3, .landing-product-pro a { color: #fff; }
.landing-product-pro p { color: rgba(255,255,255,.72); }

.landing-final-cta { padding: 55px 0; background: #fff; border-top: 1px solid var(--landing-line); }
.landing-final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.landing-final-cta h2 { margin: 0; color: var(--landing-navy); font-size: 28px; }
.landing-final-cta p { margin: 10px 0 0; color: var(--landing-muted); }
.public-footer { padding: 28px 0; background: var(--landing-navy-deep); color: rgba(255,255,255,.7); font-size: 13px; }
.public-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.public-footer-inner > div:first-child { display: grid; gap: 4px; }
.public-footer-inner strong { color: #fff; }
.public-footer-links { display: flex; gap: 22px; }
.public-footer a { color: rgba(255,255,255,.78); text-decoration: none; }

@media (max-width: 980px) {
    .landing-hero-grid { grid-template-columns: 1fr; gap: 35px; }
    .landing-hero-visual { width: min(430px, 78vw); }
    .landing-principles-grid { grid-template-columns: 1fr; }
    .landing-principles article, .landing-principles article:first-child, .landing-principles article:last-child { padding: 25px 0; border-right: 0; border-bottom: 1px solid var(--landing-line); }
    .landing-principles article:last-child { border-bottom: 0; }
    .landing-product { padding: 34px; }
    .public-user, .public-nav > a[href="/Home/Dashboard#notifications"] { display: none; }
}

@media (max-width: 720px) {
    .public-shell { width: min(100% - 30px, var(--landing-shell)); }
    .public-header { height: auto; min-height: 68px; }
    .public-header-inner { padding: 12px 0; gap: 15px; }
    .public-brand small { display: none; }
    .public-nav { gap: 12px; font-size: 13px; }
    .public-nav > a:not(.public-login-link):not(.public-open-cde):not([href="/help"]) { display: none; }
    .public-login-link, .public-open-cde { padding: 9px 12px; }
    .landing-hero, .landing-hero-grid { min-height: auto; }
    .landing-hero-grid { padding-block: 58px; }
    .landing-hero-copy h1 { font-size: clamp(44px, 14vw, 62px); }
    .landing-hero-copy > p { font-size: 16px; }
    .landing-actions { display: grid; }
    .landing-button { width: 100%; }
    .landing-hero-visual { width: min(360px, 88vw); }
    .landing-product-grid { grid-template-columns: 1fr; }
    .landing-product + .landing-product { border-left: 0; border-top: 1px solid var(--landing-line); }
    .landing-products { padding: 64px 0; }
    .landing-final-cta-inner, .public-footer-inner { align-items: flex-start; flex-direction: column; }
    .landing-final-cta .landing-button { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
