:root {
    --bg: #070b14;
    --bg-elevated: #0b1220;
    --surface: #10192d;
    --surface-2: #16233d;
    --surface-3: #1d2d4d;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(245, 158, 11, 0.3);
    --text: #ffffff;
    --text-secondary: #94a3b8;
    --muted: #64748b;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-soft: rgba(245, 158, 11, 0.14);
    --accent-border: rgba(245, 158, 11, 0.35);
    --green: #10b981;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.7);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --container: 1240px;
    --nav-h: 82px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

/* =========================
   NAVBAR
========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 100%);
    transition: background 0.35s var(--ease);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    flex-shrink: 0;
}

.logo-img {
    height: 62px;
    width: auto;
    border-radius: 10px;
    object-fit: contain;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.45);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .brand-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.logo-text .brand-sub {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: #070b14;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
    transform: scale(1.02);
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 4px;
}

.mobile-toggle svg {
    width: 22px;
    height: 22px;
}

/* Mobile drawer */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.mobile-drawer.open {
    pointer-events: auto;
    opacity: 1;
}

.mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.mobile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100%;
    background: #0a0a0a;
    border-left: 1px solid var(--border);
    padding: 80px 24px 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-drawer.open .mobile-drawer-panel {
    transform: translateX(0);
}

.mobile-drawer a {
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 4px;
}

.mobile-drawer a:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.mobile-drawer .nav-cta {
    margin-top: 20px;
    justify-content: center;
}

/* =========================
   BUTTONS
========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
    color: #070b14;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.45);
    transform: scale(1.02);
}

.btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost {
    color: #fff;
    background: transparent;
    padding: 0;
    font-size: 13.5px;
    font-weight: 600;
    opacity: 0.85;
}

.btn-ghost:hover {
    opacity: 1;
}

.btn-ghost svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.btn-ghost:hover svg {
    transform: translateX(3px);
}

/* =========================
   HERO
========================== */
.hero {
    min-height: 120vh;
    padding: calc(var(--nav-h) + 40px) 0 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #000 0%, rgba(0,0,0,0.85) 35%, rgba(0,0,0,0.4) 60%, transparent 100%),
        linear-gradient(0deg, #000 0%, transparent 40%),
        linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 25%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr);
    align-items: center;
    gap: 36px;
    position: relative;
    z-index: 1;
}

.hero-content {
    min-width: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 4px;
    margin-bottom: 24px;
}

.pulse {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(70, 211, 105, 0.5);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(70, 211, 105, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(70, 211, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(70, 211, 105, 0); }
}

.hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(40px, 5.2vw, 64px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
    max-width: 540px;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.hero h1 span {
    color: #fff;
    opacity: 0.9;
}

.hero-desc {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 16.5px;
    line-height: 1.7;
    max-width: 480px;
}

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

.hero-trust {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-trust p {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.trust-logos {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    overflow: visible;
    width: max-content;
    max-width: none;
}

.trust-logo {
    flex: 0 0 145px;
    min-width: 145px;
    height: 96px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.trust-logo img {
    max-height: 64px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
}

/* =========================
   HERO MEDIA SLIDER (ABOUT RIGHT SIDE)
========================== */
.hero-media-slider {
    position: relative;
    width: 100%;
    border-radius: var(--radius-xl);
    background: #000000;
    border: 1px solid var(--border-strong);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(245, 158, 11, 0.18);
    overflow: hidden;
    align-self: start;
    margin-top: 40px;
}

.slider-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(0.98);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-item.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

/* =========================
   SECTIONS COMMON
========================== */
section {
    padding: 88px 0;
    position: relative;
}

.section-header {
    max-width: 600px;
    margin-bottom: 44px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 4px;
    margin-bottom: 16px;
}



.section-header h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #fff;
}

.section-header p {
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* =========================
   STATS
========================== */
.stats-section {
    padding: 0 0 64px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}

.stat {
    padding: 32px 24px;
    border-right: 1px solid var(--border);
    text-align: center;
}

.stat:last-child {
    border-right: none;
}

.stat-number {
    font-family: "Space Grotesk", sans-serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.stat-label {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* =========================
   PARTNERS
========================== */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.partner-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.3s var(--ease), border-color 0.3s;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.partner-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.2);
}

.partner-card:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.partner-img {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.partner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.partner-card:hover .partner-img img {
    transform: scale(1.06);
}

.partner-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--surface) 0%, transparent 50%);
}

.partner-body {
    padding: 0 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: -20px;
}

.partner-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.partner-logo-row img {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

.partner-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.partner-card p {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.partner-card .btn-ghost {
    margin-top: 16px;
    pointer-events: none;
}

/* View more — limited grid items */
.grid-item-extra {
    display: none;
}

.grid-expanded .grid-item-extra {
    display: flex;
}

.notice-list.grid-expanded .grid-item-extra,
.career-grid.grid-expanded .grid-item-extra,
.news-grid.grid-expanded .grid-item-extra,
.partner-grid.grid-expanded .grid-item-extra {
    display: flex;
}

.partner-grid .grid-item-extra {
    flex-direction: column;
}

.news-grid .grid-item-extra {
    flex-direction: column;
}

.view-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    transition: background 0.2s, border-color 0.2s;
}

.btn-view-more:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-view-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s;
}

.btn-view-more.is-expanded svg {
    transform: rotate(180deg);
}

/* Career */
.career-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.career-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s, background 0.2s;
}

.career-card:hover {
    border-color: rgba(255,255,255,0.18);
    background: var(--surface-2);
}

.career-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.career-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
}

.career-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.career-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.career-card .btn-ghost {
    margin-top: 8px;
    align-self: flex-start;
}

/* Legal pages — hidden by default; shown when linked from footer */
.legal-section {
    display: none;
    padding: 88px 0;
    border-top: 1px solid var(--border);
}
.legal-section.is-visible {
    display: block;
}

.legal-content {
    max-width: 760px;
}

.legal-content h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 28px;
}

.legal-content h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 28px 0 10px;
}

