:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-soft: #eef2ff;
  --text: #111827;
  --muted: #5f6b7a;
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.18);
  --primary: #2563eb;
  --primary-strong: #174dcc;
  --secondary: #7c3aed;
  --cyan: #0891b2;
  --pink: #db2777;
  --green: #16a34a;
  --header: rgba(246, 247, 251, 0.82);
  --shadow: 0 24px 70px rgba(37, 54, 87, 0.14);
  --shadow-soft: 0 12px 36px rgba(37, 54, 87, 0.09);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1240px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080b14;
  --surface: rgba(18, 24, 39, 0.88);
  --surface-solid: #111827;
  --surface-soft: #151c31;
  --text: #f7f9ff;
  --muted: #a8b2c6;
  --line: rgba(226, 232, 240, 0.11);
  --line-strong: rgba(226, 232, 240, 0.20);
  --primary: #60a5fa;
  --primary-strong: #93c5fd;
  --header: rgba(8, 11, 20, 0.82);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(37, 99, 235, 0.09), transparent 31rem),
    radial-gradient(circle at 88% 28%, rgba(124, 58, 237, 0.08), transparent 27rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  transition: background-color 180ms ease, color 180ms ease;
}

button, select { font: inherit; }

a { color: inherit; }

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.showcase-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.header-inner,
.section-shell,
.showcase-footer {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.header-actions,
.editor-link,
.language-select-button,
.language-select-option,
.hero-tool-list,
.role-pills,
.footer-brand,
.showcase-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25);
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-name { font-size: 1.08rem; }

.brand-mode {
  padding: 4px 8px;
  border: 1px solid rgba(37, 99, 235, 0.20);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-actions { gap: 10px; }

.editor-link {
  gap: 7px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.editor-link:hover { color: var(--primary); }

.language-select-wrap { position: relative; display: inline-flex; }

.language-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.language-select-button,
.theme-toggle {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  cursor: pointer;
}

.language-select-button {
  min-width: 152px;
  max-width: 205px;
  gap: 9px;
  padding: 8px 11px;
}

.language-select-flag {
  flex: 0 0 auto;
  width: 24px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.13);
}

.language-select-button-label,
.language-select-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 750;
}

.language-select-arrow {
  width: 8px;
  height: 8px;
  margin-inline-start: auto;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.58;
}

.language-select-menu {
  position: absolute;
  z-index: 180;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  width: min(310px, calc(100vw - 28px));
  max-height: min(510px, calc(100vh - 100px));
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.language-select-menu[hidden] { display: none; }

.language-select-option {
  width: 100%;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: start;
  cursor: pointer;
}

.language-select-option:hover,
.language-select-option.is-active,
.language-select-option[aria-selected="true"] {
  background: var(--surface-soft);
  color: var(--primary);
}

.theme-toggle {
  width: 42px;
  padding: 0;
  font-size: 1.08rem;
}

.language-select-button:focus-visible,
.theme-toggle:focus-visible,
.button:focus-visible,
.locale-cloud button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.34);
  outline-offset: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(46px, 6vw, 92px);
  min-height: 760px;
  padding-block: 92px 86px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }

.eyebrow > span,
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.11);
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.65rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-lead {
  max-width: 630px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.5vw, 1.26rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.button-secondary span:last-child { color: var(--green); font-size: 0.7rem; }

.hero-tool-list {
  flex-wrap: wrap;
  gap: 9px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-tool-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 750;
}

.hero-tool-list li span:first-child { color: var(--primary); }

.hero-visual { position: relative; min-width: 0; }

.hero-glow {
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.35), rgba(124, 58, 237, 0.24), rgba(8, 145, 178, 0.28));
  filter: blur(54px);
}

.product-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.product-frame-hero {
  transform: perspective(1300px) rotateY(-4deg) rotateX(2deg);
  transform-origin: center;
}

html[dir="rtl"] .product-frame-hero { transform: perspective(1300px) rotateY(4deg) rotateX(2deg); }

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-solid);
}

