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

:root {
    --blue: #1B98E0;
    --teal: #00C9A7;
    --dark: #0A1628;
    --dark-2: #111D33;
    --gray-100: #f7f8fa;
    --gray-200: #e9ecf0;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--blue), var(--teal));
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
    --shadow-md: 0 8px 30px rgba(10, 22, 40, 0.1);
    --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

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

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1600;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--gradient);
    box-shadow: 0 0 18px rgba(27, 152, 224, 0.42);
    transition: width 0.12s linear;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(27, 152, 224, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(27, 152, 224, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-nav {
    padding: 10px 20px;
    background: var(--gradient);
    color: var(--white) !important;
    border-radius: 50px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(27, 152, 224, 0.3);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(27, 152, 224, 0.1), rgba(0, 201, 167, 0.1));
    color: var(--blue);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    overflow: visible;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

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

.logo {
    display: inline-flex;
    align-items: center;
}

html[dir="rtl"] .logo {
    /* no transform needed — flex handles RTL layout */
}

.logo-img {
    height: 66px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    margin: -8px 0;
}

/* footer-logo is defined in the footer section below */

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    flex-wrap: nowrap;
}

.nav-links a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--white);
    position: relative;
    white-space: nowrap;
}

.navbar.scrolled .nav-links a {
    color: var(--dark);
}

.navbar.scrolled .nav-links .btn-nav {
    color: var(--white) !important;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

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

.hamburger span {
    width: 28px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger span {
    background: var(--dark);
}

.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 168px;
    flex-shrink: 0;
    z-index: 40;
    padding: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 28px rgba(10, 22, 40, 0.14);
}

.lang-toggle {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 168px;
    padding: 11px 50px 11px 18px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-family: 'Poppins', 'Noto Sans Arabic', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.lang-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.lang-toggle-label {
    display: block;
    white-space: nowrap;
    font-family: inherit;
}

/* Force Arabic font fallback globally on interactive UI when in RTL */
html[dir="rtl"] .lang-toggle,
html[dir="rtl"] .lang-toggle-label,
html[dir="rtl"] .lang-option {
    font-family: 'Noto Sans Arabic', 'Poppins', sans-serif;
}

.lang-select-icon {
    position: absolute;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.84);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, color 0.25s ease;
    pointer-events: none;
}

.lang-switcher:hover .lang-toggle {
    background: rgba(255, 255, 255, 0.12);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    padding: 8px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(10, 22, 40, 0.08);
    box-shadow: 0 18px 42px rgba(10, 22, 40, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 1200;
}

.lang-option {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: var(--dark);
    font-family: 'Poppins', 'Noto Sans Arabic', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-option:hover {
    background: var(--gray-100);
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(27, 152, 224, 0.12), rgba(0, 201, 167, 0.12));
}

.lang-switcher.open .lang-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-switcher.open .lang-select-icon {
    transform: rotate(180deg);
}

.navbar.scrolled .lang-toggle {
    background: linear-gradient(135deg, #ffffff, #f6f9fc);
    color: var(--dark);
}

.navbar.scrolled .lang-switcher {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 251, 0.92));
    border-color: rgba(27, 152, 224, 0.12);
    box-shadow: 0 10px 24px rgba(10, 22, 40, 0.08);
}

.navbar.scrolled .lang-select-icon {
    background: rgba(10, 22, 40, 0.06);
    color: rgba(10, 22, 40, 0.66);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, #0d2137 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(27, 152, 224, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(27, 152, 224, 0.15);
    border: 1px solid rgba(27, 152, 224, 0.3);
    color: var(--blue);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 760px;
}

.hero-highlight {
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(6, 15, 32, 0.18);
    backdrop-filter: blur(14px);
}

.hero-highlight-title {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.hero-highlight-text {
    display: block;
    font-size: 0.94rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-note {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-home-graphic {
    position: relative;
    width: 400px;
    height: 400px;
}

.house-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    animation: float 6s ease-in-out infinite;
}

.floating-icon {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px;
    animation: float 4s ease-in-out infinite;
}

.fi-1 { top: 10%; left: 5%; animation-delay: 0s; }
.fi-2 { top: 5%; right: 10%; animation-delay: 1s; }
.fi-3 { bottom: 15%; left: 0%; animation-delay: 2s; }
.fi-4 { bottom: 10%; right: 5%; animation-delay: 3s; }

.pulse-dot {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; r: 5; }
    50% { opacity: 0.5; r: 8; }
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.12); }
    50% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

@keyframes orbitDrift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(10px, -14px, 0); }
}

@keyframes cardRefresh {
    0% { transform: translateY(8px); opacity: 0.72; }
    100% { transform: translateY(0); opacity: 1; }
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* ===== Live Experience ===== */
.experience {
    --scene-primary: #1B98E0;
    --scene-secondary: #00C9A7;
    --scene-primary-soft: rgba(27, 152, 224, 0.34);
    --scene-secondary-soft: rgba(0, 201, 167, 0.22);
    position: relative;
    padding: 110px 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(27, 152, 224, 0.12), transparent 34%),
        radial-gradient(circle at 86% 22%, rgba(0, 201, 167, 0.12), transparent 30%),
        linear-gradient(180deg, #f5fbff 0%, #ffffff 52%, #f3fbf8 100%);
    overflow: hidden;
}

.experience::before,
.experience::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(8px);
}

.experience::before {
    width: 420px;
    height: 420px;
    top: -140px;
    left: -120px;
    background: radial-gradient(circle, rgba(27, 152, 224, 0.16) 0%, transparent 72%);
}

.experience::after {
    width: 360px;
    height: 360px;
    bottom: -140px;
    right: -100px;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.14) 0%, transparent 72%);
}

.experience[data-scene="security"] {
    --scene-primary: #00C9A7;
    --scene-secondary: #1B98E0;
    --scene-primary-soft: rgba(0, 201, 167, 0.34);
    --scene-secondary-soft: rgba(27, 152, 224, 0.24);
}

.experience[data-scene="eco"] {
    --scene-primary: #6DCB77;
    --scene-secondary: #00C9A7;
    --scene-primary-soft: rgba(109, 203, 119, 0.34);
    --scene-secondary-soft: rgba(0, 201, 167, 0.22);
}

