:root {
  --bg: #f6f1e7;
  --bg-elevated: #fbf7ef;
  --surface: rgba(255, 252, 247, 0.82);
  --surface-strong: rgba(255, 253, 249, 0.96);
  --surface-soft: rgba(250, 244, 236, 0.72);
  --line: rgba(31, 58, 47, 0.1);
  --line-strong: rgba(31, 58, 47, 0.2);
  --text: #16261f;
  --muted: #6d7c73;
  --brand: #40b89d;
  --brand-strong: #1b8f78;
  --accent: #e3a062;
  --accent-strong: #dc7a59;
  --shadow: 0 18px 50px rgba(58, 46, 28, 0.1);
  --shadow-strong: 0 28px 80px rgba(58, 46, 28, 0.16);
  --glow-brand: 0 0 0 1px rgba(64, 184, 157, 0.12), 0 18px 48px rgba(64, 184, 157, 0.12);
  --glow-accent: 0 0 0 1px rgba(227, 160, 98, 0.12), 0 18px 52px rgba(220, 122, 89, 0.1);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Instrument Sans", sans-serif;
  background:
    conic-gradient(from 180deg at 18% 14%, rgba(64, 184, 157, 0.05), transparent 28%, transparent 72%, rgba(227, 160, 98, 0.05)),
    radial-gradient(circle at 10% 10%, rgba(64, 184, 157, 0.12), transparent 24%),
    radial-gradient(circle at 80% 8%, rgba(227, 160, 98, 0.12), transparent 22%),
    radial-gradient(circle at 90% 70%, rgba(220, 122, 89, 0.08), transparent 26%),
    linear-gradient(180deg, #f9f4ec 0%, #f5efe6 46%, #f7f2ea 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.38;
}

body::before {
  top: 6%;
  left: -10%;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(64, 184, 157, 0.18), transparent 68%);
  animation: driftA 16s ease-in-out infinite;
}

body::after {
  right: -8%;
  bottom: 8%;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(227, 160, 98, 0.2), transparent 70%);
  animation: driftB 18s ease-in-out infinite;
}

main {
  position: relative;
}

main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(22, 38, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 38, 31, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 86%);
  pointer-events: none;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  border: 0;
  background: none;
  padding: 0;
}

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

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.panel-stack,
.roadmap-grid {
  display: grid;
  gap: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 18px 0;
}

.header-bar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.52)),
    rgba(255, 251, 246, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  position: relative;
  isolation: isolate;
}

.header-bar::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(64, 184, 157, 0.06), transparent 28%, transparent 72%, rgba(227, 160, 98, 0.06));
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(64, 184, 157, 0.16), rgba(227, 160, 98, 0.16)),
    rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(31, 58, 47, 0.1);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--glow-brand);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small,
.eyebrow,
.support-copy,
.countdown-grid small,
.card-kicker span,
.stat-grid small,
.spec-grid small,
.footer-grid p,
.footer-grid a,
.tag-list li {
  color: var(--muted);
}

.site-nav {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
}

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

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54)),
    rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.lang-link:hover,
.lang-link.is-active {
  background: rgba(64, 184, 157, 0.12);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.nav-link,
.nav-cta,
.button,
.menu-toggle {
  border-radius: 999px;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.nav-link {
  padding: 9px 12px;
  color: var(--muted);
  position: relative;
  font-size: 0.92rem;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(64, 184, 157, 0.08);
  color: var(--text);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(64, 184, 157, 0.8), transparent);
  opacity: 0;
  transform: scaleX(0.45);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  cursor: pointer;
}

.nav-cta,
.button-primary {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #f8f6f0;
  font-weight: 700;
  box-shadow: var(--glow-brand);
}

.button-secondary {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.6);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.menu-toggle {
  display: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-cta:hover,
.button:hover,
.menu-toggle:hover {
  transform: translateY(-2px);
}

.page-hero {
  position: relative;
  padding: 56px 0 38px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  background:
    radial-gradient(circle at 18% 26%, rgba(64, 184, 157, 0.08), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(227, 160, 98, 0.09), transparent 30%);
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 48px;
  right: max(3vw, 28px);
  width: min(34vw, 440px);
  height: min(34vw, 440px);
  border-radius: 50%;
  border: 1px solid rgba(31, 58, 47, 0.08);
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.24),
    0 0 0 88px rgba(255, 255, 255, 0.12);
  opacity: 0.7;
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 30px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid rgba(31, 58, 47, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 14px rgba(64, 184, 157, 0.35);
}

h1,
h2,
h3,
strong {
  margin: 0;
}

h1,
h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1;
}

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.8rem);
  max-width: 12ch;
}

