:root {
  --bg: #faf9ff;
  --bg-soft: #f5f2ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(168, 139, 250, 0.22);
  --line-strong: rgba(168, 139, 250, 0.42);
  --text-main: #171429;
  --text-soft: #5a5375;
  --accent: #b79dff;
  --accent-strong: #8f6ff8;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-soft: 0 20px 45px rgba(131, 102, 212, 0.12);
  --shadow-card: 0 18px 36px rgba(131, 102, 212, 0.11);
  --max-width: 1320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "SF Pro Display", "Avenir Next", "PingFang SC", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 8% -8%, rgba(200, 182, 255, 0.55), rgba(200, 182, 255, 0) 35%),
    radial-gradient(circle at 92% 8%, rgba(226, 214, 255, 0.7), rgba(226, 214, 255, 0) 40%),
    linear-gradient(180deg, #ffffff 0%, #fbf9ff 42%, #f8f5ff 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.ambient {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
}

.ambient-a {
  width: 360px;
  height: 360px;
  left: -120px;
  top: 80px;
  background: rgba(204, 182, 255, 0.6);
}

.ambient-b {
  width: 300px;
  height: 300px;
  right: -90px;
  top: 34%;
  background: rgba(224, 211, 255, 0.65);
}

.site-header,
main,
.site-footer {
  width: min(var(--max-width), calc(100% - 48px));
}

.site-header {
  position: sticky;
  top: 14px;
  margin: 14px auto 0;
  z-index: 60;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 177, 255, 0.34);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(166, 143, 235, 0.11);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(173, 144, 250, 0.5);
  box-shadow: 0 16px 28px rgba(161, 132, 235, 0.18);
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.2vw, 20px);
  color: var(--text-soft);
  font-size: 0.93rem;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent-strong), #d1bcff);
  transition: transform 0.25s ease;
}

.site-nav a:hover {
  color: #2b2153;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.82rem;
  border: 1px solid rgba(186, 164, 248, 0.34);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 6px 10px;
}

.language-switch select {
  border: 0;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  cursor: pointer;
  min-width: 96px;
  outline: none;
}

.language-switch option {
  color: #1f1938;
}

.nav-cta {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(165, 133, 247, 0.5);
  color: #362964;
  background: linear-gradient(120deg, rgba(235, 227, 255, 1) 0%, rgba(246, 241, 255, 1) 100%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(159, 126, 238, 0.23);
}

main {
  margin: 0 auto;
}

.hero {
  min-height: calc(96vh - 80px);
  margin-top: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(250, 245, 255, 0.82));
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 11vh, 118px) clamp(22px, 5vw, 70px) 38px;
  display: flex;
  align-items: flex-end;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.86;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("./assets/pattern-cloud.svg");
  background-size: 280px 136px;
  background-repeat: repeat;
  opacity: 0.4;
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6f51d9;
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.1rem, 4.9vw, 4.5rem);
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.hero-subtitle {
  margin-top: 18px;
  max-width: 88ch;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.44vw, 1.18rem);
}

.print-stream {
  margin-top: 22px;
  width: min(1160px, 100%);
  min-height: 56px;
  height: auto;
  display: flex;
  align-items: flex-start;
  padding: 10px 16px;
  overflow: visible;
  position: relative;
  border-radius: 14px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(136, 105, 227, 0.085) 0,
      rgba(136, 105, 227, 0.085) 1px,
      rgba(255, 255, 255, 0.86) 1px,
      rgba(255, 255, 255, 0.86) 6px
    );
  border: 1.5px solid rgba(146, 113, 236, 0.3);
  box-shadow:
    inset 0 0 0 1px rgba(188, 168, 248, 0.3),
    0 6px 18px rgba(156, 128, 238, 0.12);
}

.print-line {
  margin: 0;
  width: 100%;
  min-height: 0;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  font-size: clamp(0.69rem, 0.88vw, 0.88rem);
  color: #4f3997;
  letter-spacing: 0.01em;
  line-height: 1.28;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: clip;
}

.print-line .caret {
  display: inline-block;
  width: 8px;
  margin-left: 1px;
  color: #6f51d9;
  animation: blink 0.95s steps(1, end) infinite;
}

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

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

.btn {
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 0.93rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:focus-visible,
.nav-cta:focus-visible,
.language-switch select:focus-visible,
.site-nav a:focus-visible {
  outline: 2px solid #7e5df0;
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(118deg, #bea6ff 0%, #ebdeff 100%);
  color: #2f2358;
  border-color: rgba(136, 105, 227, 0.35);
  box-shadow: 0 10px 24px rgba(163, 131, 242, 0.22);
}

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

.btn-ghost {
  border-color: rgba(161, 128, 244, 0.38);
  background: rgba(255, 255, 255, 0.85);
  color: #503b95;
}

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

.hero-metrics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 920px;
}

.metric-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 18px rgba(160, 133, 236, 0.12);
}

