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

/* ═══════ THEME VARIABLES ═══════ */
:root, [data-theme="nabawi"] {
    --bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --card-border: #F1F5F9;
    --primary: #2D5F5D;
    --accent-gold: #F59E0B;
    --text-primary: #1E293B;
    --text-secondary: #94A3B8;
    --completed: #059669;
    --primary-light: #ECFDF5;
    --segment-bg: #F1F5F9;
    --segment-active: #FFFFFF;
    --hero-start: #059669;
    --hero-end: #065F46;
    --hero-title: #FFFFFF;
    --hero-text: rgba(255,255,255,0.9);
    --hero-muted: rgba(255,255,255,0.65);
    --cta-bg: rgba(0,0,0,0.45);
    --cta-text: #FFFFFF;
    --cta-border: rgba(255,255,255,0.25);
    --nav-bg: rgba(248,250,252,0.88);
    --nav-border: rgba(241,245,249,0.8);
    --on-primary: #FFFFFF;
    --watch-row-bg: rgba(255,255,255,0.82);
    --watch-row-border: rgba(45,95,93,0.1);
    --watch-row-shadow: rgba(15,23,42,0.08);
    --watch-track: rgba(248,250,252,0.96);
}

[data-theme="kiswa"] {
    --bg: #1C1C1C;
    --card-bg: #18181B;
    --card-border: #27272A;
    --primary: #F59E0B;
    --accent-gold: #FBBF24;
    --text-primary: #F4F4F5;
    --text-secondary: #71717A;
    --completed: #F59E0B;
    --primary-light: #27272A;
    --segment-bg: #27272A;
    --segment-active: #3F3F46;
    --hero-start: #18181B;
    --hero-end: #000000;
    --hero-title: #F59E0B;
    --hero-text: rgba(244,244,245,0.85);
    --hero-muted: rgba(244,244,245,0.5);
    --cta-bg: #F59E0B;
    --cta-text: #111827;
    --cta-border: #F59E0B;
    --nav-bg: rgba(28,28,28,0.88);
    --nav-border: rgba(39,39,42,0.8);
    --on-primary: #000000;
    --watch-row-bg: rgba(24,24,27,0.94);
    --watch-row-border: rgba(245,158,11,0.18);
    --watch-row-shadow: rgba(0,0,0,0.26);
    --watch-track: rgba(39,39,42,0.94);
}

/* ═══════ BASE ═══════ */
html { scroll-behavior: smooth; }
body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s, color 0.5s;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* ═══════ NAV ═══════ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nav-border);
    transition: background-color 0.5s, border-color 0.5s;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo {
    font-size: 18px; font-weight: 700; color: var(--primary);
    display: flex; align-items: center; gap: 8px;
    transition: color 0.5s;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: 13px; font-weight: 500; color: var(--text-secondary);
    transition: color 0.3s; letter-spacing: 0.5px;
}
.nav-links a:hover { color: var(--primary); }
.theme-toggle {
    position: relative; display: flex;
    background: var(--segment-bg); border-radius: 10px; padding: 3px;
    transition: background-color 0.5s;
}
.theme-toggle button {
    padding: 6px 16px; border-radius: 8px; border: none;
    background: transparent; font-family: 'JetBrains Mono', monospace;
    font-size: 12px; font-weight: 500; cursor: pointer;
    color: var(--text-secondary); position: relative; z-index: 1;
    transition: color 0.3s;
}
.theme-toggle button.active { color: var(--text-primary); }
.toggle-slider {
    position: absolute; top: 3px; left: 3px;
    width: calc(50% - 3px); height: calc(100% - 6px);
    background: var(--segment-active); border-radius: 8px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.5s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.theme-toggle.kiswa-active .toggle-slider { transform: translateX(100%); }

/* ═══════ HERO ═══════ */
.hero {
    position: relative;
    background: linear-gradient(150deg, var(--hero-start), var(--hero-end));
    min-height: 100vh; padding: 120px 0 80px;
    display: flex; align-items: center;
    overflow: hidden;
    transition: background 0.6s;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect x='18' y='18' width='24' height='24' fill='none' stroke='white' stroke-width='0.5'/%3E%3Crect x='18' y='18' width='24' height='24' fill='none' stroke='white' stroke-width='0.5' transform='rotate(45 30 30)'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    opacity: 0.07; pointer-events: none;
}
.hero-inner {
    display: flex; align-items: center; gap: 60px;
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    position: relative; z-index: 1; width: 100%;
}
.hero-text { flex: 1; min-width: 0; }
.hero-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2.4px; color: rgba(255,255,255,0.72);
    margin-bottom: 18px;
}
.hero-kicker::before {
    content: '';
    width: 40px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}
