/* ============================================
   eiSCH — Digital Fortress Theme
   Dark premium school safety platform
   ============================================ */

:root {
    --bg-deep: #07070E;
    --bg-primary: #0C0C18;
    --bg-card: #111122;
    --bg-card-hover: #161630;
    --bg-elevated: #1A1A35;
    --blue: #1B6FA8;
    --blue-light: #4A9FD8;
    --blue-dim: #0F4F7A;
    --blue-glow: rgba(27, 111, 168, 0.15);
    --blue-glow-strong: rgba(27, 111, 168, 0.3);
    --text-primary: #EAEAF0;
    --text-secondary: #8888AA;
    --text-muted: #555577;
    --border: rgba(27, 111, 168, 0.1);
    --border-strong: rgba(27, 111, 168, 0.25);
    --danger: #E85454;
    --success: #4AE88A;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ============================================
   LIGHT MODE
   ============================================ */
.light-mode {
    --bg-deep: #F4F5F8;
    --bg-primary: #FFFFFF;
    --bg-card: #F0F1F5;
    --bg-card-hover: #E8E9EE;
    --bg-elevated: #FFFFFF;
    --blue: #1558A0;
    --blue-light: #2E7DC4;
    --blue-dim: #0E3F73;
    --blue-glow: rgba(21, 88, 160, 0.1);
    --blue-glow-strong: rgba(21, 88, 160, 0.2);
    --text-primary: #1A1A2E;
    --text-secondary: #555570;
    --text-muted: #8888A0;
    --border: rgba(21, 88, 160, 0.12);
    --border-strong: rgba(21, 88, 160, 0.25);
    --danger: #D94040;
    --success: #2EBD6E;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--blue-dim) var(--bg-deep);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--blue-dim);
    border-radius: 3px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: default;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   CURSOR GLOW
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle, rgba(200,169,81,0.04) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

    .loading-screen.hidden {
        opacity: 0;
        visibility: hidden;
    }

.loader-shield {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo {
    width: auto;
    max-width: 280px;
    height: auto;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 2rem;
    transition: all 0.4s ease;
    background: transparent;
}

    .nav.scrolled {
        background: rgba(7, 7, 14, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 0.8rem 2rem;
    }

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 1px;
        background: var(--blue);
        transition: width 0.3s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--blue);
    }

        .nav-link:hover::after,
        .nav-link.active::after {
            width: 100%;
        }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .theme-toggle:hover {
        border-color: var(--blue);
        color: var(--blue);
        background: var(--blue-glow);
    }

    .theme-toggle .icon-sun {
        display: block;
    }

    .theme-toggle .icon-moon {
        display: none;
    }

.light-mode .theme-toggle .icon-sun {
    display: none;
}

.light-mode .theme-toggle .icon-moon {
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(7, 7, 14, 0.97);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

    .mobile-menu.open {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
}

    .mobile-link:hover {
        color: var(--blue);
    }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-blue {
    background: var(--blue);
    color: #fff;
}

    .btn-blue:hover {
        background: var(--blue-light);
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(27, 111, 168, 0.3);
    }

.btn-outline-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    background: transparent;
    color: var(--blue);
    border: 1px solid var(--blue-dim);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-outline-sm:hover {
        background: var(--blue);
        color: var(--bg-deep);
    }

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

    .btn-ghost:hover {
        border-color: var(--blue);
        color: var(--blue);
    }

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url('/assets/hero-section/hero-bg-dark.webp');
        background-size: cover;
        background-position: center;
        z-index: 0;
    }

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(7, 7, 14, 0.8) 0%, rgba(7, 7, 14, 0.4) 40%, rgba(7, 7, 14, 0.6) 100% );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-media {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.hero-video-frame {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    /*border: 1px solid var(--border-strong);*/
    /*box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);*/
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(200, 169, 81, 0.08);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--blue);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s ease 0.3s forwards;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.coming-soon-badge {
    border-color: var(--blue);
    background: rgba(27, 111, 168, 0.1) !important;
    animation: heroReveal 0.8s ease 0.3s forwards, badgePulse 3s ease-in-out infinite 1.5s;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(27, 111, 168, 0.2);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(27, 111, 168, 0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 0.8s ease forwards;
}

    .title-line:nth-child(1) {
        animation-delay: 0.5s;
    }

    .title-line:nth-child(2) {
        animation-delay: 0.7s;
    }

    .title-line:nth-child(3) {
        animation-delay: 0.9s;
    }

.title-accent {
    color: var(--blue);
    font-style: italic;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s ease 1.1s forwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s ease 1.3s forwards;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    animation: heroReveal 0.8s ease 1.5s forwards;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue);
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
}

.stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    animation: heroReveal 0.8s ease 1.8s forwards;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .scroll-indicator:hover {
        transform: translateX(-50%) translateY(-4px);
    }

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--blue), transparent);
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(0.5);
        opacity: 0.3;
    }
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ============================================
   SECTION LABELS
   ============================================ */
