/* =========================================================
   SOLPROS — GDHRI FACILITY  |  Main Stylesheet
   Hospital Facility Management System
   ========================================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* =========================================================
   CSS VARIABLES / DESIGN TOKENS
   ========================================================= */
:root {
    /* Backgrounds */
    --bg-base:      #080d1a;
    --bg-surface:   #0f172a;
    --bg-card:      #111827;
    --bg-card-hover:#162032;
    --bg-input:     #1e293b;

    /* Accents */
    --cyan:         #06b6d4;
    --cyan-glow:    rgba(6, 182, 212, 0.35);
    --cyan-subtle:  rgba(6, 182, 212, 0.08);
    --blue:         #3b82f6;
    --blue-glow:    rgba(59, 130, 246, 0.35);
    --purple:       #8b5cf6;
    --purple-glow:  rgba(139, 92, 246, 0.35);
    --green:        #22c55e;
    --green-glow:   rgba(34, 197, 94, 0.3);
    --orange:       #f59e0b;
    --red:          #ef4444;
    --pink:         #ec4899;

    /* Text */
    --text-primary:   #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted:     #475569;

    /* Borders */
    --border:         rgba(148, 163, 184, 0.1);
    --border-hover:   rgba(6, 182, 212, 0.4);

    /* Transitions */
    --ease:           cubic-bezier(0.25, 1, 0.5, 1);
    --trans:          0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* prevent any element from causing horizontal scroll */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Global responsive images & overflow prevention */
img { max-width: 100%; height: auto; display: block; }
a  { -webkit-tap-highlight-color: transparent; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* Prevent grid/flex children from overflowing their container */
.hero-grid > *,
.modules-grid-3d > *,
.stats-grid > *,
.dept-grid > *,
.issue-cards > *,
.feature-layout > *,
.security-layout > * { min-width: 0; }

/* =========================================================
   SCROLLBAR
   ========================================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* =========================================================
   SELECTION
   ========================================================= */
::selection { background: rgba(6, 182, 212, 0.25); color: var(--cyan); }

/* =========================================================
   TYPOGRAPHY UTILITIES
   ========================================================= */
.gradient-text-cyan {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-text-purple {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-text-hero {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.neon-glow-cyan { text-shadow: 0 0 20px rgba(6, 182, 212, 0.6); }
.neon-glow-purple { text-shadow: 0 0 20px rgba(139, 92, 246, 0.6); }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px var(--cyan-glow); }
    50%       { box-shadow: 0 0 35px var(--cyan-glow), 0 0 60px rgba(6,182,212,0.15); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up    { animation: fadeInUp 0.7s var(--ease) forwards; opacity: 0; }
.fade-in-left  { animation: fadeInLeft 0.7s var(--ease) forwards; opacity: 0; }
.fade-in-right { animation: fadeInRight 0.7s var(--ease) forwards; opacity: 0; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* =========================================================
   STARFIELD CANVAS
   ========================================================= */
#starfield {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(8, 13, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--trans);
}
header.scrolled {
    background: rgba(8, 13, 26, 0.98);
    border-bottom-color: rgba(6, 182, 212, 0.15);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
/* ── Logo ─────────────────────────────── */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.header-logo-img {
    height: 48px;
    width: auto;
    display: block;
    transition: var(--trans);
    transform-origin: left center;
}
.header-logo:hover .header-logo-img {
    transform: scale(1.05);
    filter: brightness(1.08);
}

nav.desktop-nav { display: flex; align-items: center; gap: 4px; }
nav.desktop-nav a {
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--trans);
    white-space: nowrap;
}
nav.desktop-nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.header-cta {
    display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.btn-outline {
    padding: 9px 20px;
    font-size: 13.5px; font-weight: 600;
    color: var(--cyan);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 8px;
    background: transparent;
    text-decoration: none;
    transition: var(--trans);
    white-space: nowrap;
}
.btn-outline:hover { background: var(--cyan-subtle); border-color: var(--cyan); }
.btn-primary {
    padding: 9px 20px;
    font-size: 13.5px; font-weight: 600;
    color: #000;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 8px;
    text-decoration: none;
    transition: var(--trans);
    white-space: nowrap;
    box-shadow: 0 0 20px var(--cyan-glow);
}
.btn-primary:hover { box-shadow: 0 0 35px var(--cyan-glow); transform: translateY(-1px); }

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none; border: none;
    color: var(--text-secondary); cursor: pointer;
    padding: 8px; border-radius: 8px;
    transition: var(--trans);
}
.mobile-menu-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* Mobile sidebar */
.mobile-sidebar {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8,13,26,0.98);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 24px;
}
.mobile-sidebar.open { transform: translateX(0); }
.mobile-sidebar nav { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mobile-sidebar nav a {
    font-size: 20px; font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 12px;
    transition: var(--trans);
    width: 280px; text-align: center;
}
.mobile-sidebar nav a:hover { color: var(--cyan); background: var(--cyan-subtle); }
.mobile-close-btn {
    position: absolute; top: 24px; right: 24px;
    background: none; border: none;
    color: var(--text-secondary); cursor: pointer;
    font-size: 28px;
    transition: var(--trans);
}
.mobile-close-btn:hover { color: var(--text-primary); }

/* =========================================================
   SECTION UTILITIES
   ========================================================= */
section { position: relative; z-index: 10; overflow-x: hidden; }
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.section-label.cyan { color: var(--cyan); background: var(--cyan-subtle); border: 1px solid rgba(6,182,212,0.2); }
.section-label.purple { color: var(--purple); background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.2); }
.section-label.green { color: var(--green); background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); }
.section-label.orange { color: var(--orange); background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }
.section-label.blue { color: var(--blue); background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); }
.section-label.pink { color: var(--pink); background: rgba(236,72,153,0.08); border: 1px solid rgba(236,72,153,0.2); }

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}
/* Gradient BG matching login page */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 0% 50%, rgba(59,130,246,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 100% 30%, rgba(139,92,246,0.2) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 80%, rgba(6,182,212,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 20px;
    font-size: 12px; font-weight: 600;
    color: var(--green);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 24px;
}
.hero-badge .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: blink 1.5s infinite;
}
.hero-title {
    font-size: clamp(36px, 5.5vw, 68px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    color: var(--text-primary);
    margin-bottom: 24px;
}
.hero-title .line2 {
    display: block;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 520px;
}
.hero-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.hero-feature {
    display: flex; align-items: center; gap: 12px;
    font-size: 15px; color: var(--text-secondary);
}
.hero-feature .icon-wrap {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.hero-feature .icon-wrap.red    { background: rgba(239,68,68,0.15); color: #ef4444; }
.hero-feature .icon-wrap.purple { background: rgba(139,92,246,0.15); color: var(--purple); }
.hero-feature .icon-wrap.cyan   { background: var(--cyan-subtle); color: var(--cyan); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    font-size: 15px; font-weight: 700;
    color: #000;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 0 30px var(--cyan-glow);
    transition: var(--trans);
}
.hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px var(--cyan-glow); }
.hero-btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    font-size: 15px; font-weight: 700;
    color: var(--green);
    background: rgba(34,197,94,0.08);
    border: 1.5px solid rgba(34,197,94,0.35);
    border-radius: 10px;
    text-decoration: none;
    transition: var(--trans);
}
.hero-btn-secondary:hover { background: rgba(34,197,94,0.15); border-color: var(--green); transform: translateY(-2px); }

.hero-stats { display: flex; gap: 32px; }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-value { font-size: 26px; font-weight: 800; color: var(--text-primary); }
.hero-stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.hero-stat-sep { width: 1px; background: var(--border); align-self: stretch; }

/* Hero right - app mockup */
.hero-visual { position: relative; overflow: hidden; }
.hero-app-frame {
    background: #0f172a;
    border: 1px solid rgba(6,182,212,0.25);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(6,182,212,0.15), 0 40px 80px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
    width: 100%;
}
.app-frame-bar {
    background: #1e293b;
    padding: 12px 16px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid var(--border);
}
.app-frame-dot { width: 10px; height: 10px; border-radius: 50%; }
.app-frame-dot.red    { background: #ef4444; }
.app-frame-dot.yellow { background: #f59e0b; }
.app-frame-dot.green  { background: #22c55e; }
.app-frame-title {
    margin-left: 8px;
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
}
.app-frame-img { width: 100%; display: block; }

/* Floating badges on visual */
.float-badge {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    white-space: nowrap;
}
.float-badge .fb-icon { font-size: 18px; }
.float-badge .fb-text { display: flex; flex-direction: column; }
.float-badge .fb-val  { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.float-badge .fb-lbl  { font-size: 11px; color: var(--text-muted); }
.float-badge-1 { top: -16px; right: 10px;  animation: float 4s ease-in-out infinite 1s; }
.float-badge-2 { bottom: 24px; left: 10px; animation: float 5s ease-in-out infinite 0.5s; }

/* =========================================================
   TRUSTED BY STRIP
   ========================================================= */
.trust-strip {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.trust-inner {
    display: flex; align-items: center; justify-content: center;
    gap: 40px; flex-wrap: wrap;
}
.trust-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--text-muted);
}
.trust-item i { color: var(--cyan); }
.trust-divider { width: 1px; height: 20px; background: var(--border); }

/* =========================================================
   STATS SECTION
   ========================================================= */
.stats-section { padding: 80px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.stat-card {
    background: var(--bg-card);
    padding: 40px 32px;
    text-align: center;
    transition: var(--trans);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    opacity: 0;
    transition: var(--trans);
}
.stat-card.cyan::before   { background: var(--cyan); }
.stat-card.blue::before   { background: var(--blue); }
.stat-card.purple::before { background: var(--purple); }
.stat-card.green::before  { background: var(--green); }
.stat-card:hover::before  { opacity: 1; }
.stat-card:hover { background: var(--bg-card-hover); }

.stat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
}
.stat-icon.cyan   { background: var(--cyan-subtle); color: var(--cyan); box-shadow: 0 0 20px var(--cyan-glow); }
.stat-icon.blue   { background: rgba(59,130,246,0.1); color: var(--blue); }
.stat-icon.purple { background: rgba(139,92,246,0.1); color: var(--purple); }
.stat-icon.green  { background: rgba(34,197,94,0.1); color: var(--green); }

.stat-number { font-size: 44px; font-weight: 900; color: var(--text-primary); letter-spacing: -1px; line-height: 1; }
.stat-unit   { font-size: 22px; font-weight: 700; }
.stat-label  { font-size: 14px; color: var(--text-muted); margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================================
   MODULES SECTION — 3D ANIMATED
   ========================================================= */
.modules-section { padding: 100px 0; position: relative; overflow: hidden; }
.modules-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(6,182,212,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.modules-header { text-align: center; margin-bottom: 56px; }
.modules-header .section-desc { margin: 0 auto; max-width: 600px; }

/* Stats Bar */
.modules-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 36px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 18px 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
}
.mstat { text-align: center; padding: 0 32px; }
.mstat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}
.mstat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.mstat-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.1); flex-shrink: 0; }

/* 3D Grid */
.modules-grid-3d {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    perspective: 1200px;
}

/* 3D Card */
.mod3d-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 26px 22px 20px;
    cursor: default;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), box-shadow 0.4s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}
.mod3d-card:hover {
    transform: translateY(-8px) rotateX(3deg) rotateY(-2deg) scale(1.02);
}
.mod3d-card.cyan:hover   { border-color: rgba(6,182,212,0.5); box-shadow: 0 20px 60px -10px rgba(6,182,212,0.3), 0 0 0 1px rgba(6,182,212,0.2); }
.mod3d-card.blue:hover   { border-color: rgba(59,130,246,0.5); box-shadow: 0 20px 60px -10px rgba(59,130,246,0.3), 0 0 0 1px rgba(59,130,246,0.2); }
.mod3d-card.purple:hover { border-color: rgba(139,92,246,0.5); box-shadow: 0 20px 60px -10px rgba(139,92,246,0.3), 0 0 0 1px rgba(139,92,246,0.2); }
.mod3d-card.red:hover    { border-color: rgba(239,68,68,0.5); box-shadow: 0 20px 60px -10px rgba(239,68,68,0.3), 0 0 0 1px rgba(239,68,68,0.2); }
.mod3d-card.orange:hover { border-color: rgba(245,158,11,0.5); box-shadow: 0 20px 60px -10px rgba(245,158,11,0.3), 0 0 0 1px rgba(245,158,11,0.2); }
.mod3d-card.green:hover  { border-color: rgba(34,197,94,0.5); box-shadow: 0 20px 60px -10px rgba(34,197,94,0.3), 0 0 0 1px rgba(34,197,94,0.2); }
.mod3d-card.pink:hover   { border-color: rgba(236,72,153,0.5); box-shadow: 0 20px 60px -10px rgba(236,72,153,0.3), 0 0 0 1px rgba(236,72,153,0.2); }

/* Top Glow */
.mod3d-glow {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
    opacity: 0.7;
    transition: opacity 0.3s ease, height 0.3s ease;
}
.mod3d-card:hover .mod3d-glow { opacity: 1; height: 3px; }
.mod3d-glow.cyan   { background: linear-gradient(90deg, transparent, #06b6d4, transparent); }
.mod3d-glow.blue   { background: linear-gradient(90deg, transparent, #3b82f6, transparent); }
.mod3d-glow.purple { background: linear-gradient(90deg, transparent, #8b5cf6, transparent); }
.mod3d-glow.red    { background: linear-gradient(90deg, transparent, #ef4444, transparent); }
.mod3d-glow.orange { background: linear-gradient(90deg, transparent, #f59e0b, transparent); }
.mod3d-glow.green  { background: linear-gradient(90deg, transparent, #22c55e, transparent); }
.mod3d-glow.pink   { background: linear-gradient(90deg, transparent, #ec4899, transparent); }

/* Shimmer Animation */
.mod3d-shimmer {
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
    transition: left 0.6s ease;
    pointer-events: none;
}
.mod3d-card:hover .mod3d-shimmer { left: 160%; }

/* Card Top Row */
.mod3d-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.mod3d-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.mod3d-icon.cyan   { background: rgba(6,182,212,0.12); color: #06b6d4; border: 1px solid rgba(6,182,212,0.2); }
.mod3d-icon.blue   { background: rgba(59,130,246,0.12); color: #3b82f6; border: 1px solid rgba(59,130,246,0.2); }
.mod3d-icon.purple { background: rgba(139,92,246,0.12); color: #8b5cf6; border: 1px solid rgba(139,92,246,0.2); }
.mod3d-icon.red    { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.mod3d-icon.orange { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.mod3d-icon.green  { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.mod3d-icon.pink   { background: rgba(236,72,153,0.12); color: #ec4899; border: 1px solid rgba(236,72,153,0.2); }

/* Feature Count Badge */
.mod3d-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 9px;
    border-radius: 20px;
    text-transform: uppercase;
}
.mod3d-badge.cyan   { background: rgba(6,182,212,0.1); color: #06b6d4; border: 1px solid rgba(6,182,212,0.2); }
.mod3d-badge.blue   { background: rgba(59,130,246,0.1); color: #3b82f6; border: 1px solid rgba(59,130,246,0.2); }
.mod3d-badge.purple { background: rgba(139,92,246,0.1); color: #8b5cf6; border: 1px solid rgba(139,92,246,0.2); }
.mod3d-badge.red    { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.mod3d-badge.orange { background: rgba(245,158,11,0.1); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.mod3d-badge.green  { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.mod3d-badge.pink   { background: rgba(236,72,153,0.1); color: #ec4899; border: 1px solid rgba(236,72,153,0.2); }

/* Title & Description */
.mod3d-title { font-size: 14.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
.mod3d-desc  { font-size: 11.5px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }

/* Feature List */
.mod3d-list { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.mod3d-list li {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-secondary);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mod3d-list li:last-child { border-bottom: none; }
.mod3d-list li i { font-size: 7px; opacity: 0.5; flex-shrink: 0; }
.mod3d-card.cyan   .mod3d-list li i { color: #06b6d4; opacity: 0.8; }
.mod3d-card.blue   .mod3d-list li i { color: #3b82f6; opacity: 0.8; }
.mod3d-card.purple .mod3d-list li i { color: #8b5cf6; opacity: 0.8; }
.mod3d-card.red    .mod3d-list li i { color: #ef4444; opacity: 0.8; }
.mod3d-card.orange .mod3d-list li i { color: #f59e0b; opacity: 0.8; }
.mod3d-card.green  .mod3d-list li i { color: #22c55e; opacity: 0.8; }
.mod3d-card.pink   .mod3d-list li i { color: #ec4899; opacity: 0.8; }

/* Footer Tags */
.mod3d-footer { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.mod3d-tag {
    font-size: 10px; font-weight: 600;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 3px 8px;
    letter-spacing: 0.3px;
}



/* =========================================================
   FEATURE SPOTLIGHT (alternating layout)
   ========================================================= */
.feature-section { padding: 80px 0; }
.feature-section + .feature-section { padding-top: 0; }
.feature-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.feature-layout.reverse { direction: rtl; }
.feature-layout.reverse > * { direction: ltr; }

.feature-content { display: flex; flex-direction: column; }
.feature-list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.feature-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--trans);
}
.feature-item:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.feature-item-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.feature-item-text h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.feature-item-text p  { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

/* Feature visual card */
.feature-visual {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transition: var(--trans);
}
.feature-visual:hover { transform: translateY(-6px); box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.feature-visual img { width: 100%; height: auto; display: block; }

/* Asset stats mini bar */
.asset-stats-bar {
    display: flex; gap: 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.asset-stat-pill {
    padding: 12px 16px;
    display: flex; flex-direction: column; gap: 2px;
    border-right: 1px solid var(--border);
    min-width: 100px; flex-shrink: 0;
}
.asset-stat-pill:last-child { border-right: none; }
.asp-val  { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.asp-lbl  { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.asp-cyan    { border-top: 2px solid var(--cyan); }
.asp-green   { border-top: 2px solid var(--green); }
.asp-blue    { border-top: 2px solid var(--blue); }
.asp-orange  { border-top: 2px solid var(--orange); }
.asp-purple  { border-top: 2px solid var(--purple); }
.asp-red     { border-top: 2px solid var(--red); }

/* Filter bar mock */
.filter-bar-mock {
    display: flex; gap: 8px; padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.filter-pill {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 11.5px; color: var(--text-muted);
    background: var(--bg-card);
    white-space: nowrap;
    display: flex; align-items: center; gap: 5px;
}
.filter-pill i { font-size: 10px; opacity: 0.7; }

/* =========================================================
   DASHBOARD PREVIEW SECTION
   ========================================================= */
.dashboard-section {
    padding: 100px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.dashboard-section::before {
    content: '';
    position: absolute;
    top: -50%; left: 25%;
    width: 50%; height: 100%;
    background: radial-gradient(ellipse, rgba(139,92,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.dashboard-header { text-align: center; margin-bottom: 60px; }
.dash-frame {
    background: var(--bg-card);
    border: 1px solid rgba(6,182,212,0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(6,182,212,0.1), 0 40px 100px rgba(0,0,0,0.5);
}
.dash-topbar {
    background: #1e293b;
    padding: 14px 20px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--border);
}
.dash-topbar .db-dots { display: flex; gap: 6px; }
.dash-topbar .db-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dash-topbar-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-left: auto; margin-right: auto; }
.dash-img-wrap img { width: 100%; display: block; }

/* Issue status cards row */
.issue-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 32px;
}
.issue-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    transition: var(--trans);
}
.issue-card:hover { transform: translateY(-3px); }
.ic-num  { font-size: 28px; font-weight: 900; color: var(--text-primary); }
.ic-lbl  { font-size: 11px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.8px; }
.ic-total { border-top: 2px solid var(--blue); }
.ic-emerg { border-top: 2px solid var(--red); }
.ic-pend  { border-top: 2px solid var(--orange); }
.ic-prog  { border-top: 2px solid var(--cyan); }
.ic-await { border-top: 2px solid var(--purple); }
.ic-done  { border-top: 2px solid var(--green); }

/* =========================================================
   DEPARTMENTS SECTION
   ========================================================= */
.dept-section { padding: 100px 0; }
.dept-header { text-align: center; margin-bottom: 60px; }
.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.dept-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 20px;
    display: flex; align-items: center; gap: 16px;
    transition: var(--trans);
    cursor: default;
}
.dept-card:hover { background: var(--bg-card-hover); transform: translateY(-3px); }
.dept-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.dept-info h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.dept-info p  { font-size: 11.5px; color: var(--text-muted); }

/* =========================================================
   SECURITY SECTION
   ========================================================= */
.security-section {
    padding: 100px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.security-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 40%; height: 100%;
    background: radial-gradient(ellipse at right, rgba(139,92,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.security-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.security-cards { display: flex; flex-direction: column; gap: 14px; }
.security-card {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: var(--trans);
}
.security-card:hover { border-color: rgba(139,92,246,0.3); background: var(--bg-card-hover); }
.sec-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(139,92,246,0.1);
    color: var(--purple);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.sec-text h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.sec-text p  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Access level badges */
.access-visual {
    background: var(--bg-card);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 0 40px rgba(139,92,246,0.08);
}
.access-title { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.access-levels { display: flex; flex-direction: column; gap: 10px; }
.access-level {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.al-badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    min-width: 68px; text-align: center;
}
.al-4 { background: rgba(239,68,68,0.2); color: var(--red); }
.al-3 { background: rgba(245,158,11,0.2); color: var(--orange); }
.al-2 { background: rgba(59,130,246,0.2); color: var(--blue); }
.al-1 { background: rgba(34,197,94,0.2); color: var(--green); }
.al-name { font-size: 13.5px; font-weight: 600; color: var(--text-primary); flex: 1; }
.al-perms { font-size: 11.5px; color: var(--text-muted); }

.audit-trail {
    margin-top: 20px;
    background: #000;
    border-radius: 12px;
    padding: 16px;
    font-family: 'Courier New', monospace;
}
.audit-line {
    font-size: 11.5px;
    margin-bottom: 6px;
    display: flex; gap: 10px;
}
.audit-time  { color: var(--text-muted); flex-shrink: 0; }
.audit-event { color: #4ade80; }
.audit-event.warn { color: var(--orange); }
.audit-event.info { color: var(--cyan); }

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 50%, rgba(6,182,212,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.cta-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(6,182,212,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6,182,212,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.cta-title { font-size: clamp(32px, 5vw, 52px); font-weight: 900; color: var(--text-primary); letter-spacing: -1px; margin-bottom: 16px; }
.cta-desc  { font-size: 17px; color: var(--text-secondary); margin: 0 auto 48px; max-width: 520px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-btn-main {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px;
    font-size: 16px; font-weight: 700;
    color: #000;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 0 40px var(--cyan-glow);
    transition: var(--trans);
}
.cta-btn-main:hover { transform: translateY(-2px); box-shadow: 0 0 60px var(--cyan-glow); }
.cta-btn-wa {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px;
    font-size: 16px; font-weight: 700;
    color: var(--green);
    background: rgba(34,197,94,0.08);
    border: 1.5px solid rgba(34,197,94,0.35);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--trans);
}
.cta-btn-wa:hover { background: rgba(34,197,94,0.15); border-color: var(--green); transform: translateY(-2px); }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 80px 0 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--accent), transparent);
    opacity: 0.6;
}

/* ── Centered brand block ── */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    margin-bottom: 48px;
}
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.footer-logo-img {
    height: 90px;
    width: auto;
    display: block;
}
.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.footer-tagline::before,
.footer-tagline::after {
    content: '';
    width: 32px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan));
    opacity: 0.5;
}
.footer-tagline::after { background: linear-gradient(270deg, transparent, var(--cyan)); }
.footer-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 500px;
    text-align: center;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social {
    width: 38px; height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--trans);
    font-size: 14px;
}
.footer-social:hover {
    color: var(--cyan);
    border-color: rgba(6,182,212,0.4);
    background: var(--cyan-subtle);
    transform: translateY(-2px);
}

/* ── Gradient divider ── */
.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
    margin-bottom: 40px;
}

/* ── Centered nav pills ── */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.footer-nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 7px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: var(--trans);
    letter-spacing: 0.3px;
}
.footer-nav a:hover {
    color: var(--cyan);
    border-color: rgba(6,182,212,0.35);
    background: var(--cyan-subtle);
    transform: translateY(-1px);
}

/* ── Centered contact row ── */
.footer-contact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 32px;
    margin-bottom: 52px;
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}
.footer-contact-item i {
    color: var(--cyan);
    flex-shrink: 0;
    width: 14px;
    text-align: center;
    font-size: 13px;
}
.footer-contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--trans);
}
.footer-contact-item a:hover { color: var(--cyan); }

/* ── Footer bottom bar ── */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    font-size: 12.5px;
    color: var(--text-muted);
    text-align: center;
}
.footer-bottom-links {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--trans);
    padding: 2px 10px;
}
.footer-bottom-links a:hover { color: var(--cyan); }
.footer-bottom-links .sep {
    color: var(--border);
    user-select: none;
}

/* legacy — not used anymore but kept for safety */
.footer-grid { display: contents; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: var(--trans); }
.footer-col ul li a:hover { color: var(--cyan); }

/* =========================================================
   ZOOM IMAGE
   ========================================================= */
.zoom-img-wrap { overflow: hidden; }
.zoom-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.zoom-img-wrap:hover img { transform: scale(1.05); }

/* =========================================================
   RESPONSIVE  — mobile-first breakpoints
   ========================================================= */

/* ── 1024px  Tablet landscape / small laptop ── */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }

    /* Hero */
    .hero { padding: 90px 0 60px; overflow: hidden; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { order: -1; max-width: 520px; margin: 0 auto; width: 100%; overflow: visible; }
    .hero-app-frame { width: 100%; }
    .hero-desc { max-width: 100%; }
    .hero-stats { gap: 24px; }

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

    /* Modules */
    .modules-grid-3d { grid-template-columns: repeat(2, 1fr); }
    .modules-section { padding: 80px 0; }
    .modules-stats-bar { padding: 14px 20px; }
    .mstat { padding: 0 20px; }

    /* Feature spotlights */
    .feature-layout { grid-template-columns: 1fr; gap: 40px; }
    .feature-layout.reverse { direction: ltr; }
    .feature-layout.reverse > * { direction: ltr; }

    /* Departments */
    .dept-grid { grid-template-columns: repeat(2, 1fr); }
    .dept-section { padding: 80px 0; }

    /* Security */
    .security-layout { grid-template-columns: 1fr; gap: 40px; }
    .security-section { padding: 80px 0; }

    /* Dashboard */
    .dashboard-section { padding: 80px 0; }
    .issue-cards { grid-template-columns: repeat(3, 1fr); }

    /* CTA */
    .cta-section { padding: 80px 0; }

    /* Footer */
    .footer-contact-row { gap: 10px 24px; }
}

/* ── 768px  Tablet portrait / large phone ── */
@media (max-width: 768px) {
    /* Base */
    .container { padding: 0 16px; }
    html { font-size: 15px; }

    /* Prevent ALL horizontal overflow */
    body { overflow-x: hidden; }
    section, header, footer { overflow-x: hidden; }

    /* Disable side-entry animations that cause overflow */
    .fade-in-left, .fade-in-right {
        animation: fadeInUp 0.7s var(--ease) forwards;
        opacity: 0;
    }

    /* Header */
    nav.desktop-nav { display: none; }
    .header-cta .btn-outline { display: none; }
    .mobile-menu-btn { display: flex; }
    .header-inner { padding: 0 16px; gap: 16px; }

    /* ── Hero — fully centered ── */
    .hero { padding: 80px 0 48px; overflow: hidden; }
    .hero-visual { max-width: 100%; overflow: hidden; position: relative; }
    .hero-app-frame { width: 100%; transform: none !important; }
    .tilt-card { transform: none !important; }
    .hero-grid > div:first-child { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero-badge { justify-content: center; }
    .hero-title { text-align: center; }
    .hero-desc { text-align: center; font-size: 15px; margin: 0 auto 28px; }
    .hero-features { align-items: center; }
    .hero-feature { text-align: left; }
    .hero-actions { justify-content: center; gap: 12px; }
    .hero-btn-primary, .hero-btn-secondary { padding: 13px 22px; font-size: 14px; }
    .hero-stats { justify-content: center; gap: 16px; flex-wrap: wrap; }
    .hero-stat { align-items: center; text-align: center; }
    .hero-stat-value { font-size: 22px; }
    .float-badge-1, .float-badge-2 { display: none; }

    /* Trust strip */
    .trust-inner { gap: 20px; justify-content: center; }
    .trust-divider { display: none; }

    /* ── Stats ── */
    .stats-section { padding: 60px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
    .stat-card { padding: 28px 20px; text-align: center; }
    .stat-number { font-size: 36px; }

    /* ── Modules ── */
    .modules-section { padding: 60px 0; }
    .modules-header { margin-bottom: 40px; text-align: center; }
    .modules-header .section-label { display: inline-flex; }
    .modules-grid-3d { grid-template-columns: 1fr 1fr; gap: 12px; }
    .modules-stats-bar { flex-wrap: wrap; gap: 8px; padding: 16px; }
    .mstat { padding: 8px 16px; }
    .mstat-sep { display: none; }
    .mod3d-card { text-align: center; }
    .mod3d-top { flex-direction: column; align-items: center; gap: 8px; }
    .mod3d-title { text-align: center; }
    .mod3d-desc { text-align: center; }
    .mod3d-list li { justify-content: center; }
    .mod3d-footer { justify-content: center; }

    /* ── Section labels & titles — globally centered on mobile ── */
    .section-label { display: inline-flex; }
    .section-title { font-size: clamp(24px, 6vw, 36px); text-align: center; }
    .section-desc { font-size: 15px; text-align: center; margin-left: auto; margin-right: auto; }

    /* ── Feature spotlights ── */
    .feature-section { padding: 60px 0; }
    .feature-content { align-items: center; text-align: center; }
    .feature-content .section-label { display: inline-flex; }
    .feature-content .section-title { text-align: center; }
    .feature-content .section-desc { text-align: center; }
    .feature-list { width: 100%; }
    .feature-item { text-align: left; } /* keep feature item text left for readability */

    /* ── Dashboard ── */
    .dashboard-section { padding: 60px 0; }
    .dashboard-header { margin-bottom: 40px; text-align: center; }
    .issue-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* ── Departments ── */
    .dept-section { padding: 60px 0; }
    .dept-header { margin-bottom: 40px; text-align: center; }
    .dept-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dept-card { padding: 18px 14px; gap: 12px; justify-content: center; }

    /* ── Security ── */
    .security-section { padding: 60px 0; }
    .security-section .feature-content { align-items: center; text-align: center; }
    .security-cards { width: 100%; }
    .audit-line { font-size: 10.5px; }

    /* ── Reports ── */
    .reports-section { padding: 60px 0; }

    /* ── CTA ── */
    .cta-section { padding: 60px 0; }
    .cta-title { font-size: clamp(26px, 7vw, 40px); text-align: center; }
    .cta-desc { font-size: 15px; text-align: center; }
    .cta-buttons { justify-content: center; }
    .cta-btn-main, .cta-btn-wa { padding: 14px 24px; font-size: 15px; }

    /* ── Footer ── */
    .footer-brand { margin-bottom: 36px; }
    .footer-contact-row { flex-direction: column; align-items: center; gap: 10px; }
    .footer-nav { gap: 8px; justify-content: center; }
    .footer-nav a { padding: 6px 14px; font-size: 12px; }
}

/* ── 480px  Mobile ── */
@media (max-width: 480px) {
    /* Base */
    .container { padding: 0 14px; }

    /* ── Hero ── */
    .hero { padding: 72px 0 40px; min-height: auto; }
    .hero-title { font-size: clamp(28px, 9vw, 42px); letter-spacing: -0.5px; }
    .hero-desc { font-size: 14.5px; margin-bottom: 28px; }
    .hero-badge { font-size: 11px; }
    .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
    .hero-btn-primary, .hero-btn-secondary { justify-content: center; padding: 14px 20px; width: 100%; }
    .hero-stats { gap: 12px; justify-content: center; }
    .hero-stat-sep { display: none; }
    .hero-stat { align-items: center; }

    /* ── Stats ── */
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 24px 20px; text-align: center; }
    .stat-number { font-size: 40px; }
    .stat-icon { margin: 0 auto 16px; }

    /* ── Modules ── */
    .modules-grid-3d { grid-template-columns: 1fr; }
    .mod3d-card { text-align: center; padding: 24px 18px 18px; }
    .mod3d-top { flex-direction: column; align-items: center; gap: 8px; }
    .mod3d-title { text-align: center; font-size: 15px; }
    .mod3d-desc { text-align: center; }
    .mod3d-list li { justify-content: center; text-align: center; }
    .mod3d-footer { justify-content: center; }
    .modules-stats-bar { padding: 14px 12px; border-radius: 12px; }
    .mstat-num { font-size: 18px; }
    .mstat-label { font-size: 10px; }

    /* ── Issue cards ── */
    .issue-cards { grid-template-columns: repeat(2, 1fr); }
    .ic-num { font-size: 24px; }
    .ic-lbl { font-size: 10px; }

    /* ── Departments ── */
    .dept-grid { grid-template-columns: 1fr; }
    .dept-card { justify-content: flex-start; }

    /* ── Feature items ── */
    .feature-item { flex-direction: row; gap: 12px; text-align: left; }
    .feature-item-icon { width: 36px; height: 36px; flex-shrink: 0; }

    /* ── Access levels ── */
    .access-level { flex-wrap: wrap; gap: 8px; }
    .al-perms { width: 100%; }

    /* ── CTA ── */
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-btn-main, .cta-btn-wa { justify-content: center; width: 100%; }

    /* ── Footer ── */
    .footer-nav { gap: 6px; }
    .footer-nav a { padding: 5px 12px; font-size: 11.5px; }
    .footer-bottom-links { gap: 4px; }
    .footer-bottom-links a { padding: 2px 6px; font-size: 11.5px; }
}

/* ── 375px  Small phones (iPhone SE, etc.) ── */
@media (max-width: 375px) {
    .container { padding: 0 12px; }
    .hero-title { font-size: clamp(24px, 10vw, 34px); }
    .hero-stat-value { font-size: 20px; }
    .stat-number { font-size: 34px; }
    .modules-grid-3d { grid-template-columns: 1fr; }
    .dept-grid { grid-template-columns: 1fr; }
    .issue-cards { grid-template-columns: 1fr 1fr; }
    .logo-name { font-size: 16px; }
    .logo-sub { display: none; }
    .section-title { font-size: clamp(22px, 8vw, 30px); }
}