.experience-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.experience-copy {
    display: grid;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.experience-copy .section-tag {
    margin: 0 auto;
}

.experience-copy h2 {
    font-size: clamp(2.35rem, 5vw, 3.35rem);
    margin-bottom: 0;
}

.experience-copy > p {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 auto;
}

.scene-switches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.scene-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.scene-switch:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.scene-switch.active {
    color: var(--white);
    border-color: transparent;
    background: linear-gradient(135deg, var(--scene-primary), var(--scene-secondary));
    box-shadow: 0 12px 26px rgba(10, 22, 40, 0.24);
}

.scene-story {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(17, 29, 51, 0.08);
    box-shadow: 0 22px 40px rgba(10, 22, 40, 0.08);
    backdrop-filter: blur(12px);
}

.scene-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(27, 152, 224, 0.2), rgba(0, 201, 167, 0.16));
    border: 1px solid rgba(157, 222, 255, 0.16);
    color: #dff7ff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0;
}

.scene-story h3 {
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.scene-story p {
    color: var(--gray-500);
    margin: 0;
}

.experience-stage {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.live-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.88fr);
    gap: 20px;
}

.live-dashboard-main {
    display: grid;
    gap: 18px;
}

.experience-side-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.live-panel {
    position: relative;
    padding: 34px;
    border-radius: 38px;
    background:
        linear-gradient(135deg, rgba(6, 18, 34, 0.98), rgba(14, 28, 48, 0.96)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    color: var(--white);
    box-shadow: 0 34px 72px rgba(10, 22, 40, 0.24);
    overflow: hidden;
    isolation: isolate;
}

.live-dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 26px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-dashboard-story {
    max-width: 680px;
}

.live-dashboard-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.live-dashboard-story h3 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.06;
    margin-bottom: 10px;
}

.live-dashboard-story p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.live-dashboard-toolbar {
    display: grid;
    justify-items: end;
    gap: 14px;
}

.scene-switches-panel {
    justify-content: flex-end;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
}

.live-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.08), transparent 28%),
        radial-gradient(circle at 82% 14%, var(--scene-primary-soft), transparent 24%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.02), transparent 44%);
    z-index: -2;
}

.live-panel::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: -1;
}

.live-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

.live-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--scene-primary), var(--scene-secondary));
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.04);
    animation: livePulse 2.4s ease-in-out infinite;
}

.live-status-time {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
}

.live-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.live-orbit-a {
    width: 240px;
    height: 240px;
    top: -60px;
    right: -48px;
    animation: orbitDrift 10s ease-in-out infinite;
}

.live-orbit-b {
    width: 180px;
    height: 180px;
    bottom: -40px;
    left: -30px;
    animation: orbitDrift 8s ease-in-out infinite reverse;
}

.live-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    margin-bottom: 0;
}

.zone-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 136px;
    padding: 24px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.zone-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.16);
}

.zone-card-main {
    min-height: 294px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
        radial-gradient(circle at 80% 16%, var(--scene-secondary-soft), transparent 24%),
        radial-gradient(circle at 18% 20%, rgba(255, 214, 102, 0.12), transparent 24%),
        rgba(255, 255, 255, 0.05);
}

.zone-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.56);
    margin-bottom: 14px;
}

.zone-card strong {
    font-size: 1.28rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.35;
}

.zone-card > span:not(.zone-label):last-child {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.92rem;
    margin-top: 8px;
}

.zone-ambient {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ambient-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
}

.ambient-pill-light {
    box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.08);
}

.ambient-pill-audio {
    box-shadow: inset 0 0 0 1px rgba(27, 152, 224, 0.08);
}

.live-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    padding: 16px 16px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.metric-card span {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.58);
    margin-bottom: 8px;
}

.metric-card strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.22rem;
    color: var(--white);
}

.metric-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    margin-top: 14px;
    overflow: hidden;
}

.metric-track span {
    display: block;
    width: 0;
    height: 100%;
    margin: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--scene-primary), var(--scene-secondary));
    box-shadow: 0 6px 18px rgba(27, 152, 224, 0.32);
    transition: width 0.7s ease, background 0.35s ease;
}

.live-panel.scene-refresh .zone-card,
.live-panel.scene-refresh .metric-card {
    animation: cardRefresh 0.5s ease;
}

.experience .daily-card {
    height: 100%;
    padding: 26px;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 34px rgba(5, 12, 24, 0.18);
}

.experience .weather-card,
.experience .prayer-card {
    overflow: hidden;
}

.experience .weather-card {
    background:
        radial-gradient(circle at 84% 16%, rgba(157, 222, 255, 0.18), transparent 22%),
        linear-gradient(160deg, rgba(14, 31, 52, 0.98), rgba(20, 38, 63, 0.95));
}

