:root {
  --ink: #050a16;
  --ink-deep: #030711;
  --paper: #f8fafc;
  --muted: #b9c3d4;
  --line: rgba(148, 163, 184, 0.36);
  --signal: #38bdf8;
  --primary: #5266ef;
  --primary-deep: #3446d8;
  --pad-x: clamp(1.5rem, 5.55vw, 5rem);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 80% 38%,
      rgba(53, 89, 211, 0.23),
      transparent 31rem
    ),
    radial-gradient(
      circle at 38% 104%,
      rgba(23, 43, 83, 0.2),
      transparent 45rem
    ),
    linear-gradient(128deg, var(--ink-deep) 0%, var(--ink) 52%, #07101f 100%);
  color: var(--paper);
  font-family:
    "Geist",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.7rem 0.9rem;
  border-radius: 0.35rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 3.5rem minmax(31.25rem, 1fr) 7.9rem 4.475rem;
  width: 100%;
  height: min(100svh, 64rem);
  min-height: min(100svh, 64rem);
  padding: 3.75rem var(--pad-x) 1.75rem;
  overflow: hidden;
}

.atmosphere,
.axes {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.atmosphere::before {
  position: absolute;
  top: 0;
  right: -4%;
  width: min(69rem, 78vw);
  height: 78%;
  background: radial-gradient(
    ellipse at 55% 48%,
    rgba(48, 89, 224, 0.25),
    rgba(30, 58, 138, 0.06) 39%,
    transparent 68%
  );
  content: "";
  filter: blur(10px);
}

.axis {
  position: absolute;
  display: block;
}

.axis-horizontal {
  top: 65.55%;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.78),
    rgba(56, 189, 248, 0.9) 72%,
    rgba(56, 189, 248, 0.52)
  );
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.16);
}

.axis-vertical {
  top: 0;
  bottom: 22.25%;
  left: 75.35%;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(56, 189, 248, 0.25),
    rgba(56, 189, 248, 0.2) 82%,
    transparent
  );
}

.axis-vertical::after {
  position: absolute;
  top: calc(84.3% - 3px);
  left: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(125, 211, 252, 0.95);
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.72);
  content: "";
}

.masthead,
.hero,
.product-panel,
.footer {
  position: relative;
  z-index: 1;
}

