/* ==========================================================================
   Veycash — Coming soon
   ========================================================================== */

:root {
  --blue: #0d55fd;
  --blue-soft: #ecf2fe;
  --ink: #020209;
  --gray-600: #62656d;
  --gray-500: #686c76;
  --gray-400: #6f7177;
  --line: #e3e4e8;
  --bg: #ffffff;

  --gutter: clamp(20px, 3.9vw, 60px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Visible viewport height (excludes mobile browser toolbars where supported) */
  --vh: 1vh;
}

@supports (height: 1svh) {
  :root {
    --vh: 1svh;
  }
}

/* The whole page fits the viewport without scrolling. Every size is written as
     clamp(<mobile> * --m, <desktop> * --u, <desktop>px)
   --u is 1px on the 1536×1024 mockup and shrinks with the tighter viewport
   axis, so the layout scales down as a whole on shorter or narrower screens.
   --m is 1px on phones of 375×600 and up, and shrinks on smaller ones. */
:root {
  --u: min(100vw / 1536, var(--vh) * 100 / 1024);
  --m: clamp(0.45px, min(100vw / 375, var(--vh) * 100 / 600), 1px);
}

/* Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
p {
  margin: 0;
}

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

svg {
  display: block;
}

::selection {
  background: var(--blue);
  color: #fff;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Layout
   ========================================================================== */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-inline: var(--gutter);
}

/* Header
   ========================================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(calc(18 * var(--m)), calc(35 * var(--u)), 35px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(calc(10 * var(--m)), calc(14 * var(--u)), 14px);
  border-radius: 10px;
}

.brand:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
}

.brand__icon {
  width: clamp(max(24px, calc(36 * var(--m))), calc(46 * var(--u)), 46px);
  height: auto;
  aspect-ratio: 1;
  color: var(--blue);
}

.brand__name {
  position: relative;
  top: -0.08em; /* optically centre the x-height on the icon */
  font-size: clamp(max(18px, calc(28 * var(--m))), calc(45 * var(--u)), 45px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

/* Social links
   ========================================================================== */

.social {
  display: flex;
  gap: clamp(6px, calc(10 * var(--u)), 10px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.social__link {
  display: grid;
  place-items: center;
  width: clamp(max(28px, calc(36 * var(--m))), calc(40 * var(--u)), 40px); /* ≥ 28px touch target */
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gray-500);
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.social__link svg {
  width: 45%;
  height: 45%;
}

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

@media (hover: hover) {
  .social__link:hover {
    border-color: var(--blue-soft);
    background: var(--blue-soft);
    color: var(--blue);
  }
}

/* Hero
   ========================================================================== */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: clamp(calc(12 * var(--m)), calc(24 * var(--u)), 24px);
  text-align: center;
}

.hero__icon {
  width: clamp(calc(96 * var(--m)), calc(172 * var(--u)), 172px);
  aspect-ratio: 1;
  border-radius: 21%;
  color: var(--blue);
  box-shadow:
    0 8px 24px rgba(13, 85, 253, 0.1),
    0 4px 48px rgba(13, 85, 253, 0.1);
}

.hero__icon svg {
  width: 100%;
  height: 100%;
}

.hero__eyebrow {
  margin-top: clamp(calc(24 * var(--m)), calc(45 * var(--u)), 45px);
  padding-left: 0.5em; /* balance the trailing letter-spacing */
  color: var(--gray-600);
  font-size: clamp(max(10px, calc(12 * var(--m))), calc(20 * var(--u)), 20px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.hero__title {
  margin-top: 0.25em;
  font-size: clamp(calc(44 * var(--m)), calc(116 * var(--u)), 116px);
  font-weight: 825;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero__title .accent {
  color: var(--blue);
}

.hero__lead {
  margin-top: 0.33em;
  color: var(--gray-500);
  font-size: clamp(max(13px, calc(18 * var(--m))), calc(36 * var(--u)), 36px);
  line-height: 1.4;
  letter-spacing: 0.005em;
}

.badge {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(calc(28 * var(--m)), calc(47 * var(--u)), 47px);
  padding: 0.4em 1.2em;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: clamp(max(12px, calc(16 * var(--m))), calc(25 * var(--u)), 25px);
  font-weight: 500;
  line-height: 1.44;
  letter-spacing: -0.02em;
}

/* Footer
   ========================================================================== */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block:
    clamp(calc(16 * var(--m)), calc(25 * var(--u)), 25px)
    clamp(calc(24 * var(--m)), calc(49 * var(--u)), 49px);
  border-top: 1px solid var(--line);
  color: var(--gray-400);
  font-size: clamp(max(12px, calc(14 * var(--m))), calc(18 * var(--u)), 18px);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.chain {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.chain__mark {
  flex: none;
  width: 1em;
  height: 1em;
  border-radius: 0.22em;
  background: var(--blue);
}

/* Motion
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero > :nth-child(2) { animation-delay: 0.08s; }
  .hero > :nth-child(3) { animation-delay: 0.16s; }
  .hero > :nth-child(4) { animation-delay: 0.24s; }
  .hero > :nth-child(5) { animation-delay: 0.32s; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
