:root {
  color-scheme: dark;
  --bg: #090909;
  --bg-soft: #121212;
  --panel: #171717;
  --panel-strong: #202020;
  --text: #f5f2ed;
  --muted: #b9b4ad;
  --subtle: #807a72;
  --line: rgba(255, 255, 255, 0.12);
  --red: #e61e32;
  --red-dark: #8f0f1d;
  --red-soft: rgba(230, 30, 50, 0.16);
  --amber: #d9b46a;
  --focus: #ffffff;
  --success: #61d394;
  --warning: #f6c85f;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #090909;
  background-size: 44px 44px;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-160%);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--text);
  color: #111;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.88), rgba(5, 5, 5, 0.56));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.legal-page .site-header {
  position: static;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #e61e32, #1b1b1b 55%, #090909);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-weight: 900;
  font-size: 0.85rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: 76svh;
  overflow: hidden;
  padding: 96px clamp(18px, 5vw, 72px) 34px;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/sempre-cup-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.76) 44%, rgba(5, 5, 5, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.28), rgba(5, 5, 5, 0.96));
}

.hero-content {
  align-self: end;
  width: min(1040px, 100%);
}

.eyebrow {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 12px;
  border: 1px solid rgba(245, 184, 0, 0.44);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(245, 184, 0, 0.16);
  color: #ffd45a;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5.8vw, 4.8rem);
  line-height: 1.02;
  font-weight: 950;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 16px;
  color: #fff8ef;
  font-size: clamp(1.08rem, 2vw, 1.38rem);
}

.hero-kicker {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(230, 30, 50, 0.62);
  border-radius: var(--radius);
  margin-bottom: 16px;
  padding: 8px 11px;
  background: rgba(230, 30, 50, 0.14);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 950;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 28px;
  color: #f0ebe3;
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.55;
}

.hero-copy p {
  margin-bottom: 10px;
}

.hero-copy p:last-child {
  margin-bottom: 0;
  color: #ffffff;
  font-weight: 750;
}

.hero-actions,
.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #ff253d, var(--red-dark));
  color: white;
  box-shadow: 0 14px 34px rgba(230, 30, 50, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ff2f43;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.quick-benefits {
  padding: 0 clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.98), rgba(18, 18, 18, 0.95));
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(var(--max), 100%);
  margin: 0 auto;
  transform: translateY(-34px);
}

.benefit-card,
.event-item,
.doc-card,
.process-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 18, 18, 0.82);
  box-shadow: var(--shadow);
}

.benefit-card {
  position: relative;
  min-height: 148px;
  padding: 18px;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.benefit-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
  content: "";
}

.benefit-card h2 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.15;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
}

.benefit-card p + p {
  margin-top: 10px;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 700;
}

.section {
  padding: 72px clamp(18px, 5vw, 72px);
}

.section-heading {
  width: min(var(--max), 100%);
  margin: 0 auto 28px;
}

.section-heading p {
  max-width: 780px;
  color: var(--muted);
}

.section-heading.compact {
  margin-bottom: 20px;
}

.event-section,
.form-section {
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.95), rgba(9, 9, 9, 0.98)),
    linear-gradient(135deg, rgba(230, 30, 50, 0.08), transparent 46%);
}