.legal-content p,
.legal-content li {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.legal-content ul {
    margin: 10px 0 10px 20px;
}

.legal-content li {
    margin: 6px 0;
}

/* Partner detail modal */
.partner-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.partner-modal.open {
    opacity: 1;
    visibility: visible;
}

.partner-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
}

.partner-modal-panel {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: min(90vh, 720px);
    overflow-y: auto;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s var(--ease);
}

.partner-modal.open .partner-modal-panel {
    transform: translateY(0) scale(1);
}

.partner-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s;
}

.partner-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.partner-modal-close svg {
    width: 18px;
    height: 18px;
}

.partner-modal-hero {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.partner-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-modal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #111 0%, transparent 60%);
}

.partner-modal-body {
    padding: 8px 28px 28px;
}

.partner-modal-logo {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    margin-bottom: 14px;
}

.partner-modal-body h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.partner-modal-tagline {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}

.partner-modal-intro {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 22px;
}

.partner-modal-section {
    margin-bottom: 20px;
}

.partner-modal-section h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
}

.partner-offers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.partner-offer-chip {
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.partner-modal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.partner-modal-list li {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 18px;
    position: relative;
}

.partner-modal-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
}

.partner-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* =========================
   SOLUTIONS
========================== */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.solution-card {
    padding: 24px 20px;
    min-height: 220px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.25s, background 0.25s;
}

.solution-card:hover {
    border-color: rgba(255,255,255,0.18);
    background: var(--surface-2);
}

.solution-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}

.solution-icon svg {
    width: 18px;
    height: 18px;
}

.solution-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px;
    font-weight: 600;
    margin-top: 18px;
    color: #fff;
}

.solution-card p {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =========================
   INTEGRATION
========================== */
.integration {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 56px 36px;
    text-align: center;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.integration::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
}

.integration > * {
    position: relative;
    z-index: 1;
}

.integration h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 480px;
    margin: 0 auto;
    color: #fff;
}

.flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.flow-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.flow-node {
    padding: 12px 16px;
    min-width: 90px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.flow-node.core {
    min-width: 150px;
    padding: 18px 22px;
    background: #fff;
    border-color: #fff;
    color: #000;
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
}

.flow-node.core small {
    display: block;
    margin-top: 4px;
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #555;
    text-transform: uppercase;
}

.flow-arrow {
    color: var(--muted);
    font-size: 18px;
}

/* =========================
   NETWORK
========================== */
.network-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.network-list {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.network-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    border-radius: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.2s, background 0.2s;
}

.network-item:hover {
    border-color: rgba(255,255,255,0.2);
    background: var(--surface-2);
}

.network-item span {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.network-item strong {
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
}

.nepal-map {
    height: 340px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

.nepal-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: grayscale(1) contrast(1.1);
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.map-points {
    position: absolute;
    inset: 0;
}

.map-point {
    width: 10px;
    height: 10px;
    position: absolute;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.15), 0 0 16px rgba(255,255,255,0.4);
    z-index: 2;
    cursor: pointer;
    transition: transform 0.2s;
}

.map-point:hover {
    transform: scale(1.5);
}

.point-kathmandu { left: 53%; top: 48%; }
.point-pokhara { left: 37%; top: 44%; }
.point-biratnagar { left: 78%; top: 52%; }
.point-butwal { left: 27%; top: 53%; }
.point-chitwan { left: 48%; top: 58%; }

.map-legend {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.map-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px #fff;
}

/* =========================
   NEWS / FEATURED
========================== */
.news-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 14px;
}

.news-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.3s var(--ease), border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.18);
}

.news-card.featured {
    grid-row: span 1;
}

.news-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.news-card.featured .news-image {
    height: 240px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, transparent 50%);
}

.news-content {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.news-content h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 8px;
    color: #fff;
}

.news-card.featured .news-content h3 {
    font-size: 20px;
}

.news-content p {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

/* =========================
   NOTICE DASHBOARD
========================== */
.notices-section {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.notices-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.notices-header h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.notices-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.notices-badge .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(70, 211, 105, 0.5);
    animation: pulse-ring 2s ease-out infinite;
}

.notices-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
}