.hero-text h1 {
    font-size: clamp(42px, 6vw, 64px); font-weight: 700;
    color: var(--hero-title); line-height: 1.1; margin-bottom: 16px;
    transition: color 0.5s;
}
.hero-tagline {
    font-size: clamp(16px, 2vw, 20px); color: var(--hero-text);
    margin-bottom: 12px; font-weight: 500;
}
.hero-description {
    font-size: 14px; color: var(--hero-muted);
    max-width: 500px; margin-bottom: 32px; line-height: 1.7;
}
.cta-button {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--cta-bg); color: var(--cta-text);
    padding: 14px 28px; border-radius: 14px;
    border: 1px solid var(--cta-border);
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    cursor: pointer; transition: transform 0.25s, box-shadow 0.25s, background-color 0.5s, color 0.5s;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.cta-button svg { width: 22px; height: 22px; fill: currentColor; }
.cta-button .cta-label small { font-size: 10px; display: block; opacity: 0.8; }
.cta-button .cta-label strong { font-size: 15px; }

.hero-phone-wrapper {
    flex-shrink: 0;
    transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
    transition: transform 0.5s ease;
    will-change: transform;
    backface-visibility: hidden;
}

/* Watch is always dark — override theme variables at component root */
.watch-widget {
    --text-primary:     #F4F4F5;
    --text-secondary:   #71717A;
    --completed:        #F59E0B;
    --on-primary:       #000000;
    --watch-row-bg:     rgba(28,28,30,0.96);
    --watch-row-border: rgba(255,255,255,0.08);
    --watch-row-shadow: rgba(0,0,0,0.3);
    --watch-track:      rgba(255,255,255,0.12);
    --card-border:      rgba(255,255,255,0.1);
    --segment-bg:       rgba(39,39,42,0.8);
    --primary:          #F59E0B;
}

/* ═══════ WATCH WIDGET ANIMATIONS ═══════ */
@keyframes watch-pulse {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.1) drop-shadow(0 0 14px rgba(5,150,105,0.45)); }
}
@keyframes watch-pulse-gold {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.1) drop-shadow(0 0 14px rgba(245,158,11,0.55)); }
}

/* ═══════ SECTIONS COMMON ═══════ */
.section { padding: 100px 0; transition: background-color 0.5s; }
.section-alt { background: var(--card-bg); }
.section-title {
    font-size: clamp(24px, 3vw, 32px); font-weight: 700;
    color: var(--primary); text-align: center;
    margin-bottom: 8px; transition: color 0.5s;
}
.section-subtitle {
    font-size: 14px; color: var(--text-secondary);
    text-align: center; margin-bottom: 56px;
    transition: color 0.5s;
}

/* ═══════ DIVIDER ═══════ */
.section-divider {
    display: flex; justify-content: center; padding: 8px 0;
}
.section-divider svg { color: var(--primary); transition: color 0.5s; }

/* ═══════ FEATURES ═══════ */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    min-width: 0;
}
.feature-card-inner {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.5s;
    will-change: transform;
    backface-visibility: hidden;
}
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    transition: background-color 0.5s, color 0.5s;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 {
    font-size: 16px; font-weight: 700; margin-bottom: 8px;
    color: var(--text-primary); transition: color 0.5s;
}
.feature-card p {
    font-size: 13px; color: var(--text-secondary);
    line-height: 1.6; transition: color 0.5s;
}

/* ═══════ PREVIEW ═══════ */
.preview-phones {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 20px 0;
}
.preview-shot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.preview-shot .phone-frame {
    width: 210px;
}
.preview-shot-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--text-secondary);
    transition: color 0.5s;
}
.preview-shot .phone-screen {
    height: 411px; /* 190px screen × (844/390) — correct iPhone aspect ratio */
}

