/*  MagicWall — design tokens & base
    Palette derived from the app icon: pink bricks, white star, warm ink. */

@font-face {
  font-family: "Inter";
  src: url("../assets/font/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../assets/font/geist-mono-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* surfaces */
  --white: #ffffff;
  --bg: #fdfbfc;
  --bg-soft: #f9f5f8;
  --bg-sunk: #f5f0f4;

  /* ink — 3 and 4 stay legible: both clear 4.5:1 on the page background and on
     the pink CTA band (they are used for small, low-emphasis text) */
  --ink: #16121a;
  --ink-2: #4c434e;
  --ink-3: #736a77;
  --ink-4: #6d6471;

  /* lines */
  --line: #f0e8ef;
  --line-2: #e6dbe4;
  --line-3: #d9cbdb;

  /* pink — the app accent is --pink-500 */
  --pink-50: #fff6fb;
  --pink-100: #ffecf6;
  --pink-200: #ffd8ec;
  --pink-300: #ffbcdf;
  --pink-400: #ff95cd;
  --pink-500: #f76bb8;
  --pink-600: #e24f9f;
  --pink-700: #b93c7f;

  /* bricks (sampled from the app icon) */
  --brick: #ffd9ec;
  --brick-hi: #ffecf7;
  --brick-mid: #ffcde7;
  --brick-lo: #f4b0d4;
  --mortar: #f8cbe2;

  /* micro accents from the icon, used sparingly */
  --sky: #c6e6f8;
  --grass: #a9d97f;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-full: 999px;

  --shadow-xs: 0 1px 2px rgba(23, 19, 25, 0.05);
  --shadow-sm: 0 1px 2px rgba(23, 19, 25, 0.05), 0 6px 14px -10px rgba(23, 19, 25, 0.10);
  --shadow-md: 0 2px 4px rgba(23, 19, 25, 0.04), 0 20px 36px -22px rgba(185, 60, 127, 0.24);
  --shadow-lg: 0 3px 8px rgba(23, 19, 25, 0.05), 0 46px 80px -40px rgba(185, 60, 127, 0.32);
  --shadow-pink: 0 12px 26px -12px rgba(226, 79, 159, 0.48);

  --grad-accent: linear-gradient(180deg, #ff9bd2 0%, #f465b2 55%, #e24f9f 100%);
  --grad-accent-hover: linear-gradient(180deg, #ffa9d9 0%, #f776bd 55%, #e85aa8 100%);
  --grad-soft: linear-gradient(180deg, #fff7fc 0%, #fff0f8 100%);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1140px;
  --wrap-narrow: 880px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.28s;

  --nav-h: 64px;
  --nav-offset: 14px;
  color-scheme: light;
}

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

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

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img,
video {
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

::selection {
  background: var(--pink-200);
  color: var(--ink);
}

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

/* ---------- type scale ---------- */

.display {
  font-size: clamp(2.5rem, 5.7vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 620;
}

.h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.022em;
  font-weight: 580;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.012em;
  font-weight: 400;
}

.small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* pink-700 keeps this 13px label comfortably above 4.5:1 on the page background */
  color: var(--pink-700);
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}

/* animated rainbow gradient on the key phrase of a headline.
   First and last stop share #ff5db1 so the loop wraps without a seam, and
   background-size: 200% lets the animation shift exactly one full image.
   The neon halo is a separate blurred copy (.grad-glow, see below) so it can
   carry the same multicolour gradient — a single filter glow can only take
   one colour. */
.grad {
  background-image: linear-gradient(
    100deg,
    #ff5db1 0%,
    #ff8a3d 16%,
    #ffc93c 32%,
    #46e08a 50%,
    #4db5ff 66%,
    #a97bff 83%,
    #ff5db1 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* keeps descenders from being clipped by the text clip */
  display: inline-block;
  padding-bottom: 0.04em;
  animation: grad-rainbow 4.5s linear infinite;
}

/* neon halo: a blurred copy of the phrase carrying the same animated
   gradient, painted behind the crisp text. .grad-wrap needs
   isolation: isolate, otherwise the negative z-index would escape behind the
   white background of .site-mini and the halo would not show. */
.grad-wrap {
  position: relative;
  display: inline-block;
  isolation: isolate; /* keeps the negative z-index glow inside this box */
}

.grad-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(
    100deg,
    #ff5db1 0%,
    #ff8a3d 16%,
    #ffc93c 32%,
    #46e08a 50%,
    #4db5ff 66%,
    #a97bff 83%,
    #ff5db1 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(12px) saturate(1.35);
  opacity: 0.95;
  animation: grad-rainbow 4.5s linear infinite;
}

@keyframes grad-rainbow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* ---------- argent buttons: metallic pill (ported effect) ---------- */
.argent {
  --argent-grad: linear-gradient(135deg, #ffe8f4 0%, #ffb6dd 18%, #ff6fbb 42%, #99194f 52%, #ef6cb1 68%, #ffc9e6 88%, #fff2f8 100%);
  --argent-text: #ffffff;
  --argent-edge: rgba(255, 255, 255, 0.42);
  --argent-panel: #2b0f22;
  --argent-panel-text: #ffe9f5;
  --argent-sheen: rgba(255, 255, 255, 0.55);
  --argent-shadow: 0 12px 30px rgba(185, 60, 127, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 3px rgba(60, 0, 30, 0.4);
  --argent-bw: 2px;
  --argent-halo: 4px;
  --argent-radius: 999px;
  --argent-halo-line: rgba(255, 255, 255, 0.35);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border: 1px solid var(--argent-edge);
  border-radius: var(--argent-radius);
  box-shadow: var(--argent-shadow);
  color: var(--argent-text);
  transition: transform 0.14s cubic-bezier(0.34, 1.5, 0.5, 1), box-shadow 0.2s var(--ease), filter 0.15s var(--ease);
}

.argent-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  background: var(--argent-grad);
}

.argent-core {
  position: absolute;
  inset: var(--argent-bw);
  z-index: 1;
  border-radius: inherit;
  background: var(--argent-panel);
  transition: opacity 0.5s var(--ease-out);
}

.argent-sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 36%, var(--argent-sheen) 50%, transparent 64%);
  background-size: 260% 100%;
  background-position: -60% 0;
  background-repeat: no-repeat;
  opacity: 0;
  mix-blend-mode: screen;
  transition: background-position 0.6s var(--ease), opacity 0.3s var(--ease);
}

.argent::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--argent-halo));
  z-index: -1;
  border-radius: calc(var(--argent-radius) + var(--argent-halo));
  border: 1px solid var(--argent-halo-line);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.argent:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.argent:hover .argent-core {
  opacity: 0.75;
}

.argent:focus-visible .argent-core {
  opacity: 0.75;
}

.argent:active .argent-core {
  opacity: 0.65;
}

.argent:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: var(--argent-shadow), inset 0 3px 7px rgba(0, 0, 0, 0.42);
}

.argent:hover .argent-sheen {
  opacity: 0.95;
  background-position: 160% 0;
}

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

.argent-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.92rem;
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--argent-panel-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.argent-content svg {
  display: block;
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

.argent--sm .argent-content {
  padding: 8px 16px;
  font-size: 0.86rem;
}

.argent--lg .argent-content {
  padding: 13px 26px;
  font-size: 1rem;
}

/* ---------- layout helpers ---------- */

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

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.stack > * + * {
  margin-top: var(--stack-gap, 1rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 50%;
  translate: -50% -160%;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  transition: translate 0.2s var(--ease);
}

.skip-link:focus-visible {
  translate: -50% 0;
}

/* ---------- motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  /* the neon halo stays, just frozen (animation-name is not touched by the
     !important duration rule above) */
  .grad-glow {
    animation: none;
  }

  .argent:hover,
  .argent:active {
    transform: none;
  }
}