.benefit-grid,
.event-grid,
.doc-grid,
.process-list,
.application-form {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.event-item {
  min-height: 116px;
  padding: 18px;
}

.event-item span {
  display: block;
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1.02rem;
}

.process-section {
  background:
    linear-gradient(180deg, #0d0d0d, #101010),
    linear-gradient(90deg, rgba(230, 30, 50, 0.06), transparent);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.process-list li {
  position: relative;
  min-height: 180px;
  padding: 48px 18px 18px;
  counter-increment: steps;
  overflow: hidden;
}

.process-list li::before {
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  content: counter(steps);
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(230, 30, 50, 0.32);
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list span {
  margin-top: 8px;
  color: var(--muted);
}

.docs-section {
  background:
    linear-gradient(180deg, rgba(9, 9, 9, 0.96), rgba(16, 16, 16, 0.98)),
    radial-gradient(circle at 80% 20%, rgba(230, 30, 50, 0.12), transparent 32%);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.doc-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 18px;
  text-decoration: none;
}

.doc-card:hover,
.doc-card:focus-visible {
  border-color: rgba(230, 30, 50, 0.62);
}

.doc-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.2;
}

.doc-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.doc-card .doc-version {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.doc-card .doc-action {
  margin-top: 12px;
  color: var(--amber);
  font-weight: 800;
}

.application-form {
  display: grid;
  gap: 18px;
}

.security-field,
.security-field * {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.security-field[hidden] {
  display: none !important;
}

fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(180deg, rgba(32, 32, 32, 0.82), rgba(17, 17, 17, 0.95)),
    var(--panel);
}

legend {
  padding: 0 8px;
  font-weight: 900;
  color: var(--text);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  align-content: start;
}

.field-help,
.health-note,
.consent-intro {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.team-field {
  grid-template-rows: auto auto minmax(2.35em, auto);
}

.team-field .field-help {
  display: block;
  max-width: 34rem;
  min-height: 2.35em;
  font-size: 0.8rem;
  line-height: 1.32;
  color: rgba(245, 245, 245, 0.64);
}

.field-help-placeholder {
  visibility: hidden;
}

.health-note {
  max-width: 780px;
  border-left: 3px solid var(--red);
  padding: 12px 14px;
  background: rgba(230, 30, 50, 0.08);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #0b0b0b;
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: #77716b;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--text);
}

.standalone-check {
  max-width: 760px;
}

.checkbox-line input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--red);
  flex: 0 0 auto;
}

.consent-list {
  display: grid;
  gap: 12px;
}

.consent-intro {
  margin-bottom: 14px;
}

.consent-item {
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.terms-fieldset {
  border-color: rgba(230, 30, 50, 0.28);
  background:
    linear-gradient(180deg, rgba(230, 30, 50, 0.08), rgba(20, 20, 20, 0.96)),
    var(--panel);
}

.consent-item a {
  color: var(--amber);
  font-weight: 900;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.form-footer {
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--panel-strong);
}

.privacy-note {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.form-status {
  min-height: 24px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
  white-space: pre-line;
}

.form-status.success {
  border: 1px solid rgba(97, 211, 148, 0.24);
  padding: 14px;
  background: rgba(97, 211, 148, 0.08);
  color: var(--success);
}

.form-status.warning {
  color: var(--warning);
}

.form-status.error {
  color: var(--danger);
}

.export-button {
  justify-self: start;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 30px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(230, 30, 50, 0.1), transparent 34%),
    #050505;
  color: var(--muted);
}

.site-footer strong,
.site-footer span,
.site-footer a {
  display: block;
}

.site-footer strong {
  color: var(--text);
  font-size: 1rem;
}

.site-footer address,
.footer-links {
  display: grid;
  gap: 4px;
  margin: 0;
  font-style: normal;
  text-align: right;
}

.site-footer a,
.legal-document a {
  color: var(--amber);
  overflow-wrap: anywhere;
}

.footer-links {
  gap: 8px;
}

.legal-main {
  min-height: 100svh;
  padding: 118px clamp(18px, 5vw, 72px) 64px;
}

.legal-page .legal-main {
  padding-top: clamp(24px, 5vw, 42px);
}

.legal-document {
  width: min(980px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 46px);
  background:
    linear-gradient(180deg, rgba(23, 23, 23, 0.96), rgba(12, 12, 12, 0.98)),
    linear-gradient(135deg, rgba(230, 30, 50, 0.08), transparent 42%);
  box-shadow: var(--shadow);
}

.legal-document h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.legal-document h2 {
  margin: 34px 0 12px;
  font-size: clamp(1.28rem, 2.6vw, 1.85rem);
  line-height: 1.1;
}

.legal-document p,
.legal-document li,
.legal-document dd {
  color: var(--muted);
  line-height: 1.65;
}

.legal-document ul {
  padding-left: 20px;
}

.legal-document li {
  margin-bottom: 6px;
}

.legal-details {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

.legal-details div {
  border-left: 3px solid var(--red);
  padding-left: 14px;
}

.legal-details dt {
  color: var(--text);
  font-weight: 850;
}

.legal-details dd {
  margin: 4px 0 0;
}

.legal-back {
  margin-bottom: 28px;
}

.legal-back.bottom {
  margin: 34px 0 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .benefit-grid,
  .event-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .brand small {
    display: none;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 7px 8px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 82svh;
    padding: 112px 18px 38px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.42), rgba(5, 5, 5, 0.96) 74%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.75), rgba(5, 5, 5, 0.2));
  }

  .hero-media {
    background-position: 62% center;
  }

  .benefit-grid,
  .hero-facts,
  .form-grid,
  .event-grid,
  .process-list,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    transform: none;
    padding-top: 14px;
  }

  .section {
    padding: 54px 18px;
  }

  .form-footer {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .site-footer address,
  .footer-links {
    width: 100%;
    text-align: left;
  }

  .legal-main {
    padding: 104px 18px 46px;
  }
}

@media (max-width: 460px) {
  .site-header {
    gap: 10px;
    padding: 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 0.78rem;
  }

  .nav-links a {
    font-size: 0.76rem;
  }

  h1 {
    font-size: clamp(2.05rem, 9.2vw, 2.35rem);
  }

  .hero-copy {
    font-size: 0.98rem;
  }
}
