.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  padding: 40px 0 32px;
  scroll-margin-top: 72px;
  background:
    radial-gradient(circle at 50% -8%, rgba(49, 139, 255, 0.24), transparent 28%),
    linear-gradient(180deg, #050619 0%, #07081c 48%, #050719 100%);
  box-shadow: var(--shadow-panel);
}

body[data-theme="day"] .home-hero {
  background:
    radial-gradient(circle at 50% -8%, rgba(79, 140, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f4f7fb 54%, #eef3f9 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(120, 169, 255, 0.18) 0,
      rgba(120, 169, 255, 0.18) 2px,
      rgba(5, 14, 40, 0) 2px,
      rgba(5, 14, 40, 0) 8px
    );
  opacity: 0.56;
  pointer-events: none;
}

body[data-theme="day"] .home-hero::before {
  opacity: 0.08;
}

.home-hero__ascii-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: auto;
  touch-action: none;
  z-index: 1;
}

.home-hero__ascii-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.home-hero__center {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 700px;
  padding: 88px 24px 72px;
}

.home-hero__stack {
  width: min(100%, 820px);
  display: grid;
  justify-items: center;
  text-align: center;
}

.home-hero__intro {
  position: relative;
  display: grid;
  justify-items: center;
  margin-bottom: 30px;
}

.home-hero__mark {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: clamp(44px, 7.2vw, 82px);
  letter-spacing: 0.08em;
  font-weight: 600;
  line-height: 1;
  color: #f7fbff;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.68),
    0 0 18px rgba(181, 215, 255, 0.62),
    0 0 36px rgba(120, 169, 255, 0.58),
    0 0 72px rgba(86, 137, 255, 0.46),
    0 0 120px rgba(74, 124, 255, 0.34),
    0 0 170px rgba(74, 124, 255, 0.22);
}

body[data-theme="day"] .home-hero__mark {
  color: #17263a;
  text-shadow:
    0 0 10px rgba(79, 140, 255, 0.16),
    0 0 24px rgba(20, 184, 166, 0.1);
}

body[data-theme="day"] .home-hero__offer {
  color: #17263a;
  text-shadow: 0 0 18px rgba(79, 140, 255, 0.12);
}

.home-hero__offer {
  margin: 0 0 10px;
  max-width: 720px;
  font-family: var(--font-mono);
  font-size: 34px;
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.52),
    0 0 18px rgba(181, 215, 255, 0.48),
    0 0 34px rgba(120, 169, 255, 0.44),
    0 0 68px rgba(86, 137, 255, 0.34),
    0 0 110px rgba(74, 124, 255, 0.24);
}

.home-hero__cards {
  width: min(100%, 520px);
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-card {
  display: grid;
  gap: 12px;
  text-align: left;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--color-accent-primary) 20%, var(--color-border-subtle));
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--color-accent-primary) 7%, transparent), transparent 44%),
    color-mix(in srgb, var(--color-surface-2) 58%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 6%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-card:first-child {
  padding-top: 14px;
  padding-bottom: 14px;
}

.hero-card + .hero-card {
  border-top: 1px solid color-mix(in srgb, var(--color-accent-primary) 20%, var(--color-border-subtle));
  padding-top: 14px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--color-accent-violet) 7%, transparent), transparent 44%),
    color-mix(in srgb, var(--color-surface-2) 58%, transparent);
}

.hero-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text-primary);
}

.hero-card__actions,
.hero-card__form {
  display: grid;
  gap: 10px;
}

.hero-card__link,
.hero-card__submit {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--color-accent-primary) 28%, var(--color-border-subtle));
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--color-accent-primary) 9%, var(--color-surface-2)), color-mix(in srgb, var(--color-accent-violet) 5%, var(--color-surface-2)));
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 650;
  justify-content: center;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 8%, transparent);
}

.hero-card__link::before,
.hero-card__submit::before {
  content: none;
}

.hero-card__link--accent,
.hero-card__submit {
  border-color: color-mix(in srgb, var(--color-accent-primary) 70%, var(--color-border-strong));
  background: linear-gradient(90deg, var(--color-accent-primary) 0%, var(--color-accent-green) 56%, var(--color-accent-violet) 100%);
  color: var(--color-text-on-accent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 22%, transparent),
    0 12px 28px color-mix(in srgb, var(--color-accent-primary) 14%, transparent);
}

.hero-card__link:hover,
.hero-card__submit:hover,
.hero-card__link--accent:hover,
.hero-card__submit:hover {
  border-color: var(--color-focus-ring);
  color: var(--color-text-primary);
  transform: translateY(-1px);
}

