:root {
    --portal-ink: #132238;
    --portal-muted: #64748b;
    --portal-primary: #6658dd;
    --portal-primary-dark: #5145c7;
    --portal-accent: #24c7a1;
    --portal-surface: #f4f6fb;
    --portal-border: #e4e9f2;
    --portal-success: #08775f;
    --portal-info: #3156b8;
    --portal-warning: #8a4b08;
    --portal-danger: #ad2934;
    --portal-radius-sm: 10px;
    --portal-radius-md: 18px;
    --portal-shadow: 0 18px 48px rgba(19, 34, 56, .08);
}

html { scroll-behavior: smooth; }

.portal-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    color: var(--portal-ink);
    font-family: Inter, "Segoe UI", sans-serif;
}

.portal-body > main { flex: 1 0 auto; }
.portal-body > .portal-header,
.portal-body > .portal-footer { flex-shrink: 0; }

.portal-skip-link {
    background: #fff;
    border: 2px solid var(--portal-primary);
    border-radius: var(--portal-radius-sm);
    color: var(--portal-ink);
    font-weight: 800;
    left: 1rem;
    padding: .7rem 1rem;
    position: fixed;
    top: 1rem;
    transform: translateY(-180%);
    z-index: 2000;
}
.portal-skip-link:focus { transform: translateY(0); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #2f6fec;
    outline-offset: 3px;
}

.portal-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(228, 233, 242, .9);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
}

