/* ITCSS-ish: settings → objects → components → utilities
   Palette: void navy + crimson + gold */

:root {
  --surface-0: #03040C;
  --surface-1: #090A14;
  --surface-2: #101228;
  --brand-red: #E01832;
  --brand-red-deep: #B21022;
  --brand-gold: #E5AE55;
  --brand-gold-bright: #F6D07A;
  --ink: #FFFFFF;
  --ink-soft: #F2EDE4;
  --muted: #A8ACC0;
  --muted-2: #6F7488;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 1rem;
  --radius-lg: 20px;
  --maxw: 1180px;
  --topbar-h: 58px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  background: linear-gradient(185deg, var(--surface-2) 0%, var(--surface-1) 45%, var(--surface-0) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 360px at 78% 6%, rgba(224, 24, 50, 0.1), transparent 62%),
    radial-gradient(480px 340px at 14% 28%, rgba(229, 174, 85, 0.08), transparent 58%),
    radial-gradient(640px 480px at 48% 96%, rgba(16, 18, 40, 0.55), transparent 70%);
}

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

a {
  color: var(--brand-gold);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--brand-gold-bright);
}

:focus-visible {
  outline: 2px solid var(--brand-gold-bright);
  outline-offset: 3px;
}

/* --- Objects --- */
.o-page {
  position: relative;
  z-index: 1;
}

.o-restrict {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

.o-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.o-stack > * + * {
  margin-block-start: 0;
}

.o-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* --- Utilities --- */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.u-visually-hidden:not(:focus):not(:active) {
  /* keep clipped until keyboard focus */
}

a.u-visually-hidden:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 3000;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  padding: 0.65rem 1rem;
  background: var(--brand-red);
  color: var(--ink);
  border-radius: 10px;
  font-weight: 600;
}

/* --- Components: topbar (outer flex, inner grid) --- */
.c-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  background: rgba(3, 4, 12, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.22s ease;
}

.c-topbar.is-stuck {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.c-topbar-inner {
  width: min(100%, var(--maxw));
  min-height: var(--topbar-h);
  padding: 0.45rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.c-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
}

.c-logo:hover {
  color: inherit;
}

.c-logo-img {
  width: 36px;
  height: 36px;
  flex: none;
}

.c-logo-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.c-logo-name strong {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  background: linear-gradient(90deg, var(--ink-soft), var(--brand-gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ink-soft);
}

.c-logo-name span {
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--muted-2);
}

.c-topbar-actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

/* --- Buttons --- */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  padding: 0.68rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.c-btn:hover {
  transform: translateY(-1px);
}

.c-btn-solid {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-deep));
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(224, 24, 50, 0.32);
}

.c-btn-solid:hover {
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(224, 24, 50, 0.48);
}

.c-btn-hollow {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.c-btn-hollow:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold-bright);
}

/* --- Crumb (inline, middot) --- */
.c-crumb {
  width: min(100% - 2rem, var(--maxw));
  margin: 1.15rem auto 0;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.c-crumb a {
  color: var(--muted-2);
}

.c-crumb a:hover {
  color: var(--brand-gold);
}

.c-crumb [aria-current="page"] {
  color: var(--brand-red);
  font-weight: 600;
}

/* --- Hero --- */
.c-hero {
  width: min(100% - 2rem, var(--maxw));
  margin: 0 auto;
  padding: 2.75rem 0 1.75rem;
  text-align: center;
  position: relative;
}

.c-hero-kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.c-hero-title {
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.8vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.c-hero-title-em {
  background: linear-gradient(90deg, var(--brand-gold-bright), var(--brand-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-gold);
}

.c-hero-lead {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
  color: var(--muted);
}

.c-hero-note {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--muted-2);
}

/* --- Card --- */
.c-card {
  background: linear-gradient(165deg, var(--surface-2), #0c0e1c);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.c-card-hd {
  padding: 1.1rem 1.75rem 0.35rem;
  border-bottom: 1px solid transparent;
}

.c-card-bd {
  padding: 1.5rem 1.75rem 2rem;
}

.c-card-bd h2 {
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  line-height: 1.25;
  margin: 2.1rem 0 0.9rem;
  padding-left: 0.85rem;
  position: relative;
}

.c-card-bd h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-red), var(--brand-gold));
}

.c-card-bd h2:first-child {
  margin-top: 0;
}

.c-card-bd h3 {
  color: var(--brand-gold);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 1.5rem 0 0.55rem;
}

.c-card-bd p {
  margin: 0 0 1rem;
}

.c-card-bd ul,
.c-card-bd ol {
  margin: 0 0 1.1rem 1.15rem;
}

.c-card-bd li {
  margin-bottom: 0.45rem;
}

.c-card-bd strong,
.c-card-bd b {
  color: var(--ink-soft);
  font-weight: 600;
}

.c-card-bd a {
  color: var(--brand-gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(229, 174, 85, 0.35);
}

.c-lead {
  font-size: 1.06rem;
  color: var(--ink-soft);
}

.c-index {
  margin: 1.25rem 0 1.75rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.c-index h2 {
  margin-top: 0 !important;
  font-size: 1.15rem !important;
  padding-left: 0 !important;
}

.c-index h2::before {
  display: none;
}

.c-index ol {
  margin: 0.6rem 0 0 1.15rem;
}

.c-index a {
  text-decoration: none;
}

.c-index a:hover {
  text-decoration: underline;
}

.c-steps {
  list-style: none;
  margin-left: 0 !important;
  counter-reset: krok;
}

.c-steps li {
  position: relative;
  padding: 0.2rem 0 0.2rem 2.55rem;
  margin-bottom: 0.7rem;
  counter-increment: krok;
}

.c-steps li::before {
  content: counter(krok);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-deep));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(224, 24, 50, 0.3);
}

