/* ==========================================================================
   W-Creators — Design System v1.0
   Style: TrendAI-inspired — pure black, dark surfaces, red accent, bold type
   RTL Hebrew, Heebo typeface
   ========================================================================== */

:root {
    /* Colors */
    --bg: #000000;
    --surface: #1d1d1d;
    --surface-2: #323232;
    --border: #4b4b4b;
    --border-soft: rgba(255, 255, 255, 0.12);
    --primary: #d71920;
    --primary-hover: #b8151b;
    --accent-orange: #ff9500;
    --text: #ffffff;
    --text-soft: #f1f1f1;
    --text-muted: #a3a3a3;
    --text-dim: #757575;
    --white-section-bg: #ffffff;
    --white-section-text: #0a0a0a;

    /* Type */
    --font: 'Assistant', 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Rubik', 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container: 1280px;
    --container-narrow: 840px;
    --radius: 10px;
    --radius-lg: 16px;
    --section-py: 96px;
    --section-py-sm: 64px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 0.6s;
}

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

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

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute;
    top: -48px;
    right: 16px;
    z-index: 2000;
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 700;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-title { margin-bottom: 20px; }
.section-lead {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 720px;
    margin-bottom: 48px;
}
.section-head-center { text-align: center; }
.section-head-center .section-lead { margin-inline: auto; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 24px; }

.section { padding-block: var(--section-py); }
.section-sm { padding-block: var(--section-py-sm); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--text); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: var(--text-soft); }

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s, gap 0.3s;
}
.link-arrow::after { content: '←'; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--primary); }
.link-arrow:hover::after { transform: translateX(-4px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 76px;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.logo img { height: 40px; width: auto; }
.logo .logo-accent { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { position: relative; }
.main-nav a {
    display: block;
    padding: 10px 14px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-soft);
    border-radius: 8px;
    transition: color 0.25s, background 0.25s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); }
.main-nav a[aria-current="page"] { color: var(--primary); }

/* dropdown */
.has-dropdown > a::after { content: ' ▾'; font-size: 0.7em; }
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a { padding: 12px 16px; }

.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 12px 22px; }

/* mobile nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    position: fixed;
    inset: 76px 0 0 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.98);
    padding: 32px 24px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}
.mobile-nav.active { opacity: 1; pointer-events: auto; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
    display: block;
    padding: 16px 12px;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-soft);
}
.mobile-nav a:active { color: var(--primary); }
.mobile-nav .mobile-sub a { font-size: 1.05rem; font-weight: 400; color: var(--text-muted); padding-right: 28px; }
.mobile-nav .btn { margin-top: 24px; width: 100%; }

/* ---------- Hero (video) ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 640px;
    padding-block: 120px 96px;
    overflow: hidden;
}
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-video-bg video, .hero-video-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.35) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}
.hero-content h1 { margin-bottom: 24px; }
.hero-lead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-soft);
    margin-bottom: 36px;
    max-width: 600px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-sub {
    min-height: 480px;
}

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border); }

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(215, 25, 32, 0.12);
    color: var(--primary);
    font-size: 1.6rem;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); }
.card .link-arrow { margin-top: 20px; }

/* image cards (blog/portfolio) */
.card-media {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card-media .card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.card-media .card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.card-media:hover .card-img img { transform: scale(1.05); }
.card-media .card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.card-media .card-body p { flex: 1; }
.card-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(215, 25, 32, 0.14);
    color: #ff6b70;
    font-size: 0.8rem;
    font-weight: 600;
}
.card-meta { display: flex; gap: 14px; color: var(--text-dim); font-size: 0.85rem; margin-bottom: 10px; }