.hero-card__field {
  display: grid;
  gap: 6px;
}

.hero-card__field--inline {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--color-accent-primary) 20%, var(--color-border-subtle));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-surface-2) 68%, transparent);
}

.hero-card__field--inline:has(select)::after {
  content: none;
}

.hero-card__label {
  flex: 0 0 112px;
  min-width: 112px;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-card__field--inline .hero-card__label {
  margin: 0;
}

.hero-card__field--inline select,
.hero-card__field--inline input:not([type="checkbox"]),
.hero-card__subjects {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.hero-card__field--inline select,
.hero-card__field--inline input:not([type="checkbox"]) {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--color-accent-primary) 34%, var(--color-border-subtle));
  border-radius: 10px;
  background: #02050a;
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 5%, transparent),
    inset 0 0 16px color-mix(in srgb, var(--color-accent-primary) 5%, transparent);
}

.hero-card__field--inline select {
  appearance: none;
  cursor: pointer;
  flex: 1 1 auto;
  width: 100%;
  padding-right: 12px;
  padding-left: 38px;
  text-align: left;
  text-align-last: left;
  border-color: color-mix(in srgb, var(--color-accent-primary) 64%, var(--color-border-strong));
  background-color: #02050a;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5L7 9L11 5' stroke='%2353d7ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 14px 14px;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 7%, transparent),
    0 0 0 1px color-mix(in srgb, var(--color-accent-primary) 12%, transparent),
    0 0 18px color-mix(in srgb, var(--color-accent-primary) 10%, transparent);
}

.hero-card__field--inline input:not([type="checkbox"])::placeholder {
  color: color-mix(in srgb, var(--color-text-muted) 72%, transparent);
  opacity: 1;
}

.hero-card__field--inline select:focus-visible,
.hero-card__field--inline input:not([type="checkbox"]):focus-visible {
  outline-offset: 4px;
}

.hero-card__field--inline select option {
  background: #0b1d33;
  color: var(--color-text-primary);
  text-align: right;
}

.hero-card__subjects {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
}

.hero-card__subject-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.hero-card__subject-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-accent-primary);
  flex: 0 0 auto;
}

body[data-theme="day"] .home-hero__cards {
  border-color: transparent;
  background: transparent;
}

body[data-theme="day"] .hero-card + .hero-card,
body[data-theme="day"] .hero-card__link,
body[data-theme="day"] .hero-card__submit,
body[data-theme="day"] .hero-card__field--inline {
  border-color: rgba(103, 132, 173, 0.28);
}

