/* Legion Trade Corp. legiontradecorp.com
   Palette, type and layout for the growth company site.
   Contrast checked: body 16.9:1, muted 7.6:1, signal 11.6:1, placeholder 5.2:1. */

:root {
  --bg:        #070B0C;
  --surface:   #0E1517;
  --raised:    #131D1E;
  --line:      #1E2C2B;
  --line-lit:  #3A5350;
  --text:      #E8EFEC;
  --muted:     #93A5A0;
  --dim:       #7E918C;
  --signal:    #34E0A1;
  --signal-dp: #17A874;
  --on-signal: #04100B;

  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --wrap: 1140px;
  --pad: clamp(20px, 5vw, 44px);
  --sec-y: clamp(64px, 10vw, 128px);

  --r: 3px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --z-globe: 0;
  --z-scrim: 1;
  --z-body: 2;
  --z-header: 20;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.028em; }
p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

::selection { background: var(--signal); color: var(--on-signal); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--signal); color: var(--on-signal);
  padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* brand mark */

.mark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.mark__glyph { width: 26px; height: 26px; color: var(--signal); flex: none; }
.mark__word {
  font-weight: 800; font-size: 19px; letter-spacing: -0.03em; line-height: 1;
}
.mark__dot { color: var(--signal); }

/* header */

.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.hdr.is-stuck {
  background: rgba(7, 11, 12, .94);
  border-bottom-color: var(--line);
}
.hdr__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); min-height: 68px;
}
.hdr__nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.hdr__link, .hdr__tel {
  font-size: 15px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color .2s var(--ease);
}
.hdr__link:hover, .hdr__tel:hover { color: var(--text); }
.hdr__tel { font-variant-numeric: tabular-nums; }

@media (max-width: 860px) { .hdr__link { display: none; } }
@media (max-width: 560px) { .hdr__tel { display: none; } }

/* buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--signal); color: var(--on-signal);
  font: 600 16px/1 var(--font); letter-spacing: -0.01em;
  padding: 16px 26px; border: 1px solid var(--signal); border-radius: var(--r);
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: #4DEBB0; border-color: #4DEBB0; }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--ghost {
  background: transparent; color: var(--text); border-color: var(--line-lit);
}
.btn--ghost:hover { background: rgba(52, 224, 161, .08); border-color: var(--signal); }
.btn--full { width: 100%; margin-top: var(--s5); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* hero */

.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: 100svh;
  padding: 108px 0 var(--s9);
  overflow: hidden;
  isolation: isolate;
}
.hero__globe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: var(--z-globe);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: var(--z-scrim); pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 1%, rgba(7,11,12,0) 30%),
    linear-gradient(to right, var(--bg) 4%, rgba(7,11,12,.93) 30%, rgba(7,11,12,.58) 48%, rgba(7,11,12,0) 70%);
}
.hero__in { position: relative; z-index: var(--z-body); min-width: 0; }

.hero__corp {
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--signal); margin-bottom: var(--s5);
}
.hero__h1 {
  font-weight: 800; font-size: clamp(2.3rem, 5.8vw, 4.3rem); line-height: 1.03;
  letter-spacing: -0.035em; max-width: 640px;
}
.hero__sub {
  margin-top: var(--s5); font-size: clamp(16.5px, 2vw, 19px);
  color: var(--muted); max-width: 33em; line-height: 1.7;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero__meta { margin-top: var(--s5); font-size: 14px; color: var(--dim); max-width: 46em; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; z-index: var(--z-body);
  transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--line-lit); border-radius: 14px;
  display: grid; place-items: start center; padding-top: 8px;
}
.hero__scroll span {
  width: 3px; height: 7px; border-radius: 2px; background: var(--signal);
  animation: scrolldot 1.9s var(--ease) infinite;
}
@keyframes scrolldot {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

@media (max-width: 900px) {
  .hero { padding-top: 92px; }
  .hero__in { padding-top: 40vh; }
  .hero__scrim {
    background:
      linear-gradient(to top, var(--bg) 2%, rgba(7,11,12,.86) 30%, rgba(7,11,12,0) 62%);
  }
}
@media (max-width: 560px) {
  .hero__in { padding-top: 34vh; }
  .hero__scroll { display: none; }
}

/* sections */

.sec { padding: var(--sec-y) 0; border-top: 1px solid var(--line); }
.sec__h2 {
  font-weight: 800; font-size: clamp(1.85rem, 3.9vw, 2.75rem); line-height: 1.1;
  max-width: 20ch;
}
.sec__lead {
  margin-top: var(--s5); font-size: clamp(16px, 1.9vw, 18px);
  color: var(--muted); max-width: 62ch;
}

/* what we do */

.lanes {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
}
/* two by two, never three with an empty fourth cell */
@media (min-width: 760px) { .lanes { grid-template-columns: 1fr 1fr; } }
.lane {
  background: var(--bg);
  padding: clamp(26px, 3.4vw, 40px);
  transition: background .3s var(--ease);
}
.lane:hover { background: var(--surface); }
.lane h3 {
  font-size: 20px; font-weight: 600; letter-spacing: -0.02em;
  padding-left: 20px; position: relative;
}
.lane h3::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 8px; height: 8px; background: var(--signal);
}
.lane p { margin-top: var(--s3); color: var(--muted); font-size: 16px; padding-left: 20px; }