.hero-copy h1 {
  background: linear-gradient(180deg, #182923 0%, #264138 52%, #2f7c68 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 3rem);
}

h3 {
  font-size: 1.24rem;
  margin-bottom: 10px;
}

.hero-lead,
.feature-card p,
.detail-card p,
.detail-card li,
.support-copy,
.lead-quote,
.banner-card p,
.model-card p,
.narrative-card p,
.accent-card p {
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin: 30px 0 24px;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag-list li {
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.64)),
    rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
}

html[dir="rtl"] body {
  font-family: "Cairo", "Instrument Sans", sans-serif;
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .section-head,
html[dir="rtl"] .card,
html[dir="rtl"] .footer-grid {
  text-align: right;
}

html[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

html[dir="rtl"] .brand-copy {
  text-align: right;
}

html[dir="rtl"] .site-nav,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .tag-list,
html[dir="rtl"] .language-switch {
  flex-direction: row-reverse;
}

html[dir="rtl"] .bullet-list {
  padding-right: 18px;
  padding-left: 0;
}

html[dir="rtl"] .header-actions {
  justify-self: start;
}

html[dir="rtl"] .countdown-grid,
html[dir="rtl"] .countdown-grid article {
  direction: ltr;
}

html[dir="rtl"] .contact-list p {
  flex-direction: row-reverse;
}

html[dir="rtl"] .contact-list a,
html[dir="rtl"] .contact-list strong {
  text-align: left;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.26) 40%, transparent 68%),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(120%);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(64, 184, 157, 0.08), transparent 36%);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(64, 184, 157, 0), rgba(64, 184, 157, 0.32), rgba(227, 160, 98, 0.34), rgba(227, 160, 98, 0));
  opacity: 0.8;
  pointer-events: none;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-strong);
  }
}

.highlight-card,
.banner-card,
.accent-card,
.callout-card {
  background:
    linear-gradient(180deg, rgba(227, 160, 98, 0.12), transparent 54%),
    var(--surface-strong);
  box-shadow: var(--glow-accent), var(--shadow);
}

.matrix-card {
  background:
    linear-gradient(180deg, rgba(64, 184, 157, 0.12), transparent 52%),
    var(--surface-strong);
  box-shadow: var(--glow-brand), var(--shadow);
}

.narrative-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent 60%),
    rgba(255, 253, 249, 0.88);
}

.narrative-card::before {
  background:
    radial-gradient(circle at top right, rgba(64, 184, 157, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 60%);
}

.narrative-card::after,
.accent-card::after,
.banner-card::after,
.highlight-card::after {
  height: 2px;
}

.lead-quote {
  margin: 0;
  font-size: 1.34rem;
  color: var(--text);
}

.section {
  position: relative;
  padding: 42px 0 52px;
}

.section-soft {
  position: relative;
}

.section-soft::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 58, 47, 0.12), transparent);
  pointer-events: none;
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-head h2 {
  max-width: 16ch;
}

.card-index {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.card-kicker strong {
  color: var(--text);
}

.stat-grid,
.spec-grid,
.countdown-grid {
  display: grid;
  gap: 14px;
}

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

.stat-grid strong,
.spec-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1rem;
}

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

.countdown-grid article {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.58);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.countdown-grid span {
  display: block;
  color: var(--brand);
  font-size: 1.86rem;
  font-weight: 700;
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.compact-list li + li {
  margin-top: 8px;
}

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

.roadmap-card {
  min-height: 100%;
}

.model-card,
.roadmap-card,
.feature-card,
.detail-card {
  min-height: 100%;
}

.model-card h3,
.feature-card h3,
.detail-card h3,
.roadmap-card h3 {
  max-width: 18ch;
}

.banner-card {
  margin-top: 18px;
  padding: 24px 26px;
}

.site-footer {
  padding: 30px 0 46px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 10px;
  line-height: 1.7;
}

.footer-title {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}

.contact-list p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-list span {
  color: var(--muted);
  white-space: nowrap;
}

.contact-list a,
.contact-list strong {
  color: var(--text);
  text-align: right;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes driftA {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(50px, 20px, 0);
  }
}

@keyframes driftB {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-40px, -26px, 0);
  }
}

@media (max-width: 1040px) {
  .hero-layout,
  .grid-4,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .page-hero::after {
    width: min(30vw, 280px);
    height: min(30vw, 280px);
    top: 82px;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-cta {
    justify-self: end;
  }

  .header-actions {
    justify-self: end;
  }

  .hero-layout,
  .grid-2,
  .grid-3,
  .grid-4,
  .stat-grid,
  .spec-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .tag-list {
    display: grid;
  }

  .contact-list p {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .page-hero::after {
    display: none;
  }

  .section-head h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .header-bar {
    grid-template-columns: auto auto;
  }

  .nav-cta {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .language-switch {
    width: 100%;
    justify-content: center;
  }

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

  .card {
    padding: 20px;
  }

  h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
    max-width: none;
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .hero-lead,
  .lead-quote {
    font-size: 1rem;
  }
}
