/* ============================================
   SIEMENS PARTNER HUB — Portal CSS
   Brand: #000028 (navy), #009999 (petrol), #00FFB9 (accent)
   ============================================ */

/* --- Reset & Variables --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --s-navy: #000028;
    --s-navy-light: #00003c;
    --s-petrol: #009999;
    --s-petrol-light: #00cccc;
    --s-petrol-dark: #007a7a;
    --s-mint: #00FFB9;
    --s-white: #ffffff;
    --s-gray-100: #f5f5f5;
    --s-gray-200: #e4e4e4;
    --s-gray-300: #c9c9c9;
    --s-gray-600: #6e6e6e;
    --s-gray-700: #4a4a4a;
    --s-surface: rgba(0, 0, 40, 0.03);
    --s-glass: rgba(0, 0, 40, 0.04);
    --s-border: rgba(0, 0, 40, 0.08);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,40,0.06), 0 1px 2px rgba(0,0,40,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,40,0.05), 0 10px 15px rgba(0,0,40,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,40,0.08), 0 20px 48px rgba(0,0,40,0.05);
    --shadow-xl: 0 25px 50px rgba(0,0,40,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--s-white);
    color: var(--s-navy);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Ambient Background --- */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,153,153,0.12) 0%, transparent 70%);
    top: -200px; right: -100px;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,255,185,0.08) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    animation: orbFloat 25s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0,0,40,0.05) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat 30s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -20px); }
    50% { transform: translate(-20px, 30px); }
    75% { transform: translate(15px, 15px); }
}

/* --- Header --- */
.portal-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 72px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--s-border);
    transition: var(--transition);
}

.portal-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--s-navy);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--s-petrol);
}

.logo-divider {
    width: 1px;
    height: 24px;
    background: var(--s-gray-300);
}

.logo-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--s-gray-600);
    letter-spacing: 0.5px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--s-gray-700);
    text-decoration: none;
    border-radius: var(--radius-xs);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--s-petrol);
    background: rgba(0, 153, 153, 0.06);
}

.nav-link.active {
    color: var(--s-petrol);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--s-petrol);
    border-radius: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1.5px solid var(--s-petrol);
    border-radius: 50px;
    background: transparent;
    color: var(--s-petrol);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-login:hover {
    background: var(--s-petrol);
    color: var(--s-white);
}

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

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--s-navy);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--s-border);
    z-index: 999;
    padding: 16px 32px;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-link {
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--s-navy);
    text-decoration: none;
    border-radius: var(--radius-xs);
    transition: var(--transition);
}

.mobile-link:hover {
    background: rgba(0, 153, 153, 0.06);
    color: var(--s-petrol);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 120px 32px 80px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border: 1px solid rgba(0, 153, 153, 0.25);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--s-petrol);
    background: rgba(0, 153, 153, 0.04);
    margin-bottom: 28px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--s-petrol);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--s-navy);
    letter-spacing: -0.02em;
}