.notice-featured {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notice-featured .notice-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.notice-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.notice-tag.urgent {
    background: rgba(255, 80, 80, 0.2);
    color: #ff8a8a;
}

.notice-tag.info {
    background: rgba(70, 211, 105, 0.15);
    color: var(--green);
}

.notice-date {
    font-size: 12px;
    color: var(--muted);
}

.notice-featured h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.notice-featured p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice-item {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.2s, background 0.2s;
    cursor: default;
}

.notice-item:hover {
    border-color: rgba(255,255,255,0.16);
    background: var(--surface-2);
}

.notice-item-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: #fff;
}

.notice-item-icon svg {
    width: 16px;
    height: 16px;
}

.notice-item-body {
    flex: 1;
    min-width: 0;
}

.notice-item-body h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.notice-item-body p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notice-item-date {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    align-self: flex-start;
    padding-top: 2px;
}

/* =========================
   CONTACT + MAP
========================== */
.contact-section {
    padding-bottom: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}

.contact-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.contact-rows {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: #fff;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
}

.contact-row strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.contact-row a,
.contact-row span {
    font-size: 15px;
    color: #fff;
    font-weight: 500;
}

.contact-row a:hover {
    text-decoration: underline;
}

.contact-row p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-top: 2px;
}

.contact-cta-box {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    flex: 1;
}

.contact-cta-box h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.contact-cta-box > p {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #fff;
}

.contact-form textarea {
    min-height: 90px;
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 4px;
}

.map-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.map-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.map-card-header h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.map-card-header a {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.map-card-header a:hover {
    color: #fff;
}

.map-embed {
    flex: 1;
    min-height: 320px;
    position: relative;
    background: #0a0a0a;
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) contrast(1.05) brightness(0.85);
}

.map-address-bar {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.map-address-bar svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #fff;
}

/* =========================
   CTA (kept minimal for partner form above contact)
========================== */
.cta-section {
    padding-bottom: 40px;
}

.cta-box {
    position: relative;
    padding: 56px 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--surface);
}

.cta-box .cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-box .cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: grayscale(0.3);
}

.cta-box .cta-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.85) 100%);
}

.cta-box > *:not(.cta-bg) {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 520px;
    margin: 0 auto;
    color: #fff;
}

.cta-box > p {
    max-width: 480px;
    margin: 14px auto 28px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.cta-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}

.cta-form input {
    flex: 1 1 220px;
    padding: 13px 16px;
    font-size: 14px;
    font-family: inherit;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

.cta-form input::placeholder {
    color: var(--muted);
}

.cta-form input:focus {
    border-color: #fff;
}

/* =========================
   FOOTER
========================== */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    background: #000;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 36px;
}

.footer-about p {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 280px;
}

.footer-contact-mini {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-mini a,
.footer-contact-mini span {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-mini a:hover {
    color: #fff;
}

.footer-contact-mini svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: #fff;
}

.footer-col a {
    display: block;
    font-size: 13.5px;
    color: var(--muted);
    margin: 9px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.copyright {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
}

/* =========================
   REVEAL
========================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Always visible — contact is critical and must never stay hidden */
.contact-section .reveal,
.contact-section .section-header,
.contact-section .contact-info,
.contact-section .map-card {
    opacity: 1 !important;
    transform: none !important;
}

/* =========================
   RESPONSIVE
========================== */
@media (max-width: 1024px) {
    .hero-grid,
    .network-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--nav-h) + 48px) 0 56px;
    }

    .hero-visual {
        height: 360px;
        order: -1;
    }

    .poster-stack {
        margin: 0 auto;
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solution-grid,
    .career-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-card.featured {
        grid-column: span 2;
    }

    .notices-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(2) {
        border-right: none;
    }

    .stat:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .partner-grid,
    .news-grid,
    .career-grid {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-column: span 1;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .cta-box {
        padding: 44px 22px;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-form .btn-primary {
        width: 100%;
    }

    .trust-logos {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        max-width: 100%;
        gap: 10px;
        overflow: visible;
    }

    .trust-logo {
        flex: none;
        width: 100%;
        min-width: 0;
        height: 76px;
        padding: 6px 8px;
    }

    .trust-logo img {
        max-height: 48px;
        max-width: 90%;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    section {
        padding: 64px 0;
    }

    .trust-logos {
        gap: 8px;
    }

    .trust-logo {
        height: 68px;
        padding: 4px 6px;
    }

    .trust-logo img {
        max-height: 42px;
    }

    .solution-grid,
    .career-grid,
    .stats,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: none !important;
        border-bottom: 1px solid var(--border);
    }

    .stat:last-child {
        border-bottom: none;
    }

    .hero-visual {
        display: none;
    }

    .hero h1 {
        font-size: 34px;
    }

    .integration {
        padding: 40px 18px;
    }

    .poster-1, .poster-3 {
        display: none;
    }
}

/* ==========================================================================
   ENTERPRISE PAGE TRANSITION & ZERO-FOUC LOADER
   ========================================================================== */
.page-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #070b14;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.page-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-glow {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(245, 158, 11, 0.15);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: preloader-spin 0.65s linear infinite;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.2);
}

@keyframes preloader-spin {
    to { transform: rotate(360deg); }
}

