/* Merkel Technologies — merkeltechnologies.com
   Brand taken from the main site (merkel.co.il): navy #02113D, blue #39539E,
   magenta accent #CC3366, Inter. Instrument-panel feel: cool neutrals, generous
   space, monospace for spec-like labels. No build step, no external requests —
   the whole site is three files and a system font stack. */

:root {
  --navy: #02113d;
  --navy-soft: #0b1e52;
  --blue: #39539e;
  --blue-bright: #4268c1;
  --magenta: #cc3366;
  --amber: #f89422;
  --ink: #16181d;
  --body: #454b57;
  --line: #e2e6ee;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --radius: 14px;
  --max: 1120px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-bright); }

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

/* Small monospace section label — the "instrument panel" cue. */
.label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 0.9em;
  display: block;
}

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; }
.brand b { font-size: 1.22rem; color: var(--navy); letter-spacing: -0.03em; }
.brand span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
nav { display: flex; gap: 26px; align-items: center; }
nav a { color: var(--body); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
nav a:hover { color: var(--magenta); }
@media (max-width: 720px) { nav a.hide-sm { display: none; } .bar { height: 60px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.97rem; text-decoration: none; border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 6px 18px rgba(204, 51, 102, 0.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(204, 51, 102, 0.34); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 460px at 78% -10%, rgba(66, 104, 193, 0.35), transparent 62%),
    radial-gradient(700px 380px at 8% 108%, rgba(204, 51, 102, 0.24), transparent 60%),
    linear-gradient(158deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #dfe5f2;
  padding: clamp(72px, 12vw, 132px) 0 clamp(64px, 10vw, 108px);
}
/* Faint measurement grid — reads as instrumentation, stays out of the way. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 50% 42%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 55%, transparent 100%);
}
.hero .wrap { position: relative; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lede { font-size: clamp(1.04rem, 2vw, 1.22rem); max-width: 58ch; color: #c3cde6; margin-bottom: 2em; }
.hero .label { color: #7fa5f0; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Credibility strip under the hero copy. */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 20px; margin-top: clamp(48px, 7vw, 76px); }
.fact { border-top: 2px solid rgba(255, 255, 255, 0.16); padding-top: 16px; }
.fact b { display: block; font-size: 1.85rem; color: #fff; letter-spacing: -0.03em; line-height: 1.1; }
.fact span { font-family: var(--mono); font-size: 0.73rem; letter-spacing: 0.08em; color: #93a6ce; text-transform: uppercase; }

/* ---------- sections ---------- */
section { padding: clamp(60px, 9vw, 104px) 0; }
.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.intro { max-width: 62ch; margin-bottom: 3rem; }
.intro p { font-size: 1.06rem; }

/* ---------- portfolio ---------- */
.families { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.family {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 26px; position: relative; overflow: hidden;
}
.family::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--magenta)); }
.family h3 { margin-bottom: 0.2em; }
.family > p { font-size: 0.95rem; color: var(--body); margin-bottom: 1.4em; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lines li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding-top: 14px; border-top: 1px solid var(--line); }
.lines li:first-child { border-top: 0; padding-top: 0; }
.lines .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright); margin-top: 9px; }
.lines b { color: var(--ink); font-size: 0.97rem; display: block; }
.lines small { color: var(--body); font-size: 0.9rem; line-height: 1.5; display: block; }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 30px; }
.why div h3 { display: flex; align-items: center; gap: 10px; }
.why div h3::before { content: ""; width: 22px; height: 2px; background: var(--magenta); flex: none; }
.why p { font-size: 0.95rem; margin: 0; }

/* ---------- contact ---------- */
.contact-card {
  background: linear-gradient(158deg, var(--navy), var(--navy-soft));
  color: #cfd8ec; border-radius: 20px; padding: clamp(34px, 5vw, 56px);
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center;
}
.contact-card h2 { color: #fff; }
.contact-card p { color: #b6c2de; margin-bottom: 0; }
.contact-card .label { color: #7fa5f0; }
.reach { display: grid; gap: 14px; }
.reach a, .reach span { display: flex; align-items: baseline; gap: 12px; color: #fff; text-decoration: none; font-size: 1.02rem; }
.reach small { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8ba0cc; min-width: 58px; }
.reach a:hover { color: var(--amber); }
@media (max-width: 780px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 0.88rem; color: #6b7280; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot nav { gap: 20px; }
.foot nav a { font-size: 0.88rem; color: #6b7280; }

/* ---------- simple content pages (opt-out, privacy) ---------- */
.page { padding: clamp(52px, 8vw, 88px) 0; }
.page .inner { max-width: 68ch; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page h2 { font-size: 1.2rem; margin-top: 2em; }
.page ul { padding-left: 1.1em; }
.page li { margin-bottom: 0.5em; }
.notice { border-left: 3px solid var(--magenta); background: var(--bg-alt); padding: 20px 24px; border-radius: 0 10px 10px 0; margin: 1.8em 0; }
.notice p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
