:root {
  color-scheme: light;
  --bg: #ffffff;
  --heading: #061b31;
  --label: #273951;
  --body: #64748d;
  --purple: #533afd;
  --purple-hover: #4434d4;
  --purple-line: #b9b9f9;
  --border: #e5edf5;
  --brand-dark: #1c1e54;
  --success: #15be53;
  --success-text: #108c3d;
  --ruby: #ea2261;
  --lemon: #9b6829;
  --shadow: rgba(50, 50, 93, 0.25) 0px 30px 45px -30px, rgba(0, 0, 0, 0.1) 0px 18px 36px -18px;
  --shadow-ambient: rgba(23, 23, 23, 0.08) 0px 15px 35px 0px;
  font-family: "sohne-var", "SF Pro Display", Inter, "Noto Sans Arabic", "Noto Naskh Arabic", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Droid Sans Fallback", sans-serif;
  font-feature-settings: "ss01";
  font-weight: 300;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--body);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
  text-decoration: none;
}

.mark { width: 36px; height: 36px; flex: none; border-radius: 6px; }

.brand strong {
  display: block;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--heading);
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--body);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.33;
}

.nav nav { display: flex; align-items: center; gap: 18px; }

.nav a {
  color: var(--heading);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

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

.lang-wrap { display: flex; align-items: center; }

#lang {
  background: #ffffff;
  color: var(--heading);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  max-width: 12rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.hero { position: relative; }

.hero::before { content: none; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
}

.hero h1 {
  margin: 0;
  max-width: 100%;
  color: var(--heading);
  font-size: clamp(20px, 4.15vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.lede {
  max-width: 40rem;
  margin: 16px 0 0;
  color: var(--body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
}

.status[hidden] { display: none; }

.status {
  margin: 28px 0 18px;
  padding: 8px 12px;
  border-radius: 4px;
  display: inline-block;
  background: rgba(155, 104, 41, 0.12);
  color: var(--lemon);
  border: 1px solid rgba(155, 104, 41, 0.35);
  font-size: 13px;
  font-weight: 400;
}

.status.ok {
  background: rgba(21, 190, 83, 0.2);
  color: var(--success-text);
  border-color: rgba(21, 190, 83, 0.4);
}

.grid, .curls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid { align-items: start; }

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  box-shadow: var(--shadow);
}

section.card { margin-top: 16px; }

.models-block { margin-top: 28px; }

.kicker {
  margin: 0 0 8px;
  color: var(--purple);
  font-family: "Source Code Pro", "SourceCodePro", "JetBrains Mono", "WenQuanYi Micro Hei Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: normal;
  text-transform: uppercase;
  font-feature-settings: normal;
}

h2, h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 300;
  letter-spacing: -0.22px;
}

h2 { font-size: 26px; line-height: 1.12; letter-spacing: -0.26px; }
h3 { font-size: 22px; line-height: 1.1; }

.section-title { margin: 0 0 16px; }

.muted { color: var(--body); font-weight: 300; line-height: 1.4; }

form { margin-top: 16px; }

label {
  display: block;
  margin-bottom: 8px;
  color: var(--label);
  font-size: 14px;
  font-weight: 400;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  background: #ffffff;
  color: var(--heading);
  font: inherit;
  font-size: 16px;
  font-weight: 300;
}

input::placeholder { color: var(--body); }

input:focus {
  outline: 2px solid var(--purple);
  border-color: var(--purple);
}

.field-error {
  margin: 8px 0 0;
  color: var(--ruby);
  font-size: 13px;
  font-weight: 400;
}

.card-head, .secret {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.secret {
  margin-top: 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow-ambient);
}

code, pre {
  font-family: "Source Code Pro", "SourceCodePro", "JetBrains Mono", "WenQuanYi Micro Hei Mono", ui-monospace, monospace;
  font-feature-settings: normal;
  font-weight: 500;
}

.secret code {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 2;
  color: var(--heading);
}

button {
  border: 0;
  border-radius: 4px;
  padding: 8px 16px;
  background: var(--purple);
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

button:hover { background: var(--purple-hover); }

#confirm { margin-top: 14px; }

button:disabled {
  cursor: not-allowed;
  background: transparent;
  color: rgba(16, 16, 16, 0.3);
  outline: 1px solid rgb(212, 222, 233);
}

button.ghost, .card-head button, .secret button {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--purple-line);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
}

button.ghost:hover, .card-head button:hover, .secret button:hover {
  background: rgba(83, 58, 253, 0.05);
}

.models {
  display: block;
  width: 100%;
  margin: 16px 0 0;
  border-collapse: collapse;
  overflow-x: auto;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.models th {
  padding: 0 12px 8px;
  text-align: start;
  color: var(--body);
  font-size: 12px;
  font-weight: 400;
}

.models td {
  padding: 12px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  color: var(--label);
}

.models .id { font-weight: 400; color: var(--heading); }

.models .hours,
.models .span {
  display: block;
  white-space: nowrap;
}

.models .hours { color: var(--heading); }

.models .span {
  margin-top: 4px;
  color: var(--body);
  font-size: 12px;
}

.badge {
  font-size: 10px;
  font-weight: 300;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(21, 190, 83, 0.2);
  color: var(--success-text);
  border: 1px solid rgba(21, 190, 83, 0.4);
}

.badge.night {
  background: #ffffff;
  color: var(--lemon);
  border: 1px solid #f6f9fc;
}

.band {
  width: 100vw;
  margin-top: 48px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 48px max(16px, calc((100vw - 1080px) / 2));
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.7);
}

.band h2, .band h3 { color: #ffffff; letter-spacing: -0.64px; }
.band h2 { font-size: 32px; line-height: 1.1; }
.band .card h3 { letter-spacing: -0.22px; font-size: 22px; color: var(--heading); }
.band .section-title { color: #ffffff; }

pre {
  margin: 12px 0 0;
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
  background: #f6f9fc;
  color: var(--heading);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  line-height: 2;
}

.result { min-height: 72px; }

[dir="rtl"] .hero h1,
[dir="rtl"] .lede,
[dir="rtl"] .muted,
[dir="rtl"] .field-error,
[dir="rtl"] .status,
[dir="rtl"] .kicker,
[dir="rtl"] .section-title,
[dir="rtl"] h2,
[dir="rtl"] label {
  text-align: right;
}

[dir="rtl"] pre,
[dir="rtl"] code {
  direction: ltr;
  text-align: left;
}

@media (max-width: 1024px) {
  .grid, .curls { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(16px, 5.6vw, 28px); }
  .grid, .curls, .nav-inner { grid-template-columns: 1fr; }
  .nav-inner { align-items: flex-start; flex-direction: column; }
  .models { display: block; overflow-x: auto; }
  main { padding-top: 32px; }
  .band { padding-top: 40px; padding-bottom: 40px; }
}
