/* ============================================================
   Media Design Expert — Design System (2026, Light)
   White base · emerald + teal · visual · animated
   ============================================================ */

:root {
    /* Surfaces (names kept for compatibility across views) */
    --ink-900: #ffffff;          /* admin body */
    --ink-850: #ffffff;          /* page background */
    --ink-800: #f4f8f7;          /* input background */
    --ink-700: #e9f1ef;

    --bg-alt: #f6faf9;
    --surface: #ffffff;
    --surface-2: #f4f8f7;
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-border-2: rgba(15, 23, 42, 0.14);

    /* Brand — emerald + teal */
    --violet: #10b981;
    --violet-600: #059669;
    --indigo: #14b8a6;
    --cyan: #0d9488;
    --cyan-300: #0d9488;
    --pink: #34d399;
    --mint: #d1fae5;

    --text: #0b1f1a;
    --text-muted: #475a55;
    --text-dim: #8aa39c;

    --grad-brand: linear-gradient(120deg, #10b981 0%, #14b8a6 50%, #0891b2 100%);
    --grad-brand-soft: linear-gradient(120deg, rgba(16, 185, 129, .12), rgba(13, 148, 136, .10));
    --grad-text: linear-gradient(100deg, #059669, #0d9488 55%, #0891b2);

    --radius: 22px;
    --radius-sm: 14px;
    --radius-lg: 30px;
    --shadow-sm: 0 4px 16px -6px rgba(15, 23, 42, 0.10);
    --shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.28);
    --shadow-glow: 0 18px 50px -22px rgba(16, 185, 129, 0.45);

    --container: 1180px;
    --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --header-h: 78px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--ink-850);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* ---------- Animated decorative background ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-decor span {
    position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
    animation: float 18s ease-in-out infinite;
}
.bg-decor span:nth-child(1) { width: 460px; height: 460px; top: -120px; left: -80px;  background: radial-gradient(circle, #6ee7b7, transparent 70%); }
.bg-decor span:nth-child(2) { width: 520px; height: 520px; top: 10%; right: -160px;   background: radial-gradient(circle, #99f6e4, transparent 70%); animation-delay: -4s; }
.bg-decor span:nth-child(3) { width: 420px; height: 420px; bottom: -140px; left: 30%; background: radial-gradient(circle, #a7f3d0, transparent 70%); animation-delay: -9s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.08); }
    66%      { transform: translate(-30px, 20px) scale(.96); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; color: var(--text); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { color: var(--text-muted); }

.gradient-text {
    background: var(--grad-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-pan 6s linear infinite;
}
@keyframes gradient-pan { to { background-position: 200% center; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--violet-600);
    padding: .5rem 1rem; border-radius: 999px;
    background: var(--mint); border: 1px solid rgba(16,185,129,.2);
}
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; font-size: 1.05rem; }
.lead { font-size: 1.15rem; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-weight: 700; font-size: .98rem; cursor: pointer;
    padding: .95rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--grad-brand); background-size: 160% auto; color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px); background-position: right center; box-shadow: 0 24px 56px -20px rgba(16,185,129,.7); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--glass-border-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--violet); color: var(--violet-600); }
.btn-block { width: 100%; }
.btn-sm { padding: .62rem 1.1rem; font-size: .86rem; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h); display: flex; align-items: center;
    transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 6px 24px -16px rgba(15,23,42,.3);
    border-bottom-color: var(--glass-border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.18rem; color: var(--text); }
.brand .mark {
    width: 38px; height: 38px; border-radius: 11px; background: var(--grad-brand);
    display: grid; place-items: center; color: #fff; font-size: 1.1rem;
    box-shadow: 0 8px 20px -8px rgba(16, 185, 129, .7);
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: var(--text-muted); font-weight: 600; font-size: .96rem; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--violet-600); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: .4rem; }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero (fills exactly one screen — zero scroll) ---------- */
.hero {
    min-height: 100vh;            /* fallback */
    min-height: 100svh;           /* avoids mobile address-bar jump */
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 1.5rem) 0 2rem;
    position: relative;
}
.hero > .container { width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero-inner { max-width: 640px; }
.hero h1 { margin: 1.2rem 0 1.3rem; }
.hero p { font-size: 1.18rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.6rem; }
.hero-stats .stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--violet-600); }
.hero-stats .stat span { font-size: .88rem; color: var(--text-dim); }

/* staggered entrance (CSS-only, no JS dependency) */
.animate-in > * { opacity: 0; animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) forwards; }
.animate-in > *:nth-child(1) { animation-delay: .05s; }
.animate-in > *:nth-child(2) { animation-delay: .15s; }
.animate-in > *:nth-child(3) { animation-delay: .25s; }
.animate-in > *:nth-child(4) { animation-delay: .35s; }
.animate-in > *:nth-child(5) { animation-delay: .45s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Hero visual: AI automation orbit ---------- */
.hero-visual { position: relative; height: 380px; display: grid; place-items: center; animation: fadeUp 1s .3s both; }
.orbit { position: relative; width: 300px; height: 300px; border-radius: 50%; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(16,185,129,.3); animation: spin 36s linear infinite; }
.orbit-ring.r2 { inset: 46px; border-color: rgba(13,148,136,.28); animation-duration: 26s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-core {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 118px; height: 118px; border-radius: 30px; background: var(--grad-brand);
    display: grid; place-items: center; color: #fff; font-weight: 800; text-align: center;
    font-size: 1rem; box-shadow: var(--shadow-glow); animation: pulse 3.5s ease-in-out infinite;
    line-height: 1.2;
}
@keyframes pulse { 0%,100% { box-shadow: var(--shadow-glow); } 50% { box-shadow: 0 24px 70px -20px rgba(16,185,129,.85); } }
.orbit-chip {
    position: absolute; background: #fff; border: 1px solid var(--glass-border);
    border-radius: 14px; padding: .6rem .85rem; font-size: .82rem; font-weight: 700; color: var(--text);
    box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: .45rem; white-space: nowrap;
    animation: bob 5s ease-in-out infinite;
}
.orbit-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); }
.orbit-chip.c1 { top: 2%; left: 50%; transform: translateX(-50%); }
.orbit-chip.c2 { top: 42%; right: -6%; animation-delay: -1.2s; }
.orbit-chip.c3 { bottom: 2%; left: 50%; transform: translateX(-50%); animation-delay: -2.4s; }
.orbit-chip.c4 { top: 42%; left: -6%; animation-delay: -3.6s; }
@keyframes bob { 0%,100% { transform: translateY(0) translateX(var(--tx,0)); } 50% { transform: translateY(-10px) translateX(var(--tx,0)); } }
.orbit-chip.c1, .orbit-chip.c3 { --tx: -50%; }

/* ---------- Service hero visual (automation dashboard mockup) ---------- */
.svc-visual { position: relative; }
.svc-visual-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.dash { background: #fff; border: 1px solid var(--glass-border); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; animation: fadeUp 1s .2s both; }
.dash-top { display: flex; align-items: center; gap: .45rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--glass-border); background: var(--bg-alt); }
.dash-top .dot { width: 11px; height: 11px; border-radius: 50%; }
.dash-top .dot.r { background: #f87171; } .dash-top .dot.y { background: #fbbf24; } .dash-top .dot.g { background: #34d399; }
.dash-title { margin-left: .5rem; font-size: .82rem; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: .4rem; }
.dash-live { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.dash-body { padding: 1.3rem; display: grid; gap: 1.1rem; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dash-kpi { background: var(--bg-alt); border: 1px solid var(--glass-border); border-radius: 14px; padding: .9rem 1rem; }
.dash-kpi span { font-size: .76rem; color: var(--text-dim); display: block; margin-bottom: .2rem; }
.dash-kpi strong { font-size: 1.6rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-chart { display: flex; align-items: flex-end; gap: .5rem; height: 96px; padding: .7rem; background: var(--bg-alt); border-radius: 14px; }
.dash-chart span { flex: 1; background: var(--grad-brand); border-radius: 6px 6px 0 0; height: var(--h, 50%); transform-origin: bottom; animation: growBar 1.1s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.dash-tasks { display: grid; gap: .55rem; }
.dash-task { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--text-muted); }
.dash-task .tick { width: 19px; height: 19px; border-radius: 6px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-size: .7rem; font-weight: 800; flex-shrink: 0; }
.dash-task .ago { margin-left: auto; font-size: .72rem; color: var(--text-dim); }
.dash-task .spin { width: 17px; height: 17px; border: 2px solid var(--mint); border-top-color: var(--violet); border-radius: 50%; animation: spin 1s linear infinite; flex-shrink: 0; }
.dash-chip { position: absolute; background: #fff; border: 1px solid var(--glass-border); border-radius: 12px; padding: .55rem .85rem; font-size: .82rem; font-weight: 700; color: var(--text); box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.dash-chip.c-a { top: -16px; right: 22px; }
.dash-chip.c-b { bottom: -16px; left: 22px; animation-delay: -2.5s; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--glass-border); padding: 1.1rem 0; background: #fff; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-weight: 700; color: var(--text-dim); font-size: 1rem; display: flex; align-items: center; gap: .6rem; }
.marquee-track span::before { content: "✦"; color: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    position: relative; background: var(--surface);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 1.9rem; box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    overflow: hidden;
}
.card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: var(--grad-brand); opacity: 0; transition: opacity .3s;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover::after { opacity: .6; }
.card .icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.7rem; margin-bottom: 1.1rem;
    background: var(--mint); border: 1px solid rgba(16,185,129,.18);
    transition: transform .3s ease;
}
.card:hover .icon { transform: scale(1.1) rotate(-6deg); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; }
.card .card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; color: var(--violet-600); font-weight: 700; font-size: .92rem; }
.card .card-link::after { content: "→"; transition: transform .2s; }
.card:hover .card-link::after { transform: translateX(5px); }
.card.featured { border-color: rgba(16, 185, 129, .4); background: linear-gradient(160deg, #fff, var(--mint)); box-shadow: var(--shadow-glow); }
.card.featured::before {
    content: "Flagship"; position: absolute; top: 1.2rem; right: 1.2rem;
    font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: #fff; padding: .3rem .65rem; border-radius: 999px; background: var(--grad-brand);
}

.tag {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: var(--violet-600);
    padding: .3rem .7rem; border-radius: 999px; background: var(--mint); border: 1px solid rgba(16,185,129,.18);
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.bento .card { display: flex; flex-direction: column; }
.dim-list { list-style: none; margin-top: 1.1rem; display: grid; gap: .6rem; }
.dim-list li { display: flex; gap: .7rem; align-items: flex-start; }
.dim-list li a { color: var(--text-muted); font-weight: 600; font-size: .96rem; }
.dim-list li a:hover { color: var(--violet-600); }
.dim-list li::before { content: "✦"; color: var(--violet); flex-shrink: 0; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; display: grid; gap: .8rem; margin: 1.3rem 0; }
.feature-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text-muted); }
.feature-list li a { color: var(--text-muted); }
.feature-list li a:hover { color: var(--violet-600); }
.feature-list li .check {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
    background: var(--grad-brand); color: #fff; font-size: .78rem; font-weight: 800;
}

/* ---------- Stat counters ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.stat-pill { flex: 1; min-width: 130px; background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 1.3rem 1.2rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat-pill strong { display: block; font-size: 1.7rem; color: var(--violet-600); font-weight: 800; }
.stat-pill span { font-size: .82rem; color: var(--text-dim); }

.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; text-align: center; }
.results .num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.results .lbl { color: var(--text-muted); margin-top: .5rem; font-weight: 600; font-size: .95rem; }

/* ---------- Split panel ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.panel { background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow); }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; text-align: center; border-radius: var(--radius-lg); overflow: hidden;
    padding: clamp(3rem, 6vw, 4.5rem) 2rem; color: #fff;
    background: var(--grad-brand); background-size: 180% 180%; animation: gradient-move 10s ease infinite;
    box-shadow: var(--shadow-glow);
}
@keyframes gradient-move { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { max-width: 540px; margin: 0 auto 2rem; color: rgba(255,255,255,.92); }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--violet-600); box-shadow: 0 14px 30px -12px rgba(0,0,0,.3); }
.cta-band .btn-primary:hover { background: #fff; }
.cta-band .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; padding-top: 18px; }
.price-card { display: flex; flex-direction: column; position: relative; overflow: visible; }
.price-card.popular { border-color: var(--violet); box-shadow: var(--shadow-glow); transform: translateY(-6px); }
.price-card.popular::after { opacity: .6; }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad-brand); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .4rem .9rem; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(16,185,129,.6); white-space: nowrap; z-index: 2; }
.price-off { position: absolute; top: 1.1rem; right: 1.1rem; background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; font-size: .72rem; font-weight: 800; padding: .25rem .6rem; border-radius: 999px; }
.price-card h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.price-blurb { font-size: .92rem; min-height: 2.6em; }
.price-compare { margin-top: 1.2rem; font-size: .88rem; color: var(--text-dim); }
.price-was { text-decoration: line-through; font-weight: 700; color: var(--text-muted); }
.price { margin: .15rem 0 .2rem; display: flex; align-items: baseline; gap: .3rem; }
.price-amount { font-size: 2.6rem; font-weight: 800; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-period { color: var(--text-dim); font-weight: 700; }
.price-setup { color: var(--text-muted); font-size: .9rem; font-weight: 600; margin-bottom: 1.2rem; }
.price-card .feature-list { flex: 1; margin: 0 0 1.4rem; }
.price-card .feature-list li { font-size: .92rem; }
.enterprise-band { margin-top: 1.4rem; background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 1.8rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.enterprise-band p { max-width: 640px; font-size: .96rem; }
.enterprise-band .btn { flex-shrink: 0; }
.price-note { text-align: center; margin-top: 1.6rem; color: var(--text-dim); font-size: .9rem; }
.price-note a { color: var(--violet-600); font-weight: 700; }

/* UAE pricing comparison */
.compare-uae { margin-top: 2.6rem; }
.compare-uae .section-head { margin-bottom: 1.4rem; }
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 520px; }
.compare-table th, .compare-table td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--glass-border); font-size: .95rem; }
.compare-table thead th { background: var(--bg-alt); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .col-ours { color: var(--violet-600); font-weight: 800; }
.compare-table .col-uae { color: var(--text-muted); text-decoration: line-through; }
.compare-table .col-save { color: #047857; font-weight: 800; }
.compare-table .plan { font-weight: 700; }
.compare-disclaimer { margin-top: 1rem; font-size: .82rem; color: var(--text-dim); text-align: center; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .meta { display: flex; gap: .6rem; align-items: center; font-size: .8rem; color: var(--text-dim); margin-bottom: .8rem; }
.post-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.post-card .excerpt { font-size: .94rem; flex: 1; }
.post-card .card-link { margin-top: 1rem; }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filters a { font-size: .9rem; font-weight: 600; padding: .55rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--glass-border); color: var(--text-muted); box-shadow: var(--shadow-sm); }
.filters a.active { background: var(--grad-brand); color: #fff; border-color: transparent; }

.pagination { display: flex; gap: .6rem; justify-content: center; margin-top: 3rem; align-items: center; }
.pagination a, .pagination span { padding: .55rem 1rem; border-radius: 12px; background: #fff; border: 1px solid var(--glass-border); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); }
.pagination .current { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; }
.post-cover { margin-bottom: 2rem; }
.post-cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.post-cover figcaption { text-align: center; font-size: .8rem; color: var(--text-dim); margin-top: .6rem; }

/* "Products for this" recommendation block */
.products-for { margin-top: 3rem; padding: 2rem; border-radius: var(--radius-lg); background: var(--bg-alt); border: 1px solid var(--glass-border); }
.products-for-head { text-align: center; margin-bottom: 1.6rem; }
.products-for-head h2 { font-size: 1.7rem; margin: .6rem 0 .4rem; }
.products-for-head p { font-size: .98rem; }
.product-rec { display: flex; flex-direction: column; }
.product-rec h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.product-rec .rec-tag { font-weight: 600; color: var(--violet-600); font-size: .9rem; margin-bottom: .5rem; }
.product-rec .rec-why { font-size: .92rem; flex: 1; }
.product-rec .card-link { margin-top: 1rem; }

/* Blog card thumbnails */
.post-card .thumb { display: block; margin: -1.9rem -1.9rem 1.2rem; aspect-ratio: 16 / 9; overflow: hidden; background: var(--mint); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .thumb img { transform: scale(1.06); }
.article-header { text-align: center; margin-bottom: 2.5rem; }
.article-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 1rem 0; }
.article-meta { color: var(--text-dim); font-size: .92rem; }
.prose { font-size: 1.08rem; color: #2b3b36; }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-top: .5rem; color: var(--text-muted); }
.prose a { color: var(--violet-600); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose blockquote { border-left: 3px solid var(--violet); padding-left: 1.2rem; color: var(--text-muted); font-style: italic; }
.prose code { background: var(--surface-2); padding: .15rem .45rem; border-radius: 6px; font-size: .9em; }
.prose pre { background: #0b1f1a; color: #d1fae5; padding: 1.2rem; border-radius: var(--radius-sm); overflow-x: auto; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .45rem; color: var(--text); }
.field input, .field textarea, .field select {
    width: 100%; padding: .85rem 1rem; border-radius: 12px; font-size: .98rem; font-family: inherit;
    background: #fff; color: var(--text); border: 1px solid var(--glass-border-2);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}
.field .hint { font-size: .78rem; color: var(--text-dim); margin-top: .35rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* Show/hide password toggle */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 2.9rem; }
.pw-toggle { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--text-dim); padding: .4rem; display: grid; place-items: center; border-radius: 8px; line-height: 0; }
.pw-toggle:hover { color: var(--violet-600); }
.pw-toggle svg { width: 20px; height: 20px; }

/* ---------- Alerts ---------- */
.alert { padding: .9rem 1.2rem; border-radius: 12px; font-size: .92rem; margin-bottom: 1.2rem; border: 1px solid; }
.alert-success { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.alert-error { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--glass-border); margin-top: 0; padding: 3.5rem 0 2rem; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; display: grid; gap: .6rem; }
.footer-grid a { color: var(--text-muted); font-size: .94rem; }
.footer-grid a:hover { color: var(--violet-600); }
.footer-brand p { margin: 1rem 0; max-width: 320px; font-size: .94rem; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #fff; border: 1px solid var(--glass-border); color: var(--text-muted); transition: all .2s; box-shadow: var(--shadow-sm); }
.socials a:hover { background: var(--grad-brand); border-color: transparent; color: #fff; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--glass-border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--text-dim); font-size: .86rem; }

/* ---------- Reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--text-dim); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--violet-600); }

/* ============================================================
   Admin panel (light)
   ============================================================ */
.admin-body { background: var(--bg-alt); min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: #fff; border-right: 1px solid var(--glass-border); padding: 1.6rem 1.1rem; position: sticky; top: 0; height: 100vh; box-shadow: var(--shadow-sm); }
.admin-side .brand { margin-bottom: 2rem; }
.admin-nav { list-style: none; display: grid; gap: .25rem; }
.admin-nav a { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 12px; color: var(--text-muted); font-weight: 600; font-size: .94rem; }
.admin-nav a:hover { background: var(--surface-2); color: var(--text); }
.admin-nav a.active { background: var(--mint); color: var(--violet-600); }
.admin-main { padding: 2rem 2.4rem; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.admin-topbar h1 { font-size: 1.8rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2rem; }
.kpi { background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.kpi strong { font-size: 2.2rem; display: block; color: var(--violet-600); }
.kpi span { color: var(--text-dim); font-size: .9rem; }

.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table th, .data-table td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--glass-border); font-size: .92rem; }
.data-table th { color: var(--text-dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--surface-2); }
.badge { font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.badge-pub { background: #d1fae5; color: #047857; }
.badge-draft { background: #e2e8f0; color: #475569; }
.badge-cat { background: var(--mint); color: var(--violet-600); }
.table-actions { display: flex; gap: .5rem; }

.admin-card { background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.admin-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.6rem; align-items: start; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 2.4rem; box-shadow: var(--shadow); }
.login-card .brand { justify-content: center; margin-bottom: 1.6rem; }

/* ============================================================
   Responsive
   ============================================================ */
/* Mobile nav CTA — only shown inside the open mobile menu */
.nav-cta { display: none; }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
    .hero-inner { max-width: none; margin-inline: auto; }
    .hero p { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { height: 320px; order: -1; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .price-card.popular { transform: none; }
    .enterprise-band { flex-direction: column; align-items: flex-start; text-align: left; }
    .results { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
    .section-head { margin-bottom: 2rem; }
    .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(255,255,255,.98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-border); padding: 1rem 24px 1.6rem; transform: translateY(-130%); transition: transform .35s ease; box-shadow: var(--shadow); }
    .nav.open { transform: none; }
    .nav a { padding: .9rem 0; border-bottom: 1px solid var(--glass-border); }
    .nav-cta { display: inline-flex; margin-top: .9rem; border: 0; }
    .nav-toggle { display: block; }
    .header-actions .btn:not(.nav-toggle) { display: none; }
    .grid-2, .grid-3, .grid-4, .bento { grid-template-columns: 1fr; }
    .hero-actions .btn { flex: 1; }
    .form-row { grid-template-columns: 1fr; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; height: auto; }
    .admin-nav { display: flex; flex-wrap: wrap; }
    .admin-main { padding: 1.3rem; }
    .admin-topbar h1 { font-size: 1.5rem; }
    .kpi-grid, .results { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }

    /* Horizontal scroll for wide admin tables instead of overflow */
    .data-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }

    /* Scale the hero orbit so chips clear the core and nothing overflows */
    .hero-visual { height: 320px; }
    .orbit { width: 300px; height: 300px; }
    .orbit-ring.r2 { inset: 46px; }
    .orbit-core { width: 96px; height: 96px; border-radius: 24px; font-size: .82rem; }
    .orbit-chip { font-size: .72rem; padding: .45rem .65rem; }
    .orbit-chip.c2 { right: -2%; }
    .orbit-chip.c4 { left: -2%; }
}

@media (max-width: 380px) {
    .results, .kpi-grid { grid-template-columns: 1fr; }
    .container { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .animate-in > * { opacity: 1 !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