.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #fb7185; }
.window-bar i:nth-child(2) { background: #fbbf24; }
.window-bar i:nth-child(3) { background: #34d399; }
.window-bar span { margin-inline-start: auto; color: var(--muted); font-size: 0.68rem; font-weight: 800; }

.product-frame-hero img { width: 100%; aspect-ratio: 1.45; object-fit: cover; object-position: center top; }

.floating-tag {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.floating-tag b { color: var(--primary); font-size: 0.95rem; }
.floating-tag-one { inset-inline-start: -26px; inset-block-end: 15%; }
.floating-tag-two { inset-inline-end: -18px; inset-block-start: 14%; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(calc(100% - 40px), 1320px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.proof-strip div { padding: 24px; text-align: center; }
.proof-strip div + div { border-inline-start: 1px solid var(--line); }
.proof-strip strong { display: block; color: var(--primary); font-size: 1.35rem; }
.proof-strip span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.73rem; font-weight: 750; }

.gallery-section { padding-block: 138px 110px; }

.section-heading { max-width: 780px; margin-bottom: 50px; }
.section-heading-center { margin-inline: auto; text-align: center; }
.section-heading h2,
.live-copy h2,
.languages-copy h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.5vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}
.section-heading > p:last-child,
.live-copy > p,
.languages-copy > p:last-child,
.final-cta p:not(.section-kicker) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

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

.feature-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-card-wide { grid-column: span 12; display: grid; grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr); align-items: center; }
.feature-card-tall { grid-column: span 4; }
.feature-card-compact { grid-column: span 5; }
.feature-card-output { grid-column: span 3; }
.feature-card-mobile { grid-column: span 4; }

.feature-copy { padding: 30px; }
.feature-number { color: var(--primary); font: 900 0.72rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.16em; }
.feature-copy h3 { margin: 12px 0 0; font-size: 1.45rem; letter-spacing: -0.035em; }
.feature-copy p { margin: 10px 0 0; color: var(--muted); font-size: 0.92rem; }
.feature-media { margin: 0; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }

.toolbar-media { padding: 22px 22px 22px 0; }
html[dir="rtl"] .toolbar-media { padding: 22px 0 22px 22px; }
.toolbar-media img,
.controls-media img,
.panel-media img {
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
}

.paper-media { margin: 0 24px 24px; max-height: 490px; border-radius: 16px 16px 0 0; box-shadow: 0 16px 42px rgba(15, 23, 42, 0.11); }
.paper-media img { object-position: center top; }
.feature-card-selection .paper-media img { object-position: center 10%; }

.feature-card-layers { display: grid; grid-template-columns: 0.72fr 1fr; align-items: center; background: linear-gradient(135deg, var(--surface), rgba(124, 58, 237, 0.08)); }
.panel-media { padding: 24px 24px 24px 0; }
html[dir="rtl"] .panel-media { padding: 24px 0 24px 24px; }

.feature-card-image { background: linear-gradient(135deg, var(--surface), rgba(8, 145, 178, 0.07)); }
.controls-media { padding: 34px 28px 34px 0; }
html[dir="rtl"] .controls-media { padding: 34px 0 34px 28px; }
.controls-media img { height: auto; }

.feature-card-output { background: linear-gradient(160deg, var(--surface), rgba(22, 163, 74, 0.07)); }
.output-media { margin: 0 22px 22px; max-height: 405px; border-radius: 14px 14px 0 0; box-shadow: 0 16px 38px rgba(15, 23, 42, 0.11); }
.output-media img { object-position: center top; }

.feature-card-mobile { display: grid; grid-template-columns: 0.82fr 1fr; align-items: end; background: linear-gradient(155deg, var(--surface), rgba(37, 99, 235, 0.08)); }
.mobile-media { align-self: end; max-height: 410px; margin: 22px 22px 0 0; border-radius: 30px 30px 0 0; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15); }
html[dir="rtl"] .mobile-media { margin: 22px 0 0 22px; }
.mobile-media img { object-position: center top; }

.live-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(54px, 8vw, 120px);
  padding-block: 110px 130px;
  overflow: clip;
}

.live-visual { position: relative; }
.live-orbit { position: absolute; inset: -8%; border: 1px dashed rgba(22, 163, 74, 0.25); border-radius: 50%; transform: rotate(-12deg); }
.live-frame { border-radius: 32px; }
.live-frame img { width: 100%; }
.live-copy { position: relative; z-index: 1; }
.live-copy .section-kicker { display: flex; align-items: center; gap: 12px; color: var(--green); }
.role-pills { flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.role-pills span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.8rem; }
.role-pills i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.role-pills .role-editor { background: var(--green); }
.role-pills .role-viewer { background: var(--secondary); }
.text-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--primary); font-weight: 900; text-decoration: none; }

.workflow-section { padding-block: 116px; border-block: 1px solid var(--line); }
.workflow-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 54px 0 0; padding: 0; list-style: none; }
.workflow-list li { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.workflow-list li > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--surface-soft); color: var(--primary); font-weight: 900; }
.workflow-list strong { display: block; margin-top: 22px; font-size: 1rem; }
.workflow-list small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.45; }

