:root {
    --bg: #eef5fb;
    --ink: #0f172a;
    --muted: #64748b;
    --soft: #f8fbff;
    --line: #dbe7f4;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --green: #10b981;
    --purple: #7c3aed;
    --navy: #071425;
    --shadow: 0 30px 90px rgba(15, 23, 42, .16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 0%, rgba(14, 165, 233, .16), transparent 34%),
        radial-gradient(circle at 88% 22%, rgba(124, 58, 237, .12), transparent 30%),
        linear-gradient(135deg, #eef7ff 0%, #f8fafc 48%, #eef4ff 100%);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.asset-public-page {
    min-height: 100vh;
}

.asset-public-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(7, 20, 37, .98), rgba(15, 42, 68, .96) 45%, rgba(12, 61, 62, .96));
    padding: clamp(22px, 2.6vw, 38px);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .36;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 42% 50%, #000 0 60%, transparent 88%);
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    opacity: .68;
    pointer-events: none;
}

.hero-orb-one {
    width: min(40vw, 560px);
    height: min(40vw, 560px);
    right: 16%;
    top: -12%;
    background: #22d3ee;
}

.hero-orb-two {
    width: min(34vw, 460px);
    height: min(34vw, 460px);
    left: 30%;
    bottom: 7%;
    background: #7c3aed;
    opacity: .44;
}

.public-nav,
.hero-content-grid {
    position: relative;
    z-index: 2;
}

.public-nav {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    box-shadow: 0 16px 34px rgba(34, 211, 238, .27);
}

.brand-mark span {
    width: 24px;
    height: 18px;
    border: 3px solid #ffffff;
    border-top: 0;
    transform: skewY(-25deg) rotate(45deg);
    border-radius: 4px;
}

.public-brand strong,
.public-brand small {
    display: block;
}

.public-brand strong {
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
}

.public-brand small {
    color: rgba(226, 232, 240, .82);
    font-size: 12px;
    font-weight: 700;
}

.public-nav-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.public-nav-pills a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: rgba(255,255,255,.84);
    background: rgba(255,255,255,.08);
    text-decoration: none;
    font-size: 11px;
    font-weight: 850;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
    gap: clamp(26px, 4vw, 72px);
    align-items: center;
    min-height: calc(100vh - 96px);
    padding: 46px 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #a7f3d0;
    font-size: 12px;
    font-weight: 900;
}

.hero-badge i {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: #10b981;
    box-shadow: 0 0 0 7px rgba(16,185,129,.14);
}

.hero-copy h1 {
    max-width: 980px;
    margin: 20px 0 16px;
    font-size: clamp(48px, 5.6vw, 94px);
    line-height: .9;
    letter-spacing: -.078em;
}

.hero-lead {
    max-width: 820px;
    margin: 0;
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.72;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-primary,
.hero-secondary {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
}

.hero-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 42px rgba(37, 99, 235, .32);
}

.hero-secondary {
    color: #dbeafe;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 740px;
    margin-top: 34px;
}

.hero-proof div {
    padding: 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
}

.hero-proof strong {
    display: block;
    font-size: 28px;
    font-weight: 950;
}

.hero-proof span {
    display: block;
    margin-top: 4px;
    color: rgba(226, 232, 240, .78);
    font-size: 12px;
    font-weight: 750;
}

.asset-access-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: min(100%, 500px);
    padding: 22px;
    border: 1px solid rgba(219, 230, 243, .98);
    border-radius: 32px;
    background:
        radial-gradient(circle at 100% 0%, rgba(37,99,235,.08), transparent 32%),
        rgba(255,255,255,.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.login-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.login-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 11px;
    font-weight: 950;
}

.login-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.login-card-head p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 13px;
    font-weight: 700;
}

.login-lock {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #10b981;
    background: #ecfdf5;
    box-shadow: inset 0 0 0 1px #bbf7d0;
}

.tab-head {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 6px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: #eef4fb;
}