.metric-card span {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.metric-card strong {
  display: block;
  margin-top: 2px;
  font-size: 0.95rem;
  color: #2d2352;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metric-contact strong {
  font-size: clamp(0.78rem, 0.88vw, 0.9rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}

.section {
  padding-top: 120px;
}

.section[id] {
  scroll-margin-top: 112px;
}

.section-tight {
  padding-top: 88px;
}

.section-header {
  max-width: 100%;
}

.section-header h2 {
  margin-top: 3px;
  font-size: clamp(1.72rem, 3.1vw, 2.9rem);
  letter-spacing: -0.024em;
  max-width: 100%;
  text-wrap: balance;
}

.section-header p {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 1.04rem;
  max-width: 92ch;
  text-wrap: pretty;
}

.showcase-layout {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.showcase-view {
  min-height: 460px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: opacity 0.85s ease, filter 0.85s ease;
}

.showcase-view::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.22) 100%);
}

.showcase-view.is-fading {
  opacity: 0.6;
  filter: saturate(85%);
}

.showcase-panel {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  background:
    radial-gradient(circle at 90% 20%, rgba(200, 182, 255, 0.24), rgba(200, 182, 255, 0) 44%),
    rgba(255, 255, 255, 0.92);
}

.showcase-index {
  margin: 0;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  color: #7f62dd;
  font-size: 0.86rem;
}

.showcase-panel h3 {
  font-size: 1.62rem;
}

.showcase-panel p {
  margin: 0;
  color: var(--text-soft);
}

.showcase-dots {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.showcase-dot {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: rgba(151, 120, 235, 0.22);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.showcase-dot.is-active {
  background: linear-gradient(90deg, #9d7bf4, #c3acff);
  transform: scaleY(1.2);
}

.spotlight-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.spotlight-card {
  border-radius: 20px;
  border: 1px solid rgba(168, 139, 250, 0.26);
  background:
    radial-gradient(circle at 84% 18%, rgba(195, 173, 255, 0.3), rgba(195, 173, 255, 0) 42%),
    #ffffff;
  box-shadow: 0 14px 32px rgba(153, 122, 235, 0.12);
  padding: 24px;
}

.spotlight-wide {
  grid-column: span 2;
}

.spotlight-label {
  margin: 0;
  color: #7057ce;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.spotlight-card h3 {
  margin-top: 10px;
  font-size: clamp(1.22rem, 2.1vw, 2rem);
  letter-spacing: -0.015em;
}

.spotlight-card p {
  margin: 10px 0 0;
  color: var(--text-soft);
  max-width: 58ch;
}

.spotlight-link {
  margin-top: 14px;
  display: inline-flex;
  font-weight: 600;
  color: #573faa;
}

.spotlight-link::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.spotlight-link:hover::after {
  transform: translateX(4px);
}

.bento-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bento-card,
.future-card,
.philosophy-card,
.metric-card,
.blueprint-wrap {
  position: relative;
  overflow: hidden;
}

.bento-card::before,
.future-card::before,
.philosophy-card::before,
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    320px circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
    rgba(185, 157, 255, 0.2),
    rgba(185, 157, 255, 0) 58%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tilt-card:hover::before {
  opacity: 1;
}

.bento-card {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 24px;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(152, 117, 238, 0.46);
  box-shadow: 0 22px 34px rgba(152, 117, 238, 0.18);
}

.engine-media {
  margin: -4px -4px 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(166, 136, 248, 0.25);
  aspect-ratio: 16 / 9;
  background: #f2ecff;
}

.engine-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.bento-card:hover .engine-media img {
  transform: scale(1.03);
  filter: saturate(108%);
}

.ecosystem-header {
  max-width: none;
}

.ecosystem-title-one-line {
  font-size: clamp(1.75rem, 3vw, 3.1rem);
}

#blueprint .section-header {
  max-width: none;
}

.blueprint-title-one-line {
  font-size: clamp(1.72rem, 2.8vw, 2.9rem);
}

.js-fit-line {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  line-height: 1.08;
}

.card-label {
  margin: 0;
  color: #7b5ee1;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.bento-card h3 {
  margin-top: 10px;
  font-size: 1.56rem;
}

.card-role {
  margin: 7px 0 10px;
  color: #5d4f95;
  font-size: 0.92rem;
}

.bento-card p {
  color: var(--text-soft);
}

.bento-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #342b56;
  display: grid;
  gap: 7px;
}

.blueprint-wrap {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  padding: 16px;
}

.blueprint-graphic {
  border-radius: 16px;
  border: 1px solid rgba(174, 146, 247, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 240, 255, 0.94));
}

.blueprint-graphic svg {
  width: 100%;
  height: 100%;
}

.bp-frame {
  fill: rgba(255, 255, 255, 0.8);
  stroke: rgba(162, 130, 240, 0.4);
  stroke-width: 1;
}

.bp-line {
  stroke: rgba(162, 130, 240, 0.2);
  stroke-width: 1;
}

