.page-home {
  --home-line: rgba(0, 200, 255, 0.13);
  --home-green-line: rgba(57, 255, 20, 0.5);
  overflow-x: clip;
  background:
    linear-gradient(rgba(0, 200, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--text);
  font-family: var(--font-body);
}
.page-home .home-section {
  position: relative;
  padding: 64px 0;
  overflow: hidden;
}
.page-home .home-section__head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.page-home .home-section__no {
  font-family: var(--font-head);
  font-size: clamp(72px, 14vw, 120px);
  line-height: 0.8;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.page-home .home-section__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(26px, 6vw, 48px);
  line-height: 1.08;
  color: var(--title);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home .home-hero {
  position: relative;
  padding: 56px 0 96px;
  overflow: hidden;
}
.page-home .home-breadcrumb {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--text);
}
.page-home .home-breadcrumb a {
  color: var(--title);
  text-decoration: none;
}
.page-home .home-hero__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-data);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 14px;
  color: var(--accent);
}
.page-home .home-hero__title {
  max-width: 14em;
  margin: 0 0 18px;
  padding-left: 18px;
  border-left: 6px solid var(--accent);
  font-size: clamp(34px, 8vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--title);
}
.page-home .home-hero__lead {
  max-width: 72ch;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.8;
}
.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .home-preview {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 48px;
}
@media (min-width: 640px) {
  .page-home .home-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}
.page-home .home-preview-card {
  display: flex;
  position: relative;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 20px;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.14), rgba(17, 23, 34, 0.92) 70%);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: transform 0.28s ease, border-color 0.28s ease;
}
.page-home .home-preview-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
}
.page-home .home-preview-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.page-home .home-preview-card__no {
  font-family: var(--font-data);
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
}
.page-home .home-preview-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--title);
  line-height: 1.3;
}
.page-home .home-preview-card__meta {
  font-size: 13px;
  color: var(--text);
}
.page-home .home-preview-card:last-child {
  border-color: rgba(57, 255, 20, 0.55);
}
.page-home .home-preview-card:last-child::before {
  background: var(--accent-2);
}
.page-home .home-preview-card:last-child .home-preview-card__no {
  color: var(--accent-2);
}

.page-home .home-speedline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 90px;
  pointer-events: none;
  opacity: 0.9;
}

.page-home .home-fav-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.page-home .home-fav-panel {
  padding: 28px 24px 30px;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.18), rgba(17, 23, 34, 0.95) 65%);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%, 0 calc(100% - 22px));
}
.page-home .home-fav-lead {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--title);
}
.page-home .home-fav-steps {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: favStep;
}
.page-home .home-fav-steps li {
  position: relative;
  padding: 10px 0 10px 44px;
  font-size: 15px;
  border-bottom: 1px solid rgba(0, 200, 255, 0.12);
  counter-increment: favStep;
}
.page-home .home-fav-steps li::before {
  content: counter(favStep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--font-data);
  font-size: 20px;
  color: var(--accent);
}
.page-home .home-fav-side {
  padding: 24px;
  background: var(--bg-panel);
  border-right: 4px solid var(--accent-2);
}
.page-home .home-fav-side__stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}
.page-home .home-fav-side__num {
  font-family: var(--font-data);
  font-size: 72px;
  line-height: 0.8;
  color: var(--accent-2);
}
.page-home .home-fav-side__label {
  color: var(--title);
  font-weight: 600;
}
.page-home .home-fav-side__text {
  margin: 0 0 20px;
  line-height: 1.7;
}

.page-home .home-section-02 {
  background: linear-gradient(180deg, rgba(0, 200, 255, 0.06), transparent 40%);
}
.page-home .home-section-02__grid {
  display: grid;
  gap: 26px;
  grid-template-areas:
    "content"
    "cal"
    "img"
    "img-os";
}
.page-home .home-section-02__content {
  grid-area: content;
}
.page-home .home-calendar {
  grid-area: cal;
}
.page-home .home-section-02__img {
  grid-area: img;
}
.page-home .home-section-02__img--ios {
  grid-area: img-os;
}
.page-home .home-section-02__img,
.page-home .home-section-02__img--ios {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.page-home .home-section-02__img {
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.page-home .home-section-02__img--ios {
  max-width: 280px;
  margin-inline: auto;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.page-home .home-section-02__content p {
  margin: 12px 0;
  line-height: 1.75;
}

.page-home .home-calendar {
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}
.page-home .home-calendar__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.page-home .home-calendar__heading {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--title);
}
.page-home .home-calendar__views {
  display: flex;
  gap: 4px;
}
.page-home .home-calendar__views span {
  padding: 4px 9px;
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--border);
}
.page-home .home-calendar__views span.is-active {
  color: #0A0E14;
  background: var(--grad);
  border-color: transparent;
}
.page-home .home-calendar__weeks,
.page-home .home-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.page-home .home-calendar__weeks span {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--text);
  text-align: center;
  opacity: 0.7;
}
.page-home .home-calendar__days span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font-family: var(--font-data);
  font-size: 18px;
  color: var(--title);
  border: 1px solid transparent;
  background: rgba(0, 200, 255, 0.04);
}
.page-home .home-calendar__days span.is-weekend {
  border-color: rgba(0, 200, 255, 0.28);
  color: var(--accent);
}
.page-home .home-calendar__days span.is-today {
  color: #0A0E14;
  background: var(--grad);
  font-weight: 700;
}
.page-home .home-calendar__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  font-size: 13px;
  color: var(--text);
  border-top: 1px solid rgba(0, 200, 255, 0.12);
}
.page-home .home-calendar__link {
  color: var(--accent);
  text-decoration: none;
}
.page-home .home-calendar__link:hover {
  color: var(--accent-2);
}

