:root {
    --brand-primary: #155eef;
    --brand-primary-dark: #0b3ca8;
    --brand-secondary: #0e7490;
    --brand-ink: #12233f;
    --brand-muted: #5f6f86;
    --brand-surface: #f5f8fc;
    --brand-line: rgba(18, 35, 63, .10);
    --brand-success: #0f9f6e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.public-page {
    margin: 0;
    color: var(--brand-ink);
    background: #fff;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }

.public-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--brand-line);
    backdrop-filter: blur(16px);
}
.public-nav .navbar-brand { color: var(--brand-ink); font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    box-shadow: 0 10px 25px rgba(21,94,239,.22);
    overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 5px; background: #fff; }
.brand-mark i { color: #fff; font-size: 1.35rem; }
.brand-copy small { color: var(--brand-muted); font-weight: 500; display: block; font-size: .72rem; letter-spacing: .01em; }
.public-nav .nav-link { color: #394a62; font-weight: 600; }
.public-nav .nav-link:hover { color: var(--brand-primary); }

.btn-brand {
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: .8rem 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-primary), #3b82f6);
    box-shadow: 0 10px 24px rgba(21,94,239,.22);
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(21,94,239,.28); }
.btn-soft {
    color: var(--brand-ink);
    border: 1px solid var(--brand-line);
    background: rgba(255,255,255,.86);
    border-radius: 12px;
    padding: .8rem 1.15rem;
    font-weight: 700;
}
.btn-soft:hover { color: var(--brand-primary); border-color: rgba(21,94,239,.3); background: #fff; }

.hero {
    position: relative;
    overflow: hidden;
    min-height: 690px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 80% 20%, rgba(14,116,144,.18), transparent 30%),
        radial-gradient(circle at 12% 8%, rgba(21,94,239,.16), transparent 32%),
        linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}
.hero::before { width: 390px; height: 390px; right: -170px; top: 130px; border: 70px solid rgba(21,94,239,.05); }
.hero::after { width: 280px; height: 280px; left: -150px; bottom: -70px; border: 55px solid rgba(14,116,144,.05); }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .52rem .8rem;
    border-radius: 999px;
    color: var(--brand-primary-dark);
    background: rgba(21,94,239,.08);
    border: 1px solid rgba(21,94,239,.14);
    font-weight: 700;
    font-size: .85rem;
}
.hero h1 { font-size: clamp(2.55rem, 5vw, 4.75rem); line-height: 1.03; letter-spacing: -.055em; font-weight: 850; margin: 1.25rem 0; }
.hero h1 span { color: var(--brand-primary); }
.hero-lead { color: var(--brand-muted); font-size: 1.12rem; line-height: 1.75; max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.8rem; color: #465973; font-size: .9rem; font-weight: 600; }
.hero-trust i { color: var(--brand-success); margin-right: .35rem; }

.dashboard-preview {
    position: relative;
    padding: 1rem;
    border-radius: 28px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 35px 80px rgba(24,51,93,.18);
    backdrop-filter: blur(14px);
}
.preview-window { overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--brand-line); }
.preview-topbar { display: flex; align-items: center; gap: .4rem; padding: .8rem 1rem; background: #f7f9fc; border-bottom: 1px solid var(--brand-line); }
.preview-dot { width: 9px; height: 9px; border-radius: 50%; background: #d0d8e5; }
.preview-layout { display: grid; grid-template-columns: 105px 1fr; min-height: 380px; }
.preview-sidebar { padding: 1.1rem .75rem; background: #10264a; }
.preview-logo { width: 42px; height: 42px; margin: 0 auto 1.25rem; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.12); }
.preview-menu { height: 9px; border-radius: 8px; background: rgba(255,255,255,.18); margin: .9rem 0; }
.preview-menu.active { background: #5ca7ff; }
.preview-content { padding: 1.4rem; background: #f5f8fc; }
.preview-heading { width: 48%; height: 18px; border-radius: 8px; background: #1b3154; margin-bottom: 1.1rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.metric-card { padding: .85rem; background: #fff; border: 1px solid var(--brand-line); border-radius: 14px; }
.metric-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--brand-primary); background: rgba(21,94,239,.09); }
.metric-number { font-size: 1.45rem; font-weight: 800; margin-top: .65rem; }
.metric-label { color: var(--brand-muted); font-size: .72rem; }
.preview-chart { height: 145px; margin-top: .85rem; padding: 1rem; display: flex; align-items: flex-end; gap: .55rem; border-radius: 14px; background: #fff; border: 1px solid var(--brand-line); }
.preview-bar { flex: 1; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #60a5fa, #155eef); min-height: 22px; }
.preview-float { position: absolute; padding: .8rem 1rem; background: #fff; border: 1px solid var(--brand-line); border-radius: 14px; box-shadow: 0 18px 35px rgba(24,51,93,.15); font-size: .84rem; font-weight: 700; }
.preview-float.one { top: 18%; right: -25px; }
.preview-float.two { bottom: 12%; left: -32px; }
.preview-float i { color: var(--brand-success); margin-right: .4rem; }

.section-space { padding: 6rem 0; }
.section-kicker { color: var(--brand-primary); font-size: .8rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-title { margin: .65rem 0 1rem; font-weight: 850; letter-spacing: -.035em; font-size: clamp(2rem, 4vw, 3.1rem); }
.section-lead { max-width: 680px; color: var(--brand-muted); font-size: 1.05rem; line-height: 1.75; }
.bg-soft { background: var(--brand-surface); }
.feature-card { height: 100%; padding: 1.65rem; background: #fff; border: 1px solid var(--brand-line); border-radius: 20px; box-shadow: 0 12px 30px rgba(18,35,63,.05); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(18,35,63,.09); }
.feature-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; color: var(--brand-primary); background: rgba(21,94,239,.09); font-size: 1.25rem; }
.feature-card h3 { margin: 1rem 0 .65rem; font-size: 1.06rem; font-weight: 800; }
.feature-card p { color: var(--brand-muted); line-height: 1.65; margin: 0; font-size: .93rem; }

.resource-card { overflow: hidden; height: 100%; border-radius: 24px; background: linear-gradient(145deg, #10264a, #164f83); color: #fff; box-shadow: 0 24px 50px rgba(18,35,63,.16); }
.resource-card .resource-body { padding: 2rem; }
.resource-art { min-height: 220px; display: grid; place-items: center; background: radial-gradient(circle at 65% 25%, rgba(96,165,250,.38), transparent 35%); }
.resource-art i { font-size: 6rem; opacity: .92; }
.terms-card { height: 100%; border: 1px solid var(--brand-line); border-radius: 24px; background: #fff; padding: 2rem; box-shadow: 0 18px 45px rgba(18,35,63,.07); }
.terms-preview { position: relative; max-height: 155px; overflow: hidden; color: var(--brand-muted); line-height: 1.7; }
.terms-preview::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, #fff); }

.cta-wrap { padding: 0 0 6rem; }
.cta-panel { overflow: hidden; position: relative; padding: 3.2rem; border-radius: 28px; color: #fff; background: linear-gradient(135deg, #10264a 0%, #155eef 60%, #0e7490 100%); box-shadow: 0 25px 65px rgba(21,94,239,.22); }
.cta-panel::after { content: ""; position: absolute; width: 330px; height: 330px; border: 65px solid rgba(255,255,255,.08); border-radius: 50%; right: -120px; top: -160px; }
.cta-panel > * { position: relative; z-index: 1; }

.public-footer { padding: 2rem 0; border-top: 1px solid var(--brand-line); color: var(--brand-muted); background: #fff; }

/* Login */
.login-page { min-height: 100vh; background: #f4f7fb; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); }
.login-visual { position: relative; overflow: hidden; display: flex; align-items: center; padding: clamp(2.5rem, 6vw, 6rem); color: #fff; background: linear-gradient(145deg, #0b2348, #155eef 58%, #0e7490); }
.login-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 20%, rgba(255,255,255,.18), transparent 25%), radial-gradient(circle at 10% 85%, rgba(255,255,255,.12), transparent 28%); }
.login-visual::after { content: ""; position: absolute; width: 500px; height: 500px; right: -250px; bottom: -210px; border: 85px solid rgba(255,255,255,.08); border-radius: 50%; }
.login-visual-content { position: relative; z-index: 1; max-width: 650px; }
.login-brand { display: inline-flex; align-items: center; gap: .85rem; margin-bottom: 3rem; }
.login-brand .brand-mark { box-shadow: none; border: 1px solid rgba(255,255,255,.25); }
.login-brand-name { font-weight: 850; font-size: 1.3rem; }
.login-visual h1 { font-size: clamp(2.5rem, 4.8vw, 4.5rem); line-height: 1.05; letter-spacing: -.05em; font-weight: 850; }
.login-visual p { max-width: 570px; margin-top: 1.4rem; color: rgba(255,255,255,.82); font-size: 1.05rem; line-height: 1.75; }
.login-points { display: grid; gap: .85rem; margin-top: 2rem; }
.login-point { display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.9); font-weight: 600; }
.login-point i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.13); }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 2rem; background: #fff; }
.login-form-wrap { width: min(100%, 455px); }
.login-back { display: inline-flex; align-items: center; gap: .5rem; color: var(--brand-muted); font-weight: 650; font-size: .9rem; margin-bottom: 2.2rem; }
.login-back:hover { color: var(--brand-primary); }
.login-form-wrap h2 { font-weight: 850; letter-spacing: -.035em; font-size: 2rem; }
.login-subtitle { color: var(--brand-muted); margin-bottom: 2rem; }
.form-label-pro { font-size: .87rem; font-weight: 750; color: #31445f; }
.input-pro { position: relative; }
.input-pro > i { position: absolute; z-index: 2; left: 1rem; top: 50%; transform: translateY(-50%); color: #7a8ba3; }
.input-pro .form-control { min-height: 54px; padding-left: 2.85rem; border-radius: 13px; border: 1px solid #dbe3ee; background: #fbfcfe; }
.input-pro .form-control:focus { background: #fff; border-color: rgba(21,94,239,.55); box-shadow: 0 0 0 .24rem rgba(21,94,239,.10); }
.password-toggle { position: absolute; z-index: 3; right: .7rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #7a8ba3; padding: .4rem; }
.login-alert { border: 0; border-radius: 13px; background: #fff1f2; color: #b42335; }
.login-foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.5rem; color: var(--brand-muted); font-size: .84rem; }
.login-foot-links a { color: var(--brand-muted); }
.login-foot-links a:hover { color: var(--brand-primary); }

@media (max-width: 991.98px) {
    .hero { min-height: auto; padding: 5rem 0; }
    .dashboard-preview { margin-top: 3.5rem; }
    .preview-float.one { right: 4px; }
    .preview-float.two { left: 4px; }
    .login-shell { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-form-side { min-height: 100vh; }
}
@media (max-width: 575.98px) {
    .hero h1 { font-size: 2.55rem; }
    .section-space { padding: 4.5rem 0; }
    .metric-grid { grid-template-columns: 1fr; }
    .preview-layout { grid-template-columns: 75px 1fr; }
    .preview-float { display: none; }
    .cta-panel { padding: 2rem; }
    .login-form-side { padding: 1.25rem; }
}

/* ========================================================================== 
   SAO-Pro public experience v2
   ========================================================================== */
.hero-pro { min-height: 735px; }
.section-heading { max-width: 800px; }

.system-overview {
    position: relative;
    padding: 1.1rem;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 28px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 35px 80px rgba(24,51,93,.18);
    backdrop-filter: blur(14px);
}
.system-overview::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    right: -30px;
    top: -45px;
    background: rgba(21,94,239,.08);
    filter: blur(3px);
    pointer-events: none;
}
.overview-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--brand-line);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    background: #fff;
}
.overview-head > div { display: grid; gap: .15rem; }
.overview-head small { color: var(--brand-primary); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }
.overview-head strong { font-size: 1rem; }
.overview-status { display: inline-flex; align-items: center; gap: .45rem; color: #45607e; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.overview-status i { color: var(--brand-success); font-size: .55rem; }
.overview-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .75rem;
    padding: 1rem;
    border-left: 1px solid var(--brand-line);
    border-right: 1px solid var(--brand-line);
    background: #f5f8fc;
}
.overview-card {
    min-width: 0;
    display: grid;
    gap: .35rem;
    padding: 1rem;
    border: 1px solid var(--brand-line);
    border-radius: 16px;
    background: #fff;
}
.overview-card-main { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; column-gap: .85rem; }
.overview-card-main small { grid-column: 2; }
.overview-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--brand-primary); background: rgba(21,94,239,.09); }
.overview-card strong { font-size: .9rem; }
.overview-card small { color: var(--brand-muted); line-height: 1.45; font-size: .75rem; }
.overview-flow {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .45rem;
    padding: 1rem;
    border: 1px solid var(--brand-line);
    border-radius: 0 0 20px 20px;
    background: #fff;
    color: #425774;
    font-size: .72rem;
    font-weight: 800;
}
.overview-flow span { padding: .35rem .55rem; border-radius: 999px; background: #f4f7fb; }
.overview-flow i { color: #9aa9bd; font-size: .65rem; }

.quick-strip { border-top: 1px solid var(--brand-line); border-bottom: 1px solid var(--brand-line); background: #fff; }
.quick-strip-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); }
.quick-strip-grid > div { display: flex; align-items: center; justify-content: center; gap: .7rem; min-width: 0; padding: 1.2rem .85rem; border-right: 1px solid var(--brand-line); }
.quick-strip-grid > div:first-child { border-left: 1px solid var(--brand-line); }
.quick-strip-grid i { color: var(--brand-primary); font-size: 1.1rem; }
.quick-strip-grid span { min-width: 0; display: grid; }
.quick-strip-grid strong { font-size: .84rem; }
.quick-strip-grid small { color: var(--brand-muted); font-size: .72rem; }

.feature-card-pro { min-height: 260px; }
.feature-card-pro .feature-icon { width: 54px; height: 54px; }
.feature-card-pro p { font-size: .9rem; }

.flow-note { display: flex; align-items: flex-start; gap: .8rem; margin-top: 1.5rem; padding: 1rem; border: 1px solid rgba(21,94,239,.12); border-radius: 15px; background: rgba(21,94,239,.05); color: #425774; font-size: .9rem; line-height: 1.55; }
.flow-note i { margin-top: .15rem; color: var(--brand-primary); }
.process-timeline { position: relative; display: grid; gap: .8rem; }
.process-timeline::before { content: ""; position: absolute; top: 34px; bottom: 34px; left: 27px; width: 2px; background: linear-gradient(var(--brand-primary), rgba(14,116,144,.25)); }
.process-step { position: relative; display: grid; grid-template-columns: 55px 1fr; gap: .9rem; align-items: center; padding: 1rem 1.15rem 1rem .55rem; border: 1px solid var(--brand-line); border-radius: 17px; background: #fff; box-shadow: 0 10px 28px rgba(18,35,63,.05); }
.process-step > span { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); font-size: .72rem; font-weight: 850; box-shadow: 0 6px 15px rgba(21,94,239,.22); }
.process-step > div { display: grid; gap: .15rem; }
.process-step strong { font-size: .93rem; }
.process-step small { color: var(--brand-muted); line-height: 1.5; }

.profile-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 1rem; }
.profile-card { grid-column: span 4; display: flex; align-items: flex-start; gap: 1rem; padding: 1.4rem; border: 1px solid var(--brand-line); border-radius: 19px; background: #fff; box-shadow: 0 10px 28px rgba(18,35,63,.045); }
.profile-card:nth-child(4), .profile-card:nth-child(5) { grid-column: span 6; }
.profile-icon { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: var(--brand-primary); background: rgba(21,94,239,.09); }
.profile-card h3 { margin: .1rem 0 .45rem; font-size: 1rem; font-weight: 800; }
.profile-card p { margin: 0; color: var(--brand-muted); font-size: .88rem; line-height: 1.6; }

.control-panel { overflow: hidden; border-radius: 28px; color: #fff; background: #10264a; box-shadow: 0 24px 60px rgba(16,38,74,.18); }
.control-panel-intro { padding: clamp(2rem,4vw,3.5rem); background: radial-gradient(circle at 15% 10%, rgba(96,165,250,.18), transparent 35%); }
.control-panel-intro h2 { margin: .8rem 0 1rem; font-weight: 850; letter-spacing: -.035em; font-size: clamp(2rem,3.6vw,3rem); }
.control-panel-intro p { margin: 0; color: rgba(255,255,255,.72); line-height: 1.75; }
.control-panel-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-left: 1px solid rgba(255,255,255,.09); }
.control-item { display: flex; align-items: flex-start; gap: .9rem; padding: 1.7rem; border-bottom: 1px solid rgba(255,255,255,.09); border-right: 1px solid rgba(255,255,255,.09); }
.control-item:nth-last-child(-n+2) { border-bottom: 0; }
.control-item > i { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #9ed5ff; background: rgba(255,255,255,.09); }
.control-item > div { display: grid; gap: .35rem; }
.control-item strong { font-size: .94rem; }
.control-item small { color: rgba(255,255,255,.66); line-height: 1.55; }

.document-preview { position: relative; max-width: 470px; margin: 0 auto; padding: 1.2rem 3rem 1.2rem 1.2rem; }
.document-preview::before { content: ""; position: absolute; inset: 8% 0 2% 8%; border-radius: 28px; background: rgba(21,94,239,.08); transform: rotate(4deg); }
.document-sheet { position: relative; z-index: 1; min-height: 500px; padding: 2rem; border: 1px solid var(--brand-line); border-radius: 10px; background: #fff; box-shadow: 0 28px 60px rgba(18,35,63,.16); }
.document-header { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 2px solid #dfe7f2; }
.document-header > span:last-child { display: grid; }
.document-header strong { font-size: .9rem; }
.document-header small { color: var(--brand-muted); font-size: .7rem; }
.doc-logo { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--brand-primary); }
.document-title { width: 55%; height: 15px; margin: 2rem auto 1.5rem; border-radius: 8px; background: #17365f; }
.document-row { width: 72%; height: 9px; margin: .7rem 0; border-radius: 8px; background: #dfe7f2; }
.document-row.long { width: 100%; }
.document-box { height: 130px; margin: 1.4rem 0; border: 1px solid #dfe7f2; border-radius: 10px; background: #f8fafc; }
.document-sign { width: 55%; margin: 4.2rem auto 0; text-align: center; }
.document-sign span { display: block; height: 1px; background: #9aabc0; }
.document-sign small { color: var(--brand-muted); font-size: .65rem; }
.document-badge { position: absolute; z-index: 2; right: 0; display: flex; align-items: center; gap: .45rem; padding: .7rem .9rem; border: 1px solid var(--brand-line); border-radius: 12px; background: #fff; box-shadow: 0 12px 26px rgba(18,35,63,.12); font-size: .78rem; font-weight: 850; }
.document-badge.pdf { top: 25%; color: #b42335; }
.document-badge.word { bottom: 24%; color: #155eef; }
.document-points { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem 1rem; margin-top: 1.5rem; }
.document-points span { display: flex; align-items: center; gap: .55rem; color: #425774; font-size: .9rem; font-weight: 650; }
.document-points i { color: var(--brand-success); }

.resource-card-pro { min-height: 310px; display: flex; align-items: flex-end; background: radial-gradient(circle at 80% 15%, rgba(96,165,250,.32), transparent 28%), linear-gradient(145deg,#10264a,#155eef 65%,#0e7490); }
.resource-card-pro h2, .terms-card-pro h2 { margin: .75rem 0; font-size: 1.45rem; font-weight: 850; }
.resource-card-pro p { max-width: 520px; color: rgba(255,255,255,.76); line-height: 1.65; }
.resource-label { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.terms-card-pro { min-height: 310px; display: flex; align-items: flex-start; gap: 1.2rem; }
.terms-card-pro p { color: var(--brand-muted); line-height: 1.7; }
.terms-icon { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; color: var(--brand-primary); background: rgba(21,94,239,.09); font-size: 1.2rem; }
.footer-sep { color: #bac4d2; }

/* Login v2 */
.login-page-pro { color: var(--brand-ink); }
.login-shell-pro { grid-template-columns: minmax(0, 1.1fr) minmax(430px, .9fr); }
.login-visual-pro { padding: clamp(2.5rem, 5vw, 5rem); }
.login-visual-pro .login-visual-content { max-width: 720px; }
.login-visual-pro .login-brand { margin-bottom: 2.1rem; }
.login-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .48rem .72rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.09); font-size: .78rem; font-weight: 800; }
.login-visual-pro h1 { max-width: 650px; margin-top: 1.2rem; font-size: clamp(2.35rem,4vw,4rem); }
.login-visual-pro p { margin-top: 1.1rem; }
.login-module-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; margin-top: 1.6rem; }
.login-module-grid > div { min-width: 0; display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.075); }
.login-module-grid i { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #d8edff; background: rgba(255,255,255,.1); }
.login-module-grid span { min-width: 0; display: grid; }
.login-module-grid strong { font-size: .83rem; }
.login-module-grid small { color: rgba(255,255,255,.62); font-size: .7rem; }
.login-context-note { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.3rem; padding: .9rem 1rem; border-radius: 13px; color: rgba(255,255,255,.76); background: rgba(4,20,48,.22); font-size: .8rem; line-height: 1.55; }
.login-context-note i { margin-top: .15rem; color: #bde4ff; }
.login-form-side-pro { padding: 2rem clamp(1.5rem,4vw,4rem); }
.login-form-wrap-pro { width: min(100%, 480px); }
.login-mobile-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.8rem; }
.login-mobile-brand > div { display: grid; }
.login-mobile-brand strong { font-size: 1.05rem; }
.login-mobile-brand small { color: var(--brand-muted); font-size: .75rem; }
.login-access-badge { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .8rem; padding: .42rem .65rem; border-radius: 999px; color: var(--brand-primary-dark); background: rgba(21,94,239,.08); border: 1px solid rgba(21,94,239,.12); font-size: .75rem; font-weight: 800; }
.login-form-wrap-pro h2 { margin-bottom: .45rem; }
.login-form-pro .input-pro .form-control { min-height: 56px; }
.login-form-help { display: flex; align-items: flex-start; gap: .45rem; color: #74859a; font-size: .75rem; line-height: 1.45; }
.login-form-help i { margin-top: .1rem; color: #8ba0b9; }
.login-security-row { display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem .9rem; margin-top: 1.35rem; color: #61748c; font-size: .72rem; font-weight: 700; }
.login-security-row i { color: var(--brand-primary); margin-right: .25rem; }
.login-first-access { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.3rem; padding: .9rem 1rem; border: 1px solid var(--brand-line); border-radius: 13px; background: #f8fafc; }
.login-first-access > i { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: var(--brand-primary); background: rgba(21,94,239,.08); }
.login-first-access > div { display: grid; gap: .12rem; }
.login-first-access strong { font-size: .8rem; }
.login-first-access small { color: var(--brand-muted); font-size: .72rem; line-height: 1.45; }
.login-form-wrap-pro .login-foot-links { margin-top: 1.25rem; }

@media (max-width: 1199.98px) {
    .quick-strip-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
    .quick-strip-grid > div { padding: 1rem .6rem; }
    .profile-card { grid-column: span 6; }
    .profile-card:nth-child(5) { grid-column: span 12; }
    .login-module-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991.98px) {
    .hero-pro { min-height: auto; }
    .quick-strip-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .quick-strip-grid > div, .quick-strip-grid > div:first-child { border-left: 0; border-right: 0; border-bottom: 1px solid var(--brand-line); justify-content: flex-start; }
    .quick-strip-grid > div:nth-last-child(1) { grid-column: 1 / -1; border-bottom: 0; }
    .profile-card, .profile-card:nth-child(4), .profile-card:nth-child(5) { grid-column: span 6; }
    .profile-card:nth-child(5) { grid-column: 1 / -1; }
    .control-panel-list { border-left: 0; border-top: 1px solid rgba(255,255,255,.09); }
    .document-preview { margin-bottom: 1rem; }
    .login-shell-pro { grid-template-columns: 1fr; }
    .login-visual-pro { display: none; }
    .login-form-side-pro { min-height: 100vh; }
}

@media (max-width: 767.98px) {
    .overview-head { align-items: flex-start; flex-direction: column; }
    .overview-status { white-space: normal; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-card, .profile-card:nth-child(4), .profile-card:nth-child(5) { grid-column: auto; }
    .control-panel-list { grid-template-columns: 1fr; }
    .control-item, .control-item:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
    .control-item:last-child { border-bottom: 0; }
    .document-points { grid-template-columns: 1fr; }
    .terms-card-pro { flex-direction: column; }
}

@media (max-width: 575.98px) {
    .system-overview { padding: .7rem; border-radius: 20px; }
    .overview-grid { grid-template-columns: 1fr; }
    .overview-card-main { grid-column: auto; grid-template-columns: auto 1fr; }
    .overview-card:not(.overview-card-main) { grid-template-columns: auto 1fr; align-items: center; column-gap: .75rem; }
    .overview-card:not(.overview-card-main) small { grid-column: 2; }
    .overview-flow { justify-content: flex-start; }
    .quick-strip-grid { grid-template-columns: 1fr; }
    .quick-strip-grid > div:nth-last-child(1) { grid-column: auto; }
    .feature-card-pro { min-height: auto; }
    .process-timeline::before { left: 24px; }
    .process-step { grid-template-columns: 48px 1fr; padding-right: .85rem; }
    .process-step > span { width: 40px; height: 40px; }
    .document-preview { padding: .6rem 1.5rem .6rem .4rem; }
    .document-sheet { min-height: 420px; padding: 1.3rem; }
    .document-badge { right: -.2rem; }
    .cta-panel { border-radius: 22px; }
    .footer-sep, .footer-sep + span { display: none; }
    .login-form-side-pro { padding: 1.25rem; }
    .login-security-row { justify-content: flex-start; }
}


/* SAO-Pro public v3: spacing, brochure and refined public composition */
.public-page .container { max-width: 1180px; padding-left: clamp(1.25rem, 2.5vw, 1.75rem); padding-right: clamp(1.25rem, 2.5vw, 1.75rem); }
.hero-pro { padding: clamp(4.75rem, 7vw, 7rem) 0; }
.section-space { padding-top: clamp(4.5rem, 7vw, 6.5rem); padding-bottom: clamp(4.5rem, 7vw, 6.5rem); }
.section-heading { max-width: 760px; }
.feature-card-pro, .profile-card { height: 100%; }
.brochure-section { background: linear-gradient(180deg, #fff 0%, #f6f9fd 100%); }
.brochure-showcase { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); align-items: center; gap: clamp(2.5rem, 6vw, 5.5rem); padding: clamp(2rem, 4vw, 4rem); border: 1px solid var(--brand-line); border-radius: 28px; background: #fff; box-shadow: 0 22px 55px rgba(18,35,63,.07); overflow: hidden; }
.brochure-copy { max-width: 620px; }
.brochure-meta { display: flex; flex-wrap: wrap; gap: .65rem 1.1rem; margin-top: 1.35rem; color: #52667f; font-size: .82rem; font-weight: 700; }
.brochure-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.brochure-meta i { color: var(--brand-primary); }
.brochure-visual { position: relative; min-height: 410px; display: grid; place-items: center; }
.brochure-visual::before { content: ""; position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(21,94,239,.14), rgba(14,116,144,.04) 58%, transparent 72%); }
.brochure-sheet { position: relative; z-index: 1; width: min(100%, 340px); min-height: 410px; padding: 1.7rem; border: 1px solid #dfe7f2; border-radius: 16px; background: #fff; box-shadow: 0 26px 60px rgba(18,35,63,.16); transform: rotate(2deg); }
.brochure-sheet-brand { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid #e7edf5; }
.brand-mark-sm { width: 40px; height: 40px; border-radius: 11px; }
.brochure-sheet-brand > div { display: grid; }
.brochure-sheet-brand strong { font-size: .92rem; }
.brochure-sheet-brand small { color: var(--brand-muted); font-size: .67rem; }
.brochure-sheet-title { margin: 2.3rem 0 1.1rem; color: #15345f; font-size: 1.6rem; line-height: 1.15; font-weight: 850; letter-spacing: -.03em; }
.brochure-sheet-line { width: 70%; height: 8px; margin-top: .75rem; border-radius: 999px; background: #e2e9f3; }
.brochure-sheet-line.wide { width: 100%; }
.brochure-sheet-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .65rem; margin-top: 2.2rem; }
.brochure-sheet-grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; color: var(--brand-primary); background: #f0f5ff; font-size: 1.15rem; }
.brochure-sheet-footer { position: absolute; left: 1.7rem; right: 1.7rem; bottom: 1.5rem; padding-top: .8rem; border-top: 1px solid #e7edf5; color: #6d7e92; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.public-footer { padding-top: 1.6rem; padding-bottom: 1.6rem; }

.login-page-pro .login-form-side-pro { padding-left: clamp(1.5rem, 5vw, 5rem); padding-right: clamp(1.5rem, 5vw, 5rem); }
.login-page-pro .login-form-wrap-pro { max-width: 460px; }
.login-page-pro .login-first-access { margin-top: 1.05rem; }
.login-page-pro .login-foot-links { justify-content: center; }

@media (max-width: 991.98px) {
    .hero-pro { padding: 4rem 0; }
    .brochure-showcase { grid-template-columns: 1fr; }
    .brochure-copy { max-width: none; }
    .brochure-visual { min-height: 360px; }
    .login-page-pro .login-form-side-pro { padding-top: 2rem; padding-bottom: 2rem; }
}
@media (max-width: 575.98px) {
    .section-space { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .brochure-showcase { padding: 1.4rem; border-radius: 22px; }
    .brochure-visual { min-height: 320px; }
    .brochure-sheet { width: min(100%, 290px); min-height: 350px; padding: 1.35rem; }
    .brochure-sheet-footer { left: 1.35rem; right: 1.35rem; bottom: 1.2rem; }
}