.hero-accent {
    background: linear-gradient(135deg, var(--s-petrol), var(--s-petrol-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--s-gray-600);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--s-petrol);
    color: var(--s-white);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: var(--s-petrol-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 153, 153, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1.5px solid var(--s-border);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--s-navy);
    text-decoration: none;
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.btn-secondary:hover {
    border-color: var(--s-petrol);
    color: var(--s-petrol);
    background: rgba(0, 153, 153, 0.04);
}

.hero-levels {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-level {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.auth-level { background: rgba(0,153,153,0.08); color: var(--s-petrol); border: 1px solid rgba(0,153,153,0.2); }
.silver-level { background: rgba(150,150,150,0.08); color: #888; border: 1px solid rgba(150,150,150,0.25); }
.gold-level { background: rgba(200,170,0,0.08); color: #b8960f; border: 1px solid rgba(200,170,0,0.25); }
.plat-level { background: rgba(0,0,40,0.04); color: var(--s-navy); border: 1px solid rgba(0,0,40,0.12); }

/* --- Hero Visual (Presentation Mock) --- */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.visual-card {
    width: 100%;
    max-width: 520px;
    background: var(--s-navy);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.6s ease;
}

.visual-card:hover {
    transform: rotateY(-2deg) rotateX(1deg);
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27ca40; }

.visual-title {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.visual-body {
    padding: 48px 40px;
}

.mock-slide {
    text-align: center;
}

.mock-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(0,153,153,0.5);
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--s-petrol-light);
    margin-bottom: 20px;
}

.mock-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.mock-accent {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--s-petrol), var(--s-petrol-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.mock-chips {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.mc {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 600;
}

.mc.auth { background: rgba(90,200,250,0.15); color: #5ac8fa; }
.mc.silver { background: rgba(192,192,192,0.12); color: #c0c0c0; }
.mc.gold { background: rgba(255,215,0,0.12); color: #ffd700; }
.mc.plat { background: rgba(229,228,226,0.12); color: #e5e4e2; }

.mock-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--s-petrol), var(--s-petrol-light));
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.visual-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.visual-footer span {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
}

.progress-mock {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, var(--s-petrol), var(--s-petrol-light));
    border-radius: 2px;
    animation: progressAnim 3s ease-in-out infinite;
}

@keyframes progressAnim {
    0%, 100% { width: 12%; }
    50% { width: 65%; }
}

/* --- Stats Bar --- */
.stats-bar {
    position: relative;
    z-index: 1;
    background: var(--s-navy);
    padding: 48px 0;
}

.stats-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--s-petrol-light), var(--s-mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.1);
}

/* --- Section Common --- */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-alt {
    background: var(--s-gray-100);
}

.section-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--s-petrol);
    background: rgba(0, 153, 153, 0.06);
    border: 1px solid rgba(0, 153, 153, 0.15);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.accent-text {
    background: linear-gradient(135deg, var(--s-petrol), var(--s-petrol-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--s-gray-600);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Resource Cards --- */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.resource-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: var(--s-white);
    border: 1px solid var(--s-border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: default;
}

a.resource-card { cursor: pointer; }

.resource-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 153, 153, 0.2);
    transform: translateY(-2px);
}

.resource-card.featured {
    background: linear-gradient(135deg, rgba(0,153,153,0.03), rgba(0,255,185,0.02));
    border-color: rgba(0, 153, 153, 0.2);
    padding: 36px 40px;
}

.card-icon-wrap {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: var(--radius-xs);
    background: rgba(0, 153, 153, 0.06);
    border: 1px solid rgba(0, 153, 153, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--s-petrol);
}

.card-icon-wrap.featured-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: var(--s-petrol);
    border-color: transparent;
    color: var(--s-white);
}

.card-content { flex: 1; }

.card-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--s-petrol);
    background: rgba(0, 153, 153, 0.08);
    margin-bottom: 8px;
}

.card-badge.dist-badge { color: var(--s-petrol); background: rgba(0,153,153,0.08); }
.card-badge.sol-badge { color: #b8960f; background: rgba(200,170,0,0.08); }

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-content p {
    font-size: 0.88rem;
    color: var(--s-gray-600);
    line-height: 1.6;
    margin-bottom: 8px;
}

.card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.75rem;
    color: var(--s-gray-300);
    font-weight: 500;
}

.card-arrow {
    color: var(--s-petrol);
    transition: var(--transition);
}

a.resource-card:hover .card-arrow {
    transform: translateX(4px);
}

/* --- Channels Grid (Modules) --- */
.channels-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 56px;
}

.channel-block {
    background: var(--s-white);
    border: 1px solid var(--s-border);
    border-radius: var(--radius);
    padding: 36px;
    transition: var(--transition);
}

.channel-block:hover {
    box-shadow: var(--shadow-md);
}

.dist-block { border-top: 3px solid var(--s-petrol); }
.sol-block { border-top: 3px solid #c8a600; }

.channel-header {
    margin-bottom: 24px;
}

.channel-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xs);
    background: rgba(0, 153, 153, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--s-petrol);
    margin-bottom: 16px;
}

.sol-icon {
    background: rgba(200, 170, 0, 0.08);
    color: #b8960f;
}

.channel-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.channel-type {
    font-size: 0.82rem;
    color: var(--s-gray-600);
}

.module-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.mod-tag {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 500;
    background: rgba(0, 153, 153, 0.06);
    border: 1px solid rgba(0, 153, 153, 0.12);
    color: var(--s-petrol-dark);
}

.mod-tag.expert {
    background: rgba(200, 100, 0, 0.06);
    border-color: rgba(200, 100, 0, 0.15);
    color: #b85c00;
}

.mod-tag.service {
    background: rgba(100, 0, 200, 0.04);
    border-color: rgba(100, 0, 200, 0.12);
    color: #6a00b8;
}

.mod-tag.more {
    background: var(--s-navy);
    border-color: transparent;
    color: var(--s-white);
    font-weight: 700;
}

.channel-req {
    display: flex;
    gap: 16px;
}

.req-item {
    flex: 1;
    padding: 14px;
    background: var(--s-gray-100);
    border-radius: var(--radius-xs);
    text-align: center;
}

.req-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--s-gray-600);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.req-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--s-petrol);
}

.channel-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
}

.vs-line {
    width: 1px;
    flex: 1;
    background: linear-gradient(180deg, transparent, var(--s-border), transparent);
}

