/* ==========================================================================
   AusCryptoCon 2026 - registration landing page
   Direction: dark editorial / conference pass. Brand gradient maroon -> indigo,
   electric cyan + violet accents, one variable typeface (Archivo) across two axes.
   ========================================================================== */

:root {
  /* Brand */
  --ink: #08001c;
  --indigo: #11024c;
  --indigo-lift: #1b0a63;
  --maroon: #55001a;
  --cyan: #1bc1ff;
  --violet: #743eff;
  --magenta: #f72c8a;
  --teal: #5eead4;

  /* Surfaces */
  --paper: #ffffff;
  --paper-dim: #f4f2f8;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --glass: rgba(255, 255, 255, 0.06);

  /* Text */
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.52);
  --text-dark: #17032f;
  --text-dark-soft: #5a5170;

  /* Type scale */
  --display: clamp(2.75rem, 1.1rem + 6.6vw, 7rem);
  --h2: clamp(1.9rem, 1rem + 3.2vw, 3.6rem);
  --h3: clamp(1.15rem, 0.95rem + 0.7vw, 1.5rem);
  --body: clamp(1rem, 0.96rem + 0.18vw, 1.09rem);
  --label: 0.72rem;

  /* Rhythm - deliberately uneven, not one padding everywhere */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(4rem, 2.5rem + 6vw, 9rem);
  --shell: 1240px;

  /* Motion */
  --fast: 160ms;
  --normal: 320ms;
  --slow: 620ms;
  --expo: cubic-bezier(0.16, 1, 0.3, 1);

  --radius: 18px;
  --radius-lg: 28px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--body);
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Layered atmosphere: brand gradient + two colour blooms + fine grain. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(90ch 70ch at 8% -10%, rgba(247, 44, 138, 0.28), transparent 62%),
    radial-gradient(70ch 60ch at 100% 12%, rgba(27, 193, 255, 0.2), transparent 60%),
    radial-gradient(80ch 70ch at 55% 105%, rgba(116, 62, 255, 0.24), transparent 62%),
    linear-gradient(146deg, var(--maroon) 0%, #2a0140 38%, var(--indigo) 72%, var(--ink) 100%);
}

body::after {
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

/*
 * height:auto is load-bearing - the width/height attributes on the <img> tags
 * (kept so the browser can reserve space and avoid layout shift) otherwise win
 * over the CSS aspect-ratio and blow the images out to their intrinsic height.
 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/*
 * Programmatic focus targets (the success heading) are moved into focus so
 * screen readers announce the change. They are not keyboard-reachable, so the
 * ring would only read as a stray box.
 */
[tabindex="-1"]:focus { outline: none; }

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--paper);
  color: var(--text-dark);
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  transition: top var(--fast) var(--expo);
}
.skip-link:focus { top: 0; }

/* ---------- Shared type ---------- */

.eyebrow {
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0;
}