.page-home .home-focus-double {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.page-home .home-focus-double__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: rgba(17, 23, 34, 0.9);
  border-left: 4px solid var(--accent);
}
.page-home .home-focus-double__item:last-child {
  border-left-color: var(--accent-2);
}
.page-home .home-focus-double__time {
  font-family: var(--font-data);
  font-size: 30px;
  line-height: 1;
  color: var(--title);
}
.page-home .home-focus-double__cat {
  font-size: 13px;
  color: var(--text);
}

.page-home .lang-demo {
  margin-top: 20px;
  padding: 18px;
  background: var(--bg-panel);
  border-left: 4px solid var(--accent-2);
}
.page-home .lang-demo__label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text);
}
.page-home .lang-demo__switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-home .lang-demo__btn {
  flex: 0 0 auto;
}

.page-home .home-section-03 {
  background: var(--bg-panel);
}
.page-home .home-section-03__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.16;
}
.page-home .home-section-03__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .home-section-03 .container {
  position: relative;
  z-index: 1;
}
.page-home .home-section-03__lead,
.page-home .home-section-03__note {
  max-width: 72ch;
  line-height: 1.8;
}
.page-home .home-section-03__lead {
  margin: 0 0 18px;
  font-size: 17px;
  color: var(--title);
}
.page-home .home-section-03__note {
  margin: 0 0 24px;
}
.page-home .home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.page-home .home-team-stats {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}
.page-home .home-team-stat {
  padding: 20px;
  border: 1px solid var(--border);
  background: rgba(17, 23, 34, 0.86);
}
.page-home .home-team-stat__num {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-data);
  font-size: 52px;
  line-height: 1;
  color: var(--accent);
}
.page-home .home-team-stat__label {
  font-size: 14px;
  color: var(--text);
}
@media (min-width: 700px) {
  .page-home .home-team-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-home .home-section-04__grid {
  display: grid;
  gap: 28px;
}
.page-home .home-focus-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.page-home .home-focus p {
  margin: 0 0 18px;
  line-height: 1.8;
}
.page-home .home-focus-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.page-home .home-focus-list__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 200, 255, 0.14);
}
.page-home .home-focus-list__label {
  flex: 0 0 76px;
  font-family: var(--font-data);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.page-home .home-focus-list__link {
  color: var(--title);
  text-decoration: none;
  line-height: 1.55;
}
.page-home .home-focus-list__link:hover {
  color: var(--accent);
}

.page-home .home-section-05 {
  background: linear-gradient(180deg, rgba(57, 255, 20, 0.05), transparent 32%);
}
.page-home .home-dash {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.page-home .home-dash__metric {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(145deg, rgba(0, 200, 255, 0.16), rgba(17, 23, 34, 0.96) 70%);
  border: 1px solid rgba(0, 200, 255, 0.24);
}
.page-home .home-dash__num {
  display: block;
  font-family: var(--font-data);
  font-size: 52px;
  line-height: 0.9;
  color: var(--accent-2);
}
.page-home .home-dash__label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text);
}

.page-home .home-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(57, 255, 20, 0.4);
  background: rgba(17, 23, 34, 0.92);
}
.page-home .home-progress__label,
.page-home .home-progress__text {
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--title);
}
.page-home .home-progress__track {
  position: relative;
  height: 10px;
  background: rgba(0, 200, 255, 0.14);
  overflow: hidden;
}
.page-home .home-progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 60%;
  background: var(--grad);
}
.page-home .home-dash__note {
  max-width: 80ch;
  margin: 24px 0 0;
  line-height: 1.8;
}

.page-home .home-trustbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.08), rgba(57, 255, 20, 0.08));
}
.page-home .home-trustbar span {
  font-size: 14px;
  color: var(--title);
}

.page-home .home-exit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.page-home .home-exit-links a {
  padding: 8px 16px;
  color: var(--title);
  text-decoration: none;
  border: 1px solid rgba(0, 200, 255, 0.3);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.page-home .home-exit-links a:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

@media (min-width: 960px) {
  .page-home .home-section {
    padding: 96px 0;
  }
  .page-home .home-hero {
    padding: 72px 0 120px;
  }
  .page-home .home-preview {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
  .page-home .home-preview-card:nth-child(even) {
    transform: translateY(16px);
  }
  .page-home .home-preview-card:nth-child(3) {
    transform: translateY(8px);
  }
  .page-home .home-preview-card:nth-child(5) {
    transform: translateY(24px);
  }
  .page-home .home-fav-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }
  .page-home .home-section-02__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "content img"
      "cal img-os";
    column-gap: 44px;
  }
  .page-home .home-section-02__img {
    max-width: 560px;
  }
  .page-home .home-section-02__img--ios {
    max-width: 400px;
    margin-inline: 0 0 auto;
  }
  .page-home .home-section-02__content {
    padding-top: 8px;
  }
  .page-home .home-section-04__grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    column-gap: 44px;
  }
  .page-home .home-dash {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .home-calendar__days span.is-today {
    animation: beiboHomePulse 2.4s ease-in-out infinite;
  }
  @keyframes beiboHomePulse {
    0%, 100% {
      box-shadow: 0 0 0 rgba(0, 200, 255, 0.3);
    }
    50% {
      box-shadow: 0 0 20px rgba(57, 255, 20, 0.45);
    }
  }
}
