@font-face {
  font-family: 'Title';
  src: url('fonts/Title-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Title';
  src: url('fonts/Title-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Base';
  src: url('fonts/Base-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

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

body {
  background-color: #E2DCFF;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Base', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

/* LED grid background */
.led-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.led-grid canvas {
  width: 100%;
  height: 100%;
}

/* Page wrapper */
.page {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 75px 80px;
}

/* Logo */
.logo {
  width: 176px;
  height: 57px;
  position: relative;
  z-index: 1;
}

.logo img {
  width: 100%;
  height: 100%;
}

/* Card */
.card {
  background: #fff;
  padding: 20px;
  max-width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1;
}

/* Corner dots */
.card::before,
.card::after,
.card .corner-bl,
.card .corner-br {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #3513DE;
}

.card::before {
  top: -8px;
  left: -8px;
}

.card::after {
  top: -8px;
  right: -8px;
}

.card .corner-bl {
  bottom: -8px;
  left: -8px;
}

.card .corner-br {
  bottom: -8px;
  right: -8px;
}

/* Tag line (date, section label) */
.tag-line {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tag-star {
  font-family: 'Base', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #3513DE;
  text-transform: uppercase;
}

.tag-text {
  font-family: 'Base', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
}

/* Title */
.title-main {
  font-family: 'Title', sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 1.2;
  color: #000;
}

/* Grid lines */
.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grid-line {
  position: absolute;
  background: #3513DE;
}

.grid-line--h {
  height: 1px;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
}

.grid-line--v {
  width: 1px;
  height: 100vh;
  top: 50%;
  transform: translateY(-50%);
  margin-top: -20px;
}

/* CTA link */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding-top: 45px;
}

.cta-link__text {
  font-family: 'Base', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #3513DE;
  text-transform: uppercase;
  text-decoration: underline;
}

.cta-link__icon {
  display: flex;
  align-items: center;
  padding-top: 2px;
}

.cta-link__icon svg {
  display: block;
}

/* Section divider */
.divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

/* Section label */
.section-label {
  font-family: 'Base', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #3513DE;
  text-transform: uppercase;
}

/* Task block */
.task-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-title {
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-title__star {
  font-family: 'Base', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #3513DE;
  text-transform: uppercase;
  flex-shrink: 0;
}

.task-title__text {
  font-family: 'Base', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: #000;
}

.task-list {
  list-style: disc;
  margin-left: 21px;
  font-family: 'Base', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.6);
}

.task-list li + li {
  margin-top: 2px;
}

/* Body text */
.body-text {
  font-family: 'Base', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.6);
}

.body-text u {
  text-decoration: underline;
  text-underline-position: from-font;
}

/* Content sections */
.content-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Title block */
.title-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.title-main .highlight {
  color: #3513DE;
  background: url('arrow-vector.svg') no-repeat;
  background-size: auto 100%;
  display: inline;
  line-height: 1.15;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 6px 12px;
}

.title-main .blue {
  color: #3513DE;
}

/* Subtitle */
.subtitle {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 40px;
  color: #3513DE;
  line-height: 1.2;
}

.subtitle .diamond {
  font-weight: 400;
}

.subtitle .text {
  font-family: 'Title', serif;
  font-weight: 400;
}

/* CTA block (home) */
.cta-block {
  padding-top: 70px;
}

.cta-block__text {
  font-family: 'Base', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #3513DE;
  text-transform: uppercase;
}

/* ===== Page: Hero (home) ===== */
.hero {
  min-height: 100vh;
  height: 100vh;
  gap: 56px;
  padding: 0 80px 75px;
  overflow: hidden;
}

.hero .card {
  width: 415px;
}

/* ===== Page: Candidature ===== */
.candidature {
  gap: 48px;
}

.candidature .card {
  width: 700px;
  padding: 24px;
}

.candidature .grid-line--v {
  height: calc(100% + 320px);
}

@media (max-width: 767px) {
  .page {
    padding: 40px 8px;
  }

  .hero {
    padding: 0 8px;
  }

  .title-main {
    font-size: 42px;
  }

  .grid-line--v {
    margin-top: -60px;
  }
}
