/* ============================================================
   tomerbenbaron.com — Frontier-Tech Personal Brand
   Dark base · one electric accent · editorial type · bento grid
   ============================================================ */

:root {
  --bg: #07090d;
  --bg-2: #0b0e14;
  --surface: #10141c;
  --surface-2: #151b26;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #eaeef6;
  --muted: #9aa4b8;
  --faint: #6b7488;
  --accent: #4da3ff;
  --accent-2: #85c4ff;
  --accent-ink: #051221;
  --glow: rgba(77, 163, 255, 0.16);
  --radius: 20px;
  --radius-sm: 14px;
  --font-head: 'Heebo', system-ui, sans-serif;
  --font-body: 'Heebo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --maxw: 1180px;
}

html[lang="en"] {
  --font-head: 'Space Grotesk', 'Heebo', system-ui, sans-serif;
  --font-body: 'Inter', 'Heebo', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- backdrop ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(77, 163, 255, 0.10), transparent 60%),
    radial-gradient(700px 500px at 8% 20%, rgba(77, 163, 255, 0.05), transparent 55%),
    var(--bg);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; font-family: var(--font-head); }
.nav-logo b { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.lang-switch {
  font-family: var(--font-mono); font-size: 12.5px; padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: 100px; color: var(--text) !important;
  transition: border-color .2s, background .2s;
}
.lang-switch:hover { border-color: var(--accent); background: var(--glow); }
@media (max-width: 860px) { .nav-links li.hide-m { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 170px 0 90px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: 60px; align-items: center;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); opacity: .7; }
h1 {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(44px, 6.2vw, 76px);
  line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 26px;
}
h1 .grad {
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 60%, #c2e3ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 19.5px; color: var(--muted); max-width: 560px; margin-bottom: 38px; font-weight: 300; }
.hero-sub strong { color: var(--text); font-weight: 500; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 100px; font-size: 15.5px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 32px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(77,163,255,.3); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: var(--glow); transform: translateY(-2px); }

.hero-photo { position: relative; justify-self: center; }
.hero-photo .ring {
  width: clamp(240px, 24vw, 320px); height: clamp(240px, 24vw, 320px);
  border-radius: 50%; padding: 5px; position: relative;
}
.hero-photo .ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), transparent 40%, var(--accent-2) 70%, var(--accent));
  animation: spin 14s linear infinite;
}
.hero-photo .ring-inner {
  width: 100%; height: 100%; border-radius: 50%; padding: 6px; background: var(--bg);
  position: relative; z-index: 1; box-sizing: border-box;
}
.hero-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: -12%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  z-index: -1;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero-photo .ring::before { animation: none; }
  html { scroll-behavior: auto; }
}

.hero-badge {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; z-index: 2;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 100px; padding: 10px 18px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  direction: ltr;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }

@media (max-width: 900px) {
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo { order: -1; }
}

/* ---------- metrics ---------- */
.metrics { padding: 30px 0 10px; }
.metrics-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(16,20,28,0.4));
  padding: 44px 40px 36px;
}
.metrics-title {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 30px; text-align: center;
}
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.metric { text-align: center; position: relative; }
.metric + .metric::before {
  content: ""; position: absolute; inset-inline-start: -14px; top: 15%; height: 70%;
  width: 1px; background: var(--line);
}
.metric-num {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--text), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  direction: ltr; display: inline-block;
}
.metric-label { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.metrics-note { text-align: center; color: var(--faint); font-size: 13px; margin-top: 26px; }
@media (max-width: 860px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .metric + .metric::before { display: none; }
}

/* ---------- sections ---------- */
section { padding: 96px 0; }
.sec-head { margin-bottom: 52px; max-width: 640px; }
h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 16px;
}
.sec-head p { color: var(--muted); font-size: 17.5px; font-weight: 300; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(16,20,28,0.55));
  padding: 30px; position: relative; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 163, 255, 0.35);
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(77,163,255,.08);
}
.card.flag { grid-column: span 4; grid-row: span 2; }
.card.b2 { grid-column: span 2; }
.card.b3 { grid-column: span 2; }
.card.b4 { grid-column: span 2; }
.card.b5 { grid-column: span 2; }
.card.b6 { grid-column: span 2; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.flag { grid-column: span 2; grid-row: auto; }
  .card.b2, .card.b3, .card.b4, .card.b5, .card.b6 { grid-column: span 2; }
}