.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    max-width: 1280px;
    margin: 0 auto 3rem;
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--blue-dim);
}

.label-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ============================================
   SAFETY SECTION
   ============================================ */
.safety-section {
    padding: 8rem 2rem;
    position: relative;
}

.safety-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.blue {
    color: var(--blue);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 169, 81, 0.05);
}

.feature-item h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-img {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-left: auto;
}

.feature-item {
    align-items: center;
}

/* ============================================
   CAMERA FEED SIMULATION
   ============================================ */
.camera-feed {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0A0A14;
    position: relative;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    background: rgba(200, 169, 81, 0.05);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feed-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

    .feed-dot.live {
        background: var(--danger);
        animation: pulse 1.5s infinite;
    }

.feed-time {
    margin-left: auto;
    color: var(--blue);
    font-weight: 600;
}

.feed-body {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #0D0D1A 0%, #111125 50%, #0D0D1A 100%);
    overflow: hidden;
}

.feed-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(200, 169, 81, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 169, 81, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.feed-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    opacity: 0.4;
    animation: scanMove 3s ease-in-out infinite;
}

@keyframes scanMove {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.face-box {
    position: absolute;
    width: 80px;
    height: 100px;
    border: 1px solid transparent;
    z-index: 2;
}

.face-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--blue);
    border-style: solid;
    border-width: 0;
}

    .face-corner.tl {
        top: 0;
        left: 0;
        border-top-width: 2px;
        border-left-width: 2px;
    }

    .face-corner.tr {
        top: 0;
        right: 0;
        border-top-width: 2px;
        border-right-width: 2px;
    }

    .face-corner.bl {
        bottom: 0;
        left: 0;
        border-bottom-width: 2px;
        border-left-width: 2px;
    }

    .face-corner.br {
        bottom: 0;
        right: 0;
        border-bottom-width: 2px;
        border-right-width: 2px;
    }

.face-box.scanning .face-corner {
    border-color: var(--blue-dim);
}

.face-label {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.face-status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

    .face-status.verified {
        color: var(--success);
    }

    .face-status.scanning-status {
        color: var(--blue);
        animation: pulse 1s infinite;
    }

.face-name, .face-time {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-muted);
}

.feed-footer {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Notification popup */
.notification-pop {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    max-width: 320px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: notifSlide 0.5s ease 3s both;
    z-index: 5;
}

@keyframes notifSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}

.notif-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
}

.notif-detail {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.safety-visual {
    position: relative;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
}

.marquee-inner {
    display: flex;
    gap: 2rem;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
    align-items: center;
}

    .marquee-inner span {
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.15em;
        color: var(--text-muted);
        flex-shrink: 0;
    }

.marquee-dot {
    color: var(--blue) !important;
    font-size: 0.6rem !important;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 8rem 2rem;
}

.features-header {
    max-width: 1280px;
    margin: 0 auto 4rem;
}

.features-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
}

.light-mode .feature-card {
    --card-bg: var(--card-bg-day);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.light-mode .feature-card::before {
    opacity: 0.1;
}

.feature-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.card-icon {
    margin-bottom: 1.2rem;
}

.card-body {
    padding: 1.5rem 2rem 2rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--blue-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 2;
}

.feature-card:hover .card-glow {
    opacity: 1;
}

.card-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(200, 169, 81, 0.06);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
    z-index: 2;
}