/* how it works */

.steps { margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; list-style: none; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 40px);
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: none; padding-top: 0; }
.step__n {
  font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: .84;
  color: transparent; -webkit-text-stroke: 1.4px var(--signal-dp);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 600; }
.step p { margin-top: var(--s3); color: var(--muted); max-width: 62ch; }

/* straight talk */

.sec--straight { background: var(--surface); }
.straight p { margin-top: var(--s5); font-size: clamp(17px, 2.1vw, 20px); max-width: 60ch; color: var(--text); }
.straight p + p { color: var(--muted); }

/* contact */

.contact {
  display: grid; gap: clamp(44px, 6vw, 80px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.details { margin: clamp(32px, 4vw, 48px) 0 0; }
.details__row {
  display: grid; grid-template-columns: 92px 1fr; gap: var(--s4);
  padding: var(--s4) 0; border-top: 1px solid var(--line);
}
.details__row:first-child { border-top: none; }
.details dt {
  font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--dim); padding-top: 4px;
}
.details dd { margin: 0; font-size: 16.5px; }
.details a { color: var(--signal); text-decoration: none; }
.details a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact__forms { display: grid; gap: var(--s5); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 3.2vw, 34px);
}
.card--quick { border-color: var(--line-lit); }
.card__h { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.card__p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.grid2 {
  display: grid; gap: var(--s4); margin-top: var(--s5);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.field { margin-top: var(--s5); }
.grid2 .field { margin-top: 0; }
.field label {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--dim); }

.field input, .field textarea {
  width: 100%; display: block;
  background: var(--raised); color: var(--text);
  border: 1px solid var(--line-lit); border-radius: var(--r);
  font: 400 16px/1.5 var(--font);
  padding: 14px 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 108px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field textarea:hover { border-color: #4C6866; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--signal); background: #16211F;
  box-shadow: 0 0 0 3px rgba(52, 224, 161, .16);
}
.field.is-bad input, .field.is-bad textarea { border-color: #E4674F; }
.field .err { display: block; margin-top: 6px; font-size: 13px; color: #FF9782; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.formnote { margin-top: var(--s4); font-size: 15px; }
.formnote.is-ok { color: var(--signal); }
.formnote.is-err { color: #FF9782; }

.card.is-sent .field, .card.is-sent .grid2, .card.is-sent .btn, .card.is-sent .card__p { display: none; }
.card.is-sent .formnote { margin-top: var(--s4); font-size: 17px; }

/* footer */

.foot { border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); }
.foot__in { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.foot__brand p { margin-top: var(--s3); font-size: 13.5px; color: var(--dim); letter-spacing: .02em; }
.foot__cols p { font-size: 14.5px; color: var(--muted); }
.foot__cols p + p { margin-top: var(--s2); }
.foot__cols a { color: var(--muted); text-decoration: none; }
.foot__cols a:hover { color: var(--signal); }
.foot__fine { color: var(--dim) !important; font-size: 13.5px !important; }
.foot__cr {
  grid-column: 1 / -1; padding-top: var(--s5); border-top: 1px solid var(--line);
  font-size: 13px; color: var(--dim);
}

/* reveal on scroll, content is visible by default and JS opts in */

.js-reveal [data-reveal].is-off { opacity: 0; transform: translateY(18px); }
[data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal].is-off { opacity: 1; transform: none; }
  [data-reveal] { transition: none; }
  .hero__scroll span { animation: none; opacity: .8; }
  .btn, .lane, .hdr { transition: none; }
}
