/* ═══════════════════════════════════════════════════════════════════════════
   PEAK Landing Page — style.css
   Variables + Layout + Components + Animations + Responsive
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────────────────────── */
:root {
    --brand: #F27D26;
    --brand-dark: #D96A1F;
    --brand-light: #FFF3E8;
    --brand-glow: rgba(242, 125, 38, 0.35);

    --bg: #FFFFFF;
    --bg-alt: #FAFAFA;
    --bg-dark: #111827;

    --text: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --text-white: #FFFFFF;

    --border: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --nav-h: 72px;
    --section-py: 100px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ─── Utilities ─────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-brand { color: var(--brand); }
.mb-60 { margin-bottom: 60px; }
.w-full { width: 100%; }
.relative { position: relative; }
.items-center { align-items: center; }
.rounded-3xl { border-radius: var(--radius-xl); }

.order-1-mobile { order: 1; }
.order-2-mobile { order: 2; }

/* ─── Grid ──────────────────────────────────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* ─── Section ───────────────────────────────────────────────────────────── */
.section {
    padding: var(--section-py) 0;
    position: relative;
}

.section-alt { background: var(--bg-alt); }

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--brand);
    border-radius: var(--radius-full);
    margin: 0 auto;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Almarai', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--text-white);
    border-color: transparent;
    box-shadow: 0 4px 14px var(--brand-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--brand-glow);
}

.btn-secondary {
    background: var(--bg);
    color: var(--brand);
    border-color: var(--brand);
}
.btn-secondary:hover {
    background: var(--brand-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}
.btn-outline:hover {
    background: var(--brand);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--text-white);
    color: var(--brand-dark);
    border-color: transparent;
    font-weight: 800;
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: transparent;
    color: var(--text-white);
    border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.7);
}

.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -1px;
}

/* Constrain logo image so it doesn't overflow the navbar */
.logo-img {
    width: 140px; /* adjust to preferred size */
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Optional: hide text fallback when image is present */
.logo .logo-text { display: none; }

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 16px;
    left: 16px;
    height: 2px;
    background: var(--brand);
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.btn-nav { font-size: 0.85rem; padding: 8px 24px; }

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    position: absolute;
    right: 0;
    transition: all var(--transition);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; width: 70%; }

.hamburger.open span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { bottom: auto; top: 50%; transform: rotate(-45deg); width: 100%; }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    text-align: center;
}

.mobile-nav-links li { margin-bottom: 16px; }

.mobile-link {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    padding: 10px 20px;
    display: block;
    transition: color var(--transition);
}

.mobile-link:hover { color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
    padding-top: calc(var(--nav-h) + 60px);
    padding-bottom: var(--section-py);
    background: linear-gradient(160deg, #FFF8F0 0%, #FFF 30%, #F8FAFF 70%, #FFF5EB 100%);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Floating decorations */
.hero-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-decoration-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero-decoration-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    bottom: 10%;
    right: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-decoration-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(242, 125, 38, 0.12) 0%, transparent 70%);
    top: 40%;
    left: 20%;
    animation: float 6s ease-in-out infinite 1s;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text);
}

.hero-subtitle {
    margin-bottom: 12px;
}

.hero-subtitle h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--text);
}

.underline-bar {
    width: 80px;
    height: 4px;
    background: var(--brand);
    border-radius: var(--radius-full);
    margin: 12px auto 0;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-image {
    max-width: 960px;
    margin: 0 auto;
    perspective: 1000px;
}

.hero-image-frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: rotateX(2deg);
    transition: transform var(--transition-slow);
}

.hero-image-frame:hover {
    transform: rotateX(0);
}

.hero-image-frame img {
    width: 100%;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.feature-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}

.feature-img:hover {
    transform: scale(1.02) rotate(-1deg);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.feature-item:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.feature-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   WHY PEAK — Timeline
   ═══════════════════════════════════════════════════════════════════════════ */
.why-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text);
}

.timeline {
    position: relative;
    padding-right: 40px;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    right: 13px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--brand), var(--brand-light));
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.timeline-item:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    transform: translateX(-4px);
}

.timeline-icon {
    position: absolute;
    right: -52px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
    z-index: 1;
}

.timeline-item:hover .timeline-icon {
    transform: translateY(-50%) scale(1.25);
}

