/* Home page and shared components (loaded after styles.css) */
.kicker { margin: 0 0 18px; color: var(--accent-text); font-size: 12px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.section { padding-block: 75px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 13px 18px 13px 21px; border-radius: 999px; font-size: 13px; font-weight: 720; }
.button-primary { color: var(--on-fg); background: var(--fg); }
.button-primary span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #17324d; background: var(--gold); transition: transform .2s; }
.button-primary:hover span { transform: translateY(3px); }
.text-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 750; }
.text-link span { display: inline-block; font-size: 20px; transition: transform .2s; }
.text-link:hover span { transform: translate(3px, -3px); }
/* The arrow glyph points up-right; mirror it in RTL */
html[dir="rtl"] .text-link span, html[dir="rtl"] .card-foot a span, html[dir="rtl"] .tile-open span, html[dir="rtl"] .tile-apps i { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .text-link:hover span { transform: scaleX(-1) translate(3px, -3px); }

.hero { min-height: 690px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 7vw; padding-block: 80px 100px; }
.hero-copy h1 { margin-bottom: 28px; font-family: var(--serif); font-size: clamp(50px, 6vw, 88px); font-weight: 400; line-height: .98; letter-spacing: -.055em; }
html[dir="rtl"] .hero-copy h1 { font-family: Assistant, sans-serif; font-weight: 500; letter-spacing: -.045em; }
.hero-intro { max-width: 650px; margin-bottom: 34px; color: var(--fg-soft); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-actions p { max-width: 290px; margin: 0; color: var(--fg-soft); font-family: var(--serif); font-size: 14px; font-style: italic; line-height: 1.45; }
html[dir="rtl"] .hero-actions p { font-family: Assistant, sans-serif; font-style: normal; }
.hero-art { position: relative; height: 520px; }
.art-card { position: absolute; border: 1px solid rgba(23,50,77,.15); box-shadow: var(--shadow); }
.art-card > span { font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.art-code { top: 42px; inset-inline-start: 0; z-index: 2; width: 250px; height: 285px; padding: 24px; color: #dce7e4; background: #17324d; transform: rotate(-5deg); }
:root[data-theme="dark"] .art-code { background: #1d4062; border-color: rgba(255,255,255,.14); }
.art-code span { color: #e1b75d; }
.art-code i { display: block; height: 4px; margin-top: 22px; border-radius: 5px; background: rgba(255,255,255,.28); }
.art-code i:nth-of-type(2) { width: 68%; }
.art-code i:nth-of-type(3) { width: 82%; }
.art-code code { position: absolute; inset-inline: 22px; bottom: 22px; direction: ltr; text-align: left; color: rgba(255,255,255,.7); font-family: Consolas, monospace; font-size: 14px; }
.art-photo { top: 4px; inset-inline-end: 5px; z-index: 1; width: 235px; height: 310px; padding: 15px; color: #536579; background: #fffaf0; transform: rotate(7deg); }
.art-photo div { height: 245px; margin-top: 14px; background: radial-gradient(circle at 68% 30%, #f0c876 0 9%, transparent 10%), linear-gradient(155deg, transparent 0 48%, rgba(23,50,77,.45) 49% 54%, transparent 55%), linear-gradient(25deg, #8ea39c, #d9c5a0 48%, #9b7a63); filter: saturate(.7); }
.art-note { z-index: 4; bottom: 15px; inset-inline-start: 27%; width: 255px; min-height: 190px; padding: 25px; color: #17324d; background: #e6b84f; transform: rotate(-1deg); }
.art-note strong { display: block; margin-top: 24px; font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.15; }
html[dir="rtl"] .art-note strong { font-family: Assistant, sans-serif; font-weight: 500; }
.art-note em { position: absolute; bottom: 19px; inset-inline-end: 24px; font-family: var(--serif); }
.art-line { position: absolute; z-index: 3; inset: 145px -20px auto auto; width: 390px; height: 300px; overflow: visible; }
html[dir="rtl"] .art-line { inset: 145px auto auto -20px; transform: scaleX(-1); }
.art-line path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 7 10; }

.feature-card { position: relative; min-height: 420px; padding: 55px 6%; overflow: hidden; border-radius: 3px 80px 3px 3px; color: #fffdf8; background: #17324d; display: grid; grid-template-columns: 80px minmax(260px, 480px) 1fr; align-items: center; gap: 24px; }
:root[data-theme="dark"] .feature-card { background: #1a3a58; }
html[dir="rtl"] .feature-card { border-radius: 80px 3px 3px 3px; }
.feature-number { align-self: start; padding-top: 5px; color: var(--gold); font-family: var(--serif); font-size: 17px; }
.feature-card .kicker { color: var(--gold); }
.feature-copy h2, .section-heading h2, .now-strip h2 { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(36px, 4.1vw, 58px); font-weight: 400; line-height: 1.05; letter-spacing: -.04em; }
html[dir="rtl"] .feature-copy h2, html[dir="rtl"] .section-heading h2, html[dir="rtl"] .now-strip h2 { font-family: Assistant, sans-serif; font-weight: 520; }
.feature-copy > p:not(.kicker) { max-width: 500px; color: rgba(255,255,255,.7); font-size: 17px; }
.app-stack { position: relative; height: 290px; min-width: 300px; }
.mini-app { position: absolute; width: 165px; height: 210px; padding: 18px; border-radius: 18px; box-shadow: 0 24px 40px rgba(0,0,0,.22); color: #17324d; }
.mini-app span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; font-size: 20px; font-weight: 800; }
.mini-app i { display: block; width: 85%; height: 5px; margin-top: 24px; border-radius: 8px; background: rgba(23,50,77,.16); }
.mini-app i + i { width: 58%; margin-top: 11px; }
.mini-a { top: 45px; inset-inline-start: 4%; z-index: 1; background: #a9b6a5; transform: rotate(-10deg); }
.mini-a span { background: rgba(255,255,255,.5); }
.mini-b { top: 3px; inset-inline-start: 30%; z-index: 2; background: var(--gold); transform: rotate(3deg); }
.mini-b span { background: rgba(255,255,255,.4); }
.mini-c { top: 65px; inset-inline-end: 1%; z-index: 3; background: #f2ebe0; transform: rotate(10deg); }
.mini-c span { width: 64px; background: #df5a3c; color: #fff; font-size: 13px; }

.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 9vw; margin-bottom: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.section-heading h2 { max-width: 700px; margin-bottom: 0; }
.section-heading > p { margin: 0 0 5px; color: var(--fg-soft); }

.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile { position: relative; min-height: 340px; padding: 34px; overflow: hidden; display: flex; flex-direction: column; color: #fff; transition: transform .25s; }
.tile:hover { transform: translateY(-5px); }
.tile.blue { background: #345b78; }
.tile.rust { background: #c9482d; }
.tile.ink { background: linear-gradient(130deg, #101f38, #274b68); }
.tile.green { background: #3d6358; }
.tile-top { position: relative; z-index: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tile-top h3 { margin: 0; font-family: var(--serif); font-size: 29px; font-weight: 400; }
html[dir="rtl"] .tile-top h3 { font-family: Assistant, sans-serif; font-weight: 550; }
.tile-count { font-size: 12px; opacity: .75; white-space: nowrap; }
.tile > p { position: relative; z-index: 2; max-width: 380px; margin: 14px 0 22px; color: rgba(255,255,255,.8); }
.tile-apps { position: relative; z-index: 2; flex: 1; margin: 0 0 22px; padding: 0; list-style: none; }
.tile-apps li a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 15px; }
.tile-apps li a:hover { color: var(--gold); }
.tile-apps i { font-style: normal; opacity: .7; }
.tile-more a { opacity: .75; font-size: 13px; }
.tile-open { position: relative; z-index: 2; align-self: flex-start; display: inline-flex; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 750; }
.tile-mark { position: absolute; width: 240px; height: 240px; inset: -60px -50px auto auto; opacity: .1; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 28px 28px; transform: rotate(12deg); }
html[dir="rtl"] .tile-mark { inset: -60px auto auto -50px; }

.now-strip { position: relative; padding: 60px 8%; border-block: 1px solid var(--line); }
.now-strip h2 { max-width: 760px; }
.now-strip > p:not(.kicker) { max-width: 620px; margin: 0; color: var(--fg-soft); font-size: 18px; }
.pulse { position: absolute; inset-block-start: 60px; inset-inline-end: 8%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(223,90,60,.5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(223,90,60,0); } }

.mobile-nav { display: none; }
.footer-grid nav a.active { color: var(--gold); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-art { width: min(520px, 100%); margin-inline: auto; }
  .feature-card { grid-template-columns: 50px 1fr; }
  .app-stack { grid-column: 1 / -1; width: min(500px, 100%); margin-inline: auto; }
  .section-heading { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 680px) {
  .hero { min-height: auto; padding-block: 60px 70px; gap: 30px; }
  .hero-art { height: 440px; }
  .art-code { width: 200px; height: 235px; }
  .art-photo { width: 190px; height: 260px; }
  .art-photo div { height: 195px; }
  .art-note { inset-inline-start: 18%; width: 220px; }
  .section { padding-block: 50px; }
  .feature-card { min-height: 680px; padding: 40px 26px; grid-template-columns: 1fr; border-radius: 3px 45px 3px 3px; }
  html[dir="rtl"] .feature-card { border-radius: 45px 3px 3px 3px; }
  .feature-number { display: none; }
  .app-stack { min-width: 0; height: 270px; }
  .mini-app { width: 135px; height: 180px; }
  .mini-b { inset-inline-start: 28%; }
  .mini-c { inset-inline-end: 0; }
  .section-heading { margin-bottom: 25px; padding-bottom: 25px; }
  .tile-grid { grid-template-columns: 1fr; }
  .tile { padding: 28px 24px; }
  .now-strip { padding: 45px 0; }
  .pulse { inset-inline-end: 0; }
  .mobile-nav { display: flex; gap: 8px; padding-bottom: 12px; }
  .mobile-nav a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--fg-soft); }
  .mobile-nav a.active { color: var(--on-fg); background: var(--fg); border-color: var(--fg); }
}

/* 404 */
.nf-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6vw; }
.nf h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 64px); font-weight: 400; letter-spacing: -.04em; line-height: 1.05; }
.nf[lang="he"] h1 { font-family: Assistant, sans-serif; font-weight: 500; }
.nf[lang="he"] { font-family: Assistant, sans-serif; font-size: 17px; }
.nf p { margin-bottom: 28px; color: var(--fg-soft); font-size: 18px; }
@media (max-width: 680px) { .nf-wrap { grid-template-columns: 1fr; min-height: auto; padding-block: 60px; } }