body[data-theme="day"] .hero-card {
  border-color: rgba(103, 132, 173, 0.26);
  background:
    linear-gradient(145deg, rgba(79, 140, 255, 0.055), transparent 44%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(40, 60, 95, 0.1);
}

body[data-theme="day"] .hero-card + .hero-card {
  background:
    linear-gradient(145deg, rgba(124, 92, 255, 0.045), transparent 44%),
    rgba(255, 255, 255, 0.78);
}

body[data-theme="day"] .hero-card h2 {
  color: var(--color-text-primary);
}

body[data-theme="day"] .hero-card__link,
body[data-theme="day"] .hero-card__submit,
body[data-theme="day"] .hero-card__field--inline select,
body[data-theme="day"] .hero-card__field--inline input:not([type="checkbox"]),
body[data-theme="day"] .hero-card__subject-option {
  color: #24364e;
}

body[data-theme="day"] .hero-card__field--inline {
  background: rgba(255, 255, 255, 0.68);
}

body[data-theme="day"] .hero-card__label {
  color: var(--color-text-muted);
}

body[data-theme="day"] .hero-card__field--inline select option {
  background: var(--color-surface-1);
  color: var(--color-text-primary);
}

body[data-theme="day"] .hero-card__field--inline select,
body[data-theme="day"] .hero-card__field--inline input:not([type="checkbox"]) {
  background-color: #ffffff;
  border-color: rgba(79, 140, 255, 0.34);
  color: #17263a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(79, 140, 255, 0.06);
}

body[data-theme="day"] .hero-card__field--inline select {
  border-color: rgba(79, 140, 255, 0.52);
}

body[data-theme="day"] .hero-card__field--inline input:not([type="checkbox"])::placeholder {
  color: rgba(95, 113, 136, 0.82);
}

body[data-theme="day"] .hero-card__link:hover,
body[data-theme="day"] .hero-card__submit:hover,
body[data-theme="day"] .hero-card__link--accent:hover {
  color: var(--color-text-primary);
}

body[data-theme="day"] .hero-card__link--accent,
body[data-theme="day"] .hero-card__submit {
  border-color: rgba(79, 140, 255, 0.48);
  background: linear-gradient(90deg, #4f8cff 0%, #19b7aa 56%, #7c5cff 100%);
  color: #ffffff;
}

.home-after-hero {
  background:
    radial-gradient(circle at 14% 0%, rgba(55, 155, 255, 0.1), transparent 24%),
    linear-gradient(180deg, #050619 0%, #07081c 48%, #050719 100%);
  border-top: 1px solid rgba(55, 155, 255, 0.16);
  color: #f2f0ff;
  font-family: var(--font-mono);
}

body[data-theme="day"] .home-after-hero {
  background:
    radial-gradient(circle at 14% 0%, rgba(66, 158, 255, 0.1), transparent 24%),
    linear-gradient(180deg, #f7faff 0%, #eef4fc 100%);
  border-top-color: rgba(47, 130, 225, 0.18);
  color: #101528;
}

.home-after-hero__inner {
  width: min(100% - 64px, 880px);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 78px) 0 clamp(60px, 8vw, 88px);
}

.home-editorial-section {
  display: grid;
  gap: clamp(22px, 3.5vw, 34px);
  justify-items: start;
  padding: clamp(26px, 4.5vw, 46px) 0;
  border-bottom: 1px solid rgba(143, 170, 255, 0.14);
}

body[data-theme="day"] .home-editorial-section {
  border-bottom-color: rgba(109, 132, 167, 0.24);
}

.home-editorial-section:first-child {
  padding-top: 0;
}

.home-editorial-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.home-editorial-section--compact {
  gap: 20px;
}

.home-editorial-section__heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-editorial-section__index {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #8c3cff;
  border-radius: 999px;
  color: #9c55ff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

body[data-theme="day"] .home-editorial-section__index {
  border-color: #4f8cff;
  color: #2f6fe4;
}

.home-editorial-section h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0.1em;
}

.home-editorial-section__body {
  display: grid;
  gap: 24px;
  width: min(100%, 760px);
}

.home-editorial-section__body p,
.home-review blockquote,
.home-review figcaption {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.78;
  font-weight: 400;
}

.home-editorial-section__body p,
.home-review blockquote {
  color: rgba(242, 240, 255, 0.9);
}

body[data-theme="day"] .home-editorial-section__body p,
body[data-theme="day"] .home-review blockquote {
  color: #24364e;
}

.home-socials-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 0;
  padding: 0;
}

.home-socials-list a {
  color: #3db5ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.home-socials-list a:hover {
  color: #9c55ff;
}

body[data-theme="day"] .home-socials-list a {
  color: #246fce;
}

.home-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
  width: min(100%, 760px);
}

.home-review {
  display: grid;
  align-content: start;
  gap: 18px;
  margin: 0;
  min-width: 0;
}

.home-review figcaption {
  color: rgba(246, 244, 255, 0.72);
}

body[data-theme="day"] .home-review figcaption {
  color: #607089;
}

.home-editorial-cta {
  justify-items: start;
}

.home-editorial-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.home-editorial-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 9px 18px;
  border: 2px solid currentColor;
  border-radius: 12px;
  color: #f6f4ff;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.home-editorial-button:hover {
  background: #f6f4ff;
  border-color: #f6f4ff;
  color: #050619;
}

body[data-theme="day"] .home-editorial-button {
  color: #101827;
}

body[data-theme="day"] .home-editorial-button:hover {
  background: #101827;
  border-color: #101827;
  color: #ffffff;
}

@media (max-width: 900px) {
  .home-hero,
  .home-hero__center {
    min-height: auto;
  }

  .home-hero__center {
    padding: 72px 24px 56px;
  }

  .hero-card__field--inline {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 0;
    padding: 10px 12px;
  }

  .hero-card__label {
    flex: 0 0 auto;
    min-width: 0;
  }

  .hero-card__field--inline select,
  .hero-card__field--inline input:not([type="checkbox"]) {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .home-reviews {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-hero__cards {
    width: min(100%, 360px);
    padding: 0;
  }

  .hero-card {
    padding: 12px;
  }

  .home-after-hero__inner {
    width: min(100% - 32px, 880px);
  }

  .home-editorial-section__heading {
    align-items: flex-start;
  }

  .home-editorial-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .home-editorial-button {
    width: 100%;
  }
}