.experience .prayer-card {
    background:
        radial-gradient(circle at 12% 12%, rgba(27, 152, 224, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(233, 244, 252, 0.92));
}

.experience .weather-temp-block strong {
    font-size: 3.25rem;
}

.experience .weather-meta,
.experience .prayer-grid {
    gap: 12px;
}

.control-lab {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 0;
}

.control-card {
    min-height: 214px;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.control-card-light {
    background:
        radial-gradient(circle at 20% 24%, rgba(255, 214, 102, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.control-card-audio {
    background:
        radial-gradient(circle at 82% 18%, rgba(27, 152, 224, 0.18), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.control-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.control-eyebrow {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 6px;
}

.control-card-head strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--white);
}

.control-state {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.light-switch {
    width: 100%;
    min-height: 112px;
    padding: 18px 18px 18px 20px;
    border: none;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background:
        radial-gradient(circle at 24% 34%, rgba(255, 215, 128, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: var(--white);
    cursor: pointer;
    transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.light-switch:hover {
    transform: translateY(-2px);
}

.light-switch-core {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 232, 165, 0.98), rgba(255, 206, 94, 0.92));
    color: #8a5a00;
    box-shadow:
        0 0 0 10px rgba(255, 210, 92, 0.08),
        0 0 30px rgba(255, 206, 94, 0.34);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.light-switch-core::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 220, 140, 0.26);
    opacity: 0.9;
}

.light-switch-track {
    position: relative;
    width: 84px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.light-switch-thumb {
    position: absolute;
    top: 5px;
    left: 42px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--scene-primary), var(--scene-secondary));
    box-shadow: 0 8px 18px rgba(10, 22, 40, 0.28);
    transition: left 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.light-switch.is-off {
    background:
        radial-gradient(circle at 24% 34%, rgba(27, 152, 224, 0.1), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.light-switch.is-off .light-switch-core {
    background: linear-gradient(135deg, rgba(198, 206, 219, 0.92), rgba(141, 154, 171, 0.82));
    color: #314154;
    box-shadow:
        0 0 0 10px rgba(168, 180, 196, 0.06),
        0 0 20px rgba(125, 139, 158, 0.14);
}

.light-switch.is-off .light-switch-track {
    background: rgba(255, 255, 255, 0.08);
}

.light-switch.is-off .light-switch-thumb {
    left: 8px;
    transform: translateX(0);
}

.control-note {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
}

.audio-stage {
    min-height: 112px;
    padding: 18px 18px 14px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 70% 18%, rgba(27, 152, 224, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.audio-equalizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 74px;
}

.audio-bar {
    width: 12px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(27, 152, 224, 0.22));
    box-shadow: 0 8px 16px rgba(10, 22, 40, 0.12);
    transform-origin: bottom;
    transition: height 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

.audio-slider-wrap {
    display: block;
    margin-top: 16px;
}

.audio-slider-wrap span {
    display: inline-block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-family: 'Poppins', sans-serif;
    font-size: 0.86rem;
    font-weight: 500;
}

.audio-slider {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--scene-primary) 0%, var(--scene-secondary) 64%, rgba(255, 255, 255, 0.1) 64%);
    appearance: none;
    outline: none;
    cursor: pointer;
}

.audio-slider::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 999px;
    background: transparent;
}

.audio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-top: -5px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, var(--scene-primary), var(--scene-secondary));
    box-shadow: 0 8px 18px rgba(10, 22, 40, 0.26);
}

.audio-slider::-moz-range-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.audio-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, var(--scene-primary), var(--scene-secondary));
    box-shadow: 0 8px 18px rgba(10, 22, 40, 0.26);
}

.live-panel.lights-off .zone-card-main,
.live-panel.lights-off .ambient-pill-light {
    opacity: 0.82;
}

/* ===== Daily Pulse ===== */
.daily-pulse {
    position: relative;
    padding: 105px 0;
    background:
        radial-gradient(circle at 18% 14%, rgba(27, 152, 224, 0.1), transparent 30%),
        radial-gradient(circle at 88% 20%, rgba(0, 201, 167, 0.1), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f6fbff 48%, #f7fcfb 100%);
}

.daily-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
}

.daily-card {
    position: relative;
    padding: 32px;
    border-radius: 30px;
    border: 1px solid rgba(17, 29, 51, 0.08);
    overflow: hidden;
    box-shadow: 0 26px 48px rgba(10, 22, 40, 0.08);
}

.daily-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.36), transparent 32%);
}

.weather-card {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.98), rgba(20, 35, 56, 0.96));
    color: var(--white);
}

.prayer-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 255, 0.92));
}

.daily-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.daily-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--blue);
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.weather-card .daily-kicker {
    color: rgba(157, 222, 255, 0.88);
}

.daily-card-head h3 {
    font-size: 1.35rem;
    color: inherit;
}

.daily-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.74);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.prayer-card .daily-status {
    background: rgba(27, 152, 224, 0.08);
    color: var(--blue);
}

.weather-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.weather-temp-block strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 10px;
}

.weather-temp-block span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.weather-icon-shell {
    width: 112px;
    height: 112px;
    border-radius: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffd773;
    background:
        radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(135deg, rgba(255, 215, 115, 0.16), rgba(27, 152, 224, 0.16));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 16px 30px rgba(10, 22, 40, 0.18);
    flex-shrink: 0;
}

.weather-icon-shell.is-cloudy {
    color: #d9e6f2;
}

.weather-icon-shell.is-rainy {
    color: #82d0ff;
}

.weather-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.weather-meta-item {
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.weather-meta-item span {
    display: block;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.weather-meta-item strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--white);
}

.prayer-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(27, 152, 224, 0.1), rgba(0, 201, 167, 0.1));
    border: 1px solid rgba(27, 152, 224, 0.12);
    margin-bottom: 20px;
}

.prayer-next-label {
    display: block;
    color: var(--gray-500);
    font-size: 0.84rem;
    margin-bottom: 8px;
}

.prayer-next strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: var(--dark);
}

.prayer-next-time {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blue);
    white-space: nowrap;
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.prayer-item {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(17, 29, 51, 0.08);
}

.prayer-item-featured {
    background: linear-gradient(135deg, rgba(27, 152, 224, 0.08), rgba(0, 201, 167, 0.08));
}

.prayer-item.is-next {
    background: linear-gradient(135deg, rgba(27, 152, 224, 0.16), rgba(0, 201, 167, 0.16));
    border-color: rgba(27, 152, 224, 0.2);
    box-shadow: 0 12px 24px rgba(27, 152, 224, 0.08);
}

.prayer-item-wide {
    grid-column: span 2;
}

.prayer-item span {
    display: block;
    color: var(--gray-500);
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.prayer-item strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.12rem;
    color: var(--dark);
}

.daily-note {
    margin-top: 18px;
    color: var(--gray-500);
    font-size: 0.92rem;
}

/* ===== Services ===== */
.services {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(27, 152, 224, 0.08), rgba(0, 201, 167, 0.08));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 36px;
    height: 36px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.service-link {
    color: var(--blue);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

.service-link:hover {
    color: var(--teal);
}

/* ===== Solutions / Steps ===== */
.solutions {
    position: relative;
    padding: 100px 0;
    background:
        radial-gradient(circle at 14% 18%, rgba(27, 152, 224, 0.1), transparent 24%),
        radial-gradient(circle at 86% 20%, rgba(0, 201, 167, 0.1), transparent 26%),
        linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
    overflow: hidden;
}

.solutions::before,
.solutions::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
}

.solutions::before {
    width: 320px;
    height: 320px;
    top: 80px;
    left: -120px;
    background: radial-gradient(circle, rgba(27, 152, 224, 0.14), transparent 72%);
}

.solutions::after {
    width: 360px;
    height: 360px;
    bottom: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.12), transparent 72%);
}