.card-icon {
    margin-bottom: 1.2rem;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-dashboard {
    --card-bg: url('/assets/art-works/eisch-night.webp');
    --card-bg-day: url('/assets/art-works/eisch-day.webp');
    --card-bg-night: url('/assets/art-works/eisch-night.webp');
}

.card-grades {
    --card-bg: url('/assets/art-works/grades-management-night.webp');
    --card-bg-day: url('/assets/art-works/grades-management-day.webp');
    --card-bg-night: url('/assets/art-works/grades-management-night.webp');
}

.card-attendance {
    --card-bg: url('/assets/art-works/attendance-monitoring-night.webp');
    --card-bg-day: url('/assets/art-works/attendance-monitoring-day.webp');
    --card-bg-night: url('/assets/art-works/attendance-monitoring-night.webp');
}

.card-notifications {
    --card-bg: url('/assets/art-works/parent-notifications-night.webp');
    --card-bg-day: url('/assets/art-works/parent-notifications-day.webp');
    --card-bg-night: url('/assets/art-works/parent-notifications-night.webp');
}

.card-payments {
    --card-bg: url('/assets/art-works/pnb-night.webp');
    --card-bg-day: url('/assets/art-works/pnb-day.webp');
    --card-bg-night: url('/assets/art-works/pnb-night.webp');
}

.card-calendar {
    --card-bg: url('/assets/art-works/school-calendar-night.webp');
    --card-bg-day: url('/assets/art-works/school-calendar-day.webp');
    --card-bg-night: url('/assets/art-works/school-calendar-night.webp');
}

/* ============================================
   ATTENDANCE / TIMELINE SECTION
   ============================================ */
.attendance-section {
    padding: 8rem 2rem;
    background: var(--bg-primary);
    position: relative;
}

    .attendance-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--blue-dim), transparent);
    }

.attendance-layout {
    max-width: 1280px;
    margin: 0 auto;
}

.attendance-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

    .timeline-item.visible {
        opacity: 1;
        transform: translateX(0);
    }

.timeline-marker {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 2px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

    .timeline-marker span {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--blue);
    }

.timeline-content h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.timeline-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.timeline-img {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: block;
    order: -1;
}

/* ============================================
   PORTALS SECTION
   ============================================ */
.portals-section {
    padding: 8rem 2rem;
}

.portals-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.portals-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.portal-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

    .portal-card:hover {
        border-color: var(--border-strong);
        transform: translateY(-4px);
    }

.portal-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-size: cover;
    background-position: center;
}

.teacher-portal .portal-bg {
    background-image: url('/assets/section-4/teacher-portal.webp');
}

.parent-portal .portal-bg {
    background-image: url('/assets/section-4/parent-portal.webp');
}

.student-portal .portal-bg {
    background-image: url('/assets/section-4/student-portal.webp');
}

.portal-content {
    position: relative;
    z-index: 1;
    padding: 3rem;
}

.portal-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--blue-dim);
    border-radius: 100px;
    color: var(--blue);
    margin-bottom: 1.5rem;
}

.portal-content h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.portal-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .portal-features li {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        font-size: 0.95rem;
        color: var(--text-secondary);
    }

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
.download-section {
    padding: 6rem 2rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.download-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.download-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.qr-frame {
    position: relative;
    width: 260px;
    height: 260px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    background: var(--bg-card);
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
}

.qr-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--blue);
    border-style: solid;
    border-width: 0;
}

    .qr-corner.tl {
        top: -1px;
        left: -1px;
        border-top-width: 3px;
        border-left-width: 3px;
        border-radius: 4px 0 0 0;
    }

    .qr-corner.tr {
        top: -1px;
        right: -1px;
        border-top-width: 3px;
        border-right-width: 3px;
        border-radius: 0 4px 0 0;
    }

    .qr-corner.bl {
        bottom: -1px;
        left: -1px;
        border-bottom-width: 3px;
        border-left-width: 3px;
        border-radius: 0 0 0 4px;
    }

    .qr-corner.br {
        bottom: -1px;
        right: -1px;
        border-bottom-width: 3px;
        border-right-width: 3px;
        border-radius: 0 0 4px 0;
    }

.qr-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* ============================================
   NUMBERS SECTION
   ============================================ */
.numbers-section {
    padding: 6rem 2rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.numbers-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.big-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
}

.big-suffix {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--blue);
}

.big-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 8rem 2rem;
}

.contact-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
}

    .social-link:hover {
        border-color: var(--blue);
        color: var(--blue);
        background: var(--blue-glow);
    }

