/* ==========================================================================
   Sign — Digital Growth Agency
   Original design system (no copied assets or code)
   ========================================================================== */

:root {
    --bg: #ffffff;
    --bg-alt: #f5f6fb;
    --ink: #0d1226;
    --muted: #5b6478;
    --line: #e7e9f2;

    --brand: #4f46e5;
    --brand-2: #8b5cf6;
    --accent: #06b6d4;

    --grad: linear-gradient(120deg, #4f46e5 0%, #8b5cf6 55%, #d946ef 120%);
    --grad-soft: linear-gradient(120deg, rgba(79,70,229,.12), rgba(139,92,246,.12));

    --radius: 16px;
    --radius-sm: 11px;
    --shadow-sm: 0 1px 2px rgba(13,18,38,.05), 0 4px 14px rgba(13,18,38,.06);
    --shadow-md: 0 10px 40px rgba(13,18,38,.12);
    --shadow-lg: 0 30px 70px rgba(13,18,38,.18);

    --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-ar: "Tajawal", "Manrope", system-ui, sans-serif;

    --container: 1160px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* RTL: swap font family + alignment */
[dir="rtl"] body { font-family: var(--font-ar); letter-spacing: 0; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.15rem; }

.kicker {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--grad-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

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

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: .98rem;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--grad);
    background-size: 180% 180%;
    background-position: 0% 50%;
    color: #fff;
    box-shadow: 0 8px 22px rgba(79,70,229,.32);
    transition: background-position .5s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover {
    background-position: 100% 50%;
    box-shadow: 0 14px 34px rgba(79,70,229,.5);
    transform: translateY(-2px);
}
/* sheen sweep across the button */
.btn-primary::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.42) 50%, transparent 80%);
    transform: skewX(-20deg);
    transition: left .6s ease;
    pointer-events: none;
}
.btn-primary:hover::before { left: 100%; }

/* arrow icon inside the primary CTA */
.btn-arrow {
    width: 18px; height: 18px;
    flex: 0 0 auto;
    transition: transform .25s ease;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

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

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.8);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; }
.brand-mark {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 11px;
    background: var(--grad);
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 6px 16px rgba(79,70,229,.35);
}

.main-nav { display: flex; gap: 30px; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .15s ease; }
.main-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    font-size: .85rem;
    padding: 9px 15px;
    border-radius: 999px;
    transition: border-color .15s ease, color .15s ease;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px 22px;
    border-top: 1px solid var(--line);
    background: #fff;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 4px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 112px 0 128px; }
