:root {
  color-scheme: dark;
  --bg: #121316;
  --panel: #1b1d22;
  --panel-soft: #24262d;
  --text: #f8f8fb;
  --muted: #b7bbc8;
  --line: rgba(255, 255, 255, 0.12);
  --violet: #6657ff;
  --violet-light: #8277ff;
  --cyan: #57d8ff;
  --green: #6ee7b7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(87, 216, 255, 0.14), transparent 26rem),
    radial-gradient(circle at 84% 8%, rgba(102, 87, 255, 0.2), transparent 30rem),
    linear-gradient(180deg, #141518 0%, #1d1e23 48%, #121316 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 19, 22, 0.82);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: #3f4043;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.nav-links a,
.lang-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-links a {
  padding: 9px 12px;
}

.nav-links a:hover,
.lang-btn:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn {
  min-width: 42px;
  padding: 8px 9px;
  cursor: pointer;
  background: transparent;
}

.lang-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #7468ff);
  box-shadow: 0 10px 24px rgba(102, 87, 255, 0.3);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 64px 0 44px;
}

.hero-copy h1,
.legal-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 5.7vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

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

.primary-btn,
.secondary-btn,
.legal-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
  box-shadow: 0 18px 42px rgba(102, 87, 255, 0.34);
}

.secondary-btn,
.legal-links a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.primary-btn:hover,
.secondary-btn:hover,
.legal-links a:hover {
  transform: translateY(-2px);
}

.primary-btn:disabled,
.secondary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

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

.hero-mark::before,
.hero-mark::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  filter: blur(4px);
}

.hero-mark::before {
  width: 86%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(102, 87, 255, 0.22));
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}

.hero-mark::after {
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(87, 216, 255, 0.08);
  animation: float 7s ease-in-out infinite reverse;
}

.hero-mark img {
  position: relative;
  z-index: 2;
  width: min(72%, 390px);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.how-section,
.transcript-section,
.demo-section,
.feature-section,
.reports-section,
.faq-section,
.gallery-section,
.about,
.legal-content {
  padding: 76px 0;
}

.section-copy {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.step-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(102, 87, 255, 0.12)),
    var(--panel-soft);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 119, 255, 0.5);
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
  box-shadow: 0 16px 32px rgba(102, 87, 255, 0.28);
}

.step-card h3 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.transcript-preview {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  align-items: stretch;
}

.summary-panel,
.transcript-panel,
.placeholder-panel,
.report-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(102, 87, 255, 0.11)),
    var(--panel-soft);
  box-shadow: var(--shadow);
}

.summary-panel,
.transcript-panel {
  padding: clamp(20px, 3vw, 28px);
}

.panel-label,
.transcript-toolbar span:first-child,
.report-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-panel p {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.55;
}

.insight-grid {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.insight-grid span,
.feature-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  width: fit-content;
  padding: 0 12px;
  border: 1px solid rgba(102, 87, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: rgba(102, 87, 255, 0.14);
}

.transcript-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.transcript-toolbar span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.transcript-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.transcript-line time {
  color: var(--violet-light);
  font-weight: 900;
}

.transcript-line strong {
  display: block;
  margin-bottom: 5px;
}

.transcript-line p {
  margin: 0;
  color: var(--muted);
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: center;
}

.feature-section.reverse {
  grid-template-columns: minmax(320px, 1.1fr) minmax(0, 0.9fr);
}

.feature-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.04;
}

.feature-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.placeholder-panel {
  min-height: 360px;
  padding: 22px;
  overflow: hidden;
}

.placeholder-browser {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.placeholder-browser span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.record-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 19, 22, 0.62);
}

.record-row.active {
  border-color: rgba(102, 87, 255, 0.55);
  background: rgba(102, 87, 255, 0.18);
}

.record-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.device-panel {
  display: grid;
  align-content: center;
  gap: 16px;
}

.device-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.device-card.violet {
  background: rgba(102, 87, 255, 0.18);
  border-color: rgba(102, 87, 255, 0.48);
}

.device-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.device-card strong {
  font-size: clamp(24px, 4vw, 38px);
}

.sync-line {
  justify-self: center;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--green);
  font-weight: 900;
  background: rgba(110, 231, 183, 0.11);
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.report-card {
  grid-column: span 3;
  min-height: 230px;
  padding: 24px;
}

.report-card.featured {
  grid-column: span 6;
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(102, 87, 255, 0.24), rgba(87, 216, 255, 0.1)),
    var(--panel-soft);
}

.report-card h3 {
  margin: 18px 0 10px;
  font-size: clamp(24px, 3vw, 36px);
}

