.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 88px 20px 100px;
  background:
    radial-gradient(
      circle at 8% 8%,
      rgba(1, 162, 0, 0.15),
      transparent 31%
    ),
    radial-gradient(
      circle at 92% 82%,
      rgba(1, 162, 0, 0.1),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #f4fff5 0%,
      #ffffff 48%,
      #f7faf7 100%
    );
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(
      rgba(1, 162, 0, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(1, 162, 0, 0.05) 1px,
      transparent 1px
    );
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.background-decoration {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.background-decoration-one {
  top: -210px;
  right: -170px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(1, 162, 0, 0.14);
  box-shadow:
    0 0 0 75px rgba(1, 162, 0, 0.025),
    0 0 0 150px rgba(1, 162, 0, 0.018);
}

.background-decoration-two {
  bottom: -260px;
  left: -220px;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(1, 162, 0, 0.1);
  box-shadow:
    0 0 0 85px rgba(1, 162, 0, 0.022),
    0 0 0 170px rgba(1, 162, 0, 0.014);
}

.hero-container {
  width: min(100%, var(--container));
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  align-items: center;
  gap: clamp(55px, 8vw, 110px);
  margin: 0 auto;
}

.hero-content h1 {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--text);
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.97;
}

.hero-content h1 span {
  color: var(--primary-dark);
}

.hero-introduction {
  max-width: 690px;
  margin-bottom: 34px;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.82;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 37px;
}

.availability-card {
  max-width: 610px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(1, 162, 0, 0.2);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(16px);
}

.availability-indicator {
  position: relative;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 7px rgba(1, 162, 0, 0.1);
}

.availability-label {
  margin-bottom: 1px;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.availability-message {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}

.hero-preview {
  position: relative;
}

.hero-preview::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% -9% -8% 12%;
  border-radius: 42px;
  background: rgba(1, 162, 0, 0.12);
  filter: blur(50px);
}

.preview-window {
  overflow: hidden;
  border: 1px solid rgba(1, 162, 0, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-green);
  backdrop-filter: blur(20px);
  transform: rotate(1deg);
}

.preview-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.preview-brand-icon,
.preview-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background:
    linear-gradient(
      135deg,
      var(--primary) 0%,
      var(--primary-dark) 100%
    );
  color: #ffffff;
  font-weight: 800;
}

.preview-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.preview-brand-name {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
}

.preview-brand-status {
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 600;
}

.preview-menu {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.preview-conversation {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 22px;
  background:
    linear-gradient(
      160deg,
      rgba(247, 250, 247, 0.75),
      rgba(255, 255, 255, 0.94)
    );
}

.preview-message {
  max-width: 88%;
}

.preview-message p {
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.65;
}

.preview-message-user {
  align-self: flex-end;
  padding: 12px 15px;
  border-radius: 17px 17px 5px 17px;
  background: var(--primary-soft);
}

.preview-message-assistant {
  align-self: flex-start;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.preview-message-assistant > div {
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 5px 17px 17px 17px;
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.035);
}

.preview-avatar {
  width: 31px;
  height: 31px;
  margin-top: 2px;
  border-radius: 10px;
  font-size: 0.75rem;
}

.preview-composer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 18px 18px;
  padding: 13px 14px 13px 17px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #ffffff;
  color: #8a948d;
  font-size: 0.83rem;
  box-shadow: var(--shadow-small);
}

.preview-send {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
}

.features {
  padding: 110px 20px;
  background: #ffffff;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(2.1rem, 4vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.section-heading > p {
  font-size: 1.02rem;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 31px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--card-background);
  box-shadow: var(--shadow-small);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(1, 162, 0, 0.055);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(1, 162, 0, 0.32);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  min-width: 44px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.feature-card p {
  font-size: 0.94rem;
  line-height: 1.75;
}

.cta-section {
  padding: 30px 20px 110px;
  background: #ffffff;
}

.cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 52px 56px;
  border: 1px solid rgba(1, 162, 0, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(1, 162, 0, 0.14),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #effff0 0%,
      #ffffff 70%
    );
  box-shadow: var(--shadow-medium);
}

.cta-card::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -150px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(1, 162, 0, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(1, 162, 0, 0.025),
    0 0 0 110px rgba(1, 162, 0, 0.018);
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  max-width: 680px;
  margin-bottom: 13px;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.cta-card p {
  font-size: 1rem;
}

.cta-card .button {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .hero {
    padding-top: 70px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h1,
  .hero-introduction {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions,
  .availability-card {
    justify-content: center;
  }

  .hero-preview {
    width: min(100%, 610px);
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
  }

  .feature-card {
    text-align: center;
  }

  .feature-card p {
    max-width: 540px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .features {
    padding-top: 85px;
    padding-bottom: 85px;
  }

  .cta-section {
    padding-bottom: 85px;
  }

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
    padding: 38px 32px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: 58px 16px 74px;
  }

  .hero-content h1 {
    margin-bottom: 21px;
    font-size: clamp(2.8rem, 14vw, 4.3rem);
    line-height: 0.99;
  }

  .hero-introduction {
    margin-bottom: 28px;
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .availability-card {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .availability-indicator {
    margin-top: 6px;
  }

  .preview-window {
    border-radius: 22px;
    transform: none;
  }

  .preview-header {
    min-height: 70px;
    padding: 14px 16px;
  }

  .preview-conversation {
    min-height: 370px;
    padding: 21px 16px;
  }

  .preview-message {
    max-width: 94%;
  }

  .preview-composer {
    margin: 0 13px 13px;
  }

  .features {
    padding: 72px 16px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .feature-grid {
    gap: 16px;
  }

  .feature-card {
    padding: 26px 21px;
    border-radius: 22px;
  }

  .cta-section {
    padding: 15px 16px 72px;
  }

  .cta-card {
    padding: 31px 24px;
    border-radius: 24px;
  }

  .cta-card .button {
    width: 100%;
  }
}