.tab-btn {
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    color: #64748b;
    background: transparent;
    font-weight: 950;
    cursor: pointer;
}

.tab-btn.active {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15,23,42,.09);
}

.login-alert {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 800;
}

.login-alert.error {
    color: #be123c;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.login-alert.ok {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.pane-title h3 {
    margin: 4px 0 6px;
    color: var(--ink);
    font-size: 22px;
    letter-spacing: -.03em;
}

.pane-title p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.45;
    font-size: 13px;
    font-weight: 700;
}

.login-form {
    display: grid;
    gap: 12px;
}

.login-form label {
    display: grid;
    gap: 7px;
}

.login-form label span {
    color: #334155;
    font-size: 12px;
    font-weight: 950;
}

.login-form input,
.login-form select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cbd9e8;
    border-radius: 16px;
    outline: 0;
    padding: 12px 14px;
    color: #0f172a;
    background: #f8fafc;
    font: inherit;
    font-weight: 650;
}

.login-form input:focus {
    border-color: #38bdf8;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(56,189,248,.14);
}

.password-wrap {
    display: flex;
}

.password-wrap input {
    border-radius: 16px 0 0 16px;
}

.toggle-pass {
    min-width: 72px;
    border: 1px solid #cbd9e8;
    border-left: 0;
    border-radius: 0 16px 16px 0;
    color: #2563eb;
    background: #eef6ff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.form-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.check-line {
    display: flex !important;
    grid-template-columns: auto 1fr !important;
    gap: 8px !important;
    align-items: center;
}

.check-line input {
    width: auto;
    min-height: auto;
}

.link-button {
    border: 0;
    color: #2563eb;
    background: transparent;
    font-weight: 950;
    cursor: pointer;
}

.captcha-line input {
    max-width: 160px;
}

.recaptcha-line {
    overflow: hidden;
    min-height: 78px;
}

.captcha-note {
    padding: 12px 14px;
    border: 1px solid #bae6fd;
    border-radius: 15px;
    color: #0369a1;
    background: #ecfeff;
    font-weight: 850;
}

.primary-btn,
.google-btn {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 18px;
    padding: 0 18px;
    text-decoration: none;
    font-weight: 950;
    cursor: pointer;
}

.primary-btn {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 18px 36px rgba(37,99,235,.22);
}

.google-btn {
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #dbe6f3;
}

.google-btn span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ea4335;
    background: #f8fafc;
    font-weight: 950;
}

.google-disabled {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #fde68a;
    border-radius: 16px;
    color: #92400e;
    background: #fffbeb;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #94a3b8;
}

.divider:before,
.divider:after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e2e8f0;
}

.form-help {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.code-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 20px;
    font-weight: 950;
}

.login-footnote {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.login-footnote span {
    padding: 7px 9px;
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 850;
}

.public-section {
    width: min(100% - 44px, 1500px);
    margin: 0 auto;
    padding: clamp(54px, 7vw, 108px) 0;
}

.section-head {
    max-width: 920px;
    margin-bottom: 28px;
}

.section-head.wide {
    max-width: 1160px;
}

.section-head span,
.iso-copy span,
.final-cta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    font-size: 12px;
    font-weight: 950;
}

.section-head h2,
.iso-copy h2,
.final-cta h2 {
    margin: 14px 0 10px;
    color: var(--ink);
    font-size: clamp(34px, 3.9vw, 64px);
    line-height: .98;
    letter-spacing: -.06em;
}

.section-head p,
.iso-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 650;
}

.intro-grid,
.department-grid {
    display: grid;
    gap: 14px;
}

.intro-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.department-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intro-grid article,
.department-grid article {
    padding: 20px;
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 26px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .07);
}

.intro-grid i {
    display: inline-flex;
    margin-bottom: 14px;
    color: #2563eb;
    font-style: normal;
    font-weight: 950;
}

.intro-grid strong,
.department-grid strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
}

