:root {
    --bg: #0b1020;
    --bg-elev: #0f1530;
    --text: #eaf2ff;
    --muted: #a7b3c6;
    --brand: #0a7cff;
    --brand-2: #6fddff;
    --ok: #4ad07f;
    --danger: #ff6666;
    --card: #121a38;
    --border: #1f2a52;
    --shadow: 0 10px 30px rgba(2, 10, 40, .35);
    --radius: 14px;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f8fafc;
        --bg-elev: #fff;
        --text: #0b1220;
        --muted: #5b6577;
        --card: #fff;
        --border: #e6eaf2;
        --shadow: 0 12px 24px rgba(10, 20, 60, .08);
    }
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font: 16px/1.6 "Assistant", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg) 0%, #0b1530 60%, #0a0f24 100%);
    direction: rtl;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto
}

.section {
    padding: clamp(3rem, 5vw, 5.5rem) 0
}

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

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    margin: 0 0 1.25rem
}

.lead {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--muted)
}

.muted {
    color: var(--muted)
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    text-decoration: none;
    padding: .85rem 1.1rem;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: var(--shadow);
    border: 0;
    cursor: pointer;
    transition: transform .12s ease;
}

.btn:hover {
    transform: translateY(-1px)
}

.btn--ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text)
}

.btn--sm {
    padding: .55rem .85rem;
    font-weight: 600
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    background: var(--brand);
    color: #fff;
    padding: .5rem .75rem;
    border-radius: 8px
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(8px);
    background: color-mix(in oklab, var(--bg-elev) 80%, transparent);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 0
}

.brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700
}

.brand-logo {
    display: block;
    height: 32px;
    width: auto;
    /* זהירות על לוגואים כהים על רקע כהה */
    image-rendering: auto;
}

.brand--footer .brand-logo {
    height: 28px
}

/* אם הלוגו כהה מדי במצב כהה, אפשר להאיר קלות:
   .brand-logo{ filter: drop-shadow(0 0 1px rgba(255,255,255,.25)); } */

/* התאמה למסכים קטנים */
@media (max-width:480px) {
    .brand-logo {
        height: 28px
    }
}

.brand-icon {
    font-size: 1.35rem
}

.brand--footer {
    font-weight: 700
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 2px
}

.nav ul {
    display: flex;
    gap: .5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0
}

.nav a {
    color: var(--text);
    text-decoration: none;
    padding: .6rem .8rem;
    border-radius: 10px
}

.nav a:hover {
    background: color-mix(in oklab, var(--card) 40%, transparent)
}

@media (max-width: 860px) {
    .nav-toggle {
        display: block
    }

    .nav {
        position: absolute;
        left: 1rem;
        top: 64px;
        background: var(--bg-elev);
        border: 1px solid var(--border);
        padding: .5rem;
        border-radius: 12px;
        display: none;
        box-shadow: var(--shadow)
    }

    .nav.open {
        display: block
    }

    .nav ul {
        flex-direction: column;
        align-items: stretch
    }
}

/* Hero */
.hero {
    padding-top: clamp(2rem, 5vw, 4rem)
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: min(4vw, 3rem);
    align-items: center
}

.hero-copy h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin: .25rem 0 .5rem
}

.cta {
    display: flex;
    gap: .75rem;
    margin: 1rem 0 1.25rem
}

.trust {
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: .25rem 0 0;
    list-style: none;
    color: var(--muted);
    flex-wrap: wrap
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr
    }
}

/* Phone mock */
.phone {
    display: flex;
    justify-content: center
}

.phone-bezel {
    width: min(340px, 86%);
    aspect-ratio: 9/19.5;
    border-radius: 36px;
    padding: 12px;
    background: linear-gradient(160deg, #1d2a5a, #0f1634);
    box-shadow: var(--shadow), inset 0 0 0 2px #22306b;
}

.phone-notch {
    height: 28px;
    width: 45%;
    margin: 0 auto 8px;
    background: #0a0f24;
    border-radius: 0 0 16px 16px
}

.phone-screen {
    background: linear-gradient(180deg, #0a122b, #0b1433 40%, #0a122b);
    border-radius: 26px;
    height: calc(100% - 36px);
    padding: 14px;
    color: #e7eeff;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.appbar {
    font-weight: 700;
    text-align: center;
    padding: .25rem 0
}

.appt-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: .75rem;
    background: #0e1a43;
    border: 1px solid #1f2a52;
    padding: .7rem;
    border-radius: 14px
}

.appt-time {
    font-weight: 700;
    font-size: 1.1rem
}

.appt-title {
    font-weight: 600
}

.appt-sub {
    color: #aeb9d1;
    font-size: .9rem
}

.pill {
    border: 0;
    border-radius: 999px;
    padding: .45rem .75rem;
    background: #1b56ff;
    color: #fff;
    cursor: pointer
}

.pill--alt {
    background: #5b6cff
}

.calendar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .4rem;
    margin-top: .25rem
}

.day {
    background: #0e1a43;
    border: 1px solid #22306b;
    text-align: center;
    padding: .45rem;
    border-radius: 10px;
    font-size: .9rem;
    color: #c7d4ef
}

.day.active {
    background: #1b56ff;
    color: #fff;
    border-color: transparent
}

.mini-stats {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-top: auto
}

.mini-stats div {
    background: #0e1a43;
    border: 1px solid #22306b;
    border-radius: 12px;
    padding: .5rem .75rem;
    text-align: center
}

.mini-stats span {
    display: block;
    color: #9fb1d6;
    font-size: .8rem;
    margin-top: .15rem
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem
}

.feature {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem
}

.feature-icon {
    font-size: 1.4rem;
    margin-bottom: .4rem
}

@media (max-width: 920px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width: 560px) {
    .features-grid {
        grid-template-columns: 1fr
    }
}

.steps {
    counter-reset: steps;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .8rem
}

.steps li {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .9rem .95rem
}

.steps li span {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-weight: 700;
    margin-inline-start: .3rem
}

/* Contact */
.contact .contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: .75rem
}

.contact-card {
    display: flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .9rem;
    transition: transform .12s ease, border-color .12s ease
}

.contact-card:hover {
    transform: translateY(-1px);
    border-color: color-mix(in oklab, var(--brand) 60%, var(--border))
}

.cc-ico {
    font-size: 1.35rem
}

.cc-title {
    font-weight: 700
}

.cc-sub {
    color: var(--muted);
    font-size: .95rem
}

@media (max-width: 640px) {
    .contact .contact-cards {
        grid-template-columns: 1fr
    }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-elev);
    padding: 1.25rem 0
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem
}

.footer-grid nav a {
    color: var(--muted);
    text-decoration: none;
    margin-inline-start: 1rem
}

.footer-grid nav a:hover {
    color: var(--text)
}

@media (max-width: 700px) {
    .footer-grid {
        flex-direction: column;
        align-items: flex-start
    }
}

/* Reveal & subtle animations (RTL-friendly) */
.fade-in-up {
    opacity: 0;
    transform: translateY(14px)
}

.float-in {
    opacity: 0;
    transform: translateX(-14px)
}

/* ב-RTL ננפנף מעט משמאל לימין */
.pop {
    opacity: 0;
    transform: scale(.98)
}

.reveal {
    opacity: 0;
    transform: translateY(12px)
}

.in,
.fade-in-up.in,
.float-in.in,
.pop.in,
.reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity .55s ease, transform .55s ease
}

/* Reduce motion safety */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}