/* 全局样式 */
:root {
    --primary-blue: #2563eb;
    --dark-blue: #1e40af;
    --light-blue: #dbeafe;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gray-800);
    transition: 0.3s;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white) !important;
}

.btn-primary:hover {
    background: var(--dark-blue);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    padding-top: 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.feature-list {
    margin-top: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.feature-list li i {
    color: var(--primary-blue);
    font-size: 0.8rem;
}

/* Advantages Section */
.advantages {
    padding: 6rem 0;
    background: var(--gray-50);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
}

.advantage-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.advantage-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.advantage-item p {
    color: var(--gray-600);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 1.5rem;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.contact-item p {
    color: var(--gray-600);
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand i {
    color: var(--primary-blue);
}

.footer-copyright {
    color: var(--gray-200);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .features-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern portal landing page */
body.portal-home {
    --ink: #102033;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.24);
    --ocean: #0f766e;
    --blue: #2563eb;
    --cyan: #38bdf8;
    --lime: #a7f3d0;
    --paper: #f7fbff;
    --night: #07111f;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.18), transparent 28rem),
        radial-gradient(circle at 90% 8%, rgba(20, 184, 166, 0.18), transparent 28rem),
        linear-gradient(180deg, #f7fbff 0%, #eef6ff 42%, #f8fbff 100%);
    font-family: "Aptos", "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.portal-home a {
    color: inherit;
}

body.portal-home .landing-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

body.portal-home .landing-nav {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 50;
    pointer-events: none;
}

body.portal-home .nav-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.75rem 0.6rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(20px);
    pointer-events: auto;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

body.portal-home .landing-nav.is-scrolled .nav-inner {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

body.portal-home .landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

body.portal-home .brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

body.portal-home .landing-brand strong,
body.portal-home .landing-brand small {
    display: block;
}

body.portal-home .landing-brand strong {
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

body.portal-home .landing-brand small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.portal-home .nav-menu {
    position: static;
    inset: auto;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0.25rem;
    width: auto;
    padding: 0;
    text-align: left;
    box-shadow: none;
    transition: none;
}

body.portal-home .nav-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 0.88rem;
    border-radius: 999px;
    color: #334155;
    font-weight: 900;
    font-size: 0.9rem;
    transition: color 0.18s ease, background 0.18s ease;
}

body.portal-home .nav-menu a:hover,
body.portal-home .nav-menu a.active {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
}

body.portal-home .hamburger {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 16px;
    background: #0f172a;
    cursor: pointer;
}

body.portal-home .hamburger span {
    width: 18px;
    height: 2px;
    display: block;
    background: #fff;
    border-radius: 999px;
}

body.portal-home .landing-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 8.4rem 0 5rem;
    overflow: hidden;
}

body.portal-home .landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 80%);
    pointer-events: none;
}

body.portal-home .hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.9;
    pointer-events: none;
}

body.portal-home .hero-orb-one {
    width: 460px;
    height: 460px;
    left: -180px;
    top: 140px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.34), transparent 68%);
}

body.portal-home .hero-orb-two {
    width: 560px;
    height: 560px;
    right: -220px;
    top: 80px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.3), transparent 70%);
}

body.portal-home .hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.86fr);
    gap: 3rem;
    align-items: center;
}

body.portal-home .eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 0 0.72rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.portal-home .hero-copy h1 {
    margin: 1rem 0 1.1rem;
    color: #0f172a;
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: 0.94;
    letter-spacing: -0.075em;
}

body.portal-home .hero-copy p {
    max-width: 730px;
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.85;
}

body.portal-home .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.65rem;
}

body.portal-home .landing-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem;
    border-radius: 16px;
    font-weight: 950;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.portal-home .landing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

body.portal-home .landing-btn.primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0f766e);
}

body.portal-home .landing-btn.ghost {
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #0f172a;
    background: rgba(255, 255, 255, 0.8);
}

body.portal-home .landing-btn.ghost.dark {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.42);
}

body.portal-home .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 620px;
    margin-top: 1.8rem;
}

body.portal-home .hero-metrics article {
    padding: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

body.portal-home .hero-metrics strong {
    display: block;
    color: #0f766e;
    font-size: 1.7rem;
    line-height: 1;
}

body.portal-home .hero-metrics span {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 800;
}

body.portal-home .hero-stage {
    position: relative;
    min-height: 560px;
}

body.portal-home .stage-card {
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(18px);
}

body.portal-home .command-card {
    position: absolute;
    inset: 18px 0 auto auto;
    width: min(100%, 460px);
    padding: 1rem;
    color: #fff;
    transform: rotate(1.5deg);
}

body.portal-home .stage-card-head {
    display: flex;
    align-items: center;
    gap: 0.44rem;
    padding-bottom: 0.9rem;
}

body.portal-home .stage-card-head span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #ef4444;
}

body.portal-home .stage-card-head span:nth-child(2) {
    background: #f59e0b;
}

