:root {
  color-scheme: dark;
  --bg: #0c1117;
  --panel: #151d27;
  --panel-2: #1d2936;
  --text: #f5f8fb;
  --muted: #a9b5c3;
  --line: rgba(255, 255, 255, 0.1);
  --green: #31c46b;
  --green-dark: #13904a;
  --blue: #2f8ee8;
  --red: #ff4d5d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 20%, rgba(49, 196, 107, 0.14), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(47, 142, 232, 0.16), transparent 28%),
    linear-gradient(180deg, #0c1117 0%, #101721 52%, #0b1016 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(12, 17, 23, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  object-fit: cover;
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
}

.nav-cta,
.button.primary {
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color: #041108;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 82px);
  min-height: calc(100vh - 74px);
  padding: clamp(36px, 6vw, 86px) clamp(20px, 5vw, 72px) 42px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 620px;
  font-size: 18px;
}

.inline-link {
  color: var(--green);
  font-weight: 800;
}

.username-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(49, 196, 107, 0.3);
  border-radius: 8px;
  background: rgba(49, 196, 107, 0.08);
  color: var(--text);
  font-weight: 800;
}

.username-badge img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin: 30px 0 22px;
}

.invite-form {
  width: min(100%, 520px);
  margin: 0 0 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.invite-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.invite-row input,
.invite-row button {
  min-height: 48px;
  border-radius: 8px;
  font: inherit;
}

.invite-row input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.invite-row input:focus {
  border-color: rgba(49, 196, 107, 0.78);
  box-shadow: 0 0 0 3px rgba(49, 196, 107, 0.16);
}

.invite-row button {
  border: 0;
  background: var(--blue);
  color: var(--text);
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.invite-form p {
  margin: 10px 0 0;
  font-size: 13px;
}

.trust-row span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  display: grid;
  place-items: center;
}

.phone-shell {
  width: min(390px, 92vw);
  min-height: 620px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #0f1720;
  box-shadow: var(--shadow);
}

.phone-status {
  width: 92px;
  height: 6px;
  margin: 6px auto 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.bot-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.bot-profile img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.bot-profile div {
  display: grid;
  gap: 3px;
}

.bot-profile strong {
  font-size: 15px;
}

.bot-profile span {
  color: var(--muted);
  font-size: 13px;
}

.chat-card,
.button-grid span {
  border-radius: 12px;
  background: var(--panel-2);
}

.chat-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.chat-card.first {
  margin-bottom: 18px;
}

.chat-card.second {
  margin-top: 18px;
  border-left: 4px solid var(--green);
}

.chat-title {
  font-weight: 800;
}

.chat-line {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.chat-line.short {
  width: 58%;
}

.button-grid {
  display: grid;
  gap: 10px;
}

.button-grid span {
  padding: 17px 16px;
  font-weight: 800;
}

.button-grid span:nth-child(odd) {
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color: #061108;
}

.notice,
.quick-panel,
.section,
.split-section,
.footer {
  margin: 0 clamp(20px, 5vw, 72px);
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 18px;
}

.quick-panel article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.quick-panel strong {
  font-size: 16px;
}

.quick-panel span {
  color: var(--muted);
  line-height: 1.55;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 18px 20px;
  border: 1px solid rgba(49, 196, 107, 0.32);
  border-radius: 8px;
  background: rgba(49, 196, 107, 0.08);
}

.notice span {
  color: var(--muted);
}

.section,
.split-section {
  padding: clamp(62px, 8vw, 108px) 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.steps article,
.referral-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.steps article {
  padding: 22px;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 34px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 18px;
  border-radius: 8px;
  background: var(--panel);
  font-weight: 700;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.safety-grid span {
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  line-height: 1.55;
}

.accent {
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(49, 196, 107, 0.12), rgba(47, 142, 232, 0.12));
  padding-left: clamp(18px, 4vw, 44px);
  padding-right: clamp(18px, 4vw, 44px);
}

.referral-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
}

.referral-card p {
  max-width: 720px;
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer a {
  color: var(--green);
  font-weight: 800;
}

.mobile-start {
  display: none;
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    order: 2;
  }

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

  .quick-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 14px 16px;
  }

  .brand span:last-child {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-cta {
    min-height: 42px;
    padding: 0 14px;
  }

  h1 {
    font-size: 40px;
  }

  .phone-shell {
    min-height: 520px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .referral-card {
    align-items: stretch;
    flex-direction: column;
  }

  .invite-row,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  body {
    padding-bottom: 78px;
  }

  .mobile-start {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 20;
    display: grid;
    min-height: 54px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--green), var(--green-dark));
    color: #041108;
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  }
}
