*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at top, rgba(71, 99, 255, 0.14), transparent 22%),
    linear-gradient(180deg, #080808 0%, #050505 100%);
  color: #fbfbfb;
}

body {
  display: flex;
  justify-content: center;
  padding: 0 18px 48px;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.app {
  width: 100%;
  max-width: 883px;
}

.header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 238px;
  padding: 72px 0 40px;
  text-align: center;
}

.top-bar {
  position: absolute;
  top: 18px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.icon-btn svg {
  fill: #fbfbfb;
  opacity: 0.7;
}

.header-icon {
  margin: -10px 0 -12px;
}

.header-icon img {
  display: block;
  width: min(207px, 46vw);
  height: auto;
}

.title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.subtitle {
  margin-top: 8px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(251, 251, 251, 0.62);
}

.examples-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 44px;
}

.example-row-full,
.example-cell,
.playground-preview {
  background: rgba(217, 217, 217, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.example-row-full {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 48px 40px;
  border-radius: 30px;
}

.example-row-split {
  display: grid;
  grid-template-columns: 271fr 552fr;
  gap: 12px;
}

.example-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 314px;
  padding: 48px 40px;
  border-radius: 30px;
}

.section {
  margin-bottom: 24px;
}

.section-title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #f0f0f0;
}

.section-title--muted {
  color: #cacaca;
}

.code-block {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 44px 4px 14px;
  border-radius: 12px;
  background: #101010;
}

.code-block--multi {
  align-items: flex-start;
  padding-top: 8px;
  padding-bottom: 8px;
}

.code-block code {
  flex: 1;
  font: 13px/1.7 Consolas, "Courier New", monospace;
  color: #f3f5fb;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.playground-section {
  margin-bottom: 44px;
}

.playground-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 10px;
  padding: 16px;
  border-radius: 12px;
  background: #101010;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.control-label {
  font-size: 12px;
  line-height: 1.2;
  color: rgba(251, 251, 251, 0.6);
}

.control-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn,
.toggle-btn {
  height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(251, 251, 251, 0.6);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab-btn:hover,
.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fbfbfb;
}

.tab-btn[data-active="true"] {
  background: rgba(255, 255, 255, 0.11);
  color: #fbfbfb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.duration-input {
  width: 92px;
  height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fbfbfb;
}

.strength-wrap {
  position: relative;
  width: 180px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.strength-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.strength-value {
  position: absolute;
  inset: 0 auto 0 12px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: rgba(251, 251, 251, 0.62);
  z-index: 1;
}

.strength-input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.playground-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 304px;
  padding: 48px 24px;
  border-radius: 12px;
}

.footer {
  padding: 18px 0 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(251, 251, 251, 0.5);
}

.mock-chat {
  width: 348px;
  max-width: 100%;
  border-radius: 20px;
  background: #1d1d1d;
  box-shadow:
    inset 0 0 0 1px rgba(44, 47, 54, 0.52),
    inset 0 0 50px 0 rgba(255, 255, 255, 0.02);
}

.mock-chat-inner {
  display: flex;
  flex-direction: column;
  height: 122px;
  padding: 7px 7px 8px;
}

.pill,
.tag,
.send-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
}

.pill {
  width: fit-content;
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.placeholder {
  padding: 16px 4px 0;
  font-size: 13px;
  line-height: 1.3;
  color: #4e4e4e;
}

.bottom-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.tag {
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  color: #caccd2;
}

.send-btn {
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.45);
}

.mock-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 20px;
  background: #1d1d1d;
  box-shadow:
    inset 0 0 0 1px rgba(44, 47, 54, 0.52),
    inset 0 0 50px 0 rgba(255, 255, 255, 0.02);
}

.mock-icon-btn-square {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(217, 217, 217, 0.8);
}

.mock-search-shell {
  width: 366px;
  max-width: 100%;
  height: 42px;
  border-radius: 64px;
}

.mock-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 0 13px;
  border-radius: 20px;
  background: #1d1d1d;
  box-shadow:
    inset 0 0 0 1px rgba(44, 47, 54, 0.52),
    inset 0 0 50px 0 rgba(255, 255, 255, 0.02);
  color: #565656;
}

.mock-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  opacity: 0.42;
}

.card {
  padding: 24px;
  background: #1d1d1d;
  border: 1px solid rgba(44, 47, 54, 0.52);
  box-shadow: inset 0 0 50px 0 rgba(255, 255, 255, 0.02);
}

.card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.card p {
  font-size: 13px;
  line-height: 1.5;
  color: #4e4e4e;
}

.card-sm {
  width: 80px;
  height: 36px;
  padding: 0;
  border-radius: 36px;
}

.card-md {
  width: min(348px, 100%);
  border-radius: 20px;
}

.card-line {
  display: flex;
  align-items: center;
  width: min(366px, 100%);
  height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  color: #565656;
}

@media (max-width: 700px) {
  body {
    padding: 0 14px 36px;
  }

  .header {
    min-height: 210px;
    padding-top: 64px;
  }

  .top-bar {
    top: 12px;
  }

  .example-row-full,
  .example-cell,
  .playground-preview {
    padding: 32px 18px;
    border-radius: 20px;
  }

  .example-row-split {
    grid-template-columns: 1fr;
  }

  .playground-controls {
    gap: 14px;
  }

  .strength-wrap {
    width: 100%;
  }
}
