:root {
  --paper: #f4f3f1;
  --panel: #ffffff;
  --ink: #11120f;
  --muted: #65665f;
  --line: #d9d9d0;
  --accent: #695be8;
  --violet: #b9b3f4;
  --blue: #cce8ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(rgba(17, 18, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 18, 15, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.shell {
  width: min(1240px, calc(100% - 40px));
}

header {
  padding: 18px 0 0;
}

header nav {
  min-height: 66px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(17, 18, 15, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 30px rgba(17, 18, 15, 0.05);
  backdrop-filter: blur(18px);
}

.brand {
  gap: 11px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.brand svg {
  width: 30px;
}

.links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.links a:hover {
  color: var(--ink);
}

.langs {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f1f1eb;
}

.lang {
  min-width: 40px;
  padding: 8px 9px;
  border-radius: 9px;
  color: var(--muted);
  font: 500 11px Inter, sans-serif;
}

.lang.active {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.hero {
  min-height: 720px;
  padding-top: 150px;
  padding-bottom: 100px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
  text-align: center;
}

.hero-grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  width: max-content;
  margin-bottom: 26px;
  padding: 7px 11px;
  border: 1px solid rgba(17, 18, 15, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  font: 500 12px Inter, sans-serif;
  letter-spacing: -0.2px;
  text-transform: none;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", "Noto Sans SC", Georgia, serif;
  font-weight: 400;
}

h1 {
  max-width: 900px;
  font-size: clamp(57px, 6.2vw, 76px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -2.4px;
}

h1 em,
h2 em {
  font-family: inherit;
  font-style: italic;
  font-weight: inherit;
}

h1 em {
  position: relative;
  white-space: nowrap;
}

h1 em::after {
  position: absolute;
  right: 0.02em;
  bottom: -0.04em;
  left: 0.02em;
  height: 0.11em;
  border-radius: 999px;
  background: var(--violet);
  content: "";
  z-index: -1;
}

.intro {
  max-width: 680px;
  margin: 34px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.cta {
  min-height: 42px;
  padding: 8px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  box-shadow: none;
  font-family: Inter, "Noto Sans SC", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.cta:hover {
  background: #5b50b9;
  transform: none;
  box-shadow: none;
}

.cta:active {
  background: var(--accent);
}

.cta:focus-visible,
.vision-file-button:focus-visible,
.lang:focus-visible {
  outline: 3px solid rgba(105, 91, 232, 0.28);
  outline-offset: 3px;
}

.hero .cta {
  margin-top: 34px;
  padding: 15px 18px;
}

.note {
  position: absolute;
  top: -95px;
  right: -40px;
  max-width: 190px;
  padding: 13px 15px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--violet);
  color: var(--ink);
  font: 500 12px Inter, sans-serif;
  text-align: left;
  transform: rotate(4deg);
}

.orb {
  top: 90px;
  left: 50%;
  width: min(860px, 80vw);
  height: min(520px, 55vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 55%, rgba(204, 232, 255, 0.8), transparent 40%),
    radial-gradient(circle at 70% 48%, rgba(220, 212, 255, 0.78), transparent 42%),
    radial-gradient(circle at 50% 85%, rgba(223, 255, 99, 0.6), transparent 36%);
  filter: blur(42px);
  opacity: 0.8;
  transform: translateX(-50%);
}

.vision {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.vision-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(440px, 1.2fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}

.vision-copy {
  position: sticky;
  top: 110px;
}

.vision h2,
.intro-section h2,
.top h2,
.approach > h2,
.contact h2 {
  font-size: clamp(48px, 5vw, 61px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1.6px;
}

.vision-copy p {
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.vision-box,
.voice-box {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 70px rgba(17, 18, 15, 0.07);
}

.vision-box > label:first-child,
.vision-mode legend,
.translation-selects label {
  font: 500 12px Inter, sans-serif;
  letter-spacing: -0.2px;
  text-transform: uppercase;
}

.vision-file-button,
.vision-clear-button {
  min-height: 42px;
  border-radius: 10px;
  font-family: Inter, "Noto Sans SC", Arial, sans-serif;
  font-weight: 500;
}

.vision-file-button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transition: background-color .3s cubic-bezier(.23, 1, .32, 1);
}

.vision-file-button:hover {
  border-color: #5b50b9;
  background: #5b50b9;
}

.vision-clear-button {
  background: #fff;
}

.vision-preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f5f5ef;
}

.vision-box textarea,
.translation-selects select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafaf7;
}

.vision-mode {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vision-result,
.voice-text {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f5ef;
}

.strip {
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 18px 20px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: var(--violet);
  color: var(--ink);
  font-weight: 500;
}

.tags span {
  border-color: rgba(17, 18, 15, 0.35);
  color: var(--ink);
}

.intro-section {
  padding-top: 130px;
  padding-bottom: 130px;
  border-top: 1px solid var(--line);
}

.intro-section h2 {
  max-width: 790px;
}

.dark {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #11120f;
  background-size: 42px 42px;
}

.dark .eyebrow {
  border-color: #3d3e38;
  background: #1b1c18;
  color: #fff;
}

.top {
  align-items: end;
}

.services {
  gap: 14px;
}

.service {
  min-height: 340px;
  padding: 28px;
  border: 1px solid #3b3c36;
  border-radius: 20px;
  background: #191a16;
}

.service:hover {
  border-color: var(--accent);
  background: #20211c;
  transform: translateY(-5px);
}

.service .no {
  width: max-content;
  padding: 5px 8px;
  border: 1px solid #46473f;
  border-radius: 999px;
  font-family: Inter, "Noto Sans SC", Arial, sans-serif;
}

.service h3 {
  font-size: 31px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1px;
}

.approach {
  padding-top: 130px;
  padding-bottom: 130px;
}

.steps {
  gap: 14px;
}

.step {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
}

.step small {
  color: var(--muted);
  font-family: Inter, "Noto Sans SC", Arial, sans-serif;
}

.step h3 {
  font-size: 31px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1px;
}

.contact {
  margin: 0 20px 20px;
  border-radius: 28px;
  background: var(--violet);
  color: var(--ink);
}

.contact .eyebrow {
  background: rgba(255, 255, 255, 0.55);
}

.contact .cta {
  background: var(--accent);
  color: #fff;
}

.contact .cta:hover {
  background: #5b50b9;
}

.watermark {
  opacity: 0.14;
}

footer {
  color: var(--muted);
}

.cta b {
  display: inline-flex;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent !important;
  color: currentColor;
  font-size: 13px;
  line-height: 1;
}

.voice-controls {
  align-items: center;
  gap: 8px;
}

.voice-controls .cta {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 42px;
  padding: 8px 14px;
  gap: 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.voice-controls .cta[disabled] {
  background: #e2e0fb;
  color: #695be8;
  opacity: 1;
  cursor: not-allowed;
}

.voice-controls .cta[disabled] b {
  opacity: .55;
}

.demo-hub {
  border-top: 1px solid var(--line);
}

.demo-hub-head {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  padding-top: 110px;
  padding-bottom: 34px;
}

.demo-hub-head .eyebrow {
  margin-bottom: 18px;
}

.demo-hub-head h2 {
  max-width: 720px;
  margin: 0;
  font-family: "Playfair Display", "Noto Sans SC", Georgia, serif;
  font-size: clamp(48px, 5vw, 61px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1.6px;
}

.demo-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #e9e8e4;
}

.demo-tab {
  min-height: 42px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 500 14px Inter, "Noto Sans SC", Arial, sans-serif;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}

.demo-tab:hover {
  color: var(--ink);
}

.demo-tab.active {
  background: var(--accent);
  color: #fff;
}

.demo-tab:focus-visible {
  outline: 3px solid rgba(105, 91, 232, .28);
  outline-offset: 2px;
}

.demo-panel[hidden] {
  display: none !important;
}

.demo-panel > .vision:first-child {
  padding-top: 80px;
}

@media (max-width: 860px) {
  .links {
    display: none;
  }

  .hero {
    min-height: 650px;
    padding-top: 125px;
  }

  h1 {
    font-size: 57px;
  }

  .note {
    position: static;
    margin: 48px auto 0;
    transform: rotate(2deg);
  }

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

  .demo-hub-head {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 82px;
  }

  .vision-copy {
    position: static;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1240px);
  }

  header {
    padding-top: 10px;
  }

  header nav {
    min-height: 58px;
    padding-left: 12px;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 590px;
    padding-top: 105px;
    padding-bottom: 70px;
  }

  h1 {
    font-size: 48px;
    letter-spacing: -1.5px;
  }

  .intro {
    font-size: 16px;
  }

  .vision,
  .approach,
  .intro-section {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .vision h2,
  .intro-section h2,
  .top h2,
  .approach > h2,
  .contact h2 {
    font-size: 39px;
    letter-spacing: -1px;
  }

  .vision-box,
  .voice-box {
    padding: 20px;
    border-radius: 18px;
  }

  .vision-file-actions {
    align-items: stretch;
  }

  .vision-file-button,
  .vision-clear-button {
    flex: 1;
  }

  .demo-hub-head h2 {
    font-size: 39px;
    letter-spacing: -1px;
  }

  .demo-tabs {
    display: flex;
    width: 100%;
  }

  .demo-tab {
    flex: 1;
  }

  .demo-panel > .vision:first-child {
    padding-top: 52px;
  }

  .contact {
    margin-right: 8px;
    margin-left: 8px;
    border-radius: 22px;
  }
}