.report-card p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.demo-card {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(102, 87, 255, 0.14), rgba(87, 216, 255, 0.08)),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.demo-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.demo-field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.demo-field span {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.demo-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  background: rgba(18, 19, 22, 0.72);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.demo-field input[type="url"] {
  padding: 0 16px;
}

.demo-field input[type="file"] {
  padding: 13px 14px;
}

.demo-field input:focus {
  border-color: rgba(130, 119, 255, 0.78);
  background: rgba(18, 19, 22, 0.9);
  box-shadow: 0 0 0 4px rgba(102, 87, 255, 0.16);
}

.demo-field small,
.demo-note,
.demo-message {
  color: var(--muted);
}

.demo-field small {
  font-size: 14px;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.demo-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.demo-note {
  margin: 0;
  font-size: 15px;
}

.demo-status {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(18, 19, 22, 0.58);
}

.demo-status-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.demo-status-label,
.demo-status-percent {
  color: var(--text);
  font-weight: 900;
}

.demo-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.demo-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--green));
  box-shadow: 0 0 24px rgba(87, 216, 255, 0.32);
  transition: width 360ms ease;
}

.demo-message {
  min-height: 24px;
  margin: 0;
  font-size: 15px;
}

.demo-status.failed {
  border-color: rgba(255, 112, 112, 0.46);
  background: rgba(110, 20, 20, 0.26);
}

.demo-status.failed .demo-status-label,
.demo-status.failed .demo-message {
  color: #ffb4b4;
}

.demo-status.completed {
  border-color: rgba(110, 231, 183, 0.42);
  background: rgba(21, 94, 69, 0.2);
}

.demo-status.completed .demo-status-label {
  color: var(--green);
}

.demo-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-downloads[hidden] {
  display: none;
}

.demo-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(110, 231, 183, 0.34);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  background: rgba(110, 231, 183, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.demo-download-link:hover {
  border-color: rgba(110, 231, 183, 0.7);
  background: rgba(110, 231, 183, 0.18);
  transform: translateY(-2px);
}

.demo-download-link.disabled,
.demo-download-link.disabled:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.44);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  transform: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.gallery-mobile-trigger {
  display: none;
}

.gallery-card {
  position: relative;
  display: block;
  grid-column: span 2;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.gallery-card::before,
.gallery-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.gallery-card::before {
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.36));
}

.gallery-card::after {
  display: none;
}

.gallery-card.wide {
  grid-column: span 3;
  aspect-ratio: 2358 / 1540;
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--violet-light);
  box-shadow: 0 24px 90px rgba(102, 87, 255, 0.32);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  transition: transform 420ms ease;
}

.gallery-card:hover img {
  transform: scale(1.035);
}

.gallery-number {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: max-content;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: var(--violet);
  box-shadow: 0 10px 28px rgba(102, 87, 255, 0.32);
}

.about-grid p,
.legal-content p,
.legal-hero p {
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(7, 8, 12, 0.78);
  backdrop-filter: blur(18px);
}

.lightbox.open {
  display: grid;
}

.lightbox-card {
  position: relative;
  width: min(1180px, calc(100vw - 124px));
  max-height: calc(100vh - 72px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(18, 19, 22, 0.94);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.58);
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 118px);
  object-fit: contain;
  background: #fff;
}

.lightbox-caption {
  margin: 0;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.lightbox-close,
.lightbox-arrow {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, background 180ms ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
}

.lightbox-arrow {
  top: 50%;
  width: 54px;
  height: 72px;
  transform: translateY(-50%);
}

.lightbox-arrow:hover {
  transform: translateY(calc(-50% - 2px));
}

.lightbox-arrow.prev {
  left: 24px;
}

.lightbox-arrow.next {
  right: 24px;
}

.bot-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: min(330px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(18, 19, 22, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.bot-toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bot-toast p {
  margin: 0 34px 12px 0;
  color: var(--text);
  font-weight: 800;
}

.bot-toast a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
  box-shadow: 0 14px 34px rgba(102, 87, 255, 0.3);
}

.bot-toast-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
}

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

.about-grid p {
  min-height: 180px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 18px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.14);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq-list a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.legal-page {
  padding-top: 52px;
}

.legal-hero {
  padding: 56px 0 28px;
}

.legal-hero p:last-child {
  margin-top: 18px;
}

.legal-content {
  max-width: 880px;
}

.legal-document h3 {
  margin: 0 0 24px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.14;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: 26px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-detail {
  font-weight: 700;
}

.guide-page {
  padding-top: 52px;
}

.guide-content {
  max-width: 920px;
  padding: 52px 0 84px;
}

.guide-document {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.guide-document h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
}

.guide-document h3 {
  margin: 38px 0 12px;
  font-size: clamp(23px, 3vw, 32px);
}

.guide-document p,
.guide-document li {
  color: var(--muted);
  font-size: 18px;
}

.guide-document ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.guide-document li + li {
  margin-top: 8px;
}

.guide-document strong {
  color: var(--text);
}

.guide-document a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.guide-document a:hover {
  text-decoration: underline;
}

.auth-page,
.account-page,
.packages-page {
  padding-bottom: 40px;
}

.auth-grid,
.packages-grid,
.account-shell {
  padding: 18px 0 76px;
}

.auth-grid,
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.auth-card,
.package-card,
.account-stat,
.sync-card,
.account-status,
.package-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(102, 87, 255, 0.1)),
    var(--panel);
  box-shadow: var(--shadow);
}

.auth-card,
.package-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 24px;
}

.auth-card.accent,
.package-card.featured {
  border-color: rgba(130, 119, 255, 0.55);
  background:
    linear-gradient(135deg, rgba(102, 87, 255, 0.24), rgba(87, 216, 255, 0.1)),
    var(--panel-soft);
}