body.portal-home .stage-card-head span:nth-child(3) {
    background: #22c55e;
}

body.portal-home .stage-card-head strong {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.portal-home .command-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

body.portal-home .command-tile {
    min-height: 138px;
    display: grid;
    align-content: end;
    gap: 0.4rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

body.portal-home .command-tile.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(15, 118, 110, 0.88));
}

body.portal-home .command-tile i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
}

body.portal-home .command-tile strong {
    font-size: 1.1rem;
}

body.portal-home .command-tile small {
    color: rgba(255, 255, 255, 0.64);
    font-weight: 800;
}

body.portal-home .member-card {
    position: absolute;
    left: 0;
    bottom: 80px;
    width: min(92%, 390px);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.44);
    transform: rotate(-4deg);
}

body.portal-home .member-avatar {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: #0f172a;
    background: #fff;
    font-size: 1.3rem;
    font-weight: 950;
}

body.portal-home .member-card span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.portal-home .member-card strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.1rem;
}

body.portal-home .floating-pill {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0 0.8rem;
    border-radius: 999px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.13);
    font-size: 0.82rem;
    font-weight: 950;
}

body.portal-home .pill-one {
    left: 22px;
    top: 70px;
}

body.portal-home .pill-two {
    right: 12px;
    bottom: 28px;
}

body.portal-home .landing-section {
    position: relative;
    padding: 5.5rem 0;
}

body.portal-home .section-heading {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

body.portal-home .section-heading.left {
    margin: 0;
    text-align: left;
}

body.portal-home .section-heading h2,
body.portal-home .cta-card h2 {
    margin: 0.85rem 0 0;
    color: #0f172a;
    font-size: clamp(2rem, 4.8vw, 4.1rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

body.portal-home .section-heading p,
body.portal-home .cta-card p {
    margin-top: 0.9rem;
    color: #64748b;
    font-size: 1.02rem;
    line-height: 1.8;
}

body.portal-home .portal-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

body.portal-home .portal-panel {
    position: relative;
    min-height: 360px;
    display: grid;
    align-content: end;
    gap: 0.75rem;
    overflow: hidden;
    padding: 1.35rem;
    border-radius: 30px;
    color: #fff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
}

body.portal-home .portal-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, transparent, #000);
}

body.portal-home .admin-panel {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

body.portal-home .profile-panel {
    background: linear-gradient(135deg, #064e3b, #0f766e 54%, #38bdf8);
}

body.portal-home .portal-panel > * {
    position: relative;
}

body.portal-home .panel-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.65rem;
}

body.portal-home .portal-panel span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.portal-home .portal-panel h3 {
    margin: 0;
    font-size: 2rem;
    line-height: 1;
}

body.portal-home .portal-panel p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.75;
}

body.portal-home .portal-panel a {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-weight: 950;
}

body.portal-home .feature-mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

body.portal-home .mosaic-card,
body.portal-home .profile-feature,
body.portal-home .workflow-step,
body.portal-home .tech-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(16px);
}

body.portal-home .mosaic-card {
    min-height: 220px;
    display: grid;
    align-content: end;
    gap: 0.6rem;
    padding: 1.1rem;
}

body.portal-home .mosaic-card.wide {
    grid-column: span 2;
    background:
        radial-gradient(circle at 90% 0%, rgba(56, 189, 248, 0.25), transparent 16rem),
        rgba(255, 255, 255, 0.78);
}

body.portal-home .mosaic-card i,
body.portal-home .tech-card i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #1d4ed8;
    background: #e0f2fe;
}

body.portal-home .mosaic-card h3,
body.portal-home .profile-feature h3,
body.portal-home .workflow-step h3,
body.portal-home .tech-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.18rem;
}

body.portal-home .mosaic-card p,
body.portal-home .profile-feature p,
body.portal-home .workflow-step p,
body.portal-home .tech-card p {
    color: #64748b;
    line-height: 1.72;
}

body.portal-home .profile-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 50%, rgba(15, 118, 110, 0.16), transparent 25rem),
        linear-gradient(180deg, transparent, rgba(219, 234, 254, 0.4));
}

body.portal-home .profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

body.portal-home .profile-feature-stack {
    display: grid;
    gap: 0.85rem;
}

body.portal-home .profile-feature {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1rem;
}

body.portal-home .profile-feature span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    font-weight: 950;
}

body.portal-home .workflow-line {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

body.portal-home .workflow-step {
    min-height: 230px;
    display: grid;
    align-content: start;
    gap: 0.65rem;
    padding: 1rem;
}

body.portal-home .workflow-step strong {
    color: #2563eb;
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: -0.08em;
}

body.portal-home .tech-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

body.portal-home .tech-card {
    min-height: 230px;
    display: grid;
    align-content: start;
    gap: 0.7rem;
    padding: 1.05rem;
}

body.portal-home .landing-cta {
    padding: 4rem 0 5rem;
}

body.portal-home .cta-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.4rem, 4vw, 3rem);
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 0%, rgba(56, 189, 248, 0.42), transparent 20rem),
        linear-gradient(135deg, #07111f, #1d4ed8 60%, #0f766e);
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.26);
}