.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        font-family: var(--font-mono);
        font-size: 0.7rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 0.8rem 1rem;
        background: var(--bg-deep);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        color: var(--text-primary);
        font-family: var(--font-body);
        font-size: 0.9rem;
        transition: border-color 0.3s;
        outline: none;
    }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: var(--text-muted);
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: var(--blue);
            box-shadow: 0 0 0 3px var(--blue-glow);
        }

    .form-group select {
        appearance: none;
        cursor: pointer;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888AA' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
    }

    .form-group textarea {
        resize: vertical;
        min-height: 100px;
    }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
    background: var(--bg-primary);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-links-group {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

    .footer-col a:hover {
        color: var(--blue);
    }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================================
   FOOTER ACCREDITATIONS
   ============================================ */
.footer-accreditations {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.footer-accred-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.footer-accred-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem 2.5rem;
}

.accred-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 120px;
}

    .accred-item img {
        width: 76px;
        height: 76px;
        object-fit: contain;
        filter: grayscale(35%);
        transition: filter 0.3s ease, transform 0.3s ease;
    }

    .accred-item:hover img {
        filter: none;
        transform: translateY(-3px);
    }

.accred-name {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.accred-status {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    white-space: nowrap;
}

    .accred-status.accredited {
        color: var(--success);
        border: 1px solid rgba(74, 232, 138, 0.25);
        background: rgba(74, 232, 138, 0.08);
    }

    .accred-status.in-progress {
        color: var(--blue-light);
        border: 1px solid var(--border-strong);
        background: var(--blue-glow);
    }

/* ============================================
   SCROLL REVEAL ANIMATION CLASSES
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .safety-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-media {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .btn-outline-sm {
        display: none;
    }

    .hero-content {
        padding: 7rem 1.5rem 4rem;
        flex-direction: column;
        gap: 3rem;
    }

    .hero-video-frame {
        max-width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .portals-grid,
    .portals-grid-3 {
        grid-template-columns: 1fr;
    }

    .download-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links-group {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .notification-pop {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 1rem;
        max-width: 100%;
    }

    .timeline {
        padding-left: 2.5rem;
    }

    .timeline-marker {
        left: -2.5rem;
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-cta {
        flex-direction: column;
    }

        .hero-cta .btn {
            text-align: center;
            justify-content: center;
        }

    .numbers-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LIGHT MODE — SECTION OVERRIDES
   ============================================ */
.light-mode .loading-screen {
    background: var(--bg-deep);
}

.light-mode .hero::before {
    background-image: url('/assets/hero-section/hero-bg-light.webp');
}

.light-mode .camera-feed {
    background: #E8E9EE;
}

.light-mode .feed-body {
    background: linear-gradient(135deg, #E0E1E8 0%, #D5D6DE 50%, #E0E1E8 100%);
}

.light-mode .feed-header {
    background: rgba(21, 88, 160, 0.06);
}

.light-mode .hero-overlay {
    background: linear-gradient( 135deg, rgba(244, 245, 248, 0.75) 0%, rgba(244, 245, 248, 0.4) 40%, rgba(244, 245, 248, 0.6) 100% );
}

.light-mode .nav.scrolled {
    background: rgba(255, 255, 255, 0.88);
}

.light-mode .mobile-menu {
    background: rgba(255, 255, 255, 0.97);
}

.light-mode .notification-pop {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.light-mode .hamburger span {
    background: var(--text-primary);
}

.light-mode .footer {
    background: var(--bg-primary);
}

.light-mode .contact-form-wrap {
    background: var(--bg-card);
}

.light-mode .qr-frame {
    background: var(--bg-card);
    border-color: var(--border-strong);
}

.light-mode .scroll-line {
    background: linear-gradient(to bottom, var(--blue), transparent);
}

.light-mode .face-name,
.light-mode .face-time {
    color: #555570;
}

.light-mode .feed-footer {
    color: #8888A0;
}

.light-mode .face-status.scanning-status {
    color: var(--blue-dim);
}

@media (max-width: 480px) {
    .footer-accred-list {
        gap: 1.5rem 1.25rem;
    }

    .accred-item {
        max-width: 96px;
    }

        .accred-item img {
            width: 56px;
            height: 56px;
        }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 8rem 2rem;
}

.faq-header {
    max-width: 1280px;
    margin: 0 auto 4rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease, opacity 0.8s ease, transform 0.8s ease;
}

    .faq-item.open {
        border-color: var(--border-strong);
        background: var(--bg-card-hover);
    }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    transition: color 0.3s;
}

    .faq-question:hover {
        color: var(--blue);
    }

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-note {
    max-width: 800px;
    margin: 2.5rem auto 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    font-family: var(--font-display);
    color: var(--text-secondary);
}

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-widget {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 900;
}

.chat-launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(27, 111, 168, 0.35);
    transition: transform 0.3s ease, background 0.3s ease;
}

    .chat-launcher:hover {
        transform: translateY(-3px);
        background: var(--blue-light);
    }

.chat-window {
    position: absolute;
    right: 0;
    bottom: 4.5rem;
    width: 380px;
    max-width: calc(100vw - 3rem);
    height: 520px;
    max-height: calc(100vh - 9rem);
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.98);
    transform-origin: bottom right;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

    .chat-window.open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.25rem;
    background: var(--blue);
    color: #fff;
}

