/* ==========================================================================
   VDIGITAL — Design System
   Sub-brand of VIVOWOOD. Dark, technical, with a warm wood accent.
   ========================================================================== */

:root {
  /* Brand */
  --brand:        #17B8A6;
  --brand-strong: #0E8C7F;
  --brand-soft:   rgba(23, 184, 166, .14);
  --wood:         #C6904E;
  --wood-soft:    rgba(198, 144, 78, .14);
  --grad:         linear-gradient(135deg, #17B8A6 0%, #4FD1B5 45%, #C6904E 100%);

  /* Surfaces */
  --bg:        #0A0F0E;
  --bg-2:      #0E1614;
  --surface:   #121B19;
  --surface-2: #17211E;
  --line:      rgba(255, 255, 255, .08);
  --line-2:    rgba(255, 255, 255, .14);

  /* Text */
  --text:   #E9F0ED;
  --text-2: #B4C6C1;
  --muted:  #7E948E;
  --title:  #F4FBF8;

  /* Status */
  --live:    #3ED598;
  --build:   #FFC44D;
  --concept: #7AA7FF;

  /* Metrics */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw:      1200px;
  --shadow:    0 18px 50px rgba(0, 0, 0, .45);
  --ease:      cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: #0A0F0E;
  background: var(--bg);
  color: #E9F0ED;
  color: var(--text);
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Latin headings get the technical face; Hebrew keeps Heebo */
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3,
.logo-text, .kicker, .stat-num, .brandfont {
  font-family: 'Space Grotesk', 'Heebo', sans-serif;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: 92px 0; position: relative; }
.section--tight { padding: 62px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }

.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--text-2); font-size: 17px; margin: 0; }

