:root {
  color-scheme: light;
  --bg: #f4efe6;
  --paper: rgba(255, 252, 247, 0.84);
  --paper-strong: rgba(255, 255, 255, 0.94);
  --ink: #1f2d39;
  --ink-soft: #64747e;
  --primary: #2f88a8;
  --primary-deep: #1d6786;
  --accent: #efc35d;
  --border: rgba(123, 149, 164, 0.22);
  --shadow-soft: 0 22px 56px -36px rgba(23, 38, 53, 0.28);
  --shadow-strong: 0 28px 72px -42px rgba(13, 29, 44, 0.34);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 18%, rgba(73, 157, 194, 0.16), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(239, 195, 93, 0.18), transparent 24%),
    linear-gradient(180deg, #fbf8f1, var(--bg));
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.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;
}

.page-shell {
  position: relative;
}

body[data-page="download"] .page-shell {
  min-height: auto;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 92%);
  opacity: 0.32;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}

.ambient-left {
  top: 100px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(47, 136, 168, 0.22), transparent 72%);
}

.ambient-right {
  top: 280px;
  right: -90px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(239, 195, 93, 0.22), transparent 72%);
}

.site-header,
.section,
.site-footer {
  position: relative;
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  z-index: 4;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 18px 10px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: rgba(251, 248, 241, 0);
  box-shadow: 0 14px 32px -28px rgba(23, 38, 53, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.site-header.is-floating {
  border-color: rgba(123, 149, 164, 0.12);
  background: rgba(251, 248, 241, 0.74);
  box-shadow: 0 16px 34px -30px rgba(23, 38, 53, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.section,
.site-footer {
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.site-nav,
.summary-card,
.preview-shell,
.preview-button,
.preview-stage,
.workflow-card,
.download-card {
  border: 1px solid var(--border);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  border-radius: 999px;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.language-picker {
  position: relative;
  z-index: 6;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.language-trigger:hover,
.language-trigger:focus-visible,
.language-picker.is-open .language-trigger {
  border-color: rgba(47, 136, 168, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 34px -28px rgba(23, 38, 53, 0.24);
  outline: none;
}

.language-marker {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(47, 136, 168, 0.08);
}

.language-current {
  color: var(--ink);
  letter-spacing: -0.02em;
}

.language-caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(31, 45, 57, 0.56);
  border-bottom: 1.5px solid rgba(31, 45, 57, 0.56);
  transform: translateY(-1px) rotate(45deg);
  transition: transform 180ms ease;
}

.language-picker.is-open .language-caret {
  transform: translateY(2px) rotate(-135deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(123, 149, 164, 0.16);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 26px 48px -34px rgba(23, 38, 53, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.language-picker.is-open .language-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.language-option {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.language-option:hover,
.language-option:focus-visible {
  background: rgba(236, 241, 244, 0.9);
  color: var(--ink);
  outline: none;
}

.language-option.is-active {
  background: linear-gradient(135deg, rgba(235, 246, 250, 0.92), rgba(255, 247, 225, 0.84));
  color: var(--primary-deep);
}

.language-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.header-link {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.header-link:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 18px 40px -28px rgba(29, 103, 134, 0.72);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(90, 114, 129, 0.14);
}

.section {
  padding: 34px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: rgba(229, 239, 244, 0.92);
  color: var(--primary-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero,
.download-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: center;
  padding-top: 28px;
}

.download-page-hero {
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 24px;
  min-height: calc(100svh - 148px);
  padding-top: clamp(36px, 6vw, 72px);
  padding-bottom: clamp(48px, 8vw, 88px);
}

body[data-page="download"] main {
  flex: initial;
}

.hero h1,
.section-heading h2,
.preview-copy h3,
.page-title {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.hero h1,
.page-title {
  max-width: none;
  font-size: clamp(2.8rem, 5.5vw, 4.3rem);
}

.hero-text,
.page-copy,
.section-copy,
.summary-card p,
.preview-copy p,
.workflow-card p,
.use-case-card p,
.faq-card p,
.download-card p,
.site-footer p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.hero-text,
.page-copy {
  max-width: 48ch;
  margin: 18px 0;
  font-size: 1rem;
}

.section-copy {
  max-width: 60ch;
  margin: 0;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-pills li {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(110, 136, 151, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-stage {
  position: relative;
}

.hero-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 36px;
  background: var(--paper-strong);
  box-shadow: var(--shadow-strong);
}

.hero-overlay {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

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

.summary-card {
  padding: 20px;
  border-radius: 24px;
}

.summary-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.summary-card p {
  margin: 0;
  font-size: 0.98rem;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.preview-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 32px;
}

.preview-list {
  display: grid;
  gap: 12px;
}

.preview-button {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 22px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.preview-button:hover {
  transform: translateY(-1px);
}

.preview-button.is-active {
  border-color: rgba(47, 136, 168, 0.28);
  background: rgba(235, 246, 250, 0.9);
  box-shadow: 0 18px 40px -34px rgba(29, 103, 134, 0.34);
}

.preview-button-tag,
.preview-tag {
  color: var(--primary-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.preview-button-title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.preview-button-body {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.preview-stage {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.preview-stage.is-transitioning {
  opacity: 0.5;
  transform: translateY(8px);
}

.preview-media {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(123, 149, 164, 0.18);
  background: rgba(255, 255, 255, 0.7);
}

.preview-copy {
  padding: 4px 4px 2px;
}

.preview-copy h3 {
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.preview-copy p:last-child {
  margin-bottom: 0;
}

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

.workflow-card {
  min-height: 210px;
  padding: 22px;
  border-radius: 28px;
}

.workflow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(47, 136, 168, 0.16), rgba(239, 195, 93, 0.2));
  color: var(--primary-deep);
  font-size: 0.92rem;
  font-weight: 800;
}

.workflow-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.use-cases-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.use-cases-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.use-case-card,
.faq-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.use-case-card h3,
.faq-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.use-case-card p,
.faq-card p {
  margin: 0;
  font-size: 0.98rem;
}

.download-page-heading {
  margin-bottom: 0;
  width: 100%;
  max-width: 1240px;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

body[data-page="download"] .page-title {
  max-width: none;
  font-size: clamp(3rem, 7vw, 5.2rem);
}

body[data-page="download"] .page-copy {
  max-width: 32ch;
  margin: 0;
  font-size: 1.08rem;
}

.download-platform-panel {
  width: 100%;
}

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

.download-platform-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(123, 149, 164, 0.14);
  border-radius: 28px;
  background: rgba(255, 252, 247, 0.72);
  box-shadow: 0 24px 72px -56px rgba(23, 38, 53, 0.34);
  backdrop-filter: blur(18px);
}

.download-platform-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-platform-icon {
  width: 22px;
  height: 22px;
  color: var(--ink);
  flex: 0 0 auto;
}

.download-platform-card h3 {
  margin: 0;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.download-platform-list {
  display: grid;
  gap: 0;
}

.download-platform-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 0;
  border-top: 1px solid rgba(123, 149, 164, 0.14);
}

.download-platform-item:first-child {
  border-top: 0;
}

.download-platform-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 78px;
  color: inherit;
  text-decoration: none;
}

.download-platform-copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

.download-platform-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.download-platform-meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.download-platform-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--ink);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.download-platform-link:hover .download-platform-arrow {
  transform: translateY(1px);
  background: rgba(236, 241, 244, 0.9);
}

.download-variant-picker {
  display: inline-flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.download-variant-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(123, 149, 164, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.download-variant-button:hover {
  color: var(--ink);
}

.download-variant-button.is-active {
  border-color: rgba(47, 136, 168, 0.22);
  background: rgba(235, 246, 250, 0.92);
  color: var(--primary-deep);
  box-shadow: 0 14px 32px -28px rgba(29, 103, 134, 0.34);
}

.download-platform-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 12px;
}

.download-platform-actions .button {
  min-width: 220px;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 40px;
}

.site-footer p {
  margin: 0;
  max-width: 44ch;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .site-header {
    flex-wrap: wrap;
  }

  .hero,
  .preview-shell,
  .summary-strip,
  .workflow-grid,
  .use-cases-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    order: 3;
    width: 100%;
    gap: 12px;
    overflow-x: auto;
  }

  .header-actions {
    margin-left: auto;
    gap: 14px;
  }

  .preview-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-platform-panel {
    width: 100%;
  }
}

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

  .site-header {
    gap: 14px;
    padding-inline: 14px;
  }

  .site-header.is-floating {
    border-radius: 18px;
  }

  .site-nav a {
    font-size: 0.84rem;
  }

  .header-actions {
    width: auto;
    gap: 12px;
  }

  .button {
    width: 100%;
  }

  .language-trigger {
    min-height: 40px;
    padding: 0 12px 0 10px;
  }

  .language-menu {
    min-width: 160px;
  }

  .hero h1,
  .page-title {
    font-size: clamp(2.25rem, 11vw, 3.1rem);
  }

  body[data-page="download"] .page-title {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .section-heading h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .hero-pills li {
    width: 100%;
    justify-content: center;
  }

  .preview-shell,
  .workflow-card {
    border-radius: 24px;
  }

  .preview-button,
  .preview-stage {
    border-radius: 20px;
  }

  .download-page-heading {
    width: 100%;
  }

  body[data-page="download"] .page-copy {
    font-size: 1rem;
  }

  .download-platform-grid {
    grid-template-columns: 1fr;
  }

  .download-platform-card {
    padding: 18px;
    border-radius: 24px;
  }

  .download-platform-item,
  .download-platform-link {
    min-height: 72px;
  }

  .download-page-hero {
    min-height: calc(100svh - 122px);
    padding-top: 24px;
    padding-bottom: 24px;
  }
}
