/* ============================================================
   EJB Technologies — ejbtechnologies.com
   Clean & light, Apple-like. System type, tinted product tiles.
   ============================================================ */

:root {
  --bg:        #ffffff;
  --surface:   #f5f5f7;
  --ink:       #1d1d1f;
  --muted:     #6e6e76;
  --hairline:  rgba(29, 29, 31, 0.1);

  /* Product brands */
  --spotr:        #8b5cf6;
  --spotr-wash:   #f4f0ff;
  --finlab:       #008ba3;
  --finlab-wash:  #ecf9fb;
  --scorelab:     #6f8a0e;
  --scorelab-wash:#f6fae4;

  --radius: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0b0b0d;
    --surface:   #161619;
    --ink:       #f5f5f7;
    --muted:     #98989f;
    --hairline:  rgba(245, 245, 247, 0.12);

    --spotr:        #a586ff;
    --spotr-wash:   #1b1526;
    --finlab:       #35d6ec;
    --finlab-wash:  #0d1e22;
    --scorelab:     #c8e94a;
    --scorelab-wash:#1a1e0d;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1040px; margin: 0 auto; padding: 0 24px;
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
}
.wordmark span { color: var(--muted); font-weight: 500; }
.nav a.nav-link {
  font-size: 13px; color: var(--muted);
  transition: color 0.15s ease;
}
.nav a.nav-link:hover { color: var(--ink); }

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -40px) scale(1.15); }
  66%      { transform: translate(-40px, 30px) scale(0.95); }
}

/* Load sequence — staggered rise */
.rise {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.35s; }
.d4 { animation-delay: 0.5s; }
.d5 { animation-delay: 0.7s; }

/* Scroll reveal — .reveal starts hidden, .in-view plays */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 128px 0 96px;
  text-align: center;
  overflow: hidden;
}
/* Ambient drifting glow behind the hero */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}
.hero::before {
  background: radial-gradient(circle, var(--spotr-wash) 0%, transparent 70%);
  background: radial-gradient(circle,
    color-mix(in srgb, var(--spotr) 30%, transparent) 0%, transparent 70%);
  top: -120px; left: 8%;
}
.hero::after {
  background: radial-gradient(circle,
    color-mix(in srgb, var(--finlab) 25%, transparent) 0%, transparent 70%);
  bottom: -160px; right: 6%;
  animation-delay: -9s;
}
.hero > .container { position: relative; z-index: 1; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero-sub {
  max-width: 34em; margin: 28px auto 0;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--muted); line-height: 1.55;
  text-wrap: balance;
}
.hero-icons {
  margin-top: 40px;
  display: flex; justify-content: center; gap: 20px;
}
.hero-icons img {
  width: 56px; height: 56px;
  border-radius: 14px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.3);
}
.hero-icons img:first-child {
  /* Spotr icon ships with baked-in corners + glow */
  border-radius: 0; box-shadow: none;
}

/* ---------- Product tiles ---------- */
.products { display: flex; flex-direction: column; gap: 24px; padding-bottom: 96px; }

.tile {
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px -32px rgba(0, 0, 0, 0.18);
}
.tile-spotr    { background: var(--spotr-wash); }
.tile-finlab   { background: var(--finlab-wash); }
.tile-scorelab { background: var(--scorelab-wash); }

.tile .kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 14px;
}
.tile-spotr .kicker    { color: var(--spotr); }
.tile-finlab .kicker   { color: var(--finlab); }
.tile-scorelab .kicker { color: var(--scorelab); }

.tile h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
  text-wrap: balance;
}
.tile p.desc {
  margin-top: 16px;
  font-size: 17px; color: var(--muted); line-height: 1.6;
  max-width: 30em;
}
.tile-meta {
  margin-top: 28px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 100px;
  background: var(--bg); border: 1px solid var(--hairline);
}
.badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
}
.tile-spotr .badge::before    { background: var(--spotr); }
.tile-finlab .badge::before   { background: var(--finlab); }
.tile-scorelab .badge::before { background: var(--scorelab); }

.tile a.domain {
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color 0.15s ease;
}
.tile a.domain:hover { color: var(--ink); }
.tile a.domain::after { content: " ↗"; font-size: 12px; }

/* Right column: abstract product mark */
.tile-art {
  display: flex; align-items: center; justify-content: center;
}
.mark {
  width: clamp(120px, 16vw, 180px); height: clamp(120px, 16vw, 180px);
  border-radius: 28%;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.25);
  animation: float 7s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.mark-spotr {
  /* Spotr icon ships with baked-in corners + glow */
  border-radius: 0; box-shadow: none;
  width: clamp(136px, 18vw, 204px); height: clamp(136px, 18vw, 204px);
}
.tile:nth-child(2) .mark { animation-delay: -2.3s; }
.tile:nth-child(3) .mark { animation-delay: -4.6s; }
.tile:hover .mark { animation-play-state: paused; transform: scale(1.06) rotate(0deg); }
@media (prefers-reduced-motion: reduce) {
  .mark { animation: none; }
}

/* ---------- Studio strip ---------- */
.studio {
  border-top: 1px solid var(--hairline);
  padding: 80px 0;
  text-align: center;
}
.studio p {
  max-width: 38em; margin: 0 auto;
  font-size: 17px; color: var(--muted); line-height: 1.65;
  text-wrap: balance;
}
.studio p strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 48px;
}
.footer-inner {
  max-width: 1040px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.footer-inner a { transition: color 0.15s ease; }
.footer-inner a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero { padding: 88px 0 64px; }
  .tile { grid-template-columns: 1fr; gap: 36px; }
  .tile-art { order: -1; }
  .mark { width: 104px; height: 104px; }
  .mark-spotr { width: 118px; height: 118px; }
}