.solutions .section-header {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin-bottom: 72px;
}

.steps-grid {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-bottom: 52px;
}

.steps-circle {
    position: relative;
    width: min(100%, 840px);
    height: 840px;
}

.steps-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 1px dashed rgba(27, 152, 224, 0.26);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.34);
}

.steps-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(27, 152, 224, 0.12), rgba(0, 201, 167, 0.06) 58%, transparent 74%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.steps-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    padding: 34px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.08), transparent 26%),
        linear-gradient(135deg, rgba(8, 18, 35, 0.98), rgba(16, 30, 52, 0.95));
    color: var(--white);
    box-shadow: 0 28px 54px rgba(10, 22, 40, 0.18);
    transform: translate(-50%, -50%);
    z-index: 2;
}

.steps-core::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.steps-core span {
    display: block;
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.64);
}

.steps-core strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    line-height: 1.25;
    max-width: 160px;
}

.step-card {
    --step-translate: none;
    --step-hover-lift: -8px;
    --step-accent: #1B98E0;
    --step-soft: rgba(27, 152, 224, 0.14);
    --step-glow: rgba(27, 152, 224, 0.16);
    --step-ink: #176fae;
    position: absolute;
    width: 260px;
    min-height: 220px;
    padding: 24px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.92));
    border: 1px solid rgba(17, 29, 51, 0.08);
    box-shadow: 0 22px 42px rgba(10, 22, 40, 0.08);
    text-align: left;
    transform: var(--step-translate);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    z-index: 3;
    overflow: hidden;
}

.step-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 100% 0%, var(--step-glow), transparent 34%);
    pointer-events: none;
}

.step-card::before {
    content: '';
    position: absolute;
    inset: auto auto -12px 50%;
    width: 1px;
    height: 46px;
    background: linear-gradient(180deg, rgba(27, 152, 224, 0.22), rgba(0, 201, 167, 0));
    transform: translateX(-50%);
    opacity: 0.65;
}

.step-card:hover {
    transform: var(--step-translate) translateY(var(--step-hover-lift));
    box-shadow: 0 28px 50px rgba(10, 22, 40, 0.14);
    border-color: rgba(27, 152, 224, 0.14);
}

.step-card-1 {
    --step-accent: #1B98E0;
    --step-soft: rgba(27, 152, 224, 0.14);
    --step-glow: rgba(27, 152, 224, 0.16);
    --step-ink: #176fae;
    top: 18px;
    left: 50%;
    --step-translate: translateX(-50%) rotate(-2deg);
}

.step-card-2 {
    --step-accent: #00C9A7;
    --step-soft: rgba(0, 201, 167, 0.14);
    --step-glow: rgba(0, 201, 167, 0.16);
    --step-ink: #048a74;
    top: 50%;
    right: 8px;
    --step-translate: translateY(-50%) rotate(2deg);
}

.step-card-2::before,
.step-card-4::before {
    inset: 50% auto auto -12px;
    width: 44px;
    height: 1px;
    background: linear-gradient(90deg, rgba(27, 152, 224, 0.22), rgba(0, 201, 167, 0));
    transform: translateY(-50%);
}

.step-card-3 {
    --step-accent: #15c27a;
    --step-soft: rgba(21, 194, 122, 0.14);
    --step-glow: rgba(21, 194, 122, 0.16);
    --step-ink: #12955f;
    bottom: 18px;
    left: 50%;
    --step-translate: translateX(-50%) rotate(1deg);
}

.step-card-3::before {
    inset: -34px auto auto 50%;
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, rgba(0, 201, 167, 0), rgba(27, 152, 224, 0.22));
}

.step-card-4 {
    --step-accent: #4b86ff;
    --step-soft: rgba(75, 134, 255, 0.14);
    --step-glow: rgba(75, 134, 255, 0.16);
    --step-ink: #3469d6;
    top: 50%;
    left: 8px;
    --step-translate: translateY(-50%) rotate(-2deg);
}

.step-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.step-number {
    min-width: 58px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--step-soft);
    color: var(--step-ink);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 0 1px var(--step-glow);
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--step-soft);
    color: var(--step-ink);
    box-shadow: inset 0 0 0 1px var(--step-glow);
}

.step-note {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--step-ink);
}

.step-card p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.65;
    margin: 0;
}

.step-card h3 {
    font-size: 1.12rem;
    margin-bottom: 10px;
    line-height: 1.35;
}

.step-connector {
    display: none;
}

.features-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(17, 29, 51, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 22px 44px rgba(10, 22, 40, 0.08);
    backdrop-filter: blur(14px);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 8px;
    border-radius: 20px;
}

.feature-item strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    font-size: 0.95rem;
}

.feature-item span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== About ===== */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

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

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 28px 0 32px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark);
}

.about-visual {
    position: relative;
    height: 400px;
}

.about-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
    transition: transform 0.3s ease;
    border: 1px solid var(--gray-200);
}

.about-card:hover {
    transform: translateY(-4px) !important;
}

.ac-1 {
    top: 0;
    left: 10%;
    animation: float 5s ease-in-out infinite;
}

.ac-2 {
    top: 40%;
    right: 0;
    animation: float 5s ease-in-out infinite 1.5s;
}

.ac-3 {
    bottom: 0;
    left: 20%;
    animation: float 5s ease-in-out infinite 3s;
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 100px 0;
    background: var(--gray-100);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

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

.testimonial-card.featured {
    border: 2px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                var(--gradient) border-box;
    transform: scale(1.03);
}

.testimonial-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
}

.testimonial-author strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--dark);
}

.testimonial-author span {
    font-size: 0.82rem;
    color: var(--gray-500);
}

/* ===== Contact ===== */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--gray-500);
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(27, 152, 224, 0.08), rgba(0, 201, 167, 0.08));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--dark);
}