.portal-header .navbar { min-height: 76px; }
.portal-header .nav-link { color: #334155; font-weight: 600; padding: .75rem 1rem; }
.portal-header .nav-link:hover { color: var(--portal-primary); }

.portal-brand {
    align-items: center;
    color: var(--portal-ink);
    display: inline-flex;
    font-size: 1.2rem;
    font-weight: 800;
    gap: .7rem;
    text-decoration: none;
}

.portal-brand-mark {
    align-items: center;
    background: linear-gradient(145deg, var(--portal-primary), #8f82f7);
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    font-size: 1.45rem;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.btn-primary {
    background: var(--portal-primary);
    border-color: var(--portal-primary);
}
.btn-primary:hover, .btn-primary:focus { background: var(--portal-primary-dark); border-color: var(--portal-primary-dark); }
.portal-nav-action { border-radius: 10px; padding: .7rem 1.1rem; }

.portal-hero {
    background:
        radial-gradient(circle at 80% 25%, rgba(102, 88, 221, .28), transparent 25%),
        radial-gradient(circle at 15% 80%, rgba(36, 199, 161, .12), transparent 27%),
        linear-gradient(135deg, #101a2b 0%, #17263d 58%, #1d3150 100%);
    color: #fff;
    overflow: hidden;
    padding: 92px 0 100px;
}

.portal-eyebrow {
    align-items: center;
    color: var(--portal-accent);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    gap: .45rem;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.portal-hero h1 { color: #fff; font-size: clamp(2.7rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin: 1.2rem 0 1.5rem; max-width: 760px; }
.portal-lead { color: #cbd5e1; font-size: 1.2rem; line-height: 1.75; max-width: 680px; }
.portal-hero-actions { margin-top: 2rem; }
.portal-hero .btn { align-items: center; border-radius: 12px; display: inline-flex; font-weight: 700; gap: .4rem; justify-content: center; }
.portal-hero .btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.portal-hero .btn-outline-light:hover, .portal-hero .btn-outline-light:focus { background: #fff; color: var(--portal-ink); }
.portal-trust-row { color: #aebbd0; display: flex; flex-wrap: wrap; font-size: .84rem; gap: 1.2rem; margin-top: 2rem; }
.portal-trust-row i { color: var(--portal-accent); margin-right: .25rem; }

.model-preview-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.25); overflow: hidden; transform: perspective(900px) rotateY(-4deg); }
.model-preview-stage { background: linear-gradient(145deg, rgba(102,88,221,.2), rgba(10,18,32,.45)); min-height: 360px; overflow: hidden; position: relative; }
.model-cube { align-items: center; background: rgba(102,88,221,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 34% 18% 30% 20%; box-shadow: 0 0 70px rgba(102,88,221,.45); display: flex; height: 145px; justify-content: center; left: 50%; position: absolute; top: 50%; transform: translate(-50%,-50%) rotate(-8deg); width: 145px; }
.model-cube i { color: #bcb4ff; font-size: 6.2rem; }
.model-orbit { border: 1px solid rgba(156, 163, 255, .38); border-radius: 50%; left: 50%; position: absolute; top: 50%; transform: translate(-50%,-50%) rotate(-18deg); }
.orbit-one { height: 220px; width: 310px; }
.orbit-two { height: 305px; transform: translate(-50%,-50%) rotate(48deg); width: 190px; }
.model-point { background: var(--portal-accent); border-radius: 50%; box-shadow: 0 0 0 7px rgba(36,199,161,.14); height: 7px; position: absolute; width: 7px; }
.point-one { left: 21%; top: 31%; }.point-two { right: 18%; top: 57%; }.point-three { bottom: 20%; left: 43%; }
.model-preview-status { align-items: center; background: rgba(13,22,37,.92); display: flex; justify-content: space-between; padding: 1.1rem 1.25rem; }
.status-dot { background: var(--portal-accent); border-radius: 50%; display: inline-block; height: 9px; margin-right: .6rem; width: 9px; }
.portal-badge { background: rgba(36,199,161,.13); border: 1px solid rgba(36,199,161,.25); border-radius: 999px; color: #65e7c8; font-size: .72rem; font-weight: 800; padding: .35rem .65rem; text-transform: uppercase; }

.portal-section { padding: 90px 0; }
.portal-section-muted { background: var(--portal-surface); }
.section-heading { margin: 0 auto 2.5rem; max-width: 750px; text-align: center; }
.section-heading h2, .portal-cta h2 { font-size: clamp(2rem,4vw,3rem); font-weight: 800; letter-spacing: -.035em; margin: .65rem 0 .9rem; }
.section-heading p, .portal-cta p { color: var(--portal-muted); font-size: 1.05rem; line-height: 1.7; }
.process-card { border: 1px solid var(--portal-border); border-radius: 18px; height: 100%; padding: 2rem; transition: transform .2s, box-shadow .2s; }
.process-card:hover { box-shadow: 0 18px 45px rgba(29,49,80,.09); transform: translateY(-4px); }
.process-number { color: var(--portal-primary); font-size: .82rem; font-weight: 800; letter-spacing: .12em; }
.process-card h3, .work-card h3 { font-size: 1.25rem; font-weight: 800; margin: 1rem 0 .65rem; }
.process-card p { color: var(--portal-muted); line-height: 1.7; margin: 0; }
.portal-text-link, .work-content a { color: var(--portal-primary); font-weight: 700; text-decoration: none; }
.work-card { background: #fff; border: 1px solid var(--portal-border); border-radius: 18px; height: 100%; overflow: hidden; }
.work-visual { align-items: center; background: linear-gradient(135deg,#1a2a43,#685adf); color: rgba(255,255,255,.88); display: flex; height: 230px; justify-content: center; position: relative; }
.work-visual-2 { background: linear-gradient(135deg,#0f766e,#25b99b); }.work-visual-3 { background: linear-gradient(135deg,#884b2f,#d58b55); }
.work-visual i { font-size: 6rem; filter: drop-shadow(0 15px 20px rgba(0,0,0,.2)); }
.work-visual span { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .7rem; font-weight: 800; padding: .3rem .55rem; position: absolute; right: 1rem; top: 1rem; }
.work-content { padding: 1.5rem; }.work-content > span { color: var(--portal-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }

.portal-cta { padding: 0 0 90px; }
.portal-cta-panel { align-items: center; background: linear-gradient(130deg,var(--portal-primary-dark),#7062e8); border-radius: 24px; color: #fff; display: flex; gap: 3rem; justify-content: space-between; padding: 3.5rem; }
.portal-cta-panel > div { max-width: 720px; }.portal-cta p { color: #dedaff; margin: 0; }.portal-cta .portal-eyebrow { color: #8ff1d9; }.portal-cta .btn { color: var(--portal-primary-dark); flex: 0 0 auto; font-weight: 800; }
.portal-footer { background: #101a2b; color: #aebbd0; padding: 2.5rem 0; }.portal-footer strong { color: #fff; }.portal-footer a { color: #cbd5e1; text-decoration: none; }.portal-footer a:hover { color: #fff; }

.cookie-information {
    background: #eef2ff;
    border-top: 1px solid #dfe3fb;
    color: #334155;
    font-size: .9rem;
}
.cookie-information .container { align-items: center; display: flex; gap: .75rem; padding-bottom: 1rem; padding-top: 1rem; }
.cookie-information i { color: var(--portal-primary-dark); flex: 0 0 auto; font-size: 1.35rem; }
.cookie-information p { line-height: 1.55; margin: 0; }
.cookie-information a { color: var(--portal-primary-dark); font-weight: 800; }

.privacy-page { background: var(--portal-surface); }
.privacy-shell { margin: 0 auto; max-width: 980px; }
.privacy-heading { margin-bottom: 2rem; }
.privacy-heading h1 { font-size: clamp(2.35rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.045em; margin: .7rem 0 1rem; }
.privacy-heading > p:not(.portal-eyebrow) { color: var(--portal-muted); font-size: 1.08rem; line-height: 1.75; max-width: 760px; }
.privacy-status { margin-bottom: 1.5rem; }
.privacy-status span { display: block; }
.privacy-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.privacy-card { box-shadow: none; }
.privacy-card-wide { grid-column: 1 / -1; }
.privacy-card h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.privacy-card h3 { font-size: 1.05rem; font-weight: 800; margin: 1.5rem 0 .55rem; }
.privacy-card p, .privacy-card li { color: #475569; line-height: 1.75; }
.privacy-card ul { margin-bottom: 0; padding-left: 1.2rem; }
.cookie-table { margin: 1.25rem 0 0; }
.cookie-table th { color: var(--portal-ink); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.cookie-table th, .cookie-table td { border-color: var(--portal-border); padding: 1rem; vertical-align: top; }
.cookie-table code { color: var(--portal-primary-dark); font-weight: 800; }
.privacy-next-step { background: #fff8e8; border: 1px solid #ecd49a; border-radius: 14px; color: #70440f; margin-top: 1.5rem; padding: 1rem 1.1rem; }
.privacy-next-step strong { display: block; margin-bottom: .25rem; }

.portal-workspace { background: var(--portal-surface); min-height: 100%; padding: 2rem 0 5rem; }
.portal-breadcrumb { color: var(--portal-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.portal-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.portal-breadcrumb li:not(:last-child)::after { color: #94a3b8; content: "/"; margin-left: .55rem; }
.portal-breadcrumb a { color: var(--portal-primary-dark); font-weight: 700; }
.portal-page-heading { align-items: flex-start; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 2rem; }
.portal-page-heading h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.035em; margin: .45rem 0 .75rem; }
.portal-page-heading p:not(.portal-eyebrow) { color: var(--portal-muted); line-height: 1.65; margin: 0; max-width: 680px; }
.portal-card { background: #fff; border: 1px solid var(--portal-border); border-radius: var(--portal-radius-md); box-shadow: var(--portal-shadow); padding: 2rem; }
.portal-card-eyebrow { color: var(--portal-primary-dark); font-size: .75rem; font-weight: 800; letter-spacing: .1em; margin: 0 0 .55rem; text-transform: uppercase; }
.portal-card h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 .75rem; }
.portal-card-content > :last-child { margin-bottom: 0; }
.portal-status-badge { border: 1px solid transparent; border-radius: 999px; display: inline-flex; font-size: .78rem; font-weight: 800; padding: .45rem .75rem; white-space: nowrap; }
.portal-status-badge-neutral { background: #eef2f7; color: #46566c; }
.portal-status-badge-success { background: #dff8ef; border-color: #afe7d4; color: var(--portal-success); }
.portal-status-badge-warning { background: #fff3d6; border-color: #f0d694; color: var(--portal-warning); }
.portal-status-badge-danger { background: #ffeaec; border-color: #f5bec3; color: var(--portal-danger); }
.portal-alert { align-items: flex-start; border: 1px solid; border-radius: var(--portal-radius-sm); display: flex; gap: .75rem; margin-top: 1.25rem; padding: 1rem 1.1rem; }
.portal-alert i { font-size: 1.35rem; margin-top: .05rem; }
.portal-alert strong { display: block; margin-bottom: .2rem; }
.portal-alert p { margin: 0; }
.portal-alert-info { background: #edf3ff; border-color: #c7d7fb; color: #24458f; }
.portal-alert-success { background: #e9f9f3; border-color: #b8e8d7; color: var(--portal-success); }
.portal-alert-warning { background: #fff7e4; border-color: #eed69d; color: #73410d; }
.portal-alert-danger { background: #fff0f1; border-color: #f2c2c6; color: #8e222b; }
.portal-empty-state { min-height: 270px; text-align: center; }
.portal-empty-state .portal-card-content { align-items: center; display: flex; flex-direction: column; }
.portal-empty-state .portal-card-content > p { color: var(--portal-muted); line-height: 1.65; max-width: 620px; }
.portal-empty-state-icon { align-items: center; background: #ece9ff; border-radius: 50%; color: var(--portal-primary-dark); display: flex; font-size: 2.25rem; height: 72px; justify-content: center; margin: .75rem 0 1.25rem; width: 72px; }

@media (max-width: 991.98px) {
    .portal-header .navbar-collapse { padding: 1rem 0; }
    .portal-hero { padding: 70px 0; }
    .model-preview-card { transform: none; }
}
@media (max-width: 767.98px) {
    .portal-section { padding: 65px 0; }
    .portal-cta-panel { align-items: flex-start; flex-direction: column; padding: 2rem; }
    .portal-cta-panel .btn { width: 100%; }
    .portal-workspace { padding: 1.25rem 0 3rem; }
    .portal-page-heading { flex-direction: column; gap: 1rem; }
    .portal-card { padding: 1.35rem; }
    .portal-alert { padding: .9rem; }
    .cookie-information .container { align-items: flex-start; }
    .privacy-grid { grid-template-columns: 1fr; }
    .privacy-card-wide { grid-column: auto; }
    .cookie-table { min-width: 680px; }
}

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