.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.chat-title-wrap {
    min-width: 0;
}

.chat-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.85;
    transition: background 0.3s, opacity 0.3s;
}

    .chat-close:hover {
        background: rgba(255, 255, 255, 0.2);
        opacity: 1;
    }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.chat-msg {
    max-width: 85%;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-lg);
    font-size: 0.88rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-msg.bot {
    align-self: flex-start;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--blue);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg.typing {
    color: var(--text-muted);
    font-style: italic;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.25rem 1rem;
}

.chat-chip {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    color: var(--blue);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

    .chat-chip:hover {
        background: var(--blue);
        border-color: var(--blue);
        color: #fff;
    }

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    min-width: 0;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .chat-input::placeholder {
        color: var(--text-muted);
    }

    .chat-input:focus {
        border-color: var(--blue);
        box-shadow: 0 0 0 3px var(--blue-glow);
    }

.chat-send {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--blue);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

    .chat-send:hover {
        background: var(--blue-light);
        transform: translateY(-2px);
    }

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    color: var(--blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

    .scroll-top.visible {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .scroll-top:hover {
        background: var(--blue);
        color: #fff;
    }

/* ============================================
   CHAT WIDGET + SCROLL TOP — RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .chat-widget {
        right: 1rem;
        bottom: 1rem;
    }

    .chat-launcher {
        width: 54px;
        height: 54px;
    }

    .chat-window {
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        bottom: 4rem;
    }

    .scroll-top {
        left: 1rem;
        bottom: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   ANCHOR OFFSET (fixed nav)
   ============================================ */
section[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   POLICY PAGES (Data Privacy / Code of Conduct)
   ============================================ */
.policy-page {
    padding: 9rem 2rem 6rem;
    min-height: 100vh;
}

.policy-container {
    max-width: 1280px;
    margin: 0 auto;
}

.policy-hero-inner {
    max-width: 800px;
    margin-bottom: 1rem;
}

.policy-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.policy-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
}

.policy-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.policy-tag {
    color: var(--success);
    border: 1px solid rgba(74, 232, 138, 0.25);
    background: rgba(74, 232, 138, 0.08);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
}

.policy-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.policy-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

    .policy-sidebar h4 {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: var(--text-muted);
        margin-bottom: 0.75rem;
    }

    .policy-sidebar a {
        font-size: 0.85rem;
        color: var(--text-secondary);
        padding: 0.4rem 0.75rem;
        border-radius: var(--radius);
        border-left: 2px solid transparent;
        transition: color 0.2s, border-color 0.2s, background 0.2s;
    }

        .policy-sidebar a:hover {
            color: var(--blue);
            border-left-color: var(--blue);
            background: var(--blue-glow);
        }

.policy-content {
    max-width: 760px;
    min-width: 0;
}

.policy-intro {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
    scroll-margin-top: 100px;
}

    .policy-intro p {
        color: var(--text-secondary);
        line-height: 1.8;
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

.policy-contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

    .policy-contact-card a {
        color: var(--blue);
    }

.policy-section {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 100px;
}

    .policy-section h2 {
        font-family: var(--font-display);
        font-size: 1.35rem;
        font-weight: 600;
        margin-bottom: 1rem;
        display: flex;
        align-items: baseline;
        gap: 0.75rem;
    }

.policy-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--blue);
    flex-shrink: 0;
}

    .policy-section p {
        color: var(--text-secondary);
        line-height: 1.8;
        font-size: 0.95rem;
    }

    .policy-section ul {
        margin: 1rem 0 0 1.25rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .policy-section li {
        color: var(--text-secondary);
        font-size: 0.92rem;
        line-height: 1.6;
    }

.policy-report {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

    .policy-report a {
        color: var(--blue);
    }

@media (max-width: 900px) {
    .policy-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .policy-sidebar {
        position: static;
    }
}

.light-mode .policy-sidebar,
.light-mode .policy-contact-card,
.light-mode .policy-report {
    background: var(--bg-card);
}