.contact-item span {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.contact-item a {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.contact-item a:hover {
    color: var(--blue);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 40px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--white);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(27, 152, 224, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.floating-contact,
.back-to-top {
    position: fixed;
    right: 24px;
    z-index: 1100;
}

.floating-contact {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #1ebea5);
    color: var(--white);
    box-shadow: 0 18px 38px rgba(24, 181, 111, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(24, 181, 111, 0.36);
}

.floating-contact-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.back-to-top {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 18px;
    background: rgba(10, 22, 40, 0.92);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 34px rgba(10, 22, 40, 0.24);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.25s ease;
}

.back-to-top:hover {
    background: var(--dark);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-contact:focus-visible,
.back-to-top:focus-visible {
    outline: 3px solid rgba(27, 152, 224, 0.28);
    outline-offset: 3px;
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .hero-buttons,
html[dir="rtl"] .hero-stats {
    justify-content: flex-end;
}

html[dir="rtl"] .social-links {
    justify-content: flex-start;  /* flex-start in RTL = right side */
}

html[dir="rtl"] .contact-item {
    /* flex row in RTL already flows right-to-left — no reverse needed */
    text-align: right;
}

html[dir="rtl"] .contact-item .contact-text {
    text-align: right;
}

html[dir="rtl"] .form-group select {
    background-position: left 16px center;
    padding-right: 18px;
    padding-left: 40px;
}

html[dir="rtl"] .lang-toggle {
    padding-right: 18px;
    padding-left: 50px;
    text-align: right;
}

html[dir="rtl"] .lang-select-icon {
    right: auto;
    left: 10px;
    transform-origin: center;
}

html[dir="rtl"] .lang-menu {
    left: auto;
    right: 0;
}

html[dir="rtl"] .lang-option {
    text-align: right;
}

html[dir="rtl"] .scene-switches {
    justify-content: flex-end;
}

html[dir="rtl"] .live-dashboard-chip-row {
    justify-content: flex-end;
}

html[dir="rtl"] .steps-core,
html[dir="rtl"] .step-card {
    text-align: right;
}

html[dir="rtl"] .step-card-head {
    flex-direction: row-reverse;
}

html[dir="rtl"] .scene-story,
html[dir="rtl"] .live-dashboard-story,
html[dir="rtl"] .zone-card,
html[dir="rtl"] .metric-card,
html[dir="rtl"] .daily-card {
    text-align: right;
}

html[dir="rtl"] .live-dashboard-toolbar {
    justify-items: start;
}

html[dir="rtl"] .live-panel-top {
    flex-direction: row-reverse;
}

html[dir="rtl"] .control-card-head,
html[dir="rtl"] .light-switch {
    flex-direction: row-reverse;
}

html[dir="rtl"] .daily-card-head,
html[dir="rtl"] .prayer-next,
html[dir="rtl"] .weather-hero {
    flex-direction: row-reverse;
}

html[dir="rtl"] .floating-contact,
html[dir="rtl"] .back-to-top {
    right: auto;
    left: 24px;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    padding: 28px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.footer-logo {
    height: 90px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    max-width: 280px;
    line-height: 1.55;
}

.footer-links-group h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group li,
.footer-links-group a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-links-group a:hover {
    color: var(--teal);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

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

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

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: var(--teal);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .steps-circle {
        width: min(100%, 740px);
        height: 740px;
    }

    .steps-circle::before {
        width: 460px;
        height: 460px;
    }

    .steps-core {
        width: 220px;
        height: 220px;
        padding: 28px;
    }

    .step-card {
        width: 228px;
        min-height: 198px;
        padding: 22px 20px;
    }

    .live-dashboard-hero,
    .live-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .live-dashboard-toolbar {
        justify-items: start;
    }

    .scene-switches-panel {
        justify-content: flex-start;
    }

    .experience-side-stack,
    .live-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .testimonial-card.featured {
        transform: none;
    }

    .testimonial-card.featured:hover {
        transform: translateY(-4px);
    }

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

@media (max-width: 768px) {
    .lang-switcher {
        min-width: 144px;
    }

    .experience {
        padding: 92px 0;
    }

    .experience-copy {
        text-align: center;
    }

    .experience-copy > p {
        margin: 0 auto;
    }

    .live-dashboard-hero {
        gap: 18px;
        margin-bottom: 22px;
        padding-bottom: 20px;
    }

    .live-dashboard-story {
        text-align: center;
    }

    .live-dashboard-chip-row,
    .scene-switches-panel {
        justify-content: center;
    }

    .live-dashboard-toolbar {
        justify-items: stretch;
    }

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

    .zone-card-main {
        min-height: 220px;
    }

    .live-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .control-lab {
        grid-template-columns: 1fr;
    }

    .experience-side-stack {
        grid-template-columns: 1fr;
    }

    .weather-hero {
        align-items: flex-start;
    }

    .lang-toggle {
        min-width: 144px;
        padding: 10px 44px 10px 16px;
        font-size: 0.82rem;
    }

    .lang-select-icon {
        width: 28px;
        height: 28px;
        right: 8px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 22, 40, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 28px;
        transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-links.active a {
        animation: slideInRight 0.5s ease forwards;
    }

    .nav-links.active li:nth-child(1) a { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) a { animation-delay: 0.15s; }
    .nav-links.active li:nth-child(3) a { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(4) a { animation-delay: 0.25s; }
    .nav-links.active li:nth-child(5) a { animation-delay: 0.3s; }

    .nav-links a {
        color: var(--white) !important;
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .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);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats,
    .hero-highlights {
        justify-content: center;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .smart-home-graphic {
        width: 220px;
        height: 220px;
    }

    .floating-icon {
        padding: 8px;
        border-radius: 10px;
    }
    .floating-icon svg {
        width: 22px;
        height: 22px;
    }

    .smart-home-graphic {
        overflow: hidden;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 0 24px 24px;
        margin: 0 -24px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 82%;
        max-width: 320px;
        scroll-snap-align: center;
    }

    .steps-circle {
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .steps-circle::before,
    .steps-circle::after,
    .step-card::before {
        display: none;
    }

    .steps-core,
    .step-card,
    .step-card-1,
    .step-card-2,
    .step-card-3,
    .step-card-4 {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        transform: none;
        --step-translate: none;
        --step-hover-lift: 0px;
    }

    .steps-core {
        height: auto;
        min-height: 180px;
        border-radius: 32px;
        margin-bottom: 6px;
    }

    .features-banner {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        display: flex;
        flex-direction: row;
        gap: 12px;
        justify-content: center;
        height: auto;
    }

    .about-card {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        flex: 1;
        min-width: 0;
        animation: none;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .back-to-top {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        width: 48px;
        height: 48px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .lang-switcher {
        min-width: 136px;
    }

    .experience-copy h2 {
        font-size: 2rem;
    }

    .daily-card {
        padding: 24px;
    }

    .weather-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    html[dir="rtl"] .weather-hero {
        align-items: flex-end;
    }

    .weather-temp-block strong {
        font-size: 3.2rem;
    }

    .prayer-next {
        flex-direction: column;
        align-items: flex-start;
    }

    html[dir="rtl"] .prayer-next {
        align-items: flex-end;
    }

    .weather-meta,
    .prayer-grid {
        grid-template-columns: 1fr;
    }

    .prayer-item-wide {
        grid-column: span 1;
    }

    .scene-switch {
        flex: 1 1 100%;
        justify-content: center;
    }

    .live-panel {
        padding: 22px;
        border-radius: 28px;
    }

    .live-dashboard-story h3 {
        font-size: 1.7rem;
    }

    .live-dashboard-chip-row {
        justify-content: center;
    }

    .live-metrics {
        grid-template-columns: 1fr;
    }

    .metric-card strong {
        font-size: 1.2rem;
    }

    .lang-toggle {
        min-width: 136px;
        padding: 10px 42px 10px 14px;
    }

    html[dir="rtl"] .lang-toggle {
        padding-right: 14px;
        padding-left: 42px;
    }

    .floating-contact,
    .back-to-top {
        right: 16px;
    }

    html[dir="rtl"] .floating-contact,
    html[dir="rtl"] .back-to-top {
        left: 16px;
    }

    .floating-contact {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .back-to-top {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    .logo-img {
        height: 48px;
        max-width: 110px;
        margin: -6px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-highlight {
        padding: 16px;
    }

    .smart-home-graphic {
        width: 160px;
        height: 160px;
        overflow: hidden;
    }

    .floating-icon {
        display: none;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .about-visual {
        flex-direction: column;
        align-items: center;
    }

    .about-card {
        width: 100%;
        max-width: 260px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.55rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .lang-switcher {
        min-width: 120px;
    }

    .lang-toggle {
        min-width: 120px;
        font-size: 0.78rem;
        padding: 8px 38px 8px 12px;
    }

    .container {
        padding: 0 14px;
    }

    .service-card {
        flex: 0 0 90%;
    }

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

    .footer-bottom {
        padding-bottom: 90px;
    }
}

/* ===== Animations ===== */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(27, 152, 224, 0.3);
    pointer-events: none;
}

[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 4px;
}

/* ===== Dynamic & Alive Effects ===== */

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 152, 224, 0.06) 0%, rgba(0, 201, 167, 0.03) 35%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s ease;
    will-change: transform;
}

@media (pointer: coarse) {
    .cursor-glow { display: none; }
}

/* Typing cursor blink */
.gradient-text.typing {
    border-right: 3px solid var(--teal);
    padding-right: 4px;
    animation: cursorBlink 0.7s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { border-right-color: var(--teal); }
    50% { border-right-color: transparent; }
}

/* Animated hero gradient */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 30%, #0d2137 60%, #0a1a2e 100%);
    background-size: 300% 300%;
    animation: heroGradient 12s ease infinite;
}

@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
}

/* Hero badge floating */
.hero-badge {
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* 3D Service Cards */
.service-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.2s ease-out, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Card mouse-following glow */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        350px circle at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(27, 152, 224, 0.1) 0%,
        rgba(0, 201, 167, 0.04) 40%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(27, 152, 224, 0.18);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.14),
                0 0 0 1px rgba(27, 152, 224, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Stagger service card animations */
.service-card:nth-child(1) { transition-delay: 0ms; }
.service-card:nth-child(2) { transition-delay: 60ms; }
.service-card:nth-child(3) { transition-delay: 120ms; }
.service-card:nth-child(4) { transition-delay: 180ms; }
.service-card:nth-child(5) { transition-delay: 240ms; }
.service-card:nth-child(6) { transition-delay: 300ms; }

/* Magnetic button glow */
.btn-primary, .btn-nav {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--rx, 50%) var(--ry, 50%),
        rgba(255, 255, 255, 0.25) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* Enhanced step cards */
.step-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.step-card:hover {
    transform: var(--step-translate) translateY(var(--step-hover-lift));
    box-shadow: 0 28px 50px rgba(10, 22, 40, 0.14);
}

/* Feature items hover */
.feature-item {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

/* About cards float */
.about-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.about-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 16px 40px rgba(10, 22, 40, 0.15);
}

/* Social links bounce */
.social-link {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 8px 24px rgba(27, 152, 224, 0.25);
}

/* Contact form focus glow */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(27, 152, 224, 0.12), 0 4px 16px rgba(27, 152, 224, 0.08);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Enhanced particles */
.particle {
    background: rgba(255, 255, 255, 0.5);
    will-change: transform;
    transition: --push-x 0.4s ease-out, --push-y 0.4s ease-out;
}

/* Nav link glow on hover */
.nav-links a:not(.btn-nav):hover {
    text-shadow: 0 0 20px rgba(27, 152, 224, 0.3);
}

/* Better scroll reveals */
[data-aos] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Highlight items stagger */
.highlight {
    transition: transform 0.3s ease;
}

.highlight:hover {
    transform: translateX(6px);
}

/* Floating icons enhanced */
.floating-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-icon:hover {
    box-shadow: 0 8px 30px rgba(27, 152, 224, 0.2);
    transform: translateY(-8px) scale(1.1);
}

/* Scroll progress glow */
.scroll-progress span {
    box-shadow: 0 0 12px rgba(27, 152, 224, 0.5), 0 0 30px rgba(0, 201, 167, 0.25);
}

/* Contact item hover */
.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
}

/* ===== Scroll Dots (mobile carousel) ===== */
.scroll-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .scroll-dots {
        display: flex;
    }
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: all 0.3s ease;
}

.scroll-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--gradient);
}

/* ===== Mobile Menu Overlay ===== */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== Hero Staggered Entrance ===== */
.hero-text > * {
    opacity: 0;
    transform: translateY(32px);
    animation: heroEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-text > *:nth-child(1) { animation-delay: 0.15s; }
.hero-text > *:nth-child(2) { animation-delay: 0.35s; }
.hero-text > *:nth-child(3) { animation-delay: 0.55s; }
.hero-text > *:nth-child(4) { animation-delay: 0.75s; }
.hero-text > *:nth-child(5) { animation-delay: 0.95s; }

@keyframes heroEntrance {
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CTA Pulsing Glow ===== */
.hero-buttons .btn-primary {
    animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(27, 152, 224, 0.3); }
    50% { box-shadow: 0 6px 35px rgba(27, 152, 224, 0.55), 0 0 60px rgba(0, 201, 167, 0.15); }
}

/* ===== Contact Form Animated Gradient Border ===== */
.contact-form-wrapper {
    position: relative;
    z-index: 1;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: linear-gradient(135deg, var(--blue), var(--teal), #7c3aed, var(--blue));
    background-size: 300% 300%;
    animation: borderGlow 5s linear infinite;
    z-index: -1;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.contact-form-wrapper:hover::before,
.contact-form-wrapper:focus-within::before {
    opacity: 1;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Animated Section Tags ===== */
.section-tag {
    position: relative;
    overflow: hidden;
}

.section-tag::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* ===== Service Icon Spin on Hover ===== */
.service-card:hover .service-icon svg {
    animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconPop {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(-8deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* ===== Step Number Gradient Pulse ===== */
.step-number {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(27, 152, 224, 0.3);
}

/* ===== Mobile Touch Feedback ===== */
@media (pointer: coarse) {
    .service-card:active {
        transform: scale(0.97) !important;
        transition-duration: 0.1s;
    }

    .btn:active {
        transform: scale(0.95) !important;
        transition-duration: 0.1s;
    }

    .step-card:active {
        transform: scale(0.97) !important;
    }

    .feature-item:active {
        transform: scale(0.96);
    }

    .contact-item:active {
        transform: translateX(12px);
    }

    .social-link:active {
        transform: scale(1.2);
    }

    .highlight:active {
        transform: translateX(10px);
    }

    /* Active card scale for services carousel */
    .service-card:active {
        transform: scale(0.97) !important;
    }

    /* Disable desktop-only hover effects on touch */
    .service-card {
        transform-style: flat !important;
    }

    .service-card:hover {
        transform: none !important;
    }

    .service-card:hover::after {
        opacity: 0;
    }
}

/* ===== Dashboard Page ===== */
.page-hero {
    min-height: auto;
    padding: 150px 0 120px;
}

.page-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 42px;
    align-items: center;
}

.page-hero-copy h1 {
    max-width: 10ch;
    margin-bottom: 20px;
    color: var(--white);
    font-size: clamp(2.7rem, 5vw, 4.6rem);
}

.page-hero-copy p {
    max-width: 62ch;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
}

.dashboard-signal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.dashboard-signal-card {
    min-width: 170px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(6, 16, 29, 0.24);
    backdrop-filter: blur(18px);
}

.dashboard-signal-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
}

.dashboard-signal-card span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.5;
}

.dashboard-preview-shell {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
    box-shadow: 0 28px 60px rgba(4, 12, 24, 0.34);
}

.dashboard-preview-panel {
    position: relative;
    padding: 34px;
    border-radius: 29px;
    background:
        radial-gradient(circle at top right, rgba(27, 152, 224, 0.22), transparent 34%),
        radial-gradient(circle at bottom left, rgba(0, 201, 167, 0.2), transparent 32%),
        linear-gradient(160deg, rgba(8, 22, 38, 0.96), rgba(10, 27, 46, 0.92));
}

.dashboard-preview-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(0);
    opacity: 0.85;
}

.dashboard-preview-glow-a {
    top: 20px;
    right: 24px;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(27, 152, 224, 0.34) 0%, transparent 70%);
}

.dashboard-preview-glow-b {
    bottom: 10px;
    left: 10px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.26) 0%, transparent 72%);
}

.dashboard-preview-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-preview-panel h2 {
    margin: 16px 0 14px;
    color: var(--white);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.dashboard-preview-panel p {
    color: rgba(255, 255, 255, 0.74);
    margin-bottom: 20px;
}

.dashboard-preview-list {
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.88);
}

.dashboard-preview-list li + li {
    margin-top: 12px;
}

.dashboard-features {
    padding: 96px 0 110px;
    background:
        radial-gradient(circle at top left, rgba(27, 152, 224, 0.07), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.dashboard-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.dashboard-feature-card {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(27, 152, 224, 0.12);
    box-shadow: 0 18px 40px rgba(10, 22, 40, 0.08);
}

.dashboard-feature-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 18px;
    color: var(--blue);
    background: linear-gradient(135deg, rgba(27, 152, 224, 0.14), rgba(0, 201, 167, 0.14));
}

.dashboard-feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.dashboard-feature-card p {
    color: var(--gray-500);
}

.dashboard-cta {
    padding: 0 0 110px;
    background: linear-gradient(180deg, #f6fbff 0%, #ffffff 100%);
}

.dashboard-cta-box {
    padding: 42px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(27, 152, 224, 0.2), transparent 36%),
        radial-gradient(circle at bottom left, rgba(0, 201, 167, 0.18), transparent 30%),
        linear-gradient(135deg, #0b182c 0%, #10223a 60%, #11304b 100%);
    box-shadow: 0 26px 56px rgba(7, 18, 32, 0.24);
}

.dashboard-cta-box .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
}

.dashboard-cta-box h2 {
    color: var(--white);
    font-size: clamp(2rem, 3.8vw, 3rem);
    margin-bottom: 14px;
}

.dashboard-cta-box p {
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.76);
}

.dashboard-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 26px;
}

.dashboard-cta-outline {
    border-color: rgba(255, 255, 255, 0.34);
}

html[dir="rtl"] .dashboard-preview-list {
    padding-right: 20px;
    padding-left: 0;
}

@media (max-width: 980px) {
    .page-hero-grid,
    .dashboard-features-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 135px 0 110px;
    }
}

@media (max-width: 680px) {
    .page-hero {
        padding: 120px 0 95px;
    }

    .dashboard-preview-panel,
    .dashboard-cta-box,
    .dashboard-feature-card {
        padding: 24px;
    }

    .dashboard-signal-card {
        width: 100%;
    }

    .dashboard-cta-actions {
        flex-direction: column;
    }

    .dashboard-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   SECTORS SECTION
   ============================================================ */
.sectors {
    padding: 100px 0;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
    position: relative;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 56px;
}

.sector-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(27, 152, 224, 0.12);
    border-radius: 20px;
    padding: 30px 26px;
    box-shadow: 0 18px 40px -28px rgba(15, 42, 80, 0.25);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sector-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(27, 152, 224, 0.55), rgba(0, 201, 167, 0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.sector-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 28px 60px -28px rgba(27, 152, 224, 0.35);
}

.sector-card:hover::before {
    opacity: 1;
}

.sector-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #1B98E0 0%, #00C9A7 100%);
    box-shadow: 0 12px 24px -12px rgba(27, 152, 224, 0.55);
}

.sector-card--office  .sector-icon { background: linear-gradient(135deg, #6C63FF 0%, #1B98E0 100%); }
.sector-card--datacenter .sector-icon { background: linear-gradient(135deg, #0F2A50 0%, #1B98E0 100%); }
.sector-card--retail  .sector-icon { background: linear-gradient(135deg, #FF6B9A 0%, #FFB347 100%); }
.sector-card--industry .sector-icon { background: linear-gradient(135deg, #00C9A7 0%, #1B98E0 100%); }
.sector-card--cta {
    background: linear-gradient(160deg, #0F2A50 0%, #1B98E0 100%);
    color: #ffffff;
    border-color: transparent;
}
.sector-card--cta .sector-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}
.sector-card--cta h3 { color: #ffffff; }
.sector-card--cta p  { color: rgba(255, 255, 255, 0.86); }
.sector-card--cta .sector-link { color: #00C9A7; }

.sector-card h3 {
    font-size: 1.18rem;
    font-weight: 600;
    color: #0F2A50;
    margin: 0;
}

.sector-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5a6b85;
    margin: 0;
    flex: 1;
}

.sector-link {
    align-self: flex-start;
    margin-top: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1B98E0;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
    display: inline-flex;
    gap: 4px;
}

.sector-link:hover {
    gap: 10px;
    color: #00C9A7;
}

@media (max-width: 980px) {
    .sectors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .sectors {
        padding: 70px 0;
    }
    .sectors-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 36px;
    }
    .sector-card {
        padding: 26px 22px;
    }
}

/* ============================================================
   ENVIRONMENT SWITCHER (dashboard page)
   ============================================================ */
.env-switcher {
    margin-top: 28px;
    display: inline-flex;
    padding: 6px;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.env-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.74);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.env-switch svg {
    width: 18px;
    height: 18px;
}

.env-switch:hover {
    color: #ffffff;
}

.env-switch.active {
    background: linear-gradient(135deg, #1B98E0 0%, #00C9A7 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px -10px rgba(27, 152, 224, 0.6);
}

.env-desc {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 520px;
}

@media (max-width: 600px) {
    .env-switcher {
        width: 100%;
        justify-content: space-between;
        padding: 4px;
    }
    .env-switch {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    .env-switch span {
        display: none;
    }
}

/* Environment-specific zone label tweaks */
.live-panel[data-environment="office"] .zone-card-main,
.live-panel[data-environment="datacenter"] .zone-card-main {
    background: linear-gradient(140deg, rgba(27, 152, 224, 0.18), rgba(0, 201, 167, 0.12));
}

.live-panel[data-environment="datacenter"] .scene-pill {
    background: linear-gradient(135deg, #0F2A50, #1B98E0);
}

.live-panel[data-environment="datacenter"] .ambient-pill-light {
    background: rgba(0, 201, 167, 0.18);
    color: #00C9A7;
}

/* =====================================================================
   RESPONSIVE + A11Y PATCH (v20260415)
   Adds fluid typography, small-phone (≤360px) tier, focus-visible
   outlines, media-element safety, and grid collapse refinements.
   ===================================================================== */

/* --- Media element safety net --- */
img, svg, video, picture {
    max-width: 100%;
    height: auto;
}

/* --- Focus-visible for keyboard users --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}
.btn:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

/* --- Fluid typography overrides --- */
.hero h1 {
    font-size: clamp(2rem, 4.5vw + 1rem, 3.5rem);
    line-height: 1.15;
}
.hero p,
.hero-description,
.hero-subtitle {
    font-size: clamp(1rem, 0.6vw + 0.9rem, 1.15rem);
}
section h2,
.section-title,
.about-content h2,
.contact-info h2,
.services h2,
.sectors h2,
.solutions h2 {
    font-size: clamp(1.6rem, 3vw + 0.8rem, 2.5rem);
    line-height: 1.2;
}
h3 {
    font-size: clamp(1.15rem, 1vw + 0.8rem, 1.5rem);
}

/* --- Grid collapse refinements --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    .footer-grid {
        gap: 32px;
    }
}

/* --- XS tier (≤360px) for iPhone SE / older phones --- */
@media (max-width: 360px) {
    .container {
        padding: 0 16px;
    }
    .hero h1 {
        font-size: 1.75rem;
    }
    section h2 {
        font-size: 1.4rem;
    }
    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    .lang-switcher,
    .lang-toggle {
        max-width: 100%;
    }
    .nav-container {
        padding: 0 12px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .social-links {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* --- Touch target guarantees (coarse pointer + small screens) --- */
@media (max-width: 768px) {
    .social-link,
    .hamburger,
    .lang-option,
    .back-to-top,
    .floating-contact {
        min-width: 44px;
        min-height: 44px;
    }
}

/* --- Disabled placeholder link style (for pages not yet built) --- */
a[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.55;
    cursor: not-allowed;
}

/* --- Stub page minimal layout --- */
body[data-page="legal"] .navbar,
body[data-page="privacy"] .navbar,
body[data-page="careers"] .navbar {
    background: var(--dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.stub-page {
    padding: 140px 0 80px;
    min-height: 70vh;
    background: var(--gray-100);
}
.stub-page .container {
    max-width: 820px;
}
.stub-page h1 {
    font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
    color: var(--dark);
    margin-bottom: 16px;
}
.stub-page .stub-intro {
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 32px;
}
.stub-page h2 {
    font-size: clamp(1.2rem, 1.5vw + 0.9rem, 1.6rem);
    color: var(--dark);
    margin: 28px 0 10px;
}
.stub-page p {
    margin-bottom: 14px;
    line-height: 1.7;
}