.grad-text {
  color: #4FD1B5;
  background: linear-gradient(135deg, #17B8A6 0%, #4FD1B5 45%, #C6904E 100%);
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .grad-text { -webkit-text-fill-color: transparent; color: transparent; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #06100E; box-shadow: 0 10px 30px rgba(23, 184, 166, .28); }
.btn--primary:hover { box-shadow: 0 16px 40px rgba(23, 184, 166, .4); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn--sm { padding: 9px 17px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 15, 14, .78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(10, 15, 14, .93); }
.nav { display: flex; align-items: center; gap: 18px; height: 74px; min-width: 0; }
.logo { display: flex; align-items: center; gap: 11px; color: var(--text); flex-shrink: 0; }
.logo img { height: 40px; width: 139px; flex: 0 0 139px; }
.site-footer .logo img { height: 38px; width: 132px; flex: 0 0 132px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 600;
  color: var(--text-2); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links a.is-active { color: var(--brand); background: var(--brand-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex; padding: 3px; border: 1px solid var(--line-2);
  border-radius: 999px; background: rgba(255, 255, 255, .03);
}
.lang-switch button {
  border: 0; background: transparent; color: var(--muted);
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  transition: background .2s, color .2s;
}
.lang-switch button.is-active { background: var(--grad); color: #06100E; }

.burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -280px;
  width: min(900px, 160vw); height: 900px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(23, 184, 166, .17) 0%, rgba(198, 144, 78, .07) 42%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 30%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 9px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-size: 13.5px; color: var(--text-2); margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(62, 213, 152, .16); }
.hero h1 { font-size: clamp(38px, 7vw, 74px); letter-spacing: -.03em; margin-bottom: 20px; max-width: 15ch; }
.hero-lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 58ch; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), rgba(18, 27, 25, .35));
}
.stat-num { font-size: 34px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 13.5px; color: var(--muted); }

/* ---------- Filters ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.search {
  position: relative; flex: 1 1 260px; min-width: 220px;
}
.search input {
  width: 100%; padding: 13px 44px 13px 18px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font: inherit; font-size: 15px;
  transition: border-color .2s, background .2s;
}
html[dir="rtl"] .search input { padding: 13px 44px 13px 18px; }
html[dir="ltr"] .search input { padding: 13px 18px 13px 44px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--brand); outline: none; background: var(--surface-2); }
.search svg {
  position: absolute; top: 50%; transform: translateY(-50%);
  inset-inline-start: 16px; width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: var(--text-2);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--text); }
.chip.is-active { background: var(--grad); border-color: transparent; color: #06100E; }
.result-count { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* ---------- Idea cards ---------- */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.card {
  position: relative; display: flex; flex-direction: column;
  color: #E9F0ED;
  color: var(--text);
  padding: 26px; border-radius: 28px; border-radius: var(--radius-lg);
  background: #121B19;
  background: linear-gradient(165deg, var(--surface) 0%, rgba(14, 22, 20, .6) 100%);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  overflow: hidden; text-align: start;
  /* LED frame — always on, hard-coded colors (no var() dependence) */
  border: 1px solid rgba(35, 220, 200, .55);
  box-shadow:
    0 0 0 1px rgba(23, 184, 166, .22),
    0 0 16px rgba(23, 184, 166, .30),
    0 0 38px rgba(23, 184, 166, .14),
    inset 0 0 16px rgba(23, 184, 166, .08);
  animation: led-pulse 3.4s ease-in-out infinite;
}
@keyframes led-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(23, 184, 166, .22),
      0 0 16px rgba(23, 184, 166, .30),
      0 0 38px rgba(23, 184, 166, .14),
      inset 0 0 16px rgba(23, 184, 166, .08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(23, 184, 166, .34),
      0 0 24px rgba(23, 184, 166, .48),
      0 0 56px rgba(23, 184, 166, .22),
      inset 0 0 20px rgba(23, 184, 166, .12);
  }
}
.card::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(135deg, #17B8A6 0%, #4FD1B5 45%, #C6904E 100%);
  background: var(--grad); opacity: .85; transition: opacity .3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(60, 240, 220, .85);
  animation: none;
  box-shadow:
    0 0 0 1px rgba(23, 184, 166, .45),
    0 0 30px rgba(23, 184, 166, .55),
    0 0 70px rgba(23, 184, 166, .28),
    inset 0 0 22px rgba(23, 184, 166, .14),
    0 18px 50px rgba(0, 0, 0, .45);
}
.card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 25px;
  background: var(--brand-soft); border: 1px solid rgba(23, 184, 166, .22);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; border: 1px solid currentColor; white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge--live { color: var(--live); box-shadow: 0 0 14px rgba(62, 213, 152, .25) inset, 0 0 12px rgba(62, 213, 152, .18); }
.badge--build { color: var(--build); }
.badge--concept { color: var(--concept); }
.card h3 {
  font-size: 22px; margin-bottom: 7px;
  color: #FFFFFF;
  letter-spacing: -.015em;
  text-shadow: 0 0 10px rgba(255, 255, 255, .35), 0 0 22px rgba(23, 184, 166, .45);
  transition: text-shadow .3s var(--ease), color .3s var(--ease);
}
.card:hover h3 { color: #FFFFFF; text-shadow: 0 0 14px rgba(255, 255, 255, .55), 0 0 30px rgba(23, 184, 166, .75); }
.card-tagline { font-size: 14px; color: #2BD4C0; color: var(--brand); font-weight: 600; margin-bottom: 12px; }
.card-desc { font-size: 15px; color: #B4C6C1; color: var(--text-2); margin-bottom: 18px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.tag {
  padding: 5px 11px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, .045); color: var(--muted); border: 1px solid var(--line);
}
.card-link { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 7px; }
.card-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
html[dir="rtl"] .card-link svg { transform: scaleX(-1); }
.card:hover .card-link svg { transform: translateX(4px); }
html[dir="rtl"] .card:hover .card-link svg { transform: scaleX(-1) translateX(4px); }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 70px 20px;
  border: 1px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--muted);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 22px;
  background: rgba(4, 8, 7, .75); backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; animation: fade .22s var(--ease); }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal-box {
  position: relative; width: 100%; max-width: 720px; max-height: 88vh; overflow-y: auto;
  padding: 34px; border-radius: 28px; border-radius: var(--radius-lg);
  background: #121B19; background: var(--surface);
  animation: pop .28s var(--ease);
  /* LED frame */
  border: 1px solid rgba(35, 220, 200, .55);
  box-shadow:
    0 0 0 1px rgba(23, 184, 166, .25),
    0 0 26px rgba(23, 184, 166, .35),
    0 0 60px rgba(23, 184, 166, .16),
    inset 0 0 18px rgba(23, 184, 166, .08),
    0 18px 50px rgba(0, 0, 0, .45);
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98) } to { opacity: 1; transform: none } }
.modal-close {
  position: absolute; inset-block-start: 18px; inset-inline-end: 18px;
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
}
.modal-close:hover { color: var(--text); border-color: var(--brand); }
.modal-top { padding-inline-end: 54px; margin-bottom: 18px; }
.modal-box h3 { font-size: 27px; margin-bottom: 4px; color: #FFFFFF; text-shadow: 0 0 10px rgba(255, 255, 255, .35), 0 0 24px rgba(23, 184, 166, .5); }
.modal-section { margin-top: 24px; }
.modal-section h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.feature-list li::before {
  content: ""; flex-shrink: 0; width: 7px; height: 7px; margin-top: 9px;
  border-radius: 50%; background: var(--grad);
}

/* ---------- Process / About ---------- */
.cols-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.step {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); position: relative; counter-increment: s;
}
.step::before {
  content: "0" counter(s);
  font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 800;
  color: #4FD1B5;
  background: linear-gradient(135deg, #17B8A6 0%, #4FD1B5 45%, #C6904E 100%);
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  display: block; margin-bottom: 10px; line-height: 1;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .step::before { -webkit-text-fill-color: transparent; color: transparent; }
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--text-2); margin: 0; }