.masthead {
  display: flex;
  align-items: flex-start;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  color: var(--paper);
  font-size: clamp(1.35rem, 1.9vw, 1.82rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
  animation: reveal 700ms 80ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.brand img {
  width: 2.7rem;
  height: 3rem;
}

.brand:focus-visible,
.email:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 5px;
}

.hero {
  display: flex;
  align-items: center;
}

.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 49rem;
  margin: 0 0 0 0.25rem;
  color: var(--paper);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 6.6vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.044em;
  line-height: 1.125;
  text-wrap: balance;
  transform: translateY(-1.875rem);
  animation: reveal 850ms 160ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.dialogue-trace {
  position: absolute;
  top: 25%;
  right: calc(-1 * var(--pad-x));
  z-index: 0;
  width: min(60vw, 58rem);
  pointer-events: none;
  filter: drop-shadow(0 0 0.45rem rgba(56, 189, 248, 0.16));
  animation: trace-in 1100ms 80ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.dialogue-trace img {
  width: 100%;
  max-width: none;
  height: auto;
}

.product-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  width: calc(100% + 0.75rem);
  animation: reveal 750ms 300ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.product-panel p {
  margin: 0;
  color: rgba(248, 250, 252, 0.92);
  font-size: clamp(1rem, 1.68vw, 1.55rem);
  letter-spacing: -0.022em;
  line-height: 1.45;
}

.cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 1.45rem;
  min-width: 16.7rem;
  min-height: 4.4rem;
  padding: 1rem 1.65rem;
  border: 1px solid rgba(125, 140, 255, 0.5);
  border-radius: 0.55rem;
  background: linear-gradient(120deg, var(--primary-deep), var(--primary));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0.7rem 2rem rgba(32, 49, 156, 0.18);
  color: white;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.cta-arrow {
  display: inline-block;
  font-size: 1.85rem;
  font-weight: 300;
  line-height: 0.75;
  transition: transform 180ms ease;
}

.cta:hover {
  border-color: rgba(186, 196, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0.9rem 2.4rem rgba(56, 72, 201, 0.3);
  transform: translateY(-2px);
}

.cta:hover .cta-arrow {
  transform: translateX(4px);
}

.footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  width: calc(100% + 0.75rem);
  padding-bottom: 0.45rem;
  color: var(--muted);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.8rem, 1.1vw, 0.98rem);
  letter-spacing: -0.025em;
  animation: reveal 750ms 420ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.email {
  padding-bottom: 0.2rem;
  text-decoration-color: transparent;
  text-underline-offset: 0.28em;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.email:hover {
  color: var(--paper);
  text-decoration-color: var(--signal);
}

.company-record {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 0.62rem;
  margin: 0;
  color: rgba(248, 250, 252, 0.92);
  text-align: right;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }
}

@keyframes trace-in {
  from {
    opacity: 0;
    transform: translate3d(1.75rem, 0, 0);
  }
}

@media (max-width: 68rem) {
  .site-shell {
    grid-template-rows: 3.5rem minmax(21rem, 1fr) 7rem 4.45rem;
    padding-top: 2.5rem;
  }

  .hero h1 {
    max-width: 40rem;
    font-size: clamp(3.7rem, 7.4vw, 5rem);
  }

  .dialogue-trace {
    top: 30%;
    width: clamp(38rem, 67vw, 44rem);
  }

  .axis-vertical {
    left: 72%;
  }

  .cta {
    min-width: 13.2rem;
  }
}

@media (min-width: 68.01rem) and (max-height: 52.5rem) {
  .site-shell {
    height: auto;
    min-height: 52.5rem;
  }
}

@media (max-width: 48rem) {
  .site-shell {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100svh;
    padding: 1.75rem var(--pad-x) 1.5rem;
    overflow: hidden;
  }

  .masthead {
    height: 3.25rem;
  }

  .brand {
    gap: 0.65rem;
    font-size: 1.35rem;
  }

  .brand img {
    width: 2.25rem;
    height: 2.5rem;
  }

  .hero {
    align-items: flex-start;
    min-height: clamp(31rem, 139vw, 38rem);
    padding-top: clamp(5.25rem, 18vw, 7.25rem);
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 11.45vw, 4.1rem);
    letter-spacing: -0.048em;
    line-height: 1.04;
    transform: none;
  }

  .dialogue-trace {
    top: 11.5rem;
    right: calc(-1 * var(--pad-x));
    width: clamp(31rem, 135vw, 48rem);
    opacity: 0.82;
    filter: drop-shadow(0 0 0.35rem rgba(56, 189, 248, 0.14));
  }

  .axis-horizontal {
    top: 31.5rem;
  }

  .axis-vertical {
    top: 9rem;
    bottom: auto;
    left: 65%;
    height: 26rem;
  }

  .axis-vertical::after {
    top: calc(86.5% - 3px);
  }

  .product-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 1.35rem;
    padding: 1.6rem 0 1.75rem;
  }

  .product-panel p {
    max-width: 29rem;
    font-size: 1rem;
  }

  .cta {
    align-self: flex-start;
    min-width: 13.5rem;
    min-height: 3.75rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.35rem;
    padding-top: 1.65rem;
    padding-bottom: 0;
    font-size: 0.72rem;
    line-height: 1.55;
  }

  .company-record {
    justify-content: flex-start;
    max-width: 32rem;
    text-align: left;
  }
}

@media (max-width: 21.25rem) {
  :root {
    --pad-x: 1.25rem;
  }

  .hero {
    min-height: 29rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11.25vw, 2.7rem);
  }

  .dialogue-trace {
    top: 11rem;
  }

  .axis-horizontal {
    top: 29rem;
  }

  .axis-vertical {
    height: 24rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