.intro-grid span,
.department-grid p {
    display: block;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
    font-weight: 650;
}

.feature-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(260px, .92fr) minmax(0, 1fr);
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(14,165,233,.06), transparent 32%),
        rgba(255,255,255,.84);
    box-shadow: 0 18px 56px rgba(15, 23, 42, .075);
}

.feature-image {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    background: #0f172a;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.04);
}

.feature-image span {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: rgba(15, 23, 42, .66);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(12px);
    font-weight: 950;
}

.feature-body {
    padding: 24px;
}

.feature-body small {
    display: inline-flex;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 950;
}

.feature-body h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 25px;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.feature-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-weight: 650;
}

.feature-body ul {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.feature-body li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.feature-body li::before {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    margin-top: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.iso-section {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(420px, .8fr);
    gap: 34px;
    align-items: center;
}

.iso-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.iso-list div {
    padding: 16px;
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 20px;
    background: rgba(255,255,255,.74);
}

.iso-list b,
.iso-list small {
    display: block;
}

.iso-list b {
    color: var(--ink);
    font-weight: 950;
}

.iso-list small {
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.4;
    font-weight: 650;
}

.iso-visual img {
    width: 100%;
    display: block;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.final-cta {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 36px;
    padding: 34px;
    border-radius: 32px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(34,211,238,.22), transparent 34%),
        linear-gradient(135deg, #0f172a, #183444);
    box-shadow: var(--shadow);
}

.final-cta h2 {
    max-width: 980px;
    color: #fff;
    font-size: clamp(28px, 3vw, 48px);
}

.final-cta span {
    color: #a7f3d0;
    background: rgba(16,185,129,.12);
    border-color: rgba(167,243,208,.18);
}

@media (max-width: 1320px) {
    .hero-content-grid,
    .iso-section {
        grid-template-columns: 1fr;
    }

    .asset-access-panel {
        justify-content: flex-start;
    }

    .login-card {
        width: min(100%, 760px);
    }

    .feature-showcase,
    .department-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .public-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-nav-pills {
        justify-content: flex-start;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-proof,
    .intro-grid,
    .iso-list {
        grid-template-columns: 1fr;
    }

    .feature-card {
        grid-template-columns: 1fr;
    }

    .feature-image {
        min-height: 260px;
    }

    .final-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .asset-public-hero {
        padding: 18px;
    }

    .public-section {
        width: min(100% - 26px, 1500px);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-primary,
    .hero-secondary {
        width: 100%;
    }

    .tab-head {
        grid-template-columns: 1fr;
    }

    .form-line {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Asset public/login extra mobile polish */
@media screen and (max-width: 767.98px) {
    html, body { max-width: 100%; overflow-x: hidden; }
    .asset-public-hero { padding: 14px !important; }
    .public-nav { gap: 12px !important; }
    .public-brand { min-width: 0; }
    .public-brand small { white-space: normal !important; }
    .public-nav-pills { width: 100%; display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
    .public-nav-pills a { justify-content: center; min-height: 40px; }
    .hero-copy h1 { font-size: clamp(2rem, 10vw, 2.65rem) !important; line-height: 1.03 !important; }
    .hero-copy p { font-size: .98rem !important; }
    .hero-content-grid, .feature-showcase, .department-grid, .iso-section, .iso-list, .intro-grid, .hero-proof { grid-template-columns: 1fr !important; }
    .login-card { width: 100% !important; border-radius: 22px !important; }
    .login-card-body { padding: 18px !important; }
    .login-tabs { grid-template-columns: 1fr !important; }
    .public-section { width: min(100% - 20px, 1500px) !important; }
    .final-cta { padding: 20px !important; border-radius: 22px !important; }
}

@media screen and (max-width: 479.98px) {
    .public-nav-pills { grid-template-columns: 1fr !important; }
    .hero-actions { display: grid !important; grid-template-columns: 1fr !important; }
    .hero-primary, .hero-secondary { width: 100% !important; }
}
