/* ============================================================================
   RetailRadar — shared design system for the static retailradar.hu site.

   Structure and typographic treatment follow precisionsteel.org (the reference
   the design was briefed against): a thin utility bar over a sticky header, a
   full-bleed hero with an eyebrow → oversized uppercase headline → paired pill
   CTAs, a chevron capability strip, then alternating content sections.

   The palette is deliberately NOT theirs. precisionsteel is a light site with a
   crimson accent; RetailRadar keeps its dark navy base and cyan/green radar
   accents, because the radar hero is the brand and a light treatment would
   erase it. Likewise the headline font stays Space Grotesk — the industrial
   feel here comes from the *treatment* (800 weight, uppercase, wide tracking),
   not from adopting their Chakra Petch.
   ============================================================================ */

:root {
  --bg-main: #060913;
  --bg-elevated: #0b1120;
  --surface: rgba(15, 23, 42, 0.6);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  --accent-blue: #38bdf8;
  --accent-green: #10b981;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --container: 1200px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* --- typographic treatment ------------------------------------------------ */

/* The single strongest borrowed cue: heavy, uppercase, widely tracked display
   type. Tracking is set per-size because wide tracking that reads as precise at
   56px reads as broken at 15px. */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.display--xl { font-size: clamp(32px, 6vw, 62px); letter-spacing: 0.045em; }
.display--lg { font-size: clamp(26px, 4vw, 40px); letter-spacing: 0.04em; }
.display--md { font-size: clamp(19px, 2.4vw, 25px); letter-spacing: 0.03em; }

/* Small uppercase label above a headline — precisionsteel uses this on every
   section, and it does most of the work of making a page feel structured. */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent-blue);
  margin-bottom: 18px;
}

.lede { font-size: clamp(15px, 1.6vw, 17px); color: var(--text-muted); max-width: 62ch; }

/* --- geometric markers ------------------------------------------------------ */

/* Replaces the emoji that used to sit above each capability and beside each
   pillar kicker. Emoji render differently on every platform and read as casual;
   the site's own language is angular — the chevron notch on the capability
   strip, the radar sweep — so the marker is a triangle cut from borders.
   `currentColor` is deliberate: dropped inside .pillar__kicker it picks up cyan
   for FMCG and green for Építőanyag with no extra rule. */
.tri {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid currentColor;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.tri--lg {
  border-left-width: 8px;
  border-right-width: 8px;
  border-bottom-width: 13px;
}

/* Pointing right — used where the marker leads into a value rather than
   labelling one (result rows, inline notes). */
.tri--right {
  border-left: 6px solid currentColor;
  border-right: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* --- buttons --------------------------------------------------------------- */

/* 40px radius pills in a filled + outlined pair, straight from the reference. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 30px;
  border-radius: 40px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-blue);
  color: #04121d;
  box-shadow: 0 6px 26px rgba(56, 189, 248, 0.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(56, 189, 248, 0.42); }

.btn--ghost {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--accent-blue); color: var(--accent-blue); transform: translateY(-2px); }

.btn--sm { padding: 9px 20px; font-size: 12px; }

/* --- header --------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(6, 9, 19, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 24px; height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 800; letter-spacing: 0.01em; color: #fff;
}
.brand__name em { font-style: normal; color: var(--accent-blue); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); text-decoration: none;
  padding: 9px 14px; border-radius: 8px;
  transition: color 0.16s ease, background 0.16s ease;
}
.site-nav a:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.045); }
.site-nav a.is-active { color: var(--accent-blue); }

/* --- sections -------------------------------------------------------------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(40px, 5vw, 60px) 0; }
.section-head { margin-bottom: 40px; }

/* --- capability strip ------------------------------------------------------ */

/* The reference runs a six-item service strip directly under the hero with a
   chevron over each label; that chevron is what keeps it from reading as a
   plain grid, so it is reproduced here in CSS rather than as an image. */
.cap-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.04), transparent);
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.cap-item {
  position: relative;
  padding: 30px 16px 26px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.cap-item:last-child { border-right: none; }
.cap-item::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  width: 26px; height: 26px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--bg-main);
  border-right: 1px solid var(--accent-blue);
  border-bottom: 1px solid var(--accent-blue);
  opacity: 0.55;
}
.cap-item__icon { display: block; margin-bottom: 12px; color: var(--accent-blue); line-height: 0; }
.cap-item__label {
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.13em; color: var(--text-muted); line-height: 1.45;
}

/* --- pillar cards ---------------------------------------------------------- */

.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.pillar::after {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), transparent);
}
.pillar--builder::after { background: linear-gradient(90deg, var(--accent-green), transparent); }

.pillar__kicker {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent-blue); margin-bottom: 12px;
}
.pillar--builder .pillar__kicker { color: var(--accent-green); }
.pillar__title { margin-bottom: 12px; }
.pillar__body { color: var(--text-muted); font-size: 15px; margin-bottom: 22px; }

.pillar__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.pstat {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.pstat__value { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: #fff; }
.pstat__label { font-size: 11.5px; color: var(--text-dim); letter-spacing: 0.03em; }

.pillar__list { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.pillar__list li {
  font-size: 12.5px; color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
}

.badge-soon {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 12px;
}

/* --- footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: #04070f;
  padding: 36px 0;
  color: var(--text-dim);
  font-size: 13px;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-blue); }

/* --- responsive ------------------------------------------------------------ */

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .site-nav a { padding: 8px 8px; font-size: 11px; letter-spacing: 0.05em; }
  .brand__name { font-size: 17px; }
  .pillar { padding: 24px; }
  .cap-item { padding: 24px 10px 20px; }
}

/* Below ~560px the brand wordmark plus three nav items overflow the viewport —
   measured at 375px, the header ran 64px wider than the body and produced a
   horizontal scroll on every page. The radar mark still links home, so the
   wordmark is what gives way rather than any navigation. */
@media (max-width: 560px) {
  /* Decorative on a phone, and 35px of vertical space the map needs more. */
  .brand__name { display: none; }
  .site-header .container { gap: 12px; }
  .site-nav { gap: 0; }
  /* Four items with a two-word one (Falazóelem árak) no longer fit on one line; the
     long item wraps, centred, rather than pushing the header sideways. */
  .site-nav a { padding: 8px 7px; font-size: 10.5px; letter-spacing: 0.03em; text-align: center; line-height: 1.25; }
}
