* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color: #1f2937;
  background: #f1f5f9;
  background-image: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  min-height: 100vh;
}

/* ----- Gate (password screen) ----- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.gate--unlocking .gate-backdrop {
  opacity: 0;
}

.gate--unlocking .gate-card {
  transform: scale(0.92);
  opacity: 0;
}

.gate--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate--gone {
  display: none !important;
}

.gate-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 40%, #334155 100%);
  transition: opacity 0.5s ease;
}

.gate-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 48px 40px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.45s ease;
}

.gate-card--success .gate-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

.gate-logo {
  text-align: center;
  margin-bottom: 36px;
}

.gate-logo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: block;
}

.gate-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.gate-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gate-input {
  width: 100%;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gate-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.gate-input:focus {
  border-color: rgba(99, 102, 241, 0.8);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.gate-btn {
  padding: 16px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.gate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.gate-btn:active {
  transform: translateY(0);
}

.gate-btn-check {
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
}

.gate-btn:disabled {
  cursor: default;
}

.gate-error {
  margin: 0;
  font-size: 14px;
  color: #f87171;
  text-align: center;
}

.kp-content {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.kp-content--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.hero {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 40px 36px;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 10px 24px -4px rgba(15, 23, 42, 0.08);
  border-left: 4px solid #6366f1;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.hero p {
  margin: 0;
  font-size: 16px;
  color: #475569;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.6;
  margin-top: 8px;
  color: #334155;
}

.badge {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: #4f46e5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section {
  margin-top: 28px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px 36px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.section h2 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.section h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 22px 0 10px;
  color: #334151;
}

.section-intro {
  margin: 0 0 16px;
  line-height: 1.55;
  color: #4b5563;
}

.section-highlight {
  border-color: #818cf8;
  background: linear-gradient(to bottom, #fafaff 0%, #ffffff 140px);
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.06), 0 10px 24px -4px rgba(99, 102, 241, 0.08);
}

.section-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: #6b7280;
}

.card p {
  margin: 0;
  line-height: 1.5;
  font-size: 15px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: #f9fafb;
}

.list {
  padding-left: 20px;
  margin: 0;
}

.list li {
  margin: 8px 0;
}

.dialog {
  border-left: 3px solid #6366f1;
  padding-left: 12px;
  margin-bottom: 12px;
}

.dialog strong {
  display: inline-block;
  min-width: 72px;
}

.screenshots {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}

.screenshots-single {
  grid-template-columns: 1fr;
}

.screenshots-single .screenshot-fig {
  max-width: 100%;
}

.screenshots figure,
.screenshot-fig {
  margin: 0;
  max-width: 420px;
}

.screenshots img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  display: block;
  background: #f9fafb;
}

.screenshots figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.4;
  text-align: left;
}

.footer {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  letter-spacing: 0.02em;
}