/* ============================================================
   COMPILE — Software Engineer vCard
   Next-gen ScaanMe theme · terminal-meets-design-system
   GitHub-night surfaces · mono brand voice · type-&-cursor signature
   Mobile-first · RTL-safe (logical properties) · reduced-motion aware
   ============================================================ */

:root {
    /* GitHub-night palette — one dominant dark family + ONE accent */
    --bg: var(--tk-bg, #0D1117);            /* GitHub-night canvas */
    --bg-2: color-mix(in srgb, var(--tk-bg, #0D1117) 78%, #000);          /* deepest gutter */
    --panel: color-mix(in srgb, var(--tk-bg, #0D1117) 92%, #fff);         /* primary surface tier */
    --panel-2: color-mix(in srgb, var(--tk-bg, #0D1117) 86%, #fff);       /* raised surface tier (elevation 2) */
    --panel-3: color-mix(in srgb, var(--tk-bg, #0D1117) 80%, #fff);       /* hover / inset tier */
    --line: color-mix(in srgb, var(--tk-bg, #0D1117) 80%, #fff);          /* hairline */
    --line-2: color-mix(in srgb, var(--tk-bg, #0D1117) 70%, #fff);        /* stronger hairline */
    --txt: var(--tk-text, #E6EDF3);           /* foreground */
    --muted: color-mix(in srgb, var(--tk-text, #E6EDF3) 56%, var(--tk-bg, #0D1117));   /* secondary text */
    --dim: color-mix(in srgb, var(--tk-text, #E6EDF3) 42%, var(--tk-bg, #0D1117));     /* tertiary text */
    --accent: var(--tk-primary, #3FB950);        /* terminal-green — the single accent */
    --accent-soft: rgb(from var(--tk-primary, #3FB950) r g b / .14);
    --accent-line: rgb(from var(--tk-primary, #3FB950) r g b / .42);
    --accent-glow: rgb(from var(--tk-primary, #3FB950) r g b / .30);
    /* syntax pops — used ONLY inside the code-snippet block */
    --syn-cyan: var(--tk-accent2, #79C0FF);
    --syn-violet: #D2A8FF;
    --syn-amber: var(--tk-success, #FFA657);
    --syn-rose: var(--tk-danger, #FF7B72);
    --syn-comment: color-mix(in srgb, var(--tk-text, #E6EDF3) 56%, var(--tk-bg, #0D1117));
    /* the ONE signature gradient — spent only on a few hero accents */
    --grad: linear-gradient(135deg, var(--tk-secondary, #2EA043) 0%, var(--tk-primary, #3FB950) 100%);
    --r-lg: 18px;
    --r-md: 12px;
    --r-sm: 8px;
    --font-d: var(--tk-font-header, 'Space Grotesk'), 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --font-b: var(--tk-font-content, 'Inter'), 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
    --dock-h: 74px;
    --ease: cubic-bezier(.22, .8, .26, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--txt);
    font-family: var(--font-b);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

::selection { background: var(--accent-soft); color: var(--accent); }

/* ---------- Ambient background system (CSS-only, reduced-motion killed) ---------- */
.fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.fx::before { /* fine IDE grid — the texture layer */
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
            mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
    opacity: .55;
}
.fx-glow { /* single terminal-glow bloom, drifts slowly */
    position: absolute; inset-block-start: -14%; inset-inline-start: 50%;
    width: 76vw; height: 76vw; max-width: 760px; max-height: 760px;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 62%);
    filter: blur(70px); opacity: .42; will-change: transform;
    animation: glowDrift 30s ease-in-out infinite alternate;
}
@keyframes glowDrift { to { transform: translateX(-50%) translateY(9vh) scale(1.12); } }

/* ---------- Layout ---------- */
.code-wrap { max-width: 720px; margin-inline: auto; padding-inline: 20px; padding-block-end: calc(var(--dock-h) + 28px); }
.sec { padding-block: 50px; }
.sec-head { margin-block-end: 28px; }
.kicker {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-mono); font-size: 12px; font-weight: 500;
    letter-spacing: .04em; color: var(--accent);
}
.kicker::before { content: "//"; color: var(--dim); font-weight: 600; }
/* heavier, tighter display scale — real jump above body */
.sec-title { font-family: var(--font-d); font-size: clamp(1.9rem, 6.2vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; margin-block-start: 12px; }
.sec-sub { color: var(--muted); font-size: 15px; line-height: 1.6; margin-block-start: 10px; max-width: 54ch; }

/* ---------- Reveal choreography (scroll) ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .07s; } .rv-d2 { transition-delay: .14s; } .rv-d3 { transition-delay: .21s; }

/* ---------- Hero page-load sequence (orchestrated, runs once) ---------- */
.hero-load { opacity: 0; transform: translateY(18px); animation: heroIn .7s var(--ease) forwards; }
.hl-1 { animation-delay: .04s; }
.hl-2 { animation-delay: .12s; }
.hl-3 { animation-delay: .22s; }
.hl-4 { animation-delay: .34s; }
.hl-5 { animation-delay: .46s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Topbar ---------- */
.topbar {
    position: sticky; inset-block-start: 0; z-index: 60;
    display: flex; align-items: center; gap: 12px;
    margin-inline: -20px; padding: 11px 20px;
    background: rgb(from var(--tk-bg, #0D1117) r g b / .78);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-block-end: 1px solid var(--line-2);
}
.topbar-avatar { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-2); }
.topbar-name { font-family: var(--font-mono); font-weight: 500; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-spacer { flex: 1; }

/* ---------- Hero (terminal prompt + typed line) ---------- */
.hero { padding-block: 44px 28px; position: relative; }
.hero-chip { /* availability: open to contracts */
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 13px; border-radius: 999px;
    background: var(--accent-soft); border: 1px solid var(--accent-line);
    font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--accent);
}
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse-dot 2.4s ease-out infinite; }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 8px rgb(from var(--tk-primary, #3FB950) r g b / 0); } 100% { box-shadow: 0 0 0 0 rgb(from var(--tk-primary, #3FB950) r g b / 0); } }

.hero-brand {
    margin-block-start: 22px;
    font-family: var(--font-mono); font-weight: 500; font-size: clamp(.95rem, 3.6vw, 1.15rem);
    letter-spacing: 0; line-height: 1; color: var(--muted);
    display: flex; align-items: center; gap: 10px;
}
.hero-brand .at { color: var(--accent); }

/* terminal prompt line above the statement headline */
.hero-prompt {
    margin-block-start: 20px;
    font-family: var(--font-mono); font-size: clamp(.95rem, 3.8vw, 1.15rem);
    color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.hero-prompt .sigil { color: var(--accent); font-weight: 600; }
.hero-prompt .cmd { color: var(--txt); }

.hero-title {
    font-family: var(--font-d);
    font-size: clamp(2.4rem, 9.5vw, 3.9rem);
    font-weight: 700; letter-spacing: -.035em; line-height: 1.02;
    margin-block-start: 10px; text-wrap: balance;
}
.hero-title .grad-word {
    color: var(--accent);
    text-shadow: 0 4px 26px var(--accent-glow);
}

/* the TYPED line — signature animation lives here */
.hero-typed {
    margin-block-start: 18px;
    font-family: var(--font-mono); font-size: clamp(1rem, 4vw, 1.3rem);
    font-weight: 400; line-height: 1.45; color: var(--txt);
    min-height: 1.45em;
}
.hero-typed .type-out {
    display: inline-block;
    white-space: nowrap; overflow: hidden;
    border: 0; max-width: 100%;
    vertical-align: bottom;
    animation: typing 1.4s steps(38, end) 1 both;
}
.hero-typed .caret {
    display: inline-block; width: .62ch; height: 1.05em;
    margin-inline-start: 2px; vertical-align: text-bottom;
    background: var(--accent);
    animation: blink 1.05s steps(1, end) infinite;
}
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.hero-desc { margin-block-start: 16px; color: var(--muted); font-size: 15.5px; max-width: 56ch; }
.hero-desc p { margin-block-end: .6em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 26px; }
.btn-primary {
    position: relative; display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 24px; border: 1px solid var(--tk-secondary, #2EA043); border-radius: 12px;
    background: var(--grad);
    color: #fff; font-family: var(--font-mono); font-weight: 600; font-size: 14.5px;
    box-shadow: 0 6px 22px -8px var(--accent-glow);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px var(--accent-glow); filter: brightness(1.06); }
.btn-primary:active { transform: translateY(0) scale(.98); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 22px; border-radius: 12px;
    background: var(--panel); border: 1px solid var(--line-2);
    color: var(--txt); font-family: var(--font-mono); font-weight: 500; font-size: 14.5px;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.btn-ghost:hover { border-color: var(--accent-line); background: var(--panel-2); transform: translateY(-2px); }

/* desktop hero visual: framed portrait window */
.hero-visual { display: none; position: relative; }
.hv-window {
    position: relative; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line-2); background: var(--panel);
    box-shadow: 0 30px 80px -28px rgba(0,0,0,.9);
}
.hv-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--panel-2); border-block-end: 1px solid var(--line); }
.hv-bar .d { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.hv-bar .d:nth-child(1) { background: #FF5F56; } .hv-bar .d:nth-child(2) { background: #FFBD2E; } .hv-bar .d:nth-child(3) { background: var(--accent); }
.hv-bar .path { margin-inline-start: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); }
.hv-window img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hv-glow { position: absolute; inset: -26px; background: radial-gradient(circle, var(--accent-glow), transparent 64%); filter: blur(56px); opacity: .5; z-index: -1; }

/* ---------- Cover video reel item ---------- */
.reel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding-inline: 20px; padding-block-end: 8px; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel-item { flex: 0 0 86%; scroll-snap-align: center; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: 0 24px 60px -34px rgb(from var(--tk-primary, #3FB950) r g b / .4); }
.reel-item:only-child { flex-basis: 100%; margin-inline: auto; }
.reel-item iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.reel-label { padding: 12px 15px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); background: var(--panel); }

/* ---------- Stack marquee (languages / tools scroll) ---------- */
.marquee { overflow: hidden; margin-block-start: 36px; margin-inline: -20px; padding-block: 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 28s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 16px; border-radius: var(--r-sm);
    background: var(--panel); border: 1px solid var(--line-2);
    font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.mq-chip i { font-size: 15px; color: var(--accent); }
.mq-chip .tok { color: var(--accent); }

/* ---------- Metrics (proof trio) ---------- */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric {
    padding: 22px 18px 18px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line-2);
    position: relative; overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.metric::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 34%; height: 2px; background: var(--accent); }
.metric-num { font-family: var(--font-d); font-size: clamp(1.8rem, 6.4vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; color: var(--txt); }
.metric-label { font-family: var(--font-mono); color: var(--muted); font-size: 12px; font-weight: 500; margin-block-start: 6px; }

/* ---------- Quick actions (centered flex) ---------- */
.qa-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 30px; }
.qa-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    flex: 0 1 110px; min-width: 92px;
    padding: 16px 6px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line-2);
    color: var(--muted); font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
    transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.qa-item i { font-size: 18px; color: var(--accent); }
.qa-item:hover { transform: translateY(-3px); border-color: var(--accent-line); color: var(--txt); }

/* ---------- Featured projects (repo-style bento cards) ---------- */
.svc-grid { display: grid; gap: 14px; }
.svc-card {
    position: relative; border-radius: var(--r-lg); padding: 22px 20px 18px;
    background: var(--panel); border: 1px solid var(--line-2);
    box-shadow: 0 18px 44px -36px rgba(0,0,0,.95);
    transition: transform .26s var(--ease), border-color .26s ease, box-shadow .26s ease;
    overflow: hidden;
}
.svc-card::after { /* faint terminal-prompt watermark */
    content: "</>"; position: absolute; inset-block-start: 14px; inset-inline-end: 18px;
    font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--line-2);
    pointer-events: none; transition: color .26s ease;
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 26px 56px -30px var(--accent-glow); }
.svc-card:hover::after { color: var(--accent); }
.svc-head { display: flex; align-items: center; gap: 13px; margin-block-end: 11px; }
.svc-icon {
    position: relative; width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 18px; color: var(--accent);
    background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.svc-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.svc-name { font-family: var(--font-d); font-size: 18.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.svc-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
/* repo-style meta row: stack pills + impact metric */
.repo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-block-start: 14px; }
.repo-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    background: var(--panel-2); border: 1px solid var(--line-2);
    font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--muted);
}
.repo-pill .lang-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.repo-stat {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.repo-stat i { color: var(--syn-amber); font-size: 12px; }
.repo-stat.star i { color: var(--syn-amber); }
.svc-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-block-start: 16px; padding-block-start: 14px; border-block-start: 1px solid var(--line); }
.btn-mini {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 0; border: 0; background: transparent;
    font-family: var(--font-mono); font-size: 13px; font-weight: 600;
    color: var(--accent);
    transition: gap .2s ease;
}
.btn-mini i { color: var(--accent); font-size: 12px; }
.btn-mini:hover { gap: 11px; }

/* ---------- Code-snippet showcase (the screenshot block) ---------- */
.code-block {
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--line-2); background: var(--bg-2);
    box-shadow: 0 24px 60px -34px rgba(0,0,0,.95);
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--panel); border-block-end: 1px solid var(--line); }
.code-bar .d { width: 11px; height: 11px; border-radius: 50%; }
.code-bar .d:nth-child(1) { background: #FF5F56; } .code-bar .d:nth-child(2) { background: #FFBD2E; } .code-bar .d:nth-child(3) { background: var(--accent); }
.code-bar .fname { margin-inline-start: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.code-bar .copy { margin-inline-start: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); background: transparent; border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 6px; transition: color .2s, border-color .2s; }
.code-bar .copy:hover { color: var(--accent); border-color: var(--accent-line); }
.code-body {
    margin: 0; padding: 18px 16px 18px 0; overflow-x: auto;
    font-family: var(--font-mono); font-size: 13px; line-height: 1.75;
    counter-reset: ln; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.code-body::-webkit-scrollbar { height: 8px; }
.code-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.code-line { display: block; white-space: pre; padding-inline-start: 56px; position: relative; }
.code-line::before {
    counter-increment: ln; content: counter(ln);
    position: absolute; inset-inline-start: 0; width: 40px; text-align: end;
    color: var(--dim); opacity: .65; -webkit-user-select: none; user-select: none;
}
.code-line:hover { background: rgba(255,255,255,.025); }
.tk-kw { color: var(--syn-rose); }
.tk-fn { color: var(--syn-violet); }
.tk-str { color: var(--syn-cyan); }
.tk-num { color: var(--syn-cyan); }
.tk-com { color: var(--syn-comment); font-style: italic; }
.tk-var { color: var(--txt); }
.tk-prop { color: var(--syn-amber); }

/* ---------- Packages (products as pricing) ---------- */
.pkg-grid { display: grid; gap: 14px; }
.pkg-card {
    position: relative; border-radius: var(--r-lg); padding: 24px 22px;
    background: var(--panel); border: 1px solid var(--line-2);
    transition: transform .26s var(--ease), border-color .26s ease;
}
.pkg-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.pkg-card.is-featured {
    border-color: var(--accent-line);
    box-shadow: 0 24px 56px -28px var(--accent-glow);
}
.pkg-badge {
    position: absolute; inset-block-start: -11px; inset-inline-start: 20px;
    padding: 4px 13px; border-radius: 999px; font-family: var(--font-mono);
    font-size: 11px; font-weight: 600; letter-spacing: .02em;
    background: var(--grad); color: #fff;
}
.pkg-img { width: 100%; height: 144px; object-fit: cover; border-radius: var(--r-md); margin-block-end: 15px; }
.pkg-name { font-family: var(--font-d); font-size: 18px; font-weight: 600; }
.pkg-desc { color: var(--muted); font-size: 14px; margin-block-start: 6px; }
.pkg-price-row { display: flex; align-items: baseline; gap: 10px; margin-block-start: 15px; }
.pkg-price { font-family: var(--font-mono); font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--accent); }
.pkg-price-old { color: var(--dim); font-size: 15px; text-decoration: line-through; }
.pkg-stock { font-family: var(--font-mono); font-size: 12px; font-weight: 600; margin-block-start: 4px; }
.pkg-stock.ok { color: var(--accent); }
.pkg-stock.out { color: var(--syn-amber); }
.pkg-card .btn-primary { width: 100%; justify-content: center; margin-block-start: 16px; padding-block: 12px; }

/* ---------- Work (slow-drift carousel) ---------- */
.car { position: relative; }
.car-track {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -20px; padding-inline: 20px; padding-block-end: 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.car-track::-webkit-scrollbar { display: none; }
.car-item {
    flex: 0 0 74%; max-width: 340px; scroll-snap-align: center;
    position: relative; border-radius: var(--r-md); overflow: hidden;
    border: 1px solid var(--line-2); aspect-ratio: 1; background: var(--panel);
}
.car-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.car-item:hover img { transform: scale(1.05); }
.mas-cap {
    position: absolute; inset-block-end: 0; inset-inline: 0;
    padding: 24px 14px 11px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: #fff;
    background: linear-gradient(transparent, rgba(1,4,9,.9));
}
.car-nav {
    position: absolute; inset-block-start: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2);
    background: rgb(from var(--panel) r g b / .92); color: var(--txt); backdrop-filter: blur(8px);
    display: grid; place-items: center; font-size: 13px; z-index: 5;
    transition: background .2s ease, border-color .2s ease;
}
.car-nav:hover { background: var(--panel-2); border-color: var(--accent-line); }
.car-nav.prev { inset-inline-start: -6px; }
.car-nav.next { inset-inline-end: -6px; }
[dir="rtl"] .car-nav i { transform: scaleX(-1); }
@media (max-width: 759px) { .car-nav { display: none; } }

/* ---------- Results (testimonials — horizontal scroll bar) ---------- */
.tm-track {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -20px; padding-inline: 20px; padding-block-end: 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tm-track::-webkit-scrollbar { display: none; }
.tm-card { flex: 0 0 84%; max-width: 380px; scroll-snap-align: center; position: relative; padding: 24px 20px 20px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 14px 36px -30px rgba(0,0,0,.9); }
.tm-card:only-child { margin-inline: auto; }
.tm-mark { position: absolute; inset-block-start: 6px; inset-inline-end: 16px; font-family: var(--font-mono); font-weight: 700; font-size: 56px; line-height: 1; opacity: .14; color: var(--accent); }
.tm-stars { display: flex; gap: 3px; color: var(--syn-amber); font-size: 12.5px; margin-block-end: 12px; }
.tm-text { font-size: 14.5px; color: var(--txt); }
.tm-who { display: flex; align-items: center; gap: 12px; margin-block-start: 16px; }
.tm-who img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-2); }
.tm-name { font-family: var(--font-d); font-weight: 600; font-size: 14px; }
.tm-sub { font-family: var(--font-mono); color: var(--dim); font-size: 12px; }

/* ---------- Info / links / iframes ---------- */
.link-grid { display: grid; gap: 10px; }
.link-card {
    display: flex; align-items: center; gap: 14px;
    padding: 15px 17px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line-2);
    transition: transform .2s ease, border-color .2s ease;
}
.link-card:hover { transform: translateX(4px); border-color: var(--accent-line); }
[dir="rtl"] .link-card:hover { transform: translateX(-4px); }
.link-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); font-size: 15px; color: var(--accent); flex-shrink: 0; }
.link-label { font-weight: 600; font-size: 14px; font-family: var(--font-d); }
.link-val { font-family: var(--font-mono); color: var(--muted); font-size: 12px; word-break: break-word; }
.link-arrow { margin-inline-start: auto; color: var(--dim); }
[dir="rtl"] .link-arrow i { transform: scaleX(-1); }
.iframe-wrap { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-2); margin-block-end: 12px; }
.iframe-wrap iframe { width: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Booking / forms ---------- */
.panel {
    position: relative; border-radius: var(--r-lg); padding: 26px 22px;
    background: var(--panel); border: 1px solid var(--line-2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 22px 50px -38px rgba(0,0,0,.95);
}
.panel::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 30%; height: 2px; background: var(--accent); opacity: .8; border-start-start-radius: var(--r-lg); }
.f-label { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--muted); margin-block: 14px 7px; }
.f-input, select.f-input, textarea.f-input {
    width: 100%; padding: 13px 15px; border-radius: 10px;
    background: var(--bg-2); border: 1px solid var(--line-2);
    color: var(--txt); font-family: var(--font-b); font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
    appearance: none; -webkit-appearance: none;
}
.f-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.f-input::placeholder { color: var(--dim); }
select.f-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B949E' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: calc(100% - 15px) center;
    padding-inline-end: 42px; text-overflow: ellipsis;
}
[dir="rtl"] select.f-input { background-position: 15px center; }
select.f-input option { background: var(--panel); color: var(--txt); }
.grid-2f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert-box { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-radius: 10px; font-family: var(--font-mono); font-size: 13px; margin-block-end: 14px; }
.alert-error { background: rgb(from var(--tk-danger, #FF7B72) r g b / .1); border: 1px solid rgb(from var(--tk-danger, #FF7B72) r g b / .34); color: color-mix(in srgb, var(--tk-danger, #FF7B72) 78%, #fff); }
.alert-success { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }

/* flatpickr dark skin */
.flatpickr-calendar { background: var(--panel) !important; border: 1px solid var(--line-2) !important; border-radius: 14px !important; box-shadow: 0 24px 60px -20px rgba(0,0,0,.8) !important; color: var(--txt) !important; }
.flatpickr-months, .flatpickr-weekdays { background: transparent !important; }
.flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year, .flatpickr-weekday { color: var(--txt) !important; fill: var(--txt) !important; }
.flatpickr-day { color: var(--muted) !important; border-radius: 8px !important; }
.flatpickr-day:hover { background: var(--panel-2) !important; border-color: transparent !important; }
.flatpickr-day.selected { background: var(--accent) !important; border-color: var(--accent) !important; color: #04150A !important; }
.flatpickr-day.flatpickr-disabled { color: rgb(from var(--tk-text, #E6EDF3) r g b / .16) !important; }
.flatpickr-prev-month svg, .flatpickr-next-month svg { fill: var(--muted) !important; }

/* ---------- Hours ---------- */
.hour-row { display: flex; justify-content: space-between; align-items: center; padding-block: 11px; border-block-end: 1px solid var(--line); font-family: var(--font-mono); font-size: 13.5px; }
.hour-row:last-child { border-block-end: 0; }
.hour-day { color: var(--muted); }
.hour-time { color: var(--txt); }
.hour-row.today .hour-day, .hour-row.today .hour-time { color: var(--accent); font-weight: 600; }
.hour-24 { display: flex; align-items: center; gap: 10px; color: var(--accent); font-family: var(--font-mono); font-weight: 600; font-size: 15px; }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Payments ---------- */
.pay-grid { display: grid; gap: 12px; }
.pay-card { padding: 17px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line-2); }
.pay-label { font-family: var(--font-d); font-weight: 600; font-size: 14px; margin-block-end: 6px; }
.pay-val { font-family: var(--font-mono); color: var(--muted); font-size: 13px; word-break: break-all; }
.pay-img { border-radius: var(--r-sm); max-height: 220px; margin-inline: auto; }

/* ---------- Socials + footer (centered flex) ---------- */
.soc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.soc-item {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    flex: 0 1 108px; min-width: 96px;
    padding: 17px 8px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line-2);
    font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); font-weight: 500;
    transition: transform .2s var(--ease), border-color .2s ease, color .2s ease;
}
.soc-item i { font-size: 21px; color: var(--txt); transition: color .2s ease; }
.soc-item:hover { transform: translateY(-3px); border-color: var(--accent-line); color: var(--txt); }
.soc-item:hover i { color: var(--accent); }
.footer { text-align: center; padding-block: 34px 10px; font-family: var(--font-mono); color: var(--dim); font-size: 12px; }
.footer a { color: var(--muted); }

/* ---------- Floating action dock ---------- */
.dock {
    position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 70;
    display: flex; justify-content: center;
    padding-block-end: calc(10px + env(safe-area-inset-bottom));
    pointer-events: none;
    transition: transform .35s var(--ease);
}
.dock.dock-hide { transform: translateY(120%); }
.dock-inner {
    pointer-events: auto;
    display: flex; align-items: center; gap: 4px;
    padding: 8px 12px; border-radius: 20px;
    background: rgb(from var(--panel) r g b / .9);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px -14px rgba(0,0,0,.8);
}
.dock-btn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 58px; padding: 8px 6px; border: 0; background: transparent;
    color: var(--muted); font-family: var(--font-mono); font-size: 10px; font-weight: 500; border-radius: 12px;
    transition: color .2s ease, background .2s ease;
}
.dock-btn i { font-size: 16px; }
.dock-btn:hover, .dock-btn:focus-visible { color: var(--txt); background: var(--panel-2); }
.dock-btn.dock-main {
    background: var(--grad); color: #fff; border-radius: 14px;
    min-width: 64px; padding-block: 10px;
    box-shadow: 0 10px 26px -10px var(--accent-glow);
    transform: translateY(-10px);
}

/* ---------- Modals ---------- */
.pm-overlay {
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgba(1,4,9,.74); backdrop-filter: blur(7px);
    opacity: 0; transition: opacity .3s ease; padding: 16px;
}
.pm-overlay.show { opacity: 1; }
.pm-box {
    position: relative;
    width: 100%; max-width: 480px; max-height: 86vh; overflow-y: auto;
    border-radius: 18px; padding: 26px 22px;
    background: var(--panel); border: 1px solid var(--line-2);
    box-shadow: 0 30px 80px -24px rgba(0,0,0,.85);
    transform: translateY(34px); transition: transform .35s var(--ease);
}
.pm-overlay.show .pm-box { transform: none; }
.pm-title { font-family: var(--font-d); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.pm-sub { font-family: var(--font-mono); color: var(--muted); font-size: 13px; margin-block-start: 4px; }
.pm-close { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); }
.pm-head { position: relative; margin-block-end: 8px; }
.pm-actions { display: flex; gap: 10px; margin-block-start: 20px; }
.pm-actions .btn-ghost, .pm-actions .btn-primary { flex: 1; justify-content: center; }
.qr-wrap { display: grid; place-items: center; padding: 18px; background: #fff; border-radius: 16px; width: fit-content; margin: 18px auto; }
.share-row { display: flex; justify-content: center; gap: 12px; margin-block: 16px; }
.share-row a { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 17px; color: var(--txt); transition: transform .2s ease, border-color .2s ease; }
.share-row a:hover { transform: translateY(-3px); border-color: var(--accent-line); }

@media (min-width: 480px) {
    .pm-overlay { align-items: center; }
}

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
    .code-wrap { max-width: 980px; }
    .sec { padding-block: 64px; }
    .hero { padding-block: 72px 38px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
    .hero-visual { display: block; }
    .metrics { grid-template-columns: repeat(4, 1fr); }
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .pkg-grid { grid-template-columns: repeat(3, 1fr); }
    .pkg-card.is-featured { transform: scale(1.02); }
    .reel-item { flex-basis: 56%; }
    .reel-item:only-child { flex-basis: 72%; max-width: 760px; }
    .tm-card { flex-basis: 42%; }
    .tm-card:only-child { flex-basis: 60%; }
    .soc-item { flex-basis: 140px; }
    .qa-item { flex-basis: 200px; }
    .car-item { flex-basis: 32%; }
    .code-body { font-size: 13.5px; }
}

/* ---------- Reduced motion (kill layer) ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fx-glow, .marquee-track, .hero-chip .dot { animation: none !important; }
    .rv { opacity: 1; transform: none; transition: none; }
    .hero-load { opacity: 1 !important; transform: none !important; animation: none !important; }
    /* type & cursor: show the full line and a static (non-blinking) caret */
    .hero-typed .type-out { animation: none !important; width: 100% !important; }
    .hero-typed .caret { animation: none !important; opacity: 1; }
}


/* ============================================================
   GLOBAL CONTAINMENT BASELINE
   overflow-x:clip on html is sticky-safe (unlike hidden) and
   stops the horizontal pan; overscroll-behavior-x:none kills the
   rubber-band; max-width:100% prevents any child forcing the
   document wider than the viewport.
   ============================================================ */
html { overflow-x: clip; }
body { overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; }
.car-track, .reel, .tm-track, .marquee, .marquee-track, .code-body,
[class*="-track"], [class*="-rail"], [class*="-carousel"], [class*="-scroll"] {
    overscroll-behavior-x: contain;
    max-width: 100vw;
}