/* ═══════ HOW IT WORKS ═══════ */
.steps {
    display: flex; align-items: flex-start; gap: 24px;
    position: relative;
}
.steps::before {
    content: ''; position: absolute;
    top: 28px; left: 16%; right: 16%;
    height: 2px; background: var(--card-border);
    transition: background-color 0.5s;
}
.step {
    flex: 1; text-align: center; position: relative; z-index: 1;
}
.step-number {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary); color: var(--on-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700;
    margin: 0 auto 20px;
    transition: background-color 0.5s, color 0.5s;
}
.step h3 {
    font-size: 15px; font-weight: 700; margin-bottom: 8px;
    color: var(--text-primary); transition: color 0.5s;
}
.step p {
    font-size: 13px; color: var(--text-secondary);
    line-height: 1.6; max-width: 260px; margin: 0 auto;
    transition: color 0.5s;
}

/* ═══════ THEMES SECTION ═══════ */
.themes-phones {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 48px;
}
.theme-demo { text-align: center; }
.theme-label {
    display: inline-block; margin-top: 20px;
    font-size: 14px; font-weight: 600; color: var(--text-secondary);
    letter-spacing: 1px; text-transform: uppercase;
    transition: color 0.5s;
}

/* ═══════ ICLOUD SYNC ═══════ */
.sync-tree {
    max-width: 500px;
    margin: 0 auto;
}
.sync-root {
    display: flex;
    justify-content: center;
}
.sync-node {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    transition: background-color 0.5s, border-color 0.5s, color 0.5s;
}
.sync-node svg { width: 28px; height: 28px; }
.sync-node-cloud {
    width: auto; height: auto;
    padding: 14px 28px;
    border-radius: 20px;
    gap: 10px;
    font-size: 14px; font-weight: 600;
}
.sync-node-cloud svg { width: 24px; height: 24px; }
.sync-node-cloud span {
    color: var(--text-primary);
    transition: color 0.5s;
}
.sync-lines {
    display: block;
    width: 100%;
    height: 80px;
}
.sync-line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-dasharray: 6 4;
    stroke-linecap: round;
    animation: dash-flow 1s linear infinite;
    transition: stroke 0.5s;
}
@keyframes dash-flow {
    to { stroke-dashoffset: -20; }
}
.sync-devices {
    display: flex;
}
.sync-device {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
}
.sync-device-label {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-secondary);
    transition: color 0.5s;
}
.sync-tagline {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 40px;
    font-style: italic;
    transition: color 0.5s;
}

/* ═══════ WIDGETS ═══════ */
.widgets-showcase {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
}
.widget-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.widget-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    transition: color 0.5s;
}
.widget {
    border-radius: 22px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s;
}

/* --- Medium Widget --- */
.widget-medium {
    width: 348px;
    height: 160px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.widget-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.5s;
}
.widget-counter {
    font-size: 11px;
    font-weight: 600;
    color: var(--completed);
    margin-top: 2px;
    transition: color 0.5s;
}

/* Progress Ring */
.widget-ring {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.widget-ring > svg:first-child {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.widget-ring-track {
    stroke: var(--segment-bg);
    transition: stroke 0.5s;
}
.widget-ring-fill {
    stroke: var(--completed);
    transition: stroke 0.5s, stroke-dasharray 0.5s ease;
}
.widget-ring-icon {
    position: absolute;
    width: 10px;
    height: 10px;
    color: var(--text-primary);
    transition: color 0.5s;
}

/* Prayer Row */
.widget-prayers {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.widget-prayer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.widget-prayer-name {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    transition: color 0.3s;
}
.widget-prayer.is-completed .widget-prayer-name {
    color: var(--text-primary);
}
.widget-prayer-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.15s;
    background: var(--segment-bg);
    position: relative;
}
.widget-prayer-circle:active {
    transform: scale(0.9);
}
.widget-prayer-circle.completed {
    background: var(--completed);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.widget-prayer-circle .widget-check {
    width: 18px;
    height: 18px;
    stroke: var(--on-primary);
    display: none;
}
.widget-prayer-circle.completed .widget-check {
    display: block;
}
.widget-prayer-circle .widget-time {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.5s;
}
.widget-prayer-circle.completed .widget-time {
    display: none;
}

/* --- Small Widget --- */
.widget-small {
    width: 160px;
    height: 160px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.widget-small-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.widget-next-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--completed);
    transition: color 0.5s;
}
.widget-next-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    transition: color 0.5s;
}
.widget-next-time {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.5s;
}
.widget-next-time svg {
    width: 10px;
    height: 10px;
}
.widget-small-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--segment-bg);
    transition: background-color 0.3s, transform 0.15s;
}
.widget-small-toggle:active {
    transform: scale(0.9);
}
.widget-small-toggle.completed {
    background: var(--completed);
}
.widget-small-toggle .widget-check {
    width: 14px;
    height: 14px;
    stroke: var(--on-primary);
    display: none;
}
.widget-small-toggle.completed .widget-check {
    display: block;
}

