/* ============================================================
   T4U Innovations — Design System
   Modern dark "software studio" aesthetic.
   Works for RTL (he) and LTR (en) via [dir] attribute.
   ============================================================ */

:root {
  /* Palette */
  --bg:            #070a16;
  --bg-2:          #0b1020;
  --surface:       #10172b;
  --surface-2:     #151d36;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text:          #eef2ff;
  --text-muted:    #9aa6c8;
  --text-dim:      #6b7699;

  /* Brand gradient */
  --brand-1:       #6d5efc;   /* violet  */
  --brand-2:       #27c2ff;   /* cyan    */
  --brand-3:       #a855f7;   /* purple  */
  --accent:        #27c2ff;
  --grad:          linear-gradient(120deg, var(--brand-1) 0%, var(--brand-3) 45%, var(--brand-2) 100%);
  --grad-soft:     linear-gradient(120deg, rgba(109,94,252,.18), rgba(39,194,255,.18));

  --ok:            #2ee6a6;
  --radius:        18px;
  --radius-sm:     12px;
  --shadow:        0 24px 60px -20px rgba(0,0,0,.65);
  --shadow-glow:   0 0 0 1px var(--border), 0 20px 60px -24px rgba(109,94,252,.5);

  --maxw:          1160px;
  --font-he:       'Assistant', 'Heebo', system-ui, -apple-system, sans-serif;
  --font-en:       'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font:          var(--font-he);
}

[lang="en"] { --font: var(--font-en); }

/* ---------- 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);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
section { position: relative; }

/* ---------- Background decoration ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60vw 50vw at 80% -10%, rgba(109,94,252,.22), transparent 60%),
    radial-gradient(50vw 50vw at 0% 20%, rgba(39,194,255,.14), transparent 55%),
    radial-gradient(40vw 40vw at 90% 90%, rgba(168,85,247,.12), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .4;
  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: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 85%);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--brand-2); text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--border);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 10px var(--brand-2); }

h1, h2, h3 { line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
h2.title { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: clamp(16px, 2vw, 18px); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15.5px; line-height: 1;
  padding: 14px 24px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(109,94,252,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(109,94,252,.85); }
.btn-ghost { background: rgba(255,255,255,.04); border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.btn-wa { background: #25d366; color: #05280f; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(37,211,102,.7); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,10,22,.55);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.site-header.scrolled { background: rgba(7,10,22,.86); border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand .logo { width: 36px; height: 36px; flex-shrink: 0; }
.brand b { font-weight: 800; }
.brand span { color: var(--text-dim); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  padding: 9px 13px; border-radius: 10px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 6px; transition: .15s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,.04); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(50px, 8vw, 92px); padding-bottom: clamp(50px, 7vw, 90px); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.6vw, 62px); margin-bottom: 22px; }
.hero .lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-muted); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; color: var(--text-dim); font-size: 14px; }
.hero-trust b { color: var(--text); }
.hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2); }

/* Hero visual card */
.hero-visual { position: relative; }
.glass-card {
  background: linear-gradient(160deg, rgba(21,29,54,.9), rgba(16,23,43,.75));
  border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow);
  padding: 20px; backdrop-filter: blur(6px);
}
.code-head { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.code-head i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; background: #ff5f57; }
.code-head i:nth-child(2){ background:#febc2e;} .code-head i:nth-child(3){ background:#28c840;}
.code-head span { margin-inline-start: auto; font-size: 12px; color: var(--text-dim); font-family: ui-monospace, monospace; direction: ltr; }
.code-body { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; line-height: 1.9; direction: ltr; text-align: left; }
.code-body .ln { color: var(--text-dim); }
.code-body .k { color: #c792ea; } .code-body .s { color: #7ee787; } .code-body .f { color: #27c2ff; } .code-body .c { color: #5b6684; }
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  padding: 11px 15px; border-radius: 14px; box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600;
}
.float-badge .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-soft); display: grid; place-items: center; }
.float-badge .ic svg { width: 17px; height: 17px; color: var(--brand-2); }
.fb-1 { top: -18px; inset-inline-start: -22px; }
.fb-2 { bottom: -20px; inset-inline-end: -14px; }

/* ---------- Marquee / trust strip ---------- */
.strip { border-block: 1px solid var(--border); background: rgba(255,255,255,.015); }
.strip-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; padding-block: 22px; }
.strip-inner .label { color: var(--text-dim); font-size: 13px; font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted);
  padding: 9px 15px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.chip svg { width: 16px; height: 16px; color: var(--brand-2); }

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

