@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --ink: #0b0b0b;
  --paper: #f4f0e8;
  --muted: #aaa6a0;
  --line: rgba(244, 240, 232, 0.2);
  --red: #ff3d22;
  --blue: #77a5bb;
  --pad-x: clamp(22px, 5vw, 76px);
  --pad-y: clamp(22px, 4vw, 50px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  z-index: -5;
  inset: -3%;
  background: url("./public/ak-traders-hero.png") center / cover no-repeat;
  animation: image-drift 18s ease-in-out infinite alternate;
  transform-origin: 70% 60%;
}

.image-wash {
  position: absolute;
  z-index: -4;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.98) 0%, rgba(8, 8, 8, 0.9) 36%, rgba(8, 8, 8, 0.48) 66%, rgba(8, 8, 8, 0.16) 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.14) 0%, rgba(8, 8, 8, 0.08) 68%, rgba(8, 8, 8, 0.74) 100%);
}

.blueprint-grid {
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black 0%, transparent 62%);
}

.grain {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.55px, transparent 0.65px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pad-x);
}

.topbar {
  height: 104px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 232, 0.5);
  font: 700 17px/1 "Manrope", sans-serif;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 1px;
  background: var(--red);
  transform: rotate(-45deg);
}

.brand-mark b,
.brand-mark i {
  position: absolute;
  z-index: 1;
  font-style: normal;
}

.brand-mark b {
  top: 5px;
  left: 8px;
}

.brand-mark i {
  right: 7px;
  bottom: 5px;
}

.brand-name {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.domain {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(244, 240, 232, 0.78);
  font: 500 12px/1 "Manrope", sans-serif;
  text-transform: uppercase;
}

.domain-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 61, 34, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 60px;
  padding: clamp(56px, 8vh, 110px) var(--pad-x) clamp(48px, 7vh, 86px);
}

.hero-copy {
  width: min(860px, 76vw);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  color: var(--blue);
  font: 600 11px/1.2 "Manrope", sans-serif;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  line-height: 0.88;
}

h1 span {
  display: block;
}

.welcome {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: clamp(38px, 5.1vw, 78px);
  font-weight: 400;
}

.company {
  position: relative;
  width: max-content;
  max-width: 100%;
  color: var(--paper);
  font-size: clamp(62px, 9.1vw, 144px);
  font-weight: 600;
  white-space: nowrap;
}

.accent {
  display: inline;
  color: var(--red);
}

.company::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0 24%, rgba(244, 240, 232, 0.14) 24% 100%);
  transform-origin: left;
  animation: line-draw 1.2s 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro {
  width: min(520px, 90%);
  margin: 56px 0 0;
  color: rgba(244, 240, 232, 0.62);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
}

.launch-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  font: 600 11px/1 "Manrope", sans-serif;
  text-transform: uppercase;
}

.launch-status {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255, 61, 34, 0.65);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

.divider {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.stay-tuned {
  color: var(--muted);
}

.signal-panel {
  display: grid;
  grid-template-columns: auto minmax(90px, 12vw) auto;
  align-items: center;
  gap: 14px;
  align-self: end;
  margin-bottom: 12px;
  color: rgba(244, 240, 232, 0.68);
  font: 500 9px/1 "Manrope", sans-serif;
  text-transform: uppercase;
  transform: rotate(-90deg) translateX(100%);
  transform-origin: right bottom;
}

.signal-line {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(244, 240, 232, 0.22);
}

.signal-line span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 36%;
  background: var(--red);
  animation: signal-scan 3.4s ease-in-out infinite;
}

.signal-value {
  color: var(--paper);
}

.footer {
  min-height: 72px;
  border-top: 1px solid var(--line);
  color: rgba(244, 240, 232, 0.5);
  font-size: 11px;
}

.footer p {
  margin: 0;
}

.copyright {
  text-transform: uppercase;
}

.side-note {
  position: absolute;
  top: 50%;
  right: 20px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 12px;
  color: rgba(244, 240, 232, 0.45);
  font: 500 8px/1 "Manrope", sans-serif;
  text-transform: uppercase;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
}

.side-note i {
  width: 30px;
  height: 1px;
  background: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-one { animation-delay: 0.08s; }
.reveal-two { animation-delay: 0.22s; }
.reveal-three { animation-delay: 0.36s; }
.reveal-four { animation-delay: 0.55s; }
.reveal-five { animation-delay: 0.72s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes line-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pulse-ring {
  0% { opacity: 0.8; transform: scale(0.4); }
  75%, 100% { opacity: 0; transform: scale(1.15); }
}

@keyframes signal-scan {
  0%, 100% { transform: translateX(-25%); }
  50% { transform: translateX(200%); }
}

@keyframes image-drift {
  from {
    transform: scale(1.025) translate3d(var(--pointer-x, 0), var(--pointer-y, 0), 0);
  }
  to {
    transform: scale(1.075) translate3d(calc(-0.8% + var(--pointer-x, 0)), calc(-0.6% + var(--pointer-y, 0)), 0);
  }
}

@media (min-width: 1400px) {
  .side-note { display: flex; }
}

@media (max-width: 860px) {
  .site-shell {
    min-height: 100svh;
  }

  .topbar {
    height: 82px;
  }

  .brand-name {
    font-size: 13px;
  }

  .hero-image {
    inset: 0;
    background-position: 62% center;
  }

  .image-wash {
    background:
      linear-gradient(180deg, rgba(8, 8, 8, 0.5) 0%, rgba(8, 8, 8, 0.72) 38%, rgba(8, 8, 8, 0.94) 100%),
      linear-gradient(90deg, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0.2) 100%);
  }

  .blueprint-grid {
    background-size: 52px 52px;
    mask-image: linear-gradient(180deg, transparent 0%, black 48%, transparent 100%);
  }

  .hero {
    display: flex;
    align-items: flex-end;
    padding-top: 180px;
  }

  .hero-copy {
    width: 100%;
  }

  .signal-panel {
    display: none;
  }

  .company {
    font-size: clamp(54px, 15vw, 96px);
  }

  .welcome {
    font-size: clamp(34px, 9vw, 58px);
  }
}

@media (max-width: 560px) {
  .domain {
    font-size: 10px;
  }

  .brand-name {
    display: none;
  }

  .hero {
    padding-bottom: 48px;
  }

  .eyebrow {
    margin-bottom: 24px;
    font-size: 9px;
  }

  .eyebrow::before {
    width: 28px;
  }

  .company {
    white-space: normal;
  }

  .company::after {
    bottom: -14px;
    height: 3px;
  }

  .intro {
    margin-top: 45px;
    line-height: 1.58;
  }

  .launch-row {
    gap: 16px;
    margin-top: 28px;
    font-size: 9px;
  }

  .footer {
    min-height: 62px;
  }

  .footer > p:first-child {
    display: none;
  }

  .footer {
    justify-content: flex-end;
  }
}

@media (max-height: 720px) and (min-width: 861px) {
  .topbar { height: 82px; }
  .hero { padding-block: 34px; }
  .intro { margin-top: 40px; }
  .footer { min-height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