.panel {
  padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface), rgba(14, 22, 20, .5));
}
.dna { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.dna li { display: flex; gap: 14px; align-items: flex-start; }
.dna .ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--wood-soft); border: 1px solid rgba(198, 144, 78, .25); font-size: 19px;
}
.dna strong { display: block; font-size: 16px; margin-bottom: 2px; }
.dna span { font-size: 14.5px; color: var(--text-2); }

/* ---------- CTA ---------- */
.cta-box {
  padding: 56px 40px; border-radius: var(--radius-lg); text-align: center;
  border: 1px solid rgba(23, 184, 166, .28);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(23, 184, 166, .16), transparent 62%),
    linear-gradient(165deg, var(--surface), var(--bg-2));
}
.cta-box h2 { font-size: clamp(26px, 3.6vw, 38px); }
.cta-box p { color: var(--text-2); max-width: 52ch; margin-inline: auto; margin-bottom: 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field input, .field textarea, .field select {
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px;
  transition: border-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); outline: none; }
.form-note { font-size: 13.5px; color: var(--muted); }
.form-ok {
  display: none; padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(62, 213, 152, .1); border: 1px solid rgba(62, 213, 152, .35); color: var(--live); font-size: 15px;
}
.form-ok.is-visible { display: block; }

.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-item .ico {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--brand-soft); border: 1px solid rgba(23, 184, 166, .22); font-size: 19px;
}
.contact-item strong { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-item a, .contact-item span { font-size: 16px; font-weight: 600; }
.contact-item a:hover { color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer p { color: var(--text-2); font-size: 15px; max-width: 42ch; }
.footer-col h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 15px; color: var(--text-2); padding: 5px 0; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13.5px; color: var(--muted);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cols-2 { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 66px 0; }
  .burger { display: inline-flex; }
  .nav-links {
    position: absolute; inset-inline: 12px; top: 72px; flex-direction: column; align-items: stretch;
    padding: 12px; gap: 4px; border-radius: var(--radius); border: 1px solid var(--line-2);
    background: rgba(14, 22, 20, .98); backdrop-filter: blur(14px); box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav { gap: 10px; }
  .nav-actions { margin-inline-start: auto; }
  .nav-actions .btn { display: none; }
  .logo img { height: 32px; width: 111px; flex: 0 0 111px; }
  .hero { padding: 62px 0 56px; }
  .cta-box { padding: 40px 24px; }
  .modal-box { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

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

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .toolbar, .hero::after { display: none; }
  body { background: #fff; color: #000; }
}