.vs-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--s-petrol);
    color: var(--s-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
}

.vs-note {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.7rem;
    color: var(--s-gray-600);
    font-weight: 500;
    text-align: center;
}

/* --- Levels Bar --- */
.levels-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 32px 40px;
    background: var(--s-white);
    border: 1px solid var(--s-border);
    border-radius: var(--radius);
}

.level-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 32px;
}

.level-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-bottom: 4px;
}

.auth-dot { background: var(--s-petrol); opacity: 0.5; }
.silver-dot { background: #c0c0c0; }
.gold-dot { background: #ffd700; }
.plat-dot { background: linear-gradient(135deg, #e5e4e2, #c0c0c0); box-shadow: 0 0 8px rgba(229,228,226,0.5); }

.level-block span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--s-navy);
}

.level-block small {
    font-size: 0.7rem;
    color: var(--s-gray-600);
}

.level-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--s-gray-200), var(--s-petrol), var(--s-gray-200));
}

/* --- Tools Grid --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tool-card {
    position: relative;
    background: var(--s-white);
    border: 1px solid var(--s-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
    overflow: hidden;
}

.tool-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.tool-card.locked {
    opacity: 0.7;
}

.tool-card.locked:hover {
    transform: none;
    box-shadow: none;
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xs);
    background: rgba(0, 153, 153, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--s-petrol);
    margin-bottom: 20px;
}

.tool-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 0.82rem;
    color: var(--s-gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--s-petrol);
    text-decoration: none;
    transition: var(--transition);
}

.tool-link:hover { gap: 10px; }

.tool-link.disabled {
    color: var(--s-gray-300);
    cursor: not-allowed;
}

.tool-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.active-status {
    background: rgba(0, 200, 100, 0.08);
    color: #00a854;
    border: 1px solid rgba(0, 200, 100, 0.2);
}

.coming-status {
    background: rgba(200, 170, 0, 0.08);
    color: #b8960f;
    border: 1px solid rgba(200, 170, 0, 0.2);
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    background: var(--s-white);
    border: 1px solid var(--s-border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 153, 153, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--s-petrol);
    margin: 0 auto 16px;
}

.contact-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--s-gray-600);
    line-height: 1.6;
}

.contact-link {
    color: var(--s-petrol);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-link:hover { text-decoration: underline; }

/* --- Footer --- */
.portal-footer {
    position: relative;
    z-index: 1;
    background: var(--s-navy);
    padding: 48px 0 32px;
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--s-petrol-light);
}

.footer-tagline {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--s-petrol-light); }

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

.footer-disclaimer {
    margin-top: 4px;
    font-size: 0.7rem !important;
}

/* --- Login Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 40, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    background: var(--s-white);
    border-radius: var(--radius);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    font-size: 1.5rem;
    color: var(--s-gray-600);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover { background: var(--s-gray-100); }

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-logo {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--s-petrol);
    margin-bottom: 16px;
    display: block;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 0.85rem;
    color: var(--s-gray-600);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--s-gray-700);
}

.form-group input {
    padding: 12px 16px;
    border: 1.5px solid var(--s-border);
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--s-navy);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--s-petrol);
    box-shadow: 0 0 0 3px rgba(0, 153, 153, 0.08);
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.modal-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--s-gray-600);
    margin-top: 20px;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-desc { margin: 0 auto 36px; }
    .hero-actions { justify-content: center; }
    .hero-levels { justify-content: center; }
    .hero-visual { display: none; }
    
    .channels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .channel-vs {
        flex-direction: row;
        padding: 0 20px;
    }
    
    .vs-line { width: auto; flex: 1; height: 1px; }
    .vs-note { writing-mode: horizontal-tb; transform: none; }
    
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .levels-bar { flex-wrap: wrap; padding: 24px 20px; gap: 8px; }
    .level-connector { width: 30px; }
}

@media (max-width: 768px) {
    .header-nav { display: none; }
    .hamburger { display: flex; }
    
    .hero { padding: 100px 20px 60px; min-height: auto; }
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    
    .stats-inner { flex-wrap: wrap; gap: 24px; }
    .stat-divider { display: none; }
    .stat-item { min-width: calc(50% - 12px); }
    
    .section { padding: 64px 0; }
    .section-inner { padding: 0 20px; }
    
    .resource-card { flex-direction: column; text-align: center; }
    .resource-card.featured { padding: 28px 24px; }
    .card-arrow { display: none; }
    
    .tools-grid { grid-template-columns: 1fr; }
    
    .footer-top { flex-direction: column; gap: 20px; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    
    .modal-card { margin: 20px; padding: 36px 24px; }
}