.timeline-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 700;
}

/* Floating card */
.floating-card {
    position: absolute;
    bottom: 40px;
    right: -20px;
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #DEF7EC;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.floating-card-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Outer layout: arrows outside, cards inside ────────────────────────── */
.pricing-slider-layout {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ─── Carousel wrapper (clips the sliding track) ────────────────────────── */
.pricing-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 16px 2px; /* top/bottom: space for popular card glow */
}

/* ─── Track ──────────────────────────────────────────────────────────────── */
.pricing-grid {
    display: flex;
    gap: 0;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    align-items: stretch;
}

/* ─── Each card ──────────────────────────────────────────────────────────── */
.pricing-grid .pricing-card {
    flex: 0 0 calc(33.333% - 16px);
    margin: 0 8px;
    box-sizing: border-box;
}

/* ─── Arrows (outside the track, inline) ────────────────────────────────── */
.pricing-scroll-btn {
    display: flex;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    position: static; /* no longer absolute */
}

.pricing-scroll-btn:hover {
    background: var(--brand);
    color: var(--text-white);
    border-color: var(--brand);
    box-shadow: 0 4px 14px var(--brand-glow);
}

.pricing-scroll-btn:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

/* ─── Dots ───────────────────────────────────────────────────────────────── */
.pricing-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pricing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
}

.pricing-dot.active {
    background: var(--brand);
    width: 28px;
    border-radius: var(--radius-full);
}

/* ─── Card base ──────────────────────────────────────────────────────────── */
.pricing-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Popular card */
.pricing-card-popular {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand), 0 0 28px var(--brand-glow);
    z-index: 2;
}

.pricing-card-popular:hover {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 0 0 2px var(--brand), 0 0 40px var(--brand-glow);
}

.popular-badge {
    position: absolute;
    top: -14px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--text-white);
    padding: 6px 24px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    animation: badgePulse 3s ease-in-out infinite;
}

.pricing-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.pricing-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.pricing-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
}

.price-currency {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.pricing-features {
    flex: 1;
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    color: var(--brand);
    flex-shrink: 0;
}

/* Pricing Skeleton */
.pricing-skeleton { pointer-events: none; }
.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    margin-bottom: 12px;
}
.skeleton-line.big { height: 36px; margin-top: 8px; }
.skeleton-line.btn-h { height: 44px; border-radius: var(--radius-full); margin-top: auto; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-32 { width: 32%; }
.skeleton-line.w-full { width: 100%; }
.pricing-features-skeleton { flex: 1; padding: 20px 0; }
.pricing-features-skeleton .skeleton-line { width: 80%; }
.pricing-features-skeleton .skeleton-line:nth-child(2) { width: 65%; }
.pricing-features-skeleton .skeleton-line:nth-child(3) { width: 75%; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPECIAL OFFER
   ═══════════════════════════════════════════════════════════════════════════ */
.offer-section {
    padding: var(--section-py) 0;
    background: transparent;
}

.offer-card {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark), #C45A16);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    color: var(--text-white);
}

.offer-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
    pointer-events: none;
}

.offer-content {
    padding: 60px 48px;
    position: relative;
    z-index: 1;
}

.offer-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.offer-desc {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 24px;
}

.offer-features {
    margin-bottom: 32px;
}

.offer-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.95rem;
}

.offer-feature svg {
    color: var(--text-white);
    flex-shrink: 0;
}

.offer-image-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 400px;
}

.offer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.offer-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 60%);
}

.offer-badge {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-white);
    color: var(--brand-dark);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DEVICE COMPATIBILITY
   ═══════════════════════════════════════════════════════════════════════════ */
#devices {
    background: linear-gradient(170deg, #FFF8F0 0%, var(--bg) 50%, #F0F4FF 100%);
}

