* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #071018;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
}

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

.hero {
  min-height: 92vh;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.hero-bg {
  background:
    radial-gradient(circle at 72% 18%, rgba(91, 157, 255, 0.34), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(109, 93, 252, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(7, 16, 24, 0.08), rgba(7, 16, 24, 0.84)),
    linear-gradient(115deg, #06101a 0%, #0b2636 46%, #10202f 100%);
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
  transform: scale(1.02);
  z-index: 0;
}

.hero::after {
  background: radial-gradient(circle at 66% 26%, rgba(147, 197, 253, 0.22), transparent 30%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.hero-content {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  margin: 0 auto;
  max-width: 1160px;
  min-height: calc(92vh - 48px);
  padding: 42px 0 34px;
  position: relative;
  z-index: 1;
}

.copy {
  max-width: 520px;
}

.language-tabs {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  display: inline-flex;
  gap: 3px;
  margin-bottom: 18px;
  padding: 4px;
}

@supports (backdrop-filter: blur(18px)) {
  .language-tabs {
    backdrop-filter: blur(18px) saturate(1.6);
  }
}

.language-tab {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: 700 13px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  padding: 8px 12px;
}

.language-tab.active {
  background: rgba(255, 255, 255, 0.92);
  color: #1d1d1f;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(64px, 10vw, 128px);
  letter-spacing: 0;
  line-height: 0.88;
  margin: 0;
}

.subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.22;
  margin: 24px 0 0;
}

.install-form {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  display: flex;
  gap: 6px;
  margin-top: 30px;
  max-width: 430px;
  padding: 5px;
}

@supports (backdrop-filter: blur(18px)) {
  .install-form {
    backdrop-filter: blur(18px) saturate(1.6);
  }
}

.install-form input {
  background: transparent;
  border: 0;
  color: #fff;
  flex: 1;
  font: 600 15px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  min-width: 0;
  padding: 0 12px;
}

.install-form input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.install-form input:focus {
  outline: 0;
}

.primary {
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 18px;
  white-space: nowrap;
}

.primary {
  background: #6d5dfc;
}

.primary:disabled {
  cursor: wait;
  opacity: 0.72;
}

.product {
  min-height: 720px;
  position: relative;
}

.compose {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  color: #1d1d1f;
  margin-left: 0;
  max-width: 620px;
  overflow: hidden;
  padding: 18px;
  width: min(620px, 90%);
}

.compose-top {
  align-items: center;
  border-bottom: 1px solid #e5e5ea;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: space-between;
  margin: -18px -18px 14px;
  padding: 13px 18px;
}

.dots {
  color: #86868b;
}

.field {
  border-bottom: 1px solid #eeeeef;
  color: #6e6e73;
  font-size: 14px;
  padding: 11px 2px;
}

.body {
  color: #1d1d1f;
  font-size: 14px;
  line-height: 1.42;
  min-height: 420px;
  padding: 18px 2px;
  white-space: pre-line;
}

.compose-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.send-button,
.idk-button {
  border: 0;
  border-radius: 999px;
  font: 700 14px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.send-button {
  align-items: center;
  background: #e5e5ea;
  color: #3a3a3c;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0 16px;
}

.idk-button {
  background: #6d5dfc;
  color: #fff;
  padding: 10px 14px;
}

.glass-card {
  background: linear-gradient(145deg, rgba(36, 45, 55, 0.58), rgba(10, 18, 28, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 24px;
  bottom: 44px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.64), inset 0 -1px 1px rgba(255, 255, 255, 0.18),
    0 28px 70px rgba(0, 0, 0, 0.38), 0 8px 24px rgba(109, 93, 252, 0.18);
  color: #fff;
  max-width: 500px;
  overflow: hidden;
  padding: 16px;
  position: absolute;
  right: -118px;
  width: min(500px, 68%);
}

@supports (backdrop-filter: blur(34px)) {
  .glass-card {
    backdrop-filter: blur(34px) saturate(1.9) contrast(1.08);
  }
}

.glass-card::before {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: inherit;
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.16);
  content: "";
  inset: 1px;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.glass-sheen {
  background:
    radial-gradient(120% 70% at 22% 0%, rgba(255, 255, 255, 0.34), transparent 46%),
    linear-gradient(168deg, transparent 18%, rgba(255, 255, 255, 0.24) 38%, rgba(255, 255, 255, 0.08) 44%, transparent 62%),
    linear-gradient(22deg, transparent 28%, rgba(163, 213, 255, 0.18) 48%, transparent 66%);
  filter: blur(10px);
  inset: -20px;
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.glass-head,
.tone,
.rewrite,
.slider,
.labels {
  position: relative;
  z-index: 1;
}

.glass-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.glass-head strong {
  font-size: 18px;
}

.glass-head span {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.tone {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 700;
}

.rewrite {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.48;
  max-width: 100%;
  min-height: 92px;
  overflow-wrap: anywhere;
  padding: 12px 14px;
  white-space: pre-line;
  word-break: break-word;
}

.slider {
  --progress: 0%;
  --scale: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  height: 16px;
  margin: 14px 42px 8px;
  overflow: hidden;
  position: relative;
}

.slider-fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(223, 233, 255, 0.44));
  border-radius: inherit;
  bottom: 5px;
  left: 5px;
  position: absolute;
  top: 5px;
  transform: scaleX(var(--scale));
  transform-origin: left center;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  width: calc(100% - 10px);
}

.slider span {
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  height: 10px;
  left: clamp(14px, var(--progress), calc(100% - 14px));
  pointer-events: none;
  position: absolute;
  top: 3px;
  transform: translateX(-50%);
  transition: left 280ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 28px;
}

.slider input {
  appearance: none;
  background: transparent;
  cursor: pointer;
  height: 16px;
  inset: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.slider input::-webkit-slider-thumb {
  appearance: none;
  height: 16px;
  width: 28px;
}

.slider input::-moz-range-thumb {
  border: 0;
  height: 16px;
  width: 28px;
}

.labels {
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tone-label {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 3px 6px;
}

.tone-label:hover {
  background: rgba(255, 255, 255, 0.16);
}

.tone-label.active {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 18px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 60px 0 28px;
  }

  .product {
    min-height: 820px;
  }

  .compose {
    max-width: none;
    width: 100%;
  }

  .glass-card {
    left: 18px;
    right: auto;
    width: min(500px, calc(100% - 36px));
  }

}

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

  h1 {
    font-size: 64px;
  }

  .subtitle {
    font-size: 20px;
  }

  .product {
    min-height: 790px;
  }

  .glass-card {
    padding: 16px;
  }

  .glass-head strong {
    font-size: 18px;
  }

  .rewrite {
    font-size: 15px;
  }

}