.hero-bg {
    position: absolute; inset: 0;
    background:
        linear-gradient(to top, #fff 0%, rgba(255,255,255,0) 14%),
        linear-gradient(105deg, rgba(9,11,26,.93) 0%, rgba(13,18,38,.8) 45%, rgba(13,18,38,.4) 72%, rgba(9,11,26,.66) 100%),
        url("../assets/img/hero-bg.webp") center / cover no-repeat;
    pointer-events: none;
}
[dir="rtl"] .hero-bg {
    background:
        linear-gradient(to top, #fff 0%, rgba(255,255,255,0) 14%),
        linear-gradient(-105deg, rgba(9,11,26,.93) 0%, rgba(13,18,38,.8) 45%, rgba(13,18,38,.4) 72%, rgba(9,11,26,.66) 100%),
        url("../assets/img/hero-bg.webp") center / cover no-repeat;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}

.hero-title { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4rem); letter-spacing: -.03em; margin: 4px 0 22px; }
.hero-sub { color: #3b82f6; font-size: 1.15rem; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; margin: 30px 0 34px; flex-wrap: wrap; }
.hero .kicker { color: #fff; background: rgba(255,255,255,.14); }
.hero .btn-ghost { color: #ef4444; border-color: rgba(239,68,68,.6); }
.hero .btn-ghost:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,.15); }

.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li {
    font-size: .85rem; font-weight: 600; color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    padding: 8px 14px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 7px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.hero-chips li[data-i18n="hero.chip2"] { color: #22c55e; border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.14); }

/* Hero visual / banner image */
.hero-visual { position: relative; }
.hero-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    transform: rotate(1deg);
    background: #fff;
}

.float-chip {
    position: absolute;
    display: flex; align-items: center; gap: 9px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 12px 16px;
    font-weight: 700; font-size: .9rem;
    box-shadow: var(--shadow-md);
    animation: floaty 5s ease-in-out infinite;
}
.float-chip svg { width: 20px; height: 20px; }
.fc1 { top: 8%; left: -26px; color: #059669; }
.fc2 { bottom: 6%; right: -14px; color: #eab308; animation-delay: 2.4s; }

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

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { padding: 30px 26px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--grad-soft); color: var(--brand);
    margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .96rem; }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price { display: flex; flex-direction: column; padding: 28px; transition: transform .22s ease, box-shadow .22s ease; }
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.price-cat { font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.price-num { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.price-cur { font-weight: 700; color: var(--brand); }
.price-per { color: var(--muted); font-size: .9rem; }

.price-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; flex: 1; }
.price-features li { position: relative; padding-inline-start: 26px; color: var(--muted); font-size: .93rem; }
.price-features li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: 6px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--grad-soft);
}
.price-features li::after {
    content: ""; position: absolute; inset-inline-start: 5px; top: 11px;
    width: 6px; height: 3px; border-inline-start: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}

/* ===== Values ===== */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { padding: 30px 24px; position: relative; overflow: hidden; }
.value-num { font-size: 2.4rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px rgba(79,70,229,.4); line-height: 1; display: block; margin-bottom: 18px; }
.value h3 { margin-bottom: 10px; }
.value p { color: var(--muted); font-size: .94rem; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-copy h2 { margin-bottom: 16px; }
.about-copy > p { color: var(--muted); }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.about-card { padding: 24px; }
.about-card h3 { color: var(--brand); margin-bottom: 10px; }
.about-card p { color: var(--muted); font-size: .94rem; }

.about-visual { position: relative; }
.about-panel {
    background: var(--grad);
    border-radius: 24px;
    padding: 60px 44px;
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.about-big { font-size: clamp(4rem, 9vw, 7rem); font-weight: 800; line-height: .95; letter-spacing: -.03em; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about-tags span {
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.25);
    padding: 8px 16px; border-radius: 999px;
    font-weight: 600; font-size: .9rem;
}

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: box-shadow .2s ease; }
.faq-item.open { box-shadow: var(--shadow-sm); }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: none; border: 0; text-align: start;
    padding: 20px 24px; font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.faq-icon { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after {
    content: ""; position: absolute; background: var(--brand); border-radius: 2px;
    transition: transform .2s ease;
}
.faq-icon::before { width: 18px; height: 2px; top: 8px; left: 0; }
.faq-icon::after { width: 2px; height: 18px; left: 8px; top: 0; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--muted); }

/* ===== CTA banner ===== */
.cta-banner { background: var(--grad); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 60px 24px; }
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta-inner p { color: rgba(255,255,255,.85); margin-top: 8px; font-size: 1.05rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow-sm);
}
.contact-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.contact-ico svg { width: 22px; height: 22px; }
.contact-item strong { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.contact-item span { font-weight: 700; }

.contact-form { padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%; font-family: inherit; font-size: .98rem; color: var(--ink);
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    padding: 12px 14px; background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { margin-top: 14px; text-align: center; color: #059669; font-weight: 600; }
[dir="rtl"] .field input, [dir="rtl"] .field textarea { text-align: right; }

/* ===== Footer ===== */
.site-footer { background: #0d1226; color: #cbd2e4; padding: 72px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.brand-name-light { color: #fff; }
.footer-brand p { color: #93a0bb; font-size: .95rem; margin-top: 16px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer-col a { display: block; color: #93a0bb; font-size: .92rem; padding: 6px 0; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 26px; color: #6c7893; font-size: .85rem; flex-wrap: wrap; }

/* ===== Back to top ===== */
.to-top {
    position: fixed; bottom: 24px; inset-inline-end: 24px;
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--grad); color: #fff;
    display: grid; place-items: center;
    box-shadow: var(--shadow-md);
    transition: transform .2s ease, opacity .2s ease;
    z-index: 90;
}
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { transform: translateY(-3px); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
    .services-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-grid { grid-template-columns: 1fr; gap: 64px; }
    .hero-visual { max-width: 480px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .main-nav { display: none; }
    .nav-burger { display: flex; }
    .header-actions .btn { display: none; }
    .section { padding: 68px 0; }
    .services-grid, .pricing-grid, .values-grid, .about-grid, .about-cards { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .float-chip.fc1 { left: 8px; }
    .float-chip.fc2 { right: 8px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .float-chip { animation: none; }
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