/* --- Tiles --- */
.c-tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin: 1.35rem 0;
}

.c-tile {
  background: linear-gradient(160deg, #12142a, var(--surface-0));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.c-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 174, 85, 0.35);
}

.c-tile-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
  background: linear-gradient(135deg, rgba(224, 24, 50, 0.22), rgba(229, 174, 85, 0.22));
  border: 1px solid var(--line);
}

.c-tile-title {
  color: var(--brand-gold);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.c-tile p {
  font-size: 0.88rem;
  margin: 0 !important;
  color: var(--muted);
}

/* --- Callout / CTA prose --- */
.c-callout {
  margin: 1.35rem 0;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(229, 174, 85, 0.4);
  background: linear-gradient(115deg, rgba(224, 24, 50, 0.12), rgba(229, 174, 85, 0.1));
}

.c-callout-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold);
  font-weight: 600;
}

.c-callout-title {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0.2rem 0 0.35rem;
}

.c-callout p {
  margin-bottom: 0.85rem !important;
  font-size: 0.92rem;
}

.c-invite {
  margin: 0.5rem 0;
  padding: 1.85rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(229, 174, 85, 0.32);
  background: linear-gradient(140deg, rgba(224, 24, 50, 0.16), rgba(16, 18, 40, 0.85));
}

.c-invite h2 {
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  margin-bottom: 0.65rem;
}

.c-invite p {
  max-width: 36rem;
  margin: 0 auto 1.15rem;
}

.c-invite-fine {
  margin-top: 0.85rem !important;
  font-size: 0.78rem;
  color: var(--muted-2);
}

/* --- Tables --- */
.c-scroll {
  margin: 1.35rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.c-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}

.c-table thead th {
  background: linear-gradient(90deg, var(--brand-red-deep), var(--brand-red));
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.045em;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.8rem 0.95rem;
  text-align: left;
}

.c-table tbody td {
  padding: 0.75rem 0.95rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.c-table tbody tr {
  background: var(--surface-0);
}

.c-table tbody tr:nth-child(even) {
  background: #0a0c18;
}

.c-table tbody tr:hover {
  background: #14162c;
}

.c-table b {
  color: var(--brand-gold-bright);
  font-weight: 600;
}

.c-fine {
  font-size: 0.8rem;
  color: var(--muted-2);
}

/* --- Footer --- */
.c-foot {
  margin-top: 2.75rem;
  padding: 2.35rem 1.25rem;
  border-top: 1px solid var(--line);
  background: rgba(3, 4, 12, 0.55);
  text-align: center;
}

.c-foot-inner {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.c-foot-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.c-foot-methods span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 0.35rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.c-foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1.15rem;
  font-size: 0.84rem;
}

.c-foot-nav a {
  color: var(--muted-2);
}

.c-foot-nav a:hover {
  color: var(--brand-gold);
}

.c-foot-legal {
  font-size: 0.78rem;
  color: var(--muted-2);
  max-width: 42rem;
  line-height: 1.55;
}

.c-foot-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--brand-red);
  color: var(--brand-red);
  font-weight: 600;
  font-size: 0.78rem;
  margin-bottom: 0.55rem;
}

/* --- Breakpoints --- */
@media (max-width: 760px) {
  body {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .c-topbar-inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
    padding: 0.65rem 1rem;
    gap: 0.6rem;
  }

  .c-logo {
    justify-content: center;
  }

  .c-topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .c-topbar-actions .c-btn {
    width: 100%;
    min-height: 42px;
  }

  .c-hero {
    padding: 1.85rem 0 1.25rem;
  }

  .c-hero-title {
    font-size: clamp(1.3rem, 5.2vw, 1.7rem);
  }

  .c-card-bd {
    padding: 1.25rem 1.05rem 1.5rem;
  }

  .c-card-bd h2 {
    font-size: clamp(1.05rem, 3.8vw, 1.3rem);
  }

  .c-card-bd h3 {
    font-size: 0.95rem;
  }

  .c-scroll {
    border: none;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  .c-table {
    min-width: 0;
    display: block;
  }

  .c-table thead {
    display: none;
  }

  .c-table tbody,
  .c-table tr,
  .c-table td {
    display: block;
    width: 100%;
  }

  .c-table tbody tr {
    margin-bottom: 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(160deg, var(--surface-2), var(--surface-0));
  }

  .c-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    text-align: right;
    border-top: 1px solid var(--line);
    padding: 0.6rem 0.85rem;
  }

  .c-table tbody tr td:first-child {
    border-top: none;
  }

  .c-table tbody td::before {
    content: attr(data-label);
    text-align: left;
    font-weight: 600;
    color: var(--brand-gold);
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    flex: none;
    max-width: 42%;
  }
}

@media (max-width: 390px) {
  body {
    font-size: 0.8125rem;
  }

  .c-hero-title {
    font-size: 1.2rem;
  }

  .c-tile-row {
    grid-template-columns: 1fr;
  }
}

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