.card {
  background: linear-gradient(170deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; position: relative; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card .ic-box {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 18px;
}
.card .ic-box svg { width: 25px; height: 25px; color: var(--brand-2); }
.card h3 { font-size: 20px; margin-bottom: 9px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card ul.ticks { margin-top: 14px; display: grid; gap: 7px; }
.card ul.ticks li { display: flex; gap: 9px; align-items: flex-start; color: var(--text-muted); font-size: 14.5px; }
.card ul.ticks li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  background: var(--ok); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

.card.feature { grid-column: span 2; }
.card.feature .ic-box { background: var(--grad); }
.card.feature .ic-box svg { color: #fff; }
.card .tag { position: absolute; inset-inline-end: 20px; top: 20px; font-size: 12px; font-weight: 700; color: var(--brand-2); background: var(--grad-soft); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); }

/* ---------- Benefits / value list ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.value {
  display: flex; gap: 15px; padding: 22px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: rgba(255,255,255,.015);
}
.value .num { font-family: var(--font-en); font-weight: 700; font-size: 15px; color: var(--brand-2); }
.value .ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px; display:grid; place-items:center; background: var(--grad-soft); border:1px solid var(--border); }
.value .ic svg { width: 22px; height: 22px; color: var(--brand-2); }
.value h3 { font-size: 17px; margin-bottom: 5px; }
.value p { font-size: 14px; color: var(--text-muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--grad-soft); }
.stat .big { font-size: clamp(32px, 4vw, 44px); font-weight: 800; line-height: 1; }
.stat .lbl { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

/* ---------- Case studies ---------- */
.cases { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.case {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(170deg, var(--surface), var(--bg-2)); display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.case:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.case .top { padding: 22px 22px 0; }
.case .kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--brand-2); }
.case h3 { font-size: 21px; margin: 8px 0 10px; }
.case p { color: var(--text-muted); font-size: 14.5px; padding: 0 22px; flex: 1; }
.case .metrics { display: flex; gap: 10px; padding: 18px 22px 22px; flex-wrap: wrap; }
.case .metric { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 11px; padding: 10px 13px; }
.case .metric b { display: block; font-size: 19px; font-weight: 800; }
.case .metric small { color: var(--text-dim); font-size: 12px; }
.case .visit { padding: 0 22px 22px; }
.case .visit a { font-size: 13.5px; color: var(--brand-2); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; counter-reset: step; }
.step { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.015); position: relative; }
.step .n { counter-increment: step; font-family: var(--font-en); font-size: 13px; font-weight: 700; color: var(--brand-2); }
.step .n::before { content: "0" counter(step); }
.step h3 { font-size: 17px; margin: 10px 0 7px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 16.5px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--brand-2); font-weight: 400; transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--text-muted); font-size: 15px; }

/* ---------- CTA + contact ---------- */
.cta-wrap { position: relative; border: 1px solid var(--border-strong); border-radius: 26px; overflow: hidden;
  background: linear-gradient(135deg, rgba(109,94,252,.18), rgba(39,194,255,.12)); }
.cta-wrap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40vw 40vw at 85% 10%, rgba(39,194,255,.25), transparent 60%); pointer-events: none; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: clamp(30px, 5vw, 56px); position: relative; }
.cta-grid h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 14px; }
.cta-grid .lead { color: var(--text-muted); margin-bottom: 24px; font-size: 17px; }
.contact-opts { display: grid; gap: 12px; margin-top: 10px; }
.contact-opt { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 13px; background: rgba(7,10,22,.4); transition: .15s; }
.contact-opt:hover { border-color: var(--border-strong); background: rgba(7,10,22,.6); }
.contact-opt .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); }
.contact-opt .ic svg { width: 20px; height: 20px; color: var(--brand-2); }
.contact-opt b { font-size: 15px; display: block; } .contact-opt small { color: var(--text-dim); font-size: 13px; direction: ltr; }

/* Form */
.form { display: grid; gap: 14px; background: rgba(7,10,22,.5); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 11px; padding: 13px 15px;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 3px rgba(109,94,252,.25); }
.form .fine { font-size: 12.5px; color: var(--text-dim); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-block: 54px 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 38px; }
.footer-grid .about p { color: var(--text-muted); font-size: 14.5px; margin: 14px 0; max-width: 320px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13.5px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; transition: .15s; }
.socials a:hover { border-color: var(--border-strong); background: rgba(255,255,255,.05); }
.socials svg { width: 18px; height: 18px; color: var(--text-muted); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 14px 34px -8px rgba(37,211,102,.6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

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

/* ---------- Mobile nav panel ---------- */
.mobile-panel { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .value-grid, .steps { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .cases { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card.feature { grid-column: span 2; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta .btn, .nav-cta .lang-toggle { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4, .value-grid, .steps, .stats { grid-template-columns: 1fr; }
  .card.feature { grid-column: span 1; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h2.title { font-size: 27px; }

  .mobile-panel.open { display: block; position: fixed; inset: 72px 0 0; z-index: 49; background: rgba(7,10,22,.98); backdrop-filter: blur(10px); padding: 24px 22px; }
  .mobile-panel a { display: block; font-size: 18px; font-weight: 600; padding: 15px 0; border-bottom: 1px solid var(--border); }
  .mobile-panel .btn { width: 100%; margin-top: 20px; }
  .mobile-panel .lang-row { margin-top: 18px; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