.bp-flow {
  fill: none;
  stroke: url(#lineGrad);
  stroke-width: 2.2;
  stroke-dasharray: 7 8;
  animation: dashFlow 6s linear infinite;
}

.bp-node {
  fill: #bda4ff;
  opacity: 0.72;
}

.bp-node.center {
  fill: #8f6ff8;
  animation: pulse 1.9s ease-in-out infinite;
}

@keyframes dashFlow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -120;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.blueprint-points {
  display: grid;
  gap: 12px;
}

.blueprint-points article {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 16px;
}

.blueprint-points h3 {
  font-size: 1.15rem;
}

.blueprint-points p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.manifesto {
  margin: 18px 0 0;
  border: 1px solid rgba(164, 132, 246, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 20%, rgba(198, 176, 255, 0.34), rgba(198, 176, 255, 0) 45%),
    rgba(255, 255, 255, 0.92);
  padding: 20px 24px;
  box-shadow: 0 14px 28px rgba(161, 133, 240, 0.12);
}

.manifesto p {
  margin: 0;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  letter-spacing: 0.005em;
  color: #382a68;
}

.manifesto cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.84rem;
  color: #6958a7;
}

.trust-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-card {
  border: 1px solid rgba(168, 139, 250, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(151, 119, 233, 0.1);
  padding: 20px;
}

.trust-card h3 {
  font-size: 1.22rem;
}

.trust-card p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.section-header h2,
.section-header p,
.showcase-panel h3,
.showcase-panel p,
.spotlight-card h3,
.spotlight-card p,
.bento-card h3,
.bento-card p,
.bento-card li,
.blueprint-points h3,
.blueprint-points p,
.trust-card h3,
.trust-card p,
.future-card h3,
.future-card p,
.philosophy-card h3,
.philosophy-card p {
  overflow-wrap: anywhere;
}

.future-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.future-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease;
}

.future-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.coming {
  display: inline-flex;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  background: rgba(191, 166, 255, 0.18);
  color: #5c44af;
  border: 1px solid rgba(167, 136, 249, 0.34);
}

.future-card h3 {
  margin-top: 11px;
  font-size: 1.42rem;
}

.future-card p {
  margin-top: 10px;
  color: var(--text-soft);
}

.philosophy-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.philosophy-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease;
}

.philosophy-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.philosophy-card h3 {
  font-size: 1.34rem;
}

.philosophy-card p {
  margin-top: 10px;
  color: var(--text-soft);
}

.dna-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dna-tags span {
  border: 1px solid rgba(164, 132, 246, 0.36);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.83rem;
  background: rgba(236, 228, 255, 0.7);
  color: #4b377f;
}

.final-cta {
  margin-top: 116px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 48%, rgba(199, 178, 255, 0.33), rgba(199, 178, 255, 0) 43%),
    var(--surface-strong);
  box-shadow: var(--shadow-soft);
  padding: clamp(30px, 4vw, 54px);
}

.final-cta h2 {
  font-size: clamp(1.66rem, 3.4vw, 2.8rem);
}

.final-cta p {
  margin-top: 14px;
  max-width: 70ch;
  color: var(--text-soft);
}

.final-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.site-footer {
  margin: 64px auto 38px;
  border-top: 1px solid rgba(180, 150, 252, 0.28);
  padding-top: 16px;
  color: #655d84;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-mail {
  font-weight: 600;
  color: #5942ad;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(3px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease,
    filter 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.webgl-fallback #heroCanvas {
  display: none;
}

.webgl-fallback .hero {
  background:
    radial-gradient(circle at 70% 45%, rgba(201, 183, 255, 0.24), rgba(201, 183, 255, 0) 40%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(247, 241, 255, 0.9));
}

html[dir="rtl"] .site-nav,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .final-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-subtitle,
html[dir="rtl"] .section-header p,
html[dir="rtl"] .bento-card p,
html[dir="rtl"] .future-card p,
html[dir="rtl"] .philosophy-card p,
html[dir="rtl"] .blueprint-points p,
html[dir="rtl"] .final-cta p {
  text-align: right;
}

html[dir="rtl"] .bento-card ul {
  padding-right: 18px;
  padding-left: 0;
}

@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .showcase-layout,
  .spotlight-grid,
  .trust-grid,
  .blueprint-wrap,
  .future-grid,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-wide {
    grid-column: span 1;
  }

  .ecosystem-title-one-line {
    white-space: normal !important;
  }

  .blueprint-title-one-line {
    white-space: normal !important;
  }

  .section-header h2 {
    text-wrap: pretty;
  }

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

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .site-header {
    border-radius: 22px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .language-switch {
    flex: 1;
    min-width: 0;
  }

  .language-switch select {
    width: 100%;
  }

  .hero {
    min-height: 92vh;
    padding: 66px 16px 20px;
  }

  .print-stream {
    min-height: 54px;
    padding: 9px 10px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 92px;
  }

  .section[id] {
    scroll-margin-top: 138px;
  }

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

  .showcase-view {
    min-height: 320px;
  }
}

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