/* ---------- Stats band ---------- */
.stats-band { border-block: 1px solid var(--border-soft); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-value {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}
.stat-value .stat-suffix { color: var(--primary); }
.stat-label { color: var(--text-muted); margin-top: 8px; font-size: 1rem; }

/* ---------- White inverted section ---------- */
.section-white {
    background: var(--white-section-bg);
    color: var(--white-section-text);
}
.section-white .section-title, .section-white h2, .section-white h3 { color: var(--white-section-text); }
.section-white .section-lead, .section-white p { color: #444; }
.section-white .card {
    background: #f5f5f5;
    border-color: transparent;
}
.section-white .card:hover { border-color: #ddd; }
.section-white .card p { color: #555; }
.section-white .btn-outline { color: var(--white-section-text); border-color: var(--white-section-text); }
.section-white .btn-outline:hover { background: rgba(0, 0, 0, 0.06); }

/* ---------- Gradient deep section ---------- */
.section-deep {
    background:
        radial-gradient(ellipse 80% 60% at 70% 0%, rgba(215, 25, 32, 0.14), transparent 60%),
        linear-gradient(180deg, #0a0a0a 0%, #000 100%);
}

/* ---------- Quote / testimonials ---------- */
.quote-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.quote-mark { color: var(--primary); font-size: 3rem; line-height: 0.5; font-weight: 800; }
.quote-text { font-size: 1.05rem; color: var(--text-soft); flex: 1; }
.quote-author { font-weight: 700; }
.quote-role { color: var(--text-muted); font-size: 0.9rem; }
.quote-stars { color: var(--accent-orange); letter-spacing: 2px; }

/* ---------- Process steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step-card { position: relative; padding: 32px 28px; background: var(--surface); border-radius: var(--radius); }
.step-num {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item.open { border-color: var(--border); }
.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px 26px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    text-align: right;
}
.faq-q .faq-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(215, 25, 32, 0.15);
    color: var(--primary);
    font-size: 1.2rem;
    transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
}
.faq-a-inner { padding: 0 26px 24px; color: var(--text-muted); }
.faq-a-inner p + p { margin-top: 10px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
}
.price-card.featured { border-color: var(--primary); background: linear-gradient(180deg, rgba(215,25,32,0.08), var(--surface) 40%); }
.price-badge {
    position: absolute;
    top: -14px;
    right: 50%;
    transform: translateX(50%);
    background: var(--primary);
    color: #fff;
    padding: 5px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}
.price-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.price-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.price-value { font-size: 2.5rem; font-weight: 800; margin-bottom: 24px; }
.price-value small { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-features { flex: 1; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.price-features li { display: flex; gap: 10px; color: var(--text-soft); font-size: 0.95rem; }
.price-features li::before { content: '✓'; color: var(--primary); font-weight: 700; }

/* ---------- CTA band (3-up) ---------- */
.cta-band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cta-band-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.4s var(--ease), background 0.4s;
}
.cta-band-card:hover { transform: translateY(-6px); background: var(--surface-2); }
.cta-band-card p { color: var(--text-muted); flex: 1; }

/* big CTA */
.cta-final {
    text-align: center;
    padding-block: var(--section-py);
    background:
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(215, 25, 32, 0.2), transparent 65%),
        #000;
}
.cta-final h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 20px; }
.cta-final p { color: var(--text-muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto 36px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.2);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--text-dim); font-size: 0.85rem; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status.success { color: #2ecc71; }
.form-status.error { color: #ff6b70; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-soft); }
table.styled { width: 100%; border-collapse: collapse; min-width: 560px; }
table.styled th, table.styled td { padding: 14px 18px; text-align: right; border-bottom: 1px solid var(--border-soft); }
table.styled th { background: var(--surface); font-weight: 700; }
table.styled td { color: var(--text-muted); }

/* ---------- Article / prose (blog + legal) ---------- */
.prose { max-width: var(--container-narrow); margin-inline: auto; }
.prose h2 { margin: 48px 0 18px; font-size: 1.75rem; }
.prose h3 { margin: 32px 0 14px; font-size: 1.3rem; }
.prose p { color: #c9c9c9; margin-bottom: 18px; font-size: 1.05rem; line-height: 1.8; }
.prose ul, .prose ol { margin: 0 0 20px; padding-right: 4px; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-right: 26px; color: #c9c9c9; }
.prose ul li::before { content: ''; position: absolute; right: 4px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.prose ol { list-style: decimal; padding-right: 24px; }
.prose ol li { color: #c9c9c9; padding-right: 6px; }
.prose a { color: #ff6b70; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose strong { color: #fff; }
.prose blockquote {
    border-right: 3px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--surface);
    border-radius: var(--radius);
    color: var(--text-soft);
}
.prose .callout {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-right: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin: 28px 0;
}
.prose img { border-radius: var(--radius); margin: 28px 0; }
.prose figure figcaption { text-align: center; color: var(--text-dim); font-size: 0.85rem; margin-top: -16px; margin-bottom: 24px; }

.article-hero { padding: 80px 0 48px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-muted); font-size: 0.95rem; margin-top: 20px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* breadcrumbs */
.breadcrumbs { padding: 20px 0 0; font-size: 0.9rem; color: var(--text-dim); position: relative; z-index: 2; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: '‹'; margin-inline-start: 6px; color: var(--text-dim); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current="page"] { color: var(--text-muted); }

/* ---------- Trust logos strip ---------- */
.trust-strip { padding-block: 40px; border-block: 1px solid var(--border-soft); }
.trust-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 48px; color: var(--text-dim); font-weight: 600; font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: #0a0a0a;
    border-top: 1px solid var(--border-soft);
    padding: 72px 0 32px;
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 56px;
}
.footer-brand p { color: var(--text-muted); margin-top: 16px; max-width: 320px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 18px; color: #fff; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); transition: color 0.25s; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.footer-contact a[href^="tel"], .footer-contact a[href^="mailto"] { direction: ltr; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-dim);
    font-size: 0.85rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Floating buttons ---------- */
.float-btns { position: fixed; bottom: 24px; left: 24px; z-index: 900; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s var(--ease);
}
.float-btn:hover { transform: scale(1.08); }
.float-whatsapp { background: #25d366; }
.float-whatsapp svg { width: 28px; height: 28px; fill: #fff; }
.back-to-top {
    background: var(--surface-2);
    color: #fff;
    font-size: 1.3rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* ---------- Reveal animations ---------- */
.reveal-up, .reveal-scale {
    opacity: 0;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}
.reveal-up { transform: translateY(40px); }
.reveal-scale { transform: scale(0.94); }
.reveal-up.revealed, .reveal-scale.revealed { opacity: 1; transform: none; }

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.4s; }
.stagger-6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal-up, .reveal-scale { opacity: 1; transform: none; transition: none; }
    .btn, .card, .cta-band-card { transition: none; }
    *, *::before, *::after { animation-duration: 0.01ms !important; }
}

/* ---------- Split feature rows ---------- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.feature-row + .feature-row { margin-top: 96px; }
.feature-row .feature-img { border-radius: var(--radius-lg); overflow: hidden; }
.feature-row .feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-row h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 16px; }
.feature-row p { color: var(--text-muted); margin-bottom: 16px; }
.feature-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.feature-list li { display: flex; gap: 12px; color: var(--text-soft); }
.feature-list li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    :root { --section-py: 72px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .feature-row { gap: 40px; }
}

@media (max-width: 860px) {
    .main-nav, .header-cta { display: none; }
    .nav-toggle { display: flex; }
    .mobile-nav { display: block; }
    .grid-3, .pricing-grid, .cta-band-grid { grid-template-columns: 1fr; }
    .grid-2, .feature-row { grid-template-columns: 1fr; }
    .feature-row.reverse .feature-img { order: -1; }
    .hero { min-height: 540px; padding-block: 36px 56px; }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    :root { --section-py: 56px; --section-py-sm: 44px; }
    .container, .container-narrow { padding-inline: 18px; }
    .grid-4, .steps-grid, .stats-grid { grid-template-columns: 1fr; }
    .stats-grid { gap: 32px; }
    .card { padding: 26px 22px; }
    .hero-actions .btn { width: 100%; }
    .float-btns { bottom: 16px; left: 16px; }
}

/* ==========================================================================
   v2 — TrendAI visual layer: red background shapes, display type, utility bar
   ========================================================================== */

/* Display font on numeric/brand elements */
.logo, .stat-value, .step-num, .price-value, .section-label, .btn { font-family: var(--font-display); }
body { font-weight: 400; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }

/* ---------- Utility top bar ---------- */
.top-bar {
    background: #0a0a0a;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--container);
    margin-inline: auto;
    padding: 7px 24px;
}
.top-bar a { color: var(--text-muted); transition: color 0.25s; display: inline-flex; align-items: center; gap: 6px; }
.top-bar a:hover { color: #fff; }
.top-bar .tb-contact { display: flex; gap: 22px; }
.top-bar .tb-phone { direction: ltr; }
.top-bar .tb-note { color: var(--text-dim); }
@media (max-width: 640px) { .top-bar .tb-note { display: none; } }

/* ---------- Shape foundations ---------- */
.section, .section-sm, .stats-band, .cta-final, .hero { position: relative; }
.section > .container, .section-sm > .container, .stats-band > .container, .cta-final > .container { position: relative; z-index: 2; }

/* Red ribbon — sweeping diagonal band (TrendAI signature) */
.section-deep::before {
    content: '';
    position: absolute;
    top: -180px;
    left: -240px;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    border: 2px solid rgba(215, 25, 32, 0.28);
    pointer-events: none;
    z-index: 0;
}
.section-deep::after {
    content: '';
    position: absolute;
    top: -120px;
    left: -180px;
    width: 780px;
    height: 780px;
    border-radius: 50%;
    border: 1px solid rgba(215, 25, 32, 0.16);
    pointer-events: none;
    z-index: 0;
}

/* Hero: red diagonal ribbon sweeping the bottom + glow */
.hero::after {
    content: '';
    position: absolute;
    bottom: -260px;
    left: -10%;
    width: 120%;
    height: 420px;
    background: linear-gradient(100deg, rgba(215, 25, 32, 0.65), rgba(120, 8, 12, 0.35) 55%, transparent 80%);
    transform: rotate(-4deg);
    filter: blur(2px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
}
.hero::before {
    content: '';
    position: absolute;
    top: -220px;
    left: -160px;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(215, 25, 32, 0.32), transparent 65%);
    pointer-events: none;
    z-index: 1;
}
.hero .container { z-index: 3; }
.hero .breadcrumbs { position: relative; z-index: 3; }

/* Stats band: center red glow + side tick */
.stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 90% at 50% 120%, rgba(215, 25, 32, 0.14), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.stat-value { position: relative; display: inline-block; }
.stat-value::after {
    content: '';
    display: block;
    width: 44px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: var(--primary);
}

/* White section: red angular corner ribbon + red kicker stays visible */
.section-white { position: relative; overflow: hidden; }
.section-white::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(270deg, var(--primary), rgba(215, 25, 32, 0.25) 60%, transparent);
}
.section-white::after {
    content: '';
    position: absolute;
    bottom: -180px;
    left: -180px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    border: 60px solid rgba(215, 25, 32, 0.07);
    pointer-events: none;
}
.section-white > .container { position: relative; z-index: 2; }

/* Final CTA: concentric red rings */
.cta-final { overflow: hidden; }
.cta-final::before {
    content: '';
    position: absolute;
    bottom: -320px;
    right: 50%;
    transform: translateX(50%);
    width: 720px;
    height: 720px;
    border-radius: 50%;
    border: 2px solid rgba(215, 25, 32, 0.35);
    box-shadow: 0 0 0 60px rgba(215, 25, 32, 0.05), 0 0 0 130px rgba(215, 25, 32, 0.03);
    pointer-events: none;
    z-index: 0;
}

/* Generic decorative helpers (optional per-page) */
.shape-glow-tr::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -160px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(215, 25, 32, 0.22), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.shape-ring-br::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    border: 2px solid rgba(215, 25, 32, 0.25);
    pointer-events: none;
    z-index: 0;
}

/* Section label — red slash prefix like TrendAI */
.section-label::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary);
    vertical-align: middle;
    margin-inline-end: 10px;
    transform: skewX(-20deg);
}

/* Cards: red hover accent (TrendAI card behavior) */
.card { position: relative; overflow: hidden; }
.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(270deg, var(--primary), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s;
}
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: 0 18px 44px rgba(215, 25, 32, 0.09), 0 8px 24px rgba(0, 0, 0, 0.4); }

/* Step cards: giant ghost numbers like TrendAI stats */
.step-card { overflow: hidden; }
.step-num { position: relative; z-index: 1; }
.step-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 26px solid rgba(215, 25, 32, 0.06);
    pointer-events: none;
}

/* Quote cards: bigger red quote presence */
.quote-card { border-right: 3px solid var(--primary); }

/* Footer: red top hairline */
.site-footer { border-top: 2px solid rgba(215, 25, 32, 0.5); }

/* Feature images: red offset frame (TrendAI media treatment) */
.feature-img { position: relative; }
.feature-img::after {
    content: '';
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 2px solid rgba(215, 25, 32, 0.35);
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: -1;
}
@media (max-width: 860px) { .feature-img::after { display: none; } }

/* Pricing featured: stronger red presence */
.price-card.featured { box-shadow: 0 0 60px rgba(215, 25, 32, 0.15); }

/* Buttons: sharper, reference-weight */
.btn { font-weight: 500; }
.btn-primary { box-shadow: 0 8px 28px rgba(215, 25, 32, 0.3); }
.btn-primary:hover { box-shadow: 0 12px 36px rgba(215, 25, 32, 0.42); }

/* ==========================================================================
   v3 — TrendAI scale layer: full-screen sections, bigger type, hero cards,
   impact numbers, insight rows, trust strip
   ========================================================================== */

/* --- Taller rhythm: sections approach screen height --- */
:root { --section-py: 128px; }
@media (max-width: 1024px) { :root { --section-py: 96px; } }
@media (max-width: 560px)  { :root { --section-py: 72px; } }

.section { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
.section-sm { min-height: 0; }
.section > .container { width: 100%; }

/* --- Bigger, tighter display type (Gotham-scale) --- */
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.015em; }
.section-lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 780px; }
.hero-lead { font-size: clamp(1.15rem, 2vw, 1.5rem); max-width: 640px; }

/* --- Heroes: full viewport like the reference --- */
.hero { min-height: min(92vh, 960px); }
.hero-sub { min-height: min(64vh, 640px); }
.article-hero { padding: 120px 0 72px; }

/* --- Hero promo cards row (TrendAI news carousel) --- */
.hero-cards {
    position: relative;
    z-index: 3;
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.hero-card {
    background: rgba(20, 20, 20, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.hero-card:hover { transform: translateY(-5px); border-color: rgba(215, 25, 32, 0.6); background: rgba(29, 29, 29, 0.95); }
.hero-card .hc-tag { color: var(--primary); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; font-family: var(--font-display); }
.hero-card h3 { font-size: 1.1rem; }
.hero-card p { color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.hero-card .link-arrow { font-size: 0.92rem; }
@media (max-width: 860px) { .hero-cards { grid-template-columns: 1fr; margin-top: 44px; } }

/* --- Trust strip (Chosen-by band) --- */
.trust-strip { padding-block: 56px; }
.trust-strip .trust-title {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 28px;
}
.trust-strip-inner { gap: 16px 56px; font-size: 1.15rem; color: #8a8a8a; font-family: var(--font-display); }
.trust-strip-inner span { transition: color 0.3s; }
.trust-strip-inner span:hover { color: #fff; }

/* --- Impact numbers (TrendAI giant stats) --- */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px 40px;
    align-items: start;
}
.impact-item { border-right: 3px solid var(--primary); padding-right: 22px; text-align: right; }
.impact-value {
    font-family: var(--font-display);
    font-size: clamp(3.25rem, 6.5vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
}
.impact-value .stat-suffix { color: var(--primary); }
.impact-label { color: var(--text-muted); margin-top: 12px; font-size: 1.05rem; }
@media (max-width: 1024px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .impact-grid { grid-template-columns: 1fr; } }

/* --- Insight rows (TrendAI latest-insights list) --- */
.insight-rows { display: flex; flex-direction: column; }
.insight-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 26px 6px;
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.3s, padding 0.3s;
}
.insight-row:first-child { border-top: 1px solid var(--border-soft); }
.insight-row:hover { background: rgba(255, 255, 255, 0.03); padding-inline: 14px; }
.insight-row .ir-tag {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-display);
    min-width: 110px;
}
.insight-row h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); flex: 1; }
.insight-row .ir-arrow { color: var(--text-dim); font-size: 1.3rem; transition: color 0.3s, transform 0.3s var(--ease); }
.insight-row:hover .ir-arrow { color: var(--primary); transform: translateX(-6px); }
@media (max-width: 640px) { .insight-row { flex-wrap: wrap; gap: 8px 16px; } .insight-row .ir-tag { min-width: 0; } }

/* --- Cards scale up --- */
.card { padding: 40px 34px; }
.grid-2, .grid-3, .grid-4, .cta-band-grid, .pricing-grid, .steps-grid { gap: 28px; }
.cta-band-card { padding: 48px 36px; min-height: 260px; }
.cta-band-card h3 { font-size: 1.35rem; }
.step-card { padding: 40px 32px; }

/* --- Feature rows breathe more --- */
.feature-row { gap: 88px; }
.feature-row + .feature-row { margin-top: 128px; }
.feature-row h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
@media (max-width: 1024px) { .feature-row { gap: 48px; } .feature-row + .feature-row { margin-top: 96px; } }

/* --- CTA final: full-screen closer --- */
.cta-final { min-height: 70vh; display: flex; align-items: center; }
.cta-final > .container { width: 100%; }
.cta-final h2 { font-size: clamp(2.4rem, 5vw, 4rem); }

/* --- Stats band roomier --- */
.stats-band { padding-block: 88px; }

/* --- Footer scale --- */
.site-footer { padding: 96px 0 40px; }

/* ==========================================================================
   v4 — Lead widget (floating quote form)
   ========================================================================== */
.lead-widget { position: fixed; bottom: 96px; right: 20px; z-index: 99998; }
.lead-widget-toggle {
    box-shadow: 0 10px 32px rgba(215, 25, 32, 0.45);
    font-weight: 700;
}
.lead-widget-panel {
    position: absolute;
    bottom: calc(100% + 14px);
    right: 0;
    width: min(360px, calc(100vw - 48px));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: lwIn 0.3s var(--ease);
}
@keyframes lwIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lw-head { position: relative; margin-bottom: 18px; padding-inline-end: 30px; }
.lw-head strong { font-family: var(--font-display); font-size: 1.15rem; display: block; margin-bottom: 4px; }
.lw-head p { color: var(--text-muted); font-size: 0.92rem; }
.lw-close {
    position: absolute; top: -4px; left: 0;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    color: var(--text-muted); font-size: 1.5rem; line-height: 1;
    border-radius: 8px;
}
.lw-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.lead-widget-form { display: flex; flex-direction: column; gap: 12px; }
.lead-widget-form input, .lead-widget-form select, .lead-widget-form textarea {
    font-family: inherit; font-size: 0.95rem; color: var(--text);
    background: #141414; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.lead-widget-form textarea { min-height: 70px; resize: vertical; }
.lead-widget-form input:focus, .lead-widget-form select:focus, .lead-widget-form textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.2);
}
.lead-widget-form .lw-note { color: var(--text-dim); font-size: 0.78rem; }
.lw-hp { position: absolute !important; right: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .lead-widget { bottom: 88px; right: 14px; } }

/* ==========================================================================
   v5 — Mobile overflow fix: clip decorative shapes, prevent viewport expansion
   ========================================================================== */
html, body { overflow-x: clip; }
.section, .section-sm, .section-deep, .section-white, .stats-band, .cta-final, .trust-strip, .article-hero { overflow-x: clip; }

@media (max-width: 860px) {
    /* shrink the giant decorative shapes so nothing pushes the layout */
    .section-deep::before { width: 420px; height: 420px; top: -120px; left: -160px; }
    .section-deep::after { width: 340px; height: 340px; top: -80px; left: -120px; }
    .hero::before { width: 320px; height: 320px; top: -120px; left: -100px; }
    .hero::after { width: 140%; height: 260px; bottom: -170px; }
    .cta-final::before { width: 380px; height: 380px; bottom: -190px; box-shadow: 0 0 0 34px rgba(215, 25, 32, 0.05); }
    .section-white::after { width: 280px; height: 280px; border-width: 36px; bottom: -110px; left: -110px; }
    .step-card::after { width: 110px; height: 110px; border-width: 18px; }

    /* top bar: wrap + center */
    .top-bar-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
    .top-bar .tb-contact { justify-content: center; flex-wrap: wrap; gap: 10px 18px; }

    /* impact numbers: keep aligned and inside */
    .impact-grid { gap: 32px 20px; }
    .impact-value { font-size: clamp(2.6rem, 11vw, 3.4rem); }

    /* hero content centered nicely on small screens */
    .hero-content { max-width: 100%; }
}

/* ==========================================================================
   v6 — Laptop fit: on short screens sections size to content and fit viewport
   ========================================================================== */
@media (min-width: 861px) and (max-height: 820px) {
    :root { --section-py: 72px; }
    .section { min-height: 0; display: block; }
    .hero { min-height: calc(100vh - 76px); padding-block: 72px 56px; }
    .hero-sub { min-height: 56vh; }
    .hero-cards { margin-top: 40px; }
    .hero-content h1 { margin-bottom: 18px; }
    .hero-lead { margin-bottom: 26px; }
    h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }
    h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
    .section-lead { margin-bottom: 36px; }
    .cta-final { min-height: 0; padding-block: 88px; }
    .stats-band { padding-block: 60px; }
    .impact-value { font-size: clamp(2.8rem, 5.5vw, 4.2rem); }
    .feature-row + .feature-row { margin-top: 88px; }
    .cta-band-card { min-height: 0; padding: 38px 32px; }
    .site-footer { padding: 72px 0 32px; }
}

/* ==========================================================================
   v7 — AI nav highlight
   ========================================================================== */
.main-nav .nav-ai a {
    background: linear-gradient(92deg, rgba(215,25,32,0.18), rgba(255,149,0,0.12));
    border: 1px solid rgba(215, 25, 32, 0.45);
    color: #fff;
    position: relative;
}
.main-nav .nav-ai a::before {
    content: 'חדש';
    position: absolute;
    top: -9px;
    left: -6px;
    background: #d71920;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}
.main-nav .nav-ai a:hover { background: linear-gradient(92deg, rgba(215,25,32,0.32), rgba(255,149,0,0.2)); border-color: #d71920; box-shadow: 0 0 18px rgba(215,25,32,0.3); }
.mobile-nav .nav-ai a { color: #ff6b70; font-weight: 800; }


/* ===== Mobile refinements (24.7.2026): hero heights + lead widget ===== */
@media (max-width: 860px) {
    /* inner-page heroes: lift titles like the homepage fix */
    .hero-sub { min-height: 320px; }
    .article-hero { padding: 40px 0 44px; }

    /* lead widget: sit above the accessibility button instead of on it */
    .lead-widget { bottom: 98px; right: 16px; }

    /* lead widget: hidden on first paint, revealed after scrolling past the hero */
    .lead-widget { opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .35s ease, transform .35s ease; }
    .lead-widget.lw-on { opacity: 1; pointer-events: auto; transform: none; }

    /* left floating stack: align rows with the right-side pill + a11y button */
    .float-btns { bottom: 17px; }
    .accessibility-widget { bottom: 20px !important; }
}