/* ---------------------------------------------------------------------------
 * LANO landing page styles.
 *
 * Brand palette is lifted from the main app (artifacts/swap-market):
 *   primary   #e11d68  (rose/pink, hsl(340 75% 55%))
 *   accent    #f59e0b  (amber,     hsl(38  85% 58%))
 *   logo tile conic-gradient(rose -> fuchsia -> amber) — same SVG as the navbar
 *
 * Mobile-first, no framework. Variables make the brand easy to tweak.
 * --------------------------------------------------------------------------- */

:root {
  /* Brand */
  --rose: #f43f5e;
  --fuchsia: #d946ef;
  --amber: #f59e0b;
  --rose-deep: #be123c;
  --fuchsia-deep: #a21caf;

  /* Surface */
  --ink: #1f1124;
  --ink-soft: #4c3a55;
  --ink-muted: #6f5a78;
  --cream: #fff8f3;
  --paper: #ffffff;
  --hairline: rgba(31, 17, 36, 0.08);

  /* Type */
  --font-serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;

  /* Spacing rhythm */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Shadows */
  --shadow-soft: 0 8px 30px -8px rgba(225, 29, 104, 0.18);
  --shadow-card: 0 20px 60px -20px rgba(31, 17, 36, 0.18);
  --shadow-button: 0 12px 24px -10px rgba(225, 29, 104, 0.55);
}

/* ---- Reset (small, opinionated) ---------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-feature-settings: "ss01";
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--rose-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--fuchsia-deep);
}

button {
  font: inherit;
  cursor: pointer;
}

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

/* ---- Layout ----------------------------------------------------------- */

.shell {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-16);
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 720px) {
  .shell {
    padding: var(--space-16) var(--space-12);
  }
}

/* ---- Decorative background ------------------------------------------- */

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(at top left, #fff1ea 0%, transparent 55%),
    radial-gradient(at bottom right, #fdf3ff 0%, transparent 55%),
    var(--cream);
}

.bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.bg__blob--rose {
  top: -10%;
  left: -10%;
  width: 28rem;
  height: 28rem;
  background: var(--rose);
}

.bg__blob--fuchsia {
  top: 30%;
  right: -15%;
  width: 32rem;
  height: 32rem;
  background: var(--fuchsia);
  opacity: 0.32;
}

.bg__blob--amber {
  bottom: -15%;
  left: 20%;
  width: 26rem;
  height: 26rem;
  background: var(--amber);
  opacity: 0.4;
}

/* ---- Brand mark (matches navbar) ------------------------------------- */

.brand__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
}

.brand__tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: conic-gradient(
    from 30deg at 30% 30%,
    var(--rose) 0deg,
    var(--fuchsia) 120deg,
    var(--amber) 240deg,
    var(--rose) 360deg
  );
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  color: #ffffff;
  transition: transform 0.3s ease;
}

.brand__link:hover .brand__tile {
  transform: rotate(8deg) scale(1.04);
}

.brand__icon {
  width: 1.35rem;
  height: 1.35rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.brand__sparkle {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #fcd34d;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.55), 0 0 10px rgba(252, 211, 77, 0.7);
}

.brand__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  background: linear-gradient(
    90deg,
    var(--rose-deep) 0%,
    var(--fuchsia-deep) 55%,
    var(--amber) 110%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand__sub {
  margin-top: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(162, 28, 175, 0.75);
}

/* ---- Hero ----------------------------------------------------------- */

.hero__subhead {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--ink-soft);
}

.hero__subhead--en {
  margin-top: var(--space-3);
  font-size: 0.95rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* ---- Signup card --------------------------------------------------- */

.signup {
  position: relative;
  padding: var(--space-8) var(--space-6);
  background: var(--paper);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
}

@media (min-width: 720px) {
  .signup {
    padding: var(--space-12);
  }
}

.signup::before {
  /* Thin top accent stripe matching the brand gradient */
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-8);
  right: var(--space-8);
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(
    90deg,
    var(--rose) 0%,
    var(--fuchsia) 55%,
    var(--amber) 100%
  );
}

.signup__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
}

.signup__lede {
  margin: var(--space-3) 0 var(--space-6);
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 36rem;
}

.signup__fineprint {
  margin: var(--space-4) 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ---- Form ---------------------------------------------------------- */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 540px) {
  .form__row {
    flex-direction: row;
  }
}

.form__input {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(31, 17, 36, 0.12);
  border-radius: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form__input::placeholder {
  color: rgba(31, 17, 36, 0.35);
}

.form__input:hover:not(:disabled) {
  border-color: rgba(244, 63, 94, 0.4);
}

.form__input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.15);
}

.form__input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form__input[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.form__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    var(--rose-deep) 0%,
    var(--fuchsia-deep) 55%,
    #b45309 110%
  );
  border: none;
  border-radius: 0.85rem;
  box-shadow: var(--shadow-button);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.form__button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 32px -10px rgba(225, 29, 104, 0.6);
}

.form__button:active:not(:disabled) {
  transform: translateY(0);
}

.form__button:focus-visible {
  outline: 3px solid rgba(244, 63, 94, 0.4);
  outline-offset: 3px;
}

.form__button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.form__button-arrow {
  transition: transform 0.2s ease;
}

.form__button:hover:not(:disabled) .form__button-arrow {
  transform: translateX(3px);
}

.form__status {
  margin: var(--space-2) 0 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  min-height: 1.25rem;
}

.form__status[data-state="success"] {
  color: #047857;
  font-weight: 600;
}

.form__status[data-state="error"] {
  color: #b91c1c;
  font-weight: 600;
}

/* ---- Footer ------------------------------------------------------- */

.footer {
  display: grid;
  gap: var(--space-2);
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
}

@media (min-width: 720px) {
  .footer {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .footer__meta {
    text-align: right;
  }
}

.footer p {
  margin: 0;
}

/* ---- Motion preference ------------------------------------------- */

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

/* ---- Accessibility helper -------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
