/* ============================================================
   EFN GROUP LLC — precision light system
   Geist, tight tracking, hairline borders, layered soft shadows,
   glass nav, bento product cards, four-color ambient glow.
   ============================================================ */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #0a0a0c;
  --ink-2: #4b4b52;
  --ink-3: #6e6e76;
  --hairline: rgba(10, 10, 12, 0.08);
  --hairline-soft: rgba(10, 10, 12, 0.05);

  --pingr: #e5484d;
  --stepsy: #30c39b;
  --dosely: #a6d331;
  --umaps: #f5a524;

  --sans: "Geist", -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --shadow-card:
    0 1px 2px rgba(10, 10, 12, 0.04),
    0 8px 24px rgba(10, 10, 12, 0.05);
  --shadow-card-hover:
    0 2px 4px rgba(10, 10, 12, 0.05),
    0 18px 44px rgba(10, 10, 12, 0.10);

  --pad: clamp(20px, 4.5vw, 48px);
  --container: 1180px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* clear the fixed nav on anchor jumps */
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(48, 195, 155, 0.25); }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus-visible { top: 12px; }

/* ---------- reveals ---------- */

.reveal-load {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 90ms);
}

@keyframes rise { to { opacity: 1; transform: none; } }

/* hidden state gated behind .js so content is visible without JavaScript */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-in { opacity: 1; transform: none; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease, background 0.25s ease,
              border-color 0.25s ease, color 0.25s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 10, 12, 0.2);
}

.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 10, 12, 0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
  background: var(--surface);
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: rgba(10, 10, 12, 0.22);
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  color: #0a0a0c;
}

.btn-light:hover, .btn-light:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.btn-small { font-size: 13.5px; padding: 9px 18px; }

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover, .btn-dark:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(10, 10, 12, 0.2);
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.75);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.8) blur(18px);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  border-bottom: 1px solid var(--hairline-soft);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mark { flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }

.nav-cta {
  color: #fff !important;
  background: var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.nav-cta:hover, .nav-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(10, 10, 12, 0.2);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(150px, 22vh, 220px) var(--pad) 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  filter: blur(90px);
  opacity: 0.5;
}

.hero-glow .g {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.g1 { width: 44vw; height: 44vw; left: -8vw;  top: -6vw;  background: radial-gradient(circle, rgba(229, 72, 77, 0.35), transparent 65%); animation: drift1 24s ease-in-out infinite alternate; }
.g2 { width: 40vw; height: 40vw; right: -6vw; top: -10vw; background: radial-gradient(circle, rgba(48, 195, 155, 0.35), transparent 65%); animation: drift2 28s ease-in-out infinite alternate; }
.g3 { width: 36vw; height: 36vw; left: 24vw;  top: 10vw;  background: radial-gradient(circle, rgba(200, 238, 68, 0.28), transparent 65%); animation: drift3 26s ease-in-out infinite alternate; }
.g4 { width: 38vw; height: 38vw; right: 10vw; top: 6vw;   background: radial-gradient(circle, rgba(245, 165, 36, 0.32), transparent 65%); animation: drift4 30s ease-in-out infinite alternate; }

@keyframes drift1 { to { transform: translate(6vw, 4vw)  scale(1.1); } }
@keyframes drift2 { to { transform: translate(-5vw, 5vw) scale(1.08); } }
@keyframes drift3 { to { transform: translate(-4vw, -3vw) scale(0.94); } }
@keyframes drift4 { to { transform: translate(4vw, -4vw) scale(1.12); } }

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 1px 2px rgba(10, 10, 12, 0.04);
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stepsy);
  box-shadow: 0 0 0 3px rgba(48, 195, 155, 0.18);
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(44px, 7.6vw, 96px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 56ch;
  margin: 22px auto 0;
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stats {
  max-width: var(--container);
  margin: clamp(64px, 10vh, 104px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline-soft);
}

.hero-stats > div {
  padding: 26px 12px;
  text-align: center;
  border-right: 1px solid var(--hairline-soft);
}

.hero-stats > div:last-child { border-right: none; }

.hero-stats b {
  display: block;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.hero-stats span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ---------- section heads ---------- */

.section-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(84px, 13vh, 140px) var(--pad) clamp(32px, 5vh, 52px);
}

.section-head h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.section-head p {
  margin-top: 12px;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--ink-2);
  max-width: 52ch;
}