body.portal-home .cta-card .eyebrow {
    color: #bfdbfe;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
}

body.portal-home .cta-card h2,
body.portal-home .cta-card p {
    max-width: 820px;
    color: #fff;
}

body.portal-home .cta-card p {
    color: rgba(255, 255, 255, 0.75);
}

body.portal-home .portal-contact-form {
    margin-top: 2rem;
    padding: clamp(1rem, 3vw, 1.6rem);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(14px);
}

body.portal-home .contact-form-heading {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    margin-bottom: 1rem;
}

body.portal-home .contact-form-heading strong { font-size: 1.05rem; }
body.portal-home .contact-form-heading span { color: rgba(255,255,255,.7); font-size: .84rem; }
body.portal-home .contact-form-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
}
body.portal-home .contact-form-grid label { display: grid; gap: .4rem; color: rgba(255,255,255,.82); font-size: .78rem; font-weight: 700; }
body.portal-home .contact-form-grid .wide { grid-column: 1 / -1; }
body.portal-home .contact-form-grid input,
body.portal-home .contact-form-grid select,
body.portal-home .contact-form-grid textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 11px;
    outline: 0;
    color: #fff;
    background: rgba(7,17,31,.34);
    font: inherit;
}
body.portal-home .contact-form-grid input,
body.portal-home .contact-form-grid select { height: 42px; padding: 0 .7rem; }
body.portal-home .contact-form-grid textarea { padding: .7rem; resize: vertical; }
body.portal-home .contact-form-grid option { color: #172033; background: #fff; }
body.portal-home .contact-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem; }
body.portal-home .contact-form-foot p { margin: 0; color: #bbf7d0; font-weight: 700; }
body.portal-home .contact-form-foot p.error { color: #fecaca; }

body.portal-home .landing-footer {
    padding: 1.4rem 0;
    color: #64748b;
    background: #f8fbff;
}

body.portal-home .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

body.portal-home .reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.58s ease, transform 0.58s ease;
}

body.portal-home .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    body.portal-home .hero-grid,
    body.portal-home .profile-grid {
        grid-template-columns: 1fr;
    }

    body.portal-home .hero-stage {
        min-height: 500px;
    }

    body.portal-home .feature-mosaic,
    body.portal-home .workflow-line,
    body.portal-home .tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.portal-home .portal-split {
        grid-template-columns: 1fr;
    }

    body.portal-home .contact-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.portal-home .landing-shell {
        width: min(100% - 28px, 1180px);
    }

    body.portal-home .contact-form-grid { grid-template-columns: 1fr; }
    body.portal-home .contact-form-grid .wide { grid-column: auto; }
    body.portal-home .contact-form-heading, body.portal-home .contact-form-foot { align-items: stretch; flex-direction: column; }
    body.portal-home .contact-form-foot .landing-btn { justify-content: center; width: 100%; }

    body.portal-home .landing-nav {
        top: 10px;
    }

    body.portal-home .nav-inner {
        border-radius: 24px;
    }

    body.portal-home .hamburger {
        display: inline-flex;
        flex-direction: column;
    }

    body.portal-home .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.7rem;
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
    }

    body.portal-home .nav-menu.active {
        display: flex;
    }

    body.portal-home .nav-menu a {
        justify-content: center;
    }

    body.portal-home .landing-hero {
        min-height: auto;
        padding-top: 7.2rem;
    }

    body.portal-home .hero-copy h1 {
        font-size: clamp(2.7rem, 15vw, 4rem);
    }

    body.portal-home .hero-metrics,
    body.portal-home .feature-mosaic,
    body.portal-home .workflow-line,
    body.portal-home .tech-grid {
        grid-template-columns: 1fr;
    }

    body.portal-home .mosaic-card.wide {
        grid-column: auto;
    }

    body.portal-home .hero-stage {
        min-height: auto;
        display: grid;
        gap: 0.9rem;
    }

    body.portal-home .command-card,
    body.portal-home .member-card,
    body.portal-home .floating-pill {
        position: relative;
        inset: auto;
        width: 100%;
        transform: none;
    }

    body.portal-home .floating-pill {
        justify-content: center;
    }

    body.portal-home .command-grid {
        grid-template-columns: 1fr;
    }

    body.portal-home .portal-panel {
        min-height: 300px;
    }

    body.portal-home .profile-feature {
        grid-template-columns: 1fr;
    }

    body.portal-home .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    body.portal-home .landing-brand small {
        display: none;
    }

    body.portal-home .hero-actions,
    body.portal-home .landing-btn {
        width: 100%;
    }

    body.portal-home .landing-section {
        padding: 4rem 0;
    }
}