/* Progress Bar */
.widget-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.widget-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.widget-progress-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    transition: color 0.5s;
}
.widget-progress-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.5s;
}
.widget-progress-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--segment-bg);
    overflow: hidden;
    transition: background-color 0.5s;
}
.widget-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--completed);
    transition: width 0.5s ease, background-color 0.5s;
}
.widget-dots {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}
.widget-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--segment-bg);
    transition: background-color 0.3s;
}
.widget-dot.filled {
    background: var(--completed);
}
.widget-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 24px;
    font-style: italic;
    transition: color 0.5s;
}

/* --- Mac Menu Popup Mock --- */
.widget-demo-mac {
    width: min(340px, 100%);
}
.mac-menu-mockup {
    width: min(340px, 100%);
    position: relative;
    overflow: visible;
    color: var(--text-primary);
    background: transparent;
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
    border: 0;
    box-shadow: none;
}
.mac-menu-menubar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 18px;
    background: rgba(24,24,27,0.78);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 28px rgba(0,0,0,0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.mac-menu-trigger {
    appearance: none;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 28px;
    background: rgba(255,255,255,0.12);
    padding: 0;
    border-radius: 11px;
    cursor: pointer;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        0 0 16px rgba(245,158,11,0.12);
    transition: transform 0.18s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.mac-menu-trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
.mac-menu-trigger:active {
    transform: scale(0.95);
}
.mac-menu-mockup.is-open .mac-menu-trigger {
    background: rgba(255,255,255,0.17);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.12),
        0 0 0 4px rgba(245,158,11,0.12),
        0 0 22px rgba(245,158,11,0.2);
}
.mac-menu-appicon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    color: rgba(255,255,255,0.92);
    filter: drop-shadow(0 0 8px rgba(245,158,11,0.12));
}
.mac-menu-appicon-svg {
    width: 100%;
    height: 100%;
}
.mac-menu-menubar-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,0.92);
}
.mac-menu-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.mac-menu-battery {
    position: relative;
    width: 30px;
    height: 16px;
    border-radius: 5px;
    border: 1.8px solid rgba(255,255,255,0.7);
    flex-shrink: 0;
}
.mac-menu-battery::after {
    content: "";
    position: absolute;
    top: 4px;
    right: -4px;
    width: 2px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
}
.mac-menu-battery span {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(180deg, #FACC15 0%, #F59E0B 100%);
}
.mac-menu-menubar-time {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(255,255,255,0.92);
    white-space: nowrap;
}
.mac-menu-workspace {
    position: relative;
    min-height: auto;
    padding-top: 12px;
    background: transparent;
    overflow: visible;
    isolation: auto;
}
.mac-menu-workspace::before {
    display: none;
}
.mac-menu-workspace::after {
    display: none;
}
.mac-menu-popup {
    position: relative;
    z-index: 1;
    width: min(320px, calc(100% - 8px));
    max-width: 100%;
    margin-left: auto;
    padding: 22px 22px 18px;
    border-radius: 28px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.mac-menu-popup::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 145px;
    width: 14px;
    height: 14px;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    border-left: 1px solid var(--card-border);
    transform: rotate(45deg);
    transition: background-color 0.5s, border-color 0.5s;
}
.mac-menu-popup-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.mac-menu-title {
    font-size: clamp(34px, 6vw, 54px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    transition: color 0.5s;
}
.mac-menu-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.5s;
}
.mac-menu-countdown svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.mac-menu-settings {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--text-secondary);
    opacity: 0.92;
    transition: color 0.5s;
}
.mac-menu-settings svg {
    width: 24px;
    height: 24px;
}
.mac-menu-progress-track {
    width: 100%;
    height: 10px;
    margin-top: 22px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--segment-bg);
    transition: background-color 0.5s;
}
.mac-menu-progress-fill {
    display: block;
    width: 13%;
    height: 100%;
    border-radius: inherit;
    background: var(--completed);
    transition: background-color 0.5s;
}
.mac-menu-next-prayer {
    margin-top: 22px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.5s;
}
.mac-menu-popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
    color: var(--text-secondary);
    transition: color 0.5s;
}
.mac-menu-status,
.mac-menu-quit {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mac-menu-status {
    font-size: 14px;
    font-weight: 600;
}
.mac-menu-quit {
    font-size: 14px;
    font-weight: 700;
}
.mac-menu-status svg,
.mac-menu-quit svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.watch-widget {
    position: relative;
    width: 236px;
    height: 292px;
    padding: 14px;
    border-radius: 58px;
    background: linear-gradient(145deg, #09090B, #1F1F23);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.watch-crown,
.watch-side-button {
    position: absolute;
    background: linear-gradient(180deg, #74747D, #2E2E34);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.watch-crown {
    right: -10px;
    top: 84px;
    width: 18px;
    height: 46px;
    border-radius: 14px;
}
.watch-side-button {
    right: -8px;
    top: 144px;
    width: 11px;
    height: 34px;
    border-radius: 999px;
}
.watch-screen-standalone {
    width: 236px;
    height: 292px;
    border-radius: 58px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.watch-screen {
    position: relative;
    height: 100%;
    border-radius: 46px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.06);
    /* Always dark — OLED watch display */
    background: linear-gradient(180deg, #0E0E10 0%, #111116 100%);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.watch-screen.watch-screen-standalone {
    width: 236px;
    height: 292px;
    min-height: 292px;
    max-height: 292px;
    flex: 0 0 292px;

}
.watch-screen::-webkit-scrollbar { display: none; }

/* Sticky time bar */
.watch-topline {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 14px 6px;
    background: linear-gradient(to bottom, rgba(14,14,16,0.95) 60%, transparent);
}
.watch-time-display {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* Next prayer section — no card, just text on dark bg */
.watch-next-section {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 14px 14px;
}
.watch-next-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #71717A;
}
.watch-summary-name {
    font-size: 26px;
    font-weight: 700;
    color: #F59E0B;
    line-height: 1;
}
.watch-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    color: #71717A;
}
.watch-countdown-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Prayer list */
.watch-prayer-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 8px;
}
.watch-prayer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.watch-prayer-row {
    appearance: none;
    border: 1px solid transparent;
    width: 100%;
    border-radius: 18px;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #1C1C1E;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.22s ease;
}
.watch-prayer-row:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
}
.watch-prayer-row:active { transform: scale(0.97); }
.watch-prayer-row.is-completed { border-color: rgba(245,158,11,0.4); }
.watch-prayer-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.watch-prayer-row .watch-prayer-name {
    font-size: 14px;
    font-weight: 700;
    color: #F4F4F5;
}
.watch-prayer-row .watch-prayer-time {
    font-size: 11px;
    font-weight: 400;
    color: #71717A;
}
.watch-prayer-row.is-completed .watch-prayer-time { color: #F59E0B; }
.watch-prayer-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.watch-prayer-row.is-completed .watch-prayer-toggle {
    background: #F59E0B;
    border-color: #F59E0B;
}
.watch-check {
    width: 14px;
    height: 14px;
    stroke: #000000;
    display: none;
}
.watch-prayer-row.is-completed .watch-check { display: block; }

/* ═══════ WIDGET PLATFORM GROUPS ═══════ */
.widgets-platform-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.widgets-platform-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--card-border);
    transition: color 0.5s, border-color 0.5s;
}
.widgets-platform-label svg {
    width: 14px; height: 14px;
    color: var(--primary);
    flex-shrink: 0;
    transition: color 0.5s;
}
.widgets-platform-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.widget-micro-hint {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    opacity: 0.7;
    transition: color 0.5s;
}

/* ═══════ WATCH FACE MOCKUP ═══════ */
.watch-face-mockup {
    border-radius: 58px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
    line-height: 0;
}
.watch-face-mockup img {
    width: 236px;
    height: 292px;
    object-fit: cover;
    display: block;
}

/* ═══════ FOOTER ═══════ */
footer {
    padding: 48px 0 32px; text-align: center;
    border-top: 1px solid var(--card-border);
    transition: border-color 0.5s;
}
.footer-brand {
    font-size: 20px; font-weight: 700; color: var(--primary);
    margin-bottom: 8px; transition: color 0.5s;
}
footer .tagline {
    font-size: 13px; color: var(--text-secondary);
    margin-bottom: 24px; transition: color 0.5s;
}
footer .copyright {
    font-size: 11px; color: var(--text-secondary);
    opacity: 0.6; transition: color 0.5s;
}

/* ═══════ PRIVACY POLICY ═══════ */
.policy-page {
    padding: 120px 0 80px;
    min-height: calc(100vh - 160px);
}
.policy-container { max-width: 720px; }
.policy-title {
    font-size: clamp(24px, 3vw, 32px); font-weight: 700;
    color: var(--primary); margin-bottom: 8px;
    transition: color 0.5s;
}
.policy-date {
    font-size: 13px; color: var(--text-secondary);
    margin-bottom: 48px; transition: color 0.5s;
}
.policy-content p {
    font-size: 14px; line-height: 1.8;
    margin-bottom: 20px; color: var(--text-primary);
    transition: color 0.5s;
}
.policy-content ul {
    list-style: none; padding: 0; margin: 0 0 20px;
}
.policy-content ul li {
    font-size: 14px; line-height: 1.8;
    color: var(--text-primary); padding-left: 20px;
    position: relative; transition: color 0.5s;
}
.policy-content ul li::before {
    content: '—'; position: absolute; left: 0;
    color: var(--primary); transition: color 0.5s;
}
.support-email a {
    color: var(--primary); font-weight: 600;
    border-bottom: 1px solid var(--primary);
    transition: color 0.5s, border-color 0.5s;
}
.faq-heading {
    font-size: 18px; font-weight: 700; color: var(--primary);
    margin: 48px 0 24px; padding-top: 32px;
    border-top: 1px solid var(--card-border);
    transition: color 0.5s, border-color 0.5s;
}
.faq-item {
    margin-bottom: 28px; padding: 20px 24px;
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 12px;
    transition: background-color 0.5s, border-color 0.5s;
}
.faq-question {
    font-size: 14px; font-weight: 600; color: var(--text-primary);
    margin-bottom: 8px; transition: color 0.5s;
}
.faq-item p {
    font-size: 13px; line-height: 1.8; color: var(--text-secondary);
    margin: 0; transition: color 0.5s;
}
.faq-item p a {
    color: var(--primary); border-bottom: 1px solid var(--primary);
    transition: color 0.5s, border-color 0.5s;
}
.support-card {
    margin-top: 48px; padding: 36px 32px;
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 16px; text-align: center;
    transition: background-color 0.5s, border-color 0.5s;
}
.support-card-icon {
    width: 48px; height: 48px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); border-radius: 12px;
    color: var(--primary); transition: background-color 0.5s, color 0.5s;
}
.support-card-icon svg { width: 24px; height: 24px; }
.support-card-title {
    font-size: 16px; font-weight: 700; color: var(--text-primary);
    margin-bottom: 6px; transition: color 0.5s;
}
.support-card-desc {
    font-size: 13px; color: var(--text-secondary);
    margin-bottom: 20px; transition: color 0.5s;
}
.support-card-email {
    display: inline-block; padding: 10px 24px;
    background: var(--primary); color: var(--on-primary);
    border-radius: 8px; font-size: 13px; font-weight: 600;
    transition: background-color 0.5s, color 0.5s, transform 0.2s;
}
.support-card-email:hover { transform: translateY(-2px); }