.section-head--center {
  text-align: center;
}

.section-head--center p {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- product listings (App Store style rows) ---------- */

.listings {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.6vw, 28px);
}

.listing {
  display: grid;
  grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 52px);
  align-items: center;
  background:
    linear-gradient(135deg, var(--wash, transparent), transparent 55%),
    var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.listing:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(10, 10, 12, 0.13);
}

.listing-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.listing-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow:
    0 1px 2px rgba(10, 10, 12, 0.12),
    0 6px 16px rgba(10, 10, 12, 0.10);
}

.app-icon--light { border: 1px solid var(--hairline-soft); }

.pill {
  width: fit-content;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
  margin-top: 16px;
}

.pill-live {
  color: #0b5c40;
  background: rgba(48, 195, 155, 0.14);
  border: 1px solid rgba(48, 195, 155, 0.28);
}

.pill-soon {
  color: var(--ink-2);
  background: rgba(10, 10, 12, 0.045);
  border: 1px solid var(--hairline);
}

.card-name {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 640;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.card-tag {
  margin-top: 3px;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent, var(--ink-2));
}

.card-desc {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 44ch;
  text-wrap: pretty;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* the screenshot rail — horizontal scroll, like an App Store listing */
.listing-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 10, 12, 0.18) transparent;
}

.listing-rail::-webkit-scrollbar { height: 8px; }
.listing-rail::-webkit-scrollbar-track { background: transparent; }
.listing-rail::-webkit-scrollbar-thumb {
  background: rgba(10, 10, 12, 0.16);
  border-radius: 999px;
}
.listing-rail::-webkit-scrollbar-thumb:hover { background: rgba(10, 10, 12, 0.3); }

.listing-rail img {
  display: block;
  flex: none;
  height: clamp(300px, 26vw, 400px);
  width: auto;
  border-radius: 18px;
  border: 1px solid var(--hairline-soft);
  box-shadow: 0 1px 2px rgba(10, 10, 12, 0.05), 0 8px 22px rgba(10, 10, 12, 0.07);
  scroll-snap-align: start;
}

/* uMaps: the art plate stands in for screenshots */
.card-art {
  position: relative;
  flex: none;
  margin: 0;
  height: clamp(300px, 26vw, 400px);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #0e0d0b;
  scroll-snap-align: start;
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.art-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 12, 0.18);
}

.art-overlay span {
  color: #fff;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- studio / ethos ---------- */

.ethos-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 28px);
}

.ethos {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-card);
}

.ethos-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(10, 10, 12, 0.045);
  border: 1px solid var(--hairline-soft);
}

.ethos h3 {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.ethos p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- CTA ---------- */

.cta-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(84px, 13vh, 140px) var(--pad);
}

.cta {
  position: relative;
  overflow: hidden;
  background: #0a0a0c;
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(56px, 9vh, 96px) var(--pad);
  text-align: center;
}

.cta-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(560px 320px at 18% 115%, rgba(229, 72, 77, 0.28), transparent 70%),
    radial-gradient(560px 320px at 82% -15%, rgba(245, 165, 36, 0.25), transparent 70%),
    radial-gradient(480px 300px at 60% 120%, rgba(48, 195, 155, 0.2), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.cta h2 {
  position: relative;
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.cta p {
  position: relative;
  margin-top: 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
}

.cta .btn { position: relative; margin-top: 28px; }

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

.footer {
  border-top: 1px solid var(--hairline-soft);
  background: var(--surface);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: clamp(40px, 7vh, 64px) 0;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-3);
  max-width: 34ch;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-h {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14.5px;
  width: fit-content;
  transition: color 0.2s ease;
}

.footer-col a:hover, .footer-col a:focus-visible { color: var(--ink); }

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- focus ---------- */

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

@media (max-width: 960px) {
  .listing { grid-template-columns: 1fr; gap: 24px; }
  .listing-rail img, .card-art { height: clamp(280px, 62vw, 360px); }
  .ethos-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div:nth-child(2) { border-right: none; }
  .hero-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--hairline-soft); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding-top: 120px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-load, .reveal, .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hero-glow .g { animation: none !important; }
  .listing-rail { scroll-behavior: auto; }
  .btn, .nav-cta, .listing, .footer-col a, .nav-links a {
    transition: none !important;
  }
}
