/* ==========================================================
   RENEX Data Solutions Ltd — site styles
   Palette: "Signal & Petrol"
   ========================================================== */
:root {
  --ink: #0A1E26;        /* deep petrol-black: text, dark sections */
  --ink-2: #12333D;      /* raised dark surface */
  --petrol: #1D5E5B;     /* brand secondary */
  --lime: #CBF24A;       /* signal accent */
  --lime-soft: #E9FAB4;
  --mint: #9FE3C9;
  --paper: #F2F4EE;      /* cool off-white page */
  --card: #FFFFFF;
  --line: #DCE2D6;
  --line-dark: rgba(255,255,255,.12);
  --text: #0A1E26;
  --muted: #56686B;
  --muted-dark: #9DB3B4;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", Consolas, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(10,30,38,.04), 0 12px 32px -12px rgba(10,30,38,.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--petrol);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--lime); border-radius: 2px; box-shadow: 0 0 0 3px rgba(203,242,74,.25); }
.dark .eyebrow, .contact-panel .eyebrow { color: var(--lime); }

.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(34px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 18px; max-width: 620px; }
.dark .section-head p { color: var(--muted-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: 600 15px/1 var(--f-body);
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--petrol); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #d9fb68; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,244,238,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { display: grid; line-height: 1; }
.logo-text b { font: 800 25px/1 var(--f-display); letter-spacing: -0.02em; }
.logo-text small { font: 500 9.5px/1 var(--f-mono); letter-spacing: .22em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }
.dark .logo-text small, .site-footer .logo-text small { color: var(--muted-dark); }
.logo .face-ink { fill: currentColor; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 14px; border-radius: 999px;
  font-weight: 500; font-size: 15px; color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: rgba(10,30,38,.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 11px 18px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px;
  background: transparent; cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(10,30,38,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,30,38,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .32em; z-index: -1;
  background: var(--lime); border-radius: 4px; transform: skewX(-8deg);
}
.hero-lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font: 500 13px/1 var(--f-body); color: var(--ink);
}
.tag svg { width: 15px; height: 15px; color: var(--petrol); }

.hero-visual { position: relative; aspect-ratio: 1 / 1.02; }
.hero-visual .hero-photo {
  position: absolute; inset: 0 0 12% 14%; border-radius: 28px; overflow: hidden;
}
.chart-card {
  position: absolute; left: 0; bottom: 0; width: 78%;
  background: rgba(10,30,38,.94); color: #fff; border-radius: 22px;
  padding: 20px 20px 14px; box-shadow: 0 30px 60px -20px rgba(10,30,38,.5);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(8px);
}
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.chart-head span { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.chart-head .live { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); }
.chart-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; }
.chart-legend { display: flex; gap: 14px; margin-top: 8px; font: 500 11px/1 var(--f-mono); color: var(--muted-dark); flex-wrap: wrap; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.chart-svg .hist { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.8s .2s ease forwards; }
.chart-svg .fan { opacity: 0; animation: fade 1s 1.6s ease forwards; }
.float-chip {
  position: absolute; right: -4px; top: 9%;
  background: var(--card); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow);
  display: grid; gap: 8px; min-width: 150px; border: 1px solid var(--line);
}
.float-chip span { font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.float-chip .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.float-chip .chips b { font: 600 11.5px/1 var(--f-mono); padding: 5px 7px; border-radius: 6px; background: var(--paper); }
.float-chip .chips b:first-child { background: var(--lime); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(203,242,74,.6); } 50% { box-shadow: 0 0 0 6px rgba(203,242,74,0); } }

/* ---------- Duotone images ---------- */
.duo { position: relative; background: var(--mint); isolation: isolate; overflow: hidden; }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(1.05); mix-blend-mode: multiply; transition: filter .6s ease, transform .8s ease; }
.duo::after { content: ""; position: absolute; inset: 0; background: var(--ink); mix-blend-mode: lighten; pointer-events: none; transition: opacity .6s ease; }
.duo.lime { background: var(--lime); }
.duo:hover img { filter: grayscale(0) contrast(1) brightness(1); mix-blend-mode: normal; transform: scale(1.03); }
.duo:hover::after { opacity: 0; }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: #fff; overflow: hidden; border-block: 1px solid var(--line-dark); }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 18px; padding: 20px 28px; font: 600 clamp(16px, 2vw, 20px)/1 var(--f-display); letter-spacing: -0.01em; white-space: nowrap; }
.ticker-item svg { width: 16px; height: 16px; color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.about-photo { border-radius: var(--radius); min-height: 420px; }
.about-cards { display: grid; gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow);
}
.card h3 { font-size: 24px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.card p { color: var(--muted); }
.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--lime-soft); color: var(--petrol);
}
.icon-badge svg { width: 22px; height: 22px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.pillar {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius);
  border: 1px dashed #c4ccbf; background: rgba(255,255,255,.4);
}
.pillar b { display: block; font: 700 18px/1.25 var(--f-display); margin-bottom: 4px; }
.pillar span { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- Values (dark) ---------- */
.dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.dark::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -240px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,94,91,.55), transparent 65%); pointer-events: none;
}
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.value {
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 34px); display: grid; gap: 16px; align-content: start;
  transition: transform .3s ease, border-color .3s ease;
}
.value:hover { transform: translateY(-4px); border-color: rgba(203,242,74,.45); }
.value-top { display: flex; justify-content: space-between; align-items: center; }
.value-num { font: 500 13px/1 var(--f-mono); color: var(--muted-dark); }
.value .icon-badge { background: rgba(203,242,74,.12); color: var(--lime); width: 52px; height: 52px; border-radius: 14px; }
.value .icon-badge svg { width: 26px; height: 26px; }
.value h3 { font-size: 30px; }
.value p { color: var(--muted-dark); font-size: 16px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { padding: 0 24px 0 0; position: relative; }
.step-dot {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--petrol); box-shadow: var(--shadow);
  position: relative; z-index: 1; margin-bottom: 22px;
}
.step-dot svg { width: 26px; height: 26px; }
.step::before {
  content: ""; position: absolute; top: 28px; left: 56px; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, #b9c3b3 0 6px, transparent 6px 12px);
}
.step:last-child::before { display: none; }
.step small { font: 500 11.5px/1 var(--f-mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.step h3 { font-size: 22px; margin: 8px 0 8px; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* ---------- Services ---------- */
.services-section { background: #E8ECE3; }
.services { display: grid; gap: 22px; }
.service {
  display: grid; grid-template-columns: 1fr 1.1fr; background: var(--card); border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.service:nth-child(even) { grid-template-columns: 1.1fr 1fr; }
.service:nth-child(even) .service-media { order: 2; }
.service-media { min-height: 360px; }
.service-body { padding: clamp(28px, 4vw, 52px); display: grid; gap: 18px; align-content: center; }
.service-meta { display: flex; align-items: center; gap: 14px; }
.service-meta .icon-badge { width: 48px; height: 48px; }
.service-meta small { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.service h3 { font-size: clamp(28px, 3.4vw, 38px); }
.service p { color: var(--muted); }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.feature-list li {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  background: var(--paper); font-size: 13.5px; font-weight: 500; color: var(--ink);
}
.feature-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--petrol); }

/* ---------- Contact ---------- */
.contact { padding: clamp(72px, 10vw, 128px) 0; }
.contact-panel {
  background: var(--ink); color: #fff; border-radius: 32px; overflow: hidden; position: relative;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px);
  padding: clamp(32px, 6vw, 72px);
}
.contact-panel::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px;
  background: url("renex-mark.svg") center / contain no-repeat; opacity: .07; pointer-events: none;
}
.contact-panel h2 { font-size: clamp(44px, 7vw, 80px); font-weight: 800; letter-spacing: -0.035em; }
.contact-panel h2 em { font-style: normal; color: var(--lime); }
.contact-copy { display: grid; gap: 22px; align-content: start; position: relative; z-index: 1; }
.contact-copy p { color: var(--muted-dark); font-size: 18px; max-width: 440px; }
.contact-list { display: grid; gap: 12px; align-content: center; position: relative; z-index: 1; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-dark); transition: border-color .2s ease;
}
a.contact-item:hover { border-color: rgba(203,242,74,.5); }
.contact-item .icon-badge { background: rgba(203,242,74,.12); color: var(--lime); }
.contact-item small { display: block; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--muted-dark); text-transform: uppercase; margin-bottom: 8px; }
.contact-item b { font-weight: 600; font-size: 17px; line-height: 1.45; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); font-size: 15px; }
.footer-links a:hover { color: var(--ink); }
.copyright { color: var(--muted); font-size: 14px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .values-grid, .pillars { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .step:nth-child(2)::before { display: none; }
  .service, .service:nth-child(even) { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-media { order: 0; }
  .service-media { min-height: 260px; }
  .about-photo { min-height: 320px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 17px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .process { grid-template-columns: 1fr; }
  .step::before { display: none; }
  .chart-card { width: 92%; padding: 16px 14px 12px; }
  .hero-visual .hero-photo { inset: 0 0 18% 8%; }
  .float-chip { top: 4%; right: 0; min-width: 0; }
  .hero h1 .hl { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chart-svg .hist { stroke-dashoffset: 0; }
  .chart-svg .fan { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