.phone-mockup {
    position: relative;
    max-width: 300px;
    margin: 0 auto 40px;
    padding: 12px;
    background: linear-gradient(145deg, var(--brand-light), #FFF);
    border-radius: 40px;
    box-shadow: var(--shadow-xl);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.phone-mockup img {
    border-radius: 30px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
    transition: transform var(--transition-slow);
}

.phone-mockup:hover img {
    transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
}

/* Show placeholder text inside phone frame when no image */
.phone-mockup.img-placeholder-phone::after {
    position: static;
    font-size: 0.85rem;
}

.phone-stats-card {
    position: absolute;
    bottom: 40px;
    left: -80px;
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: floatCard 5s ease-in-out infinite 1s;
    border: 1px solid var(--border);
}

.phone-stats-card svg { color: var(--brand); margin: 0 auto 8px; }
.stats-title { font-size: 0.75rem; color: var(--text-light); margin-bottom: 2px; }
.stats-value { font-size: 0.9rem; font-weight: 700; color: #059669; }

.device-features {
    margin: 32px 0;
}

.device-feature {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.device-feature:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    transform: translateX(-6px);
}

.device-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-light), #FFE4CC);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(242, 125, 38, 0.15);
}

.device-feature h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.device-feature p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    color: var(--bg-dark);
    line-height: 0;
}

.footer-wave svg { width: 100%; height: 80px; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer h4 {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

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

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.social-icon:hover {
    background: var(--brand);
    color: var(--text-white);
    transform: translateY(-3px);
}

.footer-email {
    font-size: 0.85rem;
    direction: ltr;
    text-align: right;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
}

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

.footer-legal a {
    transition: color var(--transition);
}
.footer-legal a:hover { color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Float */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Float card */
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Pulse (badge) */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* Badge pulse glow */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--brand-glow); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

/* ─── Scroll-triggered reveal ───────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Image Placeholders (when src missing) ────────────────────────────── */
.img-placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-light), #F0F4FF);
    border-radius: var(--radius-xl);
    border: 2px dashed rgba(242, 125, 38, 0.4);
    position: relative;
    overflow: hidden;
}

.img-placeholder::after {
    content: 'صورة قريباً';
    color: var(--brand);
    font-family: 'Almarai', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.5;
    direction: rtl;
}

.img-placeholder-wide  { width: 100%; height: 400px; }
.img-placeholder-rect  { width: 100%; height: 340px; }
.img-placeholder-square { width: 100%; height: 420px; }
.img-placeholder-phone { width: 260px; height: 480px; margin: 0 auto; }

/* ─── Pricing Skeleton ───────────────────────────────────────────────────── */
.pricing-skeleton { opacity: 0.7; pointer-events: none; }

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
    animation: shimmer 1.5s infinite;
}

.skeleton-line.big { height: 48px; width: 50% !important; margin: 12px auto; }
.skeleton-line.btn-h { height: 44px; border-radius: var(--radius-full); }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-32 { width: 32%; }
.skeleton-line.w-full { width: 100%; }

.pricing-features-skeleton { margin-bottom: 20px; }

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* ─── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    :root { --section-py: 70px; }

    /* 2 cards visible on tablet */
    .pricing-grid .pricing-card {
        flex: 0 0 calc(50% - 16px);
    }

    .pricing-slider-layout {
        gap: 8px;
    }

    .pricing-card-popular {
        transform: scale(1.03);
    }
    .pricing-card-popular:hover {
        transform: scale(1.03) translateY(-6px);
    }

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

/* Mobile */
@media (max-width: 768px) {
    :root { --section-py: 60px; --nav-h: 64px; }

    .nav-links, .btn-nav { display: none; }
    .hamburger { display: block; }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .order-1-mobile { order: 1; }
    .order-2-mobile { order: 2; }

    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-h) + 40px);
    }

    .hero-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
    .hero-actions { flex-direction: column; align-items: center; }

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

    /* 1 card visible on mobile */
    .pricing-grid .pricing-card {
        flex: 0 0 calc(100% - 16px);
    }
    .pricing-grid .pricing-card-popular {
        transform: none;
    }

    /* Timeline adjustments */
    .timeline { padding-right: 36px; }
    .timeline::before { right: 11px; }
    .timeline-icon { right: -47px; width: 26px; height: 26px; }
    .timeline-icon svg { width: 14px; height: 14px; }

    .floating-card { display: none; }
    .phone-stats-card { left: -10px; }

    .offer-content { padding: 36px 24px; }
    .offer-image-wrapper { min-height: 280px; }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal { justify-content: center; }
}

/* Small phones */
@media (max-width: 400px) {
    .container { padding: 0 16px; }
    .btn-group { flex-direction: column; }
    .btn-group .btn { width: 100%; }
    .pricing-grid { max-width: 100%; }
}
