/* Web Empire, main stylesheet */

:root {
  --bg: #0a0a0a;
  --surface: #151515;
  --line: #2a2a2a;
  --text: #ffffff;
  --muted: #a3a3a3;
  --lime: #b8f33d;
  --lime-dark: #9fd626;
  --ink: #0a0a0a;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 92px;
  --bar-h: 44px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: hidden; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}

.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:visited { color: var(--ink); }

.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }

@media (hover: hover) and (pointer: fine) {
  .btn-lime:hover { background: #ffffff; color: var(--ink); }
}

.text-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { color: var(--lime); }
}

/* Pay-after-completion bar */

.pay-bar { background: var(--lime); color: var(--ink); }
.pay-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 20px;
  min-height: var(--bar-h);
  padding-block: 8px;
  font-size: 15px;
  text-align: center;
}
.pay-bar p { margin: 0; }
.bar-short { display: none; }
.pay-bar strong { font-weight: 800; font-variation-settings: "wdth" 112; text-transform: uppercase; letter-spacing: .02em; }
.pay-bar a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; white-space: nowrap; }
.pay-bar a:visited { color: var(--ink); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--header-h);
}

.brand { flex: 0 0 auto; display: block; }
.brand img { height: 44px; width: auto; }

.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; gap: 34px; }
.primary-nav li { position: relative; }

.primary-nav a {
  display: block;
  padding: 10px 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.primary-nav a[aria-current="page"] { color: var(--lime); }

.primary-nav .has-sub > a { padding-right: 16px; }
.primary-nav .has-sub > a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.primary-nav .sub {
  position: absolute;
  left: -20px;
  top: 100%;
  min-width: 240px;
  padding: 10px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--lime);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
/* hover bridge so the menu does not close while moving the pointer down */
.primary-nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.primary-nav .sub a { padding: 9px 20px; font-size: 15px; }
.primary-nav .sub-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 420px; }
.primary-nav .sub-cols li:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.primary-nav .sub-cols li:first-child a { color: var(--lime); font-weight: 600; }

/* Services: three headed columns */
.primary-nav .sub-mega { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 720px; left: 50%; margin-left: -360px; padding: 18px 0 0; }
.primary-nav .sub-group { min-width: 0; }
.primary-nav .sub-head { margin: 0; padding: 0 20px 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav .sub-mega a.sub-all { grid-column: 1 / -1; margin-top: 10px; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--lime); font-weight: 600; }

.primary-nav .has-sub:hover .sub,
.primary-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .primary-nav a:hover { color: var(--lime); }
}

.menu-toggle { display: none; }

/* Narrow desktops: keep logo, menu and button on one line inside the screen */
@media (min-width: 1081px) and (max-width: 1280px) {
  .header-inner { gap: 24px; }
  .primary-nav > ul { gap: 20px; }
  .primary-nav a { font-size: 14.5px; }
  .brand img { height: 38px; }
  .header-cta { padding: 0 16px; }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--bar-h) - var(--header-h) - 86px);
  padding: 72px 0 80px;
}

.hero-mark {
  position: absolute;
  right: -7vw;
  bottom: -4vw;
  width: min(58vw, 900px);
  opacity: .09;
  pointer-events: none;
  user-select: none;
}

.hero-inner { position: relative; }

.nowrap { white-space: nowrap; }

.hero-title {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 76px);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.hero-title .line { display: block; }

.outline {
  font-style: normal;
  color: var(--lime);
}
@supports (-webkit-text-stroke: 2px #000) {
  .outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--lime);
  }
}

.hero-text {
  max-width: 44em;
  margin: 30px 0 0;
  color: #d4d4d4;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 36px;
}

/* Platform strip */

.platform-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.platform-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 86px;
}

.platform-label {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px 28px;
}
.platform-list li {
  font-size: 19px;
  font-weight: 700;
  font-variation-settings: "wdth" 115;
  color: #e5e5e5;
}

/* Tablet and mobile */

@media (max-width: 1080px) {
  :root { --header-h: 76px; }

  .brand img { height: 38px; }
  .primary-nav, .header-cta { display: none; }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 48px;
    height: 48px;
    margin-left: auto;
    margin-right: -10px;
    padding: 0 11px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    transition: transform .2s ease;
  }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  /* The open menu starts below the header, so the lime bar steps aside and the logo and close button stay visible */
  .menu-open .pay-bar { display: none; }

  .mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    overflow-y: auto;
    padding: 28px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .mobile-menu[hidden] { display: none; }

  .mobile-menu li { border-bottom: 1px solid var(--line); }
  .mobile-menu nav a {
    display: block;
    padding: 15px 0;
    color: var(--text);
    font-size: 21px;
    font-weight: 700;
    font-variation-settings: "wdth" 112;
    text-decoration: none;
  }
  .mobile-menu nav a:visited { color: var(--text); }
  .mobile-menu nav a[aria-current="page"] { color: var(--lime); }

  .mobile-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 32px;
  }
  .mobile-actions .btn { width: 100%; min-height: 54px; font-size: 16px; }
  .mobile-email { color: var(--text); font-size: 16px; }
  .mobile-email:visited { color: var(--text); }

  body.menu-open { overflow: hidden; }

  .platform-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 24px; }
  .platform-list { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .pay-bar-inner { gap: 12px; font-size: 14px; line-height: 1.3; }
  .bar-long { display: none; }
  .bar-short { display: inline; }
  body { font-size: 16px; }

  .brand img { height: 30px; }

  .hero {
    min-height: 0;
    padding: 56px 0 64px;
  }
  .hero-title { font-size: clamp(27px, 8.4vw, 40px); line-height: 1.05; }
  .outline { -webkit-text-stroke-width: 1.5px; }
  .hero-text { margin-top: 22px; font-size: 17px; }
  .hero-actions { margin-top: 28px; flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-actions .text-link { align-self: flex-start; }
  .hero-mark { width: 120vw; right: -38vw; bottom: -10vw; opacity: .08; }

  .platform-list { gap: 8px 22px; }
  .platform-list li { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Platform names marquee (hero strip) */
.marquee {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: we-marquee 32s linear infinite;
}
.marquee .platform-list {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
}
.marquee .platform-list li {
  position: relative;
  padding: 0 34px;
  white-space: nowrap;
}
.marquee .platform-list li::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--lime);
}
@keyframes we-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@media (max-width: 1080px) {
  .marquee { width: 100%; }
  .marquee-track { animation-duration: 24s; }
}
@media (max-width: 640px) {
  .marquee .platform-list li { padding: 0 24px; }
}
