:root {
  --background: #0c0c11;
  --surface: #14141b;
  --surface-soft: #1a1a23;
  --surface-border: rgba(255, 255, 255, 0.08);
  --text: #f7f7fa;
  --text-muted: #aaaab6;
  --primary: #d62976;
  --primary-2: #962fbf;
  --primary-3: #4f5bd5;
  --orange: #fa7e1e;
  --yellow: #feda75;
  --success: #2ecc71;
  --danger: #ff6b6b;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(150, 47, 191, 0.13), transparent 30%),
    var(--background);
  line-height: 1.8;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 17, 0.76);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--yellow), var(--orange), var(--primary), var(--primary-2), var(--primary-3));
  box-shadow: 0 8px 28px rgba(214, 41, 118, 0.28);
}

.brand-name {
  font-size: 1.15rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.main-nav a {
  transition: color 0.2s ease;
}

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

.nav-cta {
  color: var(--text) !important;
  padding: 9px 15px;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
}

.hero-glow-one {
  background: var(--primary);
  top: -220px;
  right: -160px;
}

.hero-glow-two {
  background: var(--primary-3);
  bottom: -280px;
  left: -160px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 41, 118, 0.24);
  color: #f2a9c8;
  background: rgba(214, 41, 118, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero h1 {
  max-width: 700px;
  margin: 22px 0 20px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.gradient-text {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--primary), #be6dff);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  max-width: 650px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--primary), var(--primary-2));
  box-shadow: 0 14px 32px rgba(214, 41, 118, 0.2);
}

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

.hero-note {
  margin-top: 18px;
  color: #7f7f8b;
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.phone-card {
  width: min(100%, 390px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    #111117;
  box-shadow: var(--shadow);
}

.phone-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--surface-border);
}

.phone-topbar div {
  display: flex;
  flex-direction: column;
}

.phone-topbar strong {
  font-size: 0.9rem;
}

.phone-topbar small {
  color: var(--text-muted);
}

.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}

.avatar-gradient {
  background: linear-gradient(135deg, var(--yellow), var(--orange), var(--primary), var(--primary-2));
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(46, 204, 113, 0.08);
}

.conversation {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 18px;
  background:
    radial-gradient(circle at 80% 20%, rgba(150, 47, 191, 0.08), transparent 26%),
    radial-gradient(circle at 20% 80%, rgba(79, 91, 213, 0.08), transparent 30%);
}

.message {
  max-width: 84%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 0.87rem;
}

.message small {
  opacity: 0.65;
  font-size: 0.7rem;
}

.incoming {
  align-self: flex-start;
  border-bottom-right-radius: 6px;
  background: #24242d;
}

.outgoing {
  align-self: flex-end;
  border-bottom-left-radius: 6px;
  background: linear-gradient(135deg, #6f35b6, var(--primary));
}

.smart-reply {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(214, 41, 118, 0.2);
  border-radius: 16px;
  background: rgba(214, 41, 118, 0.07);
}

.smart-reply div {
  display: flex;
  flex-direction: column;
}

.smart-reply strong {
  font-size: 0.84rem;
}

.smart-reply small {
  color: var(--text-muted);
}

.spark {
  color: #ff9bc9;
  font-size: 1.2rem;
}

.phone-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 10px 16px;
  border-top: 1px solid var(--surface-border);
  color: #777784;
  font-size: 0.76rem;
  text-align: center;
}

.phone-footer .active {
  color: #ff80b5;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: rgba(24, 24, 33, 0.92);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.floating-card div {
  display: flex;
  flex-direction: column;
}

.floating-card strong {
  font-size: 0.8rem;
}

.floating-card small {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.floating-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.floating-card-comments {
  top: 90px;
  left: -28px;
}

.floating-card-ai {
  right: -35px;
  bottom: 90px;
}

.section {
  padding: 100px 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.015);
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}

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

.section-heading h2,
.registration-copy h2 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.35;
}

.section-heading p,
.registration-copy > p {
  margin: 0;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card,
.step-card,
.registration-card {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.feature-card {
  padding: 26px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 14px;
  color: #ffb6d4;
  background: rgba(214, 41, 118, 0.09);
  font-size: 1.3rem;
}

.feature-card h3,
.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p,
.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  padding: 26px;
}

.step-number {
  display: block;
  margin-bottom: 34px;
  color: #ff8fbe;
  font-size: 1.7rem;
  font-weight: 800;
}

.registration-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 70px;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  color: #888895;
  font-size: 0.85rem;
}

.privacy-note p {
  margin: 0;
}

.registration-card {
  min-height: 388px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #dcdce3;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  height: 52px;
  outline: 0;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--text);
  background: #0e0e14;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input:focus {
  border-color: rgba(214, 41, 118, 0.65);
  box-shadow: 0 0 0 4px rgba(214, 41, 118, 0.08);
}

.form-group input::placeholder {
  color: #5f5f6b;
}

.instagram-input {
  position: relative;
}

.instagram-input span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #7d7d89;
}

.instagram-input input {
  direction: ltr;
  text-align: left;
  padding-left: 38px;
}

.field-error {
  min-height: 20px;
  display: block;
  margin-top: 5px;
  color: var(--danger);
  font-size: 0.74rem;
}

.submit-button {
  width: 100%;
  margin-top: 4px;
}

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.button-loader {
  width: 18px;
  height: 18px;
  display: none;
  margin-right: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.submit-button.is-loading .button-loader {
  display: inline-block;
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 0.82rem;
  text-align: center;
}

.success-state {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.success-state[hidden] {
  display: none;
}

.success-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--primary), var(--primary-2));
  font-size: 1.7rem;
  font-weight: 800;
}

.success-state h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.success-state p {
  max-width: 420px;
  margin: 0;
  color: var(--text-muted);
}

.text-button {
  margin-top: 18px;
  border: 0;
  padding: 8px 10px;
  color: #ff9bc9;
  background: transparent;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #777784;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.82rem;
}

.footer-brand {
  color: var(--text);
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .registration-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-description,
  .hero h1 {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .hero-visual {
    min-height: 520px;
  }

  .registration-copy {
    text-align: center;
  }

  .privacy-note {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 66px;
  }

  .main-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 64px 0 75px;
  }

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

  .hero-description {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
    padding: 20px 0 10px;
  }

  .floating-card {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

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

  .registration-card {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* English/LTR adjustments */
.instagram-input span {
  left: 16px;
  right: auto;
}

.instagram-input input {
  direction: ltr;
  text-align: left;
  padding-left: 38px;
  padding-right: 14px;
}

.button-loader {
  margin-right: 0;
  margin-left: 10px;
}