.languages-section { display: grid; grid-template-columns: 0.38fr 0.62fr; gap: clamp(42px, 8vw, 110px); align-items: start; padding-block: 130px; }
.locale-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.locale-cloud button { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; }
.locale-cloud button:hover,
.locale-cloud button.is-active { border-color: rgba(37, 99, 235, 0.38); background: var(--surface-soft); color: var(--primary); }
.locale-cloud span { font-size: 0.78rem; font-weight: 750; }

.final-cta {
  position: relative;
  width: min(calc(100% - 40px), 1320px);
  margin: 0 auto 80px;
  overflow: hidden;
  padding: clamp(54px, 8vw, 95px);
  border-radius: var(--radius-xl);
  background: linear-gradient(125deg, #1d4ed8, #6d28d9 60%, #0891b2);
  color: #fff;
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.28);
}
.final-cta > div:not(.final-cta-orb) { position: relative; z-index: 1; max-width: 770px; }
.final-cta .section-kicker,
.final-cta p:not(.section-kicker) { color: rgba(255, 255, 255, 0.78); }
.final-cta-orb { position: absolute; width: 420px; height: 420px; inset-inline-end: -70px; inset-block-start: -155px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.05), 0 0 0 84px rgba(255, 255, 255, 0.035); }
.button-light { margin-top: 30px; background: #fff; color: #1d4ed8; box-shadow: 0 15px 35px rgba(15, 23, 42, 0.22); }

.showcase-footer { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-block: 32px 44px; color: var(--muted); }
.footer-brand { gap: 9px; color: var(--text); font-weight: 900; text-decoration: none; }
.footer-brand img { width: 30px; height: 30px; border-radius: 9px; }
.showcase-footer nav { flex-wrap: wrap; gap: 20px; }
.showcase-footer nav a { font-size: 0.84rem; font-weight: 750; text-decoration: none; }
.showcase-footer nav a:hover { color: var(--primary); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: 780px; }
  .hero-visual { width: min(100%, 900px); margin-inline: auto; }
  .feature-card-tall { grid-column: span 6; }
  .feature-card-compact { grid-column: span 6; }
  .feature-card-output { grid-column: span 6; }
  .feature-card-mobile { grid-column: span 6; }
  .live-section { grid-template-columns: 1fr; }
  .live-visual { width: min(100%, 680px); margin-inline: auto; }
  .live-copy { max-width: 760px; }
  .languages-section { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner, .section-shell, .showcase-footer { width: min(calc(100% - 24px), var(--max)); }
  .header-inner { min-height: 66px; gap: 10px; }
  .brand-name, .brand-mode, .editor-link { display: none; }
  .header-actions { gap: 7px; }
  .language-select-button { min-width: 0; width: 56px; padding: 8px 10px; }
  .language-select-button-label { display: none; }
  .language-select-menu { position: fixed; inset-block-start: 72px; inset-inline: 12px; width: auto; }
  .hero { padding-block: 65px 72px; gap: 55px; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .product-frame-hero, html[dir="rtl"] .product-frame-hero { transform: none; }
  .floating-tag { display: none; }
  .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100% - 24px); }
  .proof-strip div + div { border-inline-start: 0; }
  .proof-strip div:nth-child(even) { border-inline-start: 1px solid var(--line); }
  .proof-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .proof-strip div:last-child { grid-column: 1 / -1; }
  .gallery-section { padding-block: 92px 80px; }
  .feature-card-wide,
  .feature-card-tall,
  .feature-card-compact,
  .feature-card-output,
  .feature-card-mobile { grid-column: 1 / -1; }
  .feature-card-wide { display: block; }
  .toolbar-media, .controls-media { padding: 0 20px 20px; }
  html[dir="rtl"] .toolbar-media, html[dir="rtl"] .controls-media { padding: 0 20px 20px; }
  .feature-card-layers { grid-template-columns: 0.72fr 1fr; }
  .feature-card-mobile { min-height: 440px; }
  .live-section { padding-block: 82px 94px; }
  .workflow-section { padding-block: 86px; }
  .workflow-list { grid-template-columns: 1fr 1fr; }
  .languages-section { padding-block: 90px; }
  .final-cta { width: calc(100% - 24px); margin-bottom: 42px; padding: 52px 26px; }
  .showcase-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-actions .button { width: 100%; }
  .hero-tool-list li { flex: 1 1 calc(50% - 9px); }
  .feature-copy { padding: 24px; }
  .feature-card-layers { grid-template-columns: 1fr; }
  .panel-media { padding: 0 24px 24px; }
  html[dir="rtl"] .panel-media { padding: 0 24px 24px; }
  .feature-card-mobile { grid-template-columns: 0.8fr 1fr; }
  .workflow-list { grid-template-columns: 1fr; }
  .locale-cloud button { padding: 8px 10px; }
}

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