.display {
  font-size: var(--display);
  font-variation-settings: "wght" 800, "wdth" 112;
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

.section-title {
  font-size: var(--h2);
  font-variation-settings: "wght" 800, "wdth" 108;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

.grad-text {
  background: linear-gradient(96deg, var(--cyan) 0%, var(--violet) 48%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.25rem);
  color: var(--text-soft);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: linear-gradient(96deg, var(--cyan), var(--violet));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: transform var(--fast) var(--expo), box-shadow var(--normal) var(--expo);
  box-shadow: 0 10px 30px -12px rgba(27, 193, 255, 0.8);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(96deg, var(--violet), var(--magenta));
  opacity: 0;
  z-index: -1;
  transition: opacity var(--normal) var(--expo);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(116, 62, 255, 0.9); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  box-shadow: none;
  font-weight: 600;
}
.btn--ghost::after { display: none; }
.btn--ghost:hover { background: var(--glass); border-color: var(--cyan); box-shadow: none; }

.btn--block { width: 100%; padding-block: 1.1rem; font-size: 1.05rem; }

/* ---------- Header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 0, 28, 0.62);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 0.85rem;
}

.masthead__logo img { width: clamp(132px, 15vw, 178px); height: auto; }

.masthead__meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.sold-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 44, 138, 0.5);
  background: rgba(247, 44, 138, 0.14);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 0 rgba(247, 44, 138, 0.7);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(247, 44, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(247, 44, 138, 0); }
}

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

.hero {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) var(--section-y);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}

.hero__copy {
  min-width: 0;
  container-type: inline-size;
}

/*
 * "OPPORTUNITY" is a single unbreakable word measuring ~8.3em in this face, so
 * a viewport-based size overflows the column at some widths no matter how the
 * breakpoints are tuned. Sizing against the column itself (cqw) keeps the word
 * at ~96% of the available width at every size. The vw clamp is the fallback
 * for browsers without container query units.
 */
.hero .display {
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-size: min(11.5cqw, 4.5rem);
}

.hero__when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-bottom: 1.5rem;
}

.hero__when strong {
  font-variation-settings: "wght" 700, "wdth" 105;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.hero__when span { color: var(--text-faint); font-size: 0.86rem; }

.hero .display { margin-bottom: 1.35rem; }

.hero__lede { margin: 0 0 2rem; }
.hero__lede b { color: var(--text); font-weight: 700; }

/* Countdown - four uneven-weight cells, not identical boxes */
.countdown {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.countdown__cell {
  min-width: 74px;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  text-align: center;
}

.countdown__num {
  display: block;
  font-size: 1.7rem;
  font-variation-settings: "wght" 800, "wdth" 100;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.3rem;
}

/* Photo collage - overlapping, rotated, breaks the grid */
.collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
  max-width: 520px;
}

.collage img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: transform var(--slow) var(--expo);
}

.collage img:nth-child(1) { transform: rotate(-2.2deg); }
.collage img:nth-child(2) { transform: translateY(-14px) rotate(1.4deg); }
.collage img:nth-child(3) { transform: rotate(2.6deg); }
.collage:hover img { transform: none; }

.collage__caption {
  grid-column: 1 / -1;
  font-size: 0.76rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.4rem 0 0;
}

/* ---------- Registration card (styled as an event pass) ---------- */

.pass {
  position: sticky;
  top: 92px;
  background: var(--paper);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.5) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pass__head {
  background: linear-gradient(96deg, var(--maroon), var(--indigo) 62%, var(--violet));
  color: #fff;
  padding: 1.15rem 1.6rem 1.3rem;
}

.pass__kicker {
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0 0 0.3rem;
}

.pass__title {
  font-size: 1.42rem;
  font-variation-settings: "wght" 800, "wdth" 108;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}

.pass__sub { margin: 0.45rem 0 0; font-size: 0.85rem; opacity: 0.82; }

/* Perforation between the header stub and the form */
.pass__perf {
  height: 16px;
  background:
    radial-gradient(circle at 8px 8px, var(--ink) 4.5px, transparent 5px) repeat-x 0 0 / 16px 16px;
  background-color: var(--paper);
  position: relative;
}
.pass__perf::before,
.pass__perf::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
}
.pass__perf::before { left: -8px; }
.pass__perf::after { right: -8px; }

.pass__body { padding: 1.5rem 1.6rem 1.75rem; }

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

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field { margin-bottom: 0.95rem; }

.field > label,
.fieldset__legend {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-soft);
  margin-bottom: 0.4rem;
}

.field .optional { font-weight: 500; text-transform: none; letter-spacing: 0; opacity: 0.7; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  width: 100%;
  padding: 0.82rem 0.95rem;
  font: inherit;
  font-size: 0.98rem;
  color: var(--text-dark);
  background: var(--paper-dim);
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235a5170' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}

.field input:hover,
.field select:hover { background: #eeebf4; }

.field input:focus,
.field select:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(116, 62, 255, 0.16);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #d81f5a;
  background: #fff5f8;
}

.field__error {
  display: block;
  min-height: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c01650;
  margin-top: 0.3rem;
}
.field__error:empty { display: none; }

/* Consent + opt-in checkboxes */
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-dark-soft);
  cursor: pointer;
  margin-bottom: 0.7rem;
}

.check input {
  width: 18px; height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--violet);
  cursor: pointer;
  flex: none;
}

.check a { color: var(--violet); font-weight: 600; }

/* Honeypot - hidden from people, reachable by naive bots */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__footnote {
  font-size: 0.74rem;
  color: var(--text-dark-soft);
  text-align: center;
  margin: 0.9rem 0 0;
}

.form__alert {
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: #fff0f4;
  border: 1px solid #f6c3d5;
  color: #a3123f;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.form__alert[hidden] { display: none; }

.btn[data-busy="true"] { pointer-events: none; opacity: 0.72; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Success state ---------- */

.success { padding: 2.25rem 1.6rem 2rem; text-align: center; }

.success__mark {
  width: 62px; height: 62px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(96deg, var(--cyan), var(--violet));
  color: #fff;
  font-size: 1.8rem;
}

.success__title {
  font-size: 1.55rem;
  font-variation-settings: "wght" 800, "wdth" 106;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 0.6rem;
  color: var(--text-dark);
}

.success p { color: var(--text-dark-soft); font-size: 0.93rem; margin: 0 0 1.4rem; }

.success .btn { color: #fff; }

.success__next {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--violet);
}

/* ---------- Marquee ---------- */

.marquee {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  padding-block: 0.9rem;
}

.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: slide 34s linear infinite;
}

.marquee span {
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.5rem);
  font-variation-settings: "wght" 800, "wdth" 112;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  white-space: nowrap;
}
.marquee span:nth-child(even) { color: var(--cyan); }

@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: var(--section-y) 0;
}

.stat {
  background: rgba(8, 0, 28, 0.55);
  padding: 1.5rem 1.25rem;
}

.stat__num {
  display: block;
  font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.7rem);
  font-variation-settings: "wght" 800, "wdth" 106;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat__label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
