.hero {
  padding: 8px 0 18px;
  position: relative;
}

.hero .container {
  max-width: none;
  padding: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 22px;
  align-items: stretch;
}

.hero .copy,
.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero .copy {
  padding: clamp(28px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 249, 255, 0.84)),
    var(--card-strong);
}

.hero-panel {
  padding: 26px 24px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.92), rgba(241, 247, 255, 0.82)),
    var(--card-strong);
}

.hero .copy::before,
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.32), rgba(25, 183, 223, 0.18), transparent 68%);
}

.hero-kicker {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero-home h1 {
  display: flex;
  flex-direction: column;
  gap: 0.12em;
}

.hero-home .hero-title-line {
  display: block;
}

.hero h1 .accent-m {
  background: linear-gradient(135deg, var(--primary), #73a5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .accent-p {
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .dot {
  color: color-mix(in srgb, var(--primary) 60%, transparent);
}

.hero .sub {
  max-width: 60ch;
  margin: 0;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero .actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-proof-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-note {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.hero-panel__eyebrow {
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel__title {
  margin: 0 0 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-panel__steps {
  display: grid;
  gap: 14px;
}

.hero-panel__step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.hero-panel__step-num {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: #081018;
  background: var(--accent);
}

.hero-panel__step-title,
.hero-panel__metric-title {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-panel__step-sub,
.hero-panel__metric-sub {
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.7;
}

.hero-panel__metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.hero-panel__metric {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.hero-panel__metric-title {
  margin-bottom: 6px;
  font-size: 1rem;
}

.hero-panel__metric-sub {
  font-size: 0.88rem;
}

.tg-hero-emoji {
  font-size: 1rem;
}

html[data-bs-theme="dark"] .hero .copy,
html[data-bs-theme="dark"] .hero-panel {
  background:
    linear-gradient(180deg, rgba(18, 24, 21, 0.96), rgba(12, 17, 14, 0.94)),
    var(--card-strong);
}

html[data-bs-theme="dark"] .hero .copy::before,
html[data-bs-theme="dark"] .hero-panel::before {
  background: linear-gradient(90deg, rgba(77, 134, 255, 0.32), rgba(42, 199, 226, 0.18), transparent 68%);
}

@media (min-width: 992px) {
  .hero-home {
    min-height: calc(78vh - 64px);
    display: flex;
    align-items: stretch;
  }

  .hero-home .hero-inner {
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 575.98px) {
  .hero {
    padding: 4px 0 14px;
  }

  .hero .copy,
  .hero-panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .hero .actions .btn {
    width: 100%;
  }

  .hero-panel__metric-grid {
    grid-template-columns: 1fr;
  }
}