/* ═══════ PHONE DEVICE ═══════ */
.phone-device { flex-shrink: 0; }
.phone-frame {
    width: 260px; background: #111;
    border-radius: 40px; padding: 10px;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 25px 80px rgba(0,0,0,0.25),
        inset 0 0 2px rgba(255,255,255,0.05);
}
.phone-screen {
    border-radius: 32px; overflow: hidden;
    background: var(--bg);
    height: 520px; position: relative;
    transition: background-color 0.5s;
}

/* ═══════ PHONE SCREEN IMAGES ═══════ */
.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Theme-aware image switching */
[data-theme="nabawi"] .img-dark { display: none; }
[data-theme="nabawi"] .img-light { display: block; }
[data-theme="kiswa"] .img-light { display: none; }
[data-theme="kiswa"] .img-dark { display: block; }

/* ═══════ ANIMATIONS ═══════ */
.fade-up {
    opacity: 0; transform: translateY(32px);
    transition: opacity 0.7s ease calc(var(--d, 0) * 1s),
                transform 0.7s ease calc(var(--d, 0) * 1s);
}
.fade-up.visible {
    opacity: 1; transform: translateY(0);
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
    .hero-inner { gap: 40px; }
    .phone-frame { width: 230px; }
    .phone-screen { height: 460px; }
    .preview-phones { gap: 20px; }
    .preview-shot .phone-frame { width: 190px; }
    .preview-shot .phone-screen { height: 368px; } /* 170px screen × (844/390) */
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { min-height: auto; padding: 100px 0 60px; }
    .hero-inner {
        flex-direction: column; text-align: center; gap: 40px;
    }
    .hero-description { margin: 0 auto 32px; }
    .hero-phone-wrapper { transform: none !important; }
    .features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .preview-phones {
        display: flex;
        overflow-x: auto; justify-content: flex-start;
        padding: 20px 24px; margin: 0 -24px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .preview-shot {
        scroll-snap-align: center;
        flex: 0 0 auto;
    }
    .preview-shot .phone-frame { width: 210px; }
    .preview-shot .phone-screen { height: 411px; }
    .steps { flex-direction: column; align-items: center; gap: 40px; }
    .steps::before { display: none; }
    .themes-phones { gap: 24px; }
    .phone-frame { width: 220px; }
    .phone-screen { height: 440px; }
    .sync-tree { max-width: 360px; }
    .sync-node { width: 56px; height: 56px; border-radius: 14px; }
    .sync-node svg { width: 24px; height: 24px; }
    .sync-node-cloud { width: auto; height: auto; padding: 12px 22px; }
    .sync-lines { height: 64px; }
    .widgets-platform-row { gap: 32px; }
    .widgets-showcase { gap: 32px; }
}
@media (max-width: 500px) {
    .themes-phones {
        flex-direction: column; align-items: center; gap: 32px;
    }
    .phone-frame { width: 200px; }
    .phone-screen { height: 400px; }
    .sync-tree { max-width: 280px; }
    .sync-node { width: 48px; height: 48px; border-radius: 12px; }
    .sync-node svg { width: 22px; height: 22px; }
    .sync-node-cloud { width: auto; height: auto; padding: 10px 18px; font-size: 12px; }
    .sync-node-cloud svg { width: 20px; height: 20px; }
    .sync-lines { height: 56px; }
    .sync-device-label { font-size: 10px; }
    .widget-medium { transform: scale(0.9); transform-origin: top center; }
    .widget-small { transform: scale(0.9); transform-origin: top center; }
    .watch-widget { transform: scale(0.9); transform-origin: top center; }
    .mac-menu-menubar {
        padding: 10px 12px;
    }
    .mac-menu-menubar-time {
        font-size: 11px;
    }
    .mac-menu-workspace {
        min-height: auto;
        padding-top: 10px;
    }
    .mac-menu-popup {
        width: calc(100% - 8px);
        padding: 18px 18px 16px;
        border-radius: 24px;
    }
    .mac-menu-popup::before {
        right: 131px;
    }
    .mac-menu-next-prayer {
        font-size: 15px;
    }
    .mac-menu-popup-footer {
        margin-top: 32px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .hero-phone-wrapper:hover {
        transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
    }
    .feature-card:hover .feature-card-inner {
        transform: translate3d(0, -6px, 0);
        box-shadow: 0 16px 48px rgba(0,0,0,0.08);
        border-color: rgba(245,158,11,0.18);
    }
    .watch-prayer-row:hover {
        border-color: rgba(255,255,255,0.12);
    }
    .mac-menu-trigger:hover {
        background: rgba(255,255,255,0.16);
        box-shadow:
            inset 0 0 0 1px rgba(255,255,255,0.1),
            0 0 18px rgba(245,158,11,0.18);
    }
}
