/* ============================================================
   DIGIRA FEST S1 — REGISTRATION PORTAL
   Served independently from https://register.digira.xyz/
   Self-contained: no dependency on the main site's stylesheets.

   Priorities: fast first paint, large touch targets, clear focus
   states, minimal motion. Same Digira design language as the
   main site (dark shell, neon blue/purple, cut corners).
   ============================================================ */

:root {
  --bg: #05070d;
  --shell: #0a0e18;
  --ink: #f2f7ff;
  --muted: #8c96ad;
  --neon-blue: #00c8ff;
  --electric: #2e6bff;
  --neon-purple: #9b3dff;
  --violet: #b44dff;
  --line: rgba(140, 170, 220, 0.16);
  --grad: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  --cut: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  --font-display: "Anton", Impact, sans-serif;
  --font-ui: "Chakra Petch", system-ui, sans-serif;
  --font-mono: "Share Tech Mono", monospace;
  --pad-x: clamp(18px, 5vw, 48px);
  --max-w: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      720px 420px at 8% -8%,
      rgba(0, 200, 255, 0.12),
      transparent 70%
    ),
    radial-gradient(
      680px 460px at 100% 0%,
      rgba(155, 61, 255, 0.14),
      transparent 72%
    ),
    radial-gradient(
      760px 520px at 50% 110%,
      rgba(46, 107, 255, 0.1),
      transparent 75%
    );
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--neon-blue);
  color: #041018;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  padding: 12px 18px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------------- TOP BAR ---------------- */
.top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px var(--pad-x);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.7);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wordmark i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.7);
}

.top-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 22px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.top-links a {
  transition: color 0.2s ease;
}

.top-links a:hover {
  color: var(--neon-blue);
}

/* ---------------- LAYOUT ---------------- */
.wrap {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(28px, 5vh, 52px) var(--pad-x) clamp(40px, 6vh, 64px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--neon-purple);
  display: block;
  margin-bottom: 12px;
}

/* ---------------- HERO ---------------- */
.hero {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vh, 40px);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 8vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 .accent {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 2.4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero p {
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.7;
  max-width: 56ch;
}

.dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  list-style: none;
}

.dates li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 24, 0.7);
  clip-path: var(--cut);
}

.dates li b {
  color: var(--neon-blue);
  font-weight: 400;
}

/* ---------------- SECTION TITLE ---------------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-head span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* ---------------- REGISTRATION CARDS ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

.reg-card {
  --accent: var(--neon-blue);
  --accent-soft: rgba(0, 200, 255, 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  clip-path: var(--cut);
  border: 1px solid var(--line);
  background: linear-gradient(
    165deg,
    rgba(10, 14, 24, 0.95),
    rgba(10, 14, 24, 0.6)
  );
  padding: clamp(18px, 2.6vw, 24px);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.reg-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.8;
}

.reg-card[data-accent="purple"] {
  --accent: var(--neon-purple);
  --accent-soft: rgba(155, 61, 255, 0.14);
}

.reg-card[data-accent="violet"] {
  --accent: var(--violet);
  --accent-soft: rgba(180, 77, 255, 0.14);
}

.reg-card[data-accent="electric"] {
  --accent: var(--electric);
  --accent-soft: rgba(46, 107, 255, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  .reg-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 26px rgba(0, 200, 255, 0.1);
  }
}

.rc-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rc-mark {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  clip-path: var(--cut);
}

.rc-index {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--accent);
  display: block;
  margin-bottom: 3px;
}

.rc-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.rc-title span {
  display: block;
  font-size: 0.82em;
  color: var(--muted);
}

.rc-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.rc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.rc-fee {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(140, 170, 220, 0.07);
}

.rc-fee.is-tbc {
  color: var(--muted);
  border-style: dashed;
}

/* ---- registration button (large, touch friendly) ---- */
.rc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 15px 18px;
  margin-top: 4px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.25;
  clip-path: var(--cut);
  border: 1px solid var(--accent);
  color: var(--ink);
  background: var(--accent-soft);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.rc-btn .arrow {
  font-size: 15px;
  transition: transform 0.25s ease;
}

.rc-btn.is-ready {
  background: var(--accent);
  border-color: var(--accent);
  color: #041018;
  box-shadow: 0 0 22px rgba(0, 200, 255, 0.28);
}

@media (hover: hover) and (pointer: fine) {
  .rc-btn.is-ready:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.4);
  }

  .rc-btn.is-ready:hover .arrow {
    transform: translateX(3px);
  }
}

.rc-btn:active {
  transform: translateY(0);
}

.rc-btn.is-disabled,
.rc-btn[aria-disabled="true"] {
  cursor: not-allowed;
  color: var(--muted);
  border-color: var(--line);
  border-style: dashed;
  background: rgba(140, 170, 220, 0.05);
  box-shadow: none;
}

.rc-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-height: 14px;
}

.rc-note.is-info {
  color: var(--neon-blue);
}

/* ---------------- INSTRUCTIONS ---------------- */
.steps {
  margin-top: clamp(32px, 5vh, 48px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step {
  background: var(--shell);
  padding: clamp(16px, 2.4vw, 22px);
}

.step b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--neon-blue);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.eligibility {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 2px solid rgba(155, 61, 255, 0.7);
  background: rgba(155, 61, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.eligibility strong {
  color: var(--ink);
  font-weight: 400;
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 24px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer nav a:hover {
  color: var(--neon-blue);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 780px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .top-links .optional {
    display: none;
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 14px var(--pad-x);
  }

  .wordmark {
    font-size: 0.9rem;
  }

  .dates li {
    width: 100%;
  }

  .rc-btn {
    font-size: 11.5px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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