.card-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(77,163,255,.35); border-radius: 100px;
  padding: 5px 12px; display: inline-block; margin-bottom: 18px; width: fit-content;
  background: rgba(77,163,255,.07);
}
.card h3 {
  font-family: var(--font-head); font-size: 21px; font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 12px; line-height: 1.3;
}
.card.flag h3 { font-size: 26px; }
.card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px; padding: 4px 11px;
  direction: ltr;
}
.card .glow-corner {
  position: absolute; top: -70px; inset-inline-end: -70px; width: 190px; height: 190px;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  pointer-events: none;
}
.flag-visual {
  margin-top: 26px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: linear-gradient(160deg, #0c1420, #101a2a);
  padding: 20px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  direction: ltr; text-align: left; line-height: 1.9; overflow: hidden;
}
.flag-visual .ln { display: flex; gap: 10px; white-space: nowrap; }
.flag-visual .ok { color: #3ddc84; }
.flag-visual .ac { color: var(--accent-2); }

/* certificate strip */
.cert-strip {
  margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(16,20,28,0.55));
  display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center;
  padding: 24px 30px; transition: border-color .25s, transform .25s;
}
.cert-strip:hover { border-color: rgba(77,163,255,.35); transform: translateY(-3px); }
.cert-strip img { border-radius: 10px; border: 1px solid var(--line-strong); }
.cert-strip h3 { font-family: var(--font-head); font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.cert-strip p { color: var(--muted); font-size: 14.5px; }
.cert-strip .cert-id { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-top: 8px; display: block; direction: ltr; text-align: start; }
@media (max-width: 700px) { .cert-strip { grid-template-columns: 1fr; } }

/* ---------- marketing cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.work { grid-column: span 3; }
.work.wide { grid-column: span 3; }
.work.third { grid-column: span 2; }
@media (max-width: 980px) {
  .work-grid { grid-template-columns: 1fr; }
  .work, .work.wide, .work.third { grid-column: span 1; }
}
.work-visual {
  height: 190px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  margin-bottom: 24px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #0d1520, #0f1c30);
}
.work-visual img { width: 100%; height: 100%; object-fit: cover; }
.work-visual .ph {
  font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(26px, 3vw, 40px); direction: ltr;
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.work-visual .ph-sub {
  position: absolute; bottom: 14px; font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  direction: ltr;
}
.work-visual.v-play::after {
  content: ""; position: absolute; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(7,9,13,.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23eaeef6'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") center/26px no-repeat;
  border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(4px);
}
.work-link {
  margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px;
}
.work-link svg { width: 15px; height: 15px; transition: transform .2s; }
.work:hover .work-link svg { transform: translateX(3px); }
html[dir="rtl"] .work-link svg { transform: scaleX(-1); }
html[dir="rtl"] .work:hover .work-link svg { transform: scaleX(-1) translateX(3px); }

/* ---------- timeline ---------- */
.timeline { max-width: 780px; }
.t-item {
  position: relative; padding-inline-start: 44px; padding-bottom: 46px;
  border-inline-start: 1px solid var(--line);
}
.t-item:last-child { padding-bottom: 8px; }
.t-item::before {
  content: ""; position: absolute; inset-inline-start: -6.5px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.t-item.now::before { background: var(--accent); box-shadow: 0 0 14px var(--glow), 0 0 4px var(--accent); }
.t-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); letter-spacing: .1em; direction: ltr; display: inline-block; }
.t-item h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin: 8px 0 4px; }
.t-role { color: var(--muted); font-size: 15px; margin-bottom: 8px; font-weight: 500; }
.t-item p { color: var(--muted); font-size: 15px; font-weight: 300; max-width: 620px; }

/* ---------- tools ---------- */
.tools { padding: 20px 0 96px; }
.tools-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tool {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px; padding: 9px 18px;
  transition: color .2s, border-color .2s; direction: ltr;
}
.tool:hover { color: var(--text); border-color: rgba(77,163,255,.4); }

/* ---------- contact ---------- */
.contact { text-align: center; padding: 110px 0 90px; }
.contact h2 { font-size: clamp(36px, 5vw, 58px); margin-bottom: 18px; }
.contact p { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 auto 40px; font-weight: 300; }
.contact .btn-row { justify-content: center; }
.contact-mail {
  display: block; margin-top: 28px; font-family: var(--font-mono);
  font-size: 14px; color: var(--faint); direction: ltr;
}
.contact-mail:hover { color: var(--accent); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 30px 0;
  color: #6b7488; font-size: 13.5px;
}
.foot-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }
.foot-built { font-family: var(--font-mono); font-size: 12px; direction: ltr; }

/* ---------- reveal ---------- */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}