.auth-card h2,
.sync-card h2,
.package-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.auth-card p,
.package-card p,
.sync-card p,
.account-status,
.package-note {
  margin: 0;
  color: var(--muted);
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.auth-card input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-card input:focus {
  border-color: rgba(130, 119, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(102, 87, 255, 0.16);
}

.code-card {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr) auto;
  align-items: end;
}

.code-card h2,
.code-card p {
  grid-column: 1;
}

.code-card label {
  grid-column: 2;
}

.code-card button {
  grid-column: 3;
}

.code-card .form-message {
  grid-column: 1 / -1;
}

.form-message {
  min-height: 22px;
  color: var(--green);
  font-weight: 700;
}

.form-message.error {
  color: #ff9a9a;
}

.account-status {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 24px;
}

.account-details {
  display: grid;
  gap: 18px;
}

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

.account-stat {
  display: grid;
  gap: 10px;
  min-height: 138px;
  padding: 20px;
}

.account-stat span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-stat strong {
  overflow-wrap: anywhere;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.12;
}

.sync-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 24px;
}

.sync-card .primary-btn {
  white-space: nowrap;
}

.code-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(130, 119, 255, 0.44);
  border-radius: 8px;
  background: rgba(102, 87, 255, 0.12);
}

.code-box span,
.code-box small {
  color: var(--muted);
}

.code-box strong {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.package-card > span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: rgba(102, 87, 255, 0.28);
}

.package-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.package-card li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.package-card li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "+";
}

.package-note {
  display: grid;
  gap: 12px;
  margin-top: -34px;
  padding: 18px;
}

.site-footer {
  display: grid;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.rich-footer {
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
  gap: 36px;
}

.footer-brand {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
}

.footer-brand a:not(.brand) {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.footer-columns div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-columns h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 15px;
}

.footer-columns a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-columns a:hover {
  color: var(--text);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-content.reveal,
.guide-content.reveal {
  opacity: 1;
  transform: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(3deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .language-switch {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .hero-mark {
    min-height: 360px;
  }

  .transcript-preview,
  .feature-section,
  .feature-section.reverse,
  .steps-grid,
  .demo-input-grid,
  .about-grid,
  .auth-grid,
  .packages-grid,
  .account-grid,
  .sync-card,
  .rich-footer,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .code-card {
    grid-template-columns: 1fr;
  }

  .code-card h2,
  .code-card p,
  .code-card label,
  .code-card button,
  .code-card .form-message {
    grid-column: auto;
  }

  .reports-grid {
    grid-template-columns: 1fr;
  }

  .report-card,
  .report-card.featured {
    grid-column: span 1;
  }

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

  .gallery-card,
  .gallery-card.wide {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .site-header,
  .section,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 8px;
    border-color: rgba(255, 255, 255, 0.09);
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    background: rgba(255, 255, 255, 0.04);
  }

  .language-switch {
    align-self: center;
  }

  .lang-btn {
    min-width: 36px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .brand span {
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-copy h1,
  .legal-hero h1 {
    font-size: 40px;
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-actions,
  .legal-links,
  .site-footer {
    flex-direction: column;
  }

  .how-section,
  .transcript-section,
  .demo-section,
  .feature-section,
  .reports-section,
  .faq-section,
  .gallery-section,
  .about,
  .auth-grid,
  .packages-grid,
  .account-shell,
  .legal-content {
    padding: 54px 0;
  }

  .transcript-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .summary-panel p {
    font-size: 18px;
  }

  .placeholder-panel {
    min-height: 280px;
  }

  .record-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-card {
    padding: 18px;
  }

  .auth-card,
  .package-card,
  .sync-card,
  .account-stat {
    padding: 18px;
  }

  .demo-actions,
  .demo-downloads,
  .account-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-actions .primary-btn,
  .demo-download-link,
  .account-actions .secondary-btn,
  .sync-card .primary-btn,
  .package-card .primary-btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    display: none;
  }

  .gallery-mobile-trigger {
    position: relative;
    display: block;
    width: 100%;
    min-height: 236px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    background: var(--panel);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
  }

  .gallery-mobile-trigger::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.62)),
      linear-gradient(90deg, rgba(18, 19, 22, 0.24), rgba(102, 87, 255, 0.18));
  }

  .gallery-mobile-trigger img {
    display: block;
    width: 100%;
    height: 236px;
    object-fit: cover;
  }

  .gallery-mobile-trigger span {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--violet), var(--violet-light));
    box-shadow: 0 14px 34px rgba(102, 87, 255, 0.36);
  }

  .gallery-card,
  .gallery-card.wide {
    aspect-ratio: 1 / 1;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-card {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 96px);
  }

  .lightbox-image {
    max-height: calc(100vh - 150px);
  }

  .lightbox-arrow {
    top: auto;
    bottom: 18px;
    width: 48px;
    height: 52px;
    transform: none;
  }

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

  .lightbox-arrow.prev {
    left: 18px;
  }

  .lightbox-arrow.next {
    right: 18px;
  }

  .bot-toast {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
