/* ============================================
   CashGo — Premium Saudi FinTech
   Green · Navy · White | Arabic RTL
   ============================================ */

:root {
  --green-bright: #85c441;
  --green: #008d46;
  --green-deep: #006b35;
  --green-soft: rgba(0, 141, 70, 0.08);
  --green-mid: rgba(0, 141, 70, 0.14);
  --navy: #0d2c4d;
  --navy-deep: #071a2e;
  --navy-soft: #1a3f63;
  --white: #ffffff;
  --surface: #f7faf8;
  --surface-2: #eef5f0;
  --muted: #5c7286;
  --line: rgba(13, 44, 77, 0.09);
  --line-strong: rgba(13, 44, 77, 0.14);
  --green-grad: linear-gradient(135deg, #85c441 0%, #008d46 72%);
  --soft-grad: linear-gradient(145deg, rgba(133, 196, 65, 0.12), rgba(0, 141, 70, 0.05) 45%, rgba(13, 44, 77, 0.04));
  --hero-grad: linear-gradient(155deg, #0a2744 0%, #0d2c4d 42%, #0a3328 100%);
  --navy-grad: linear-gradient(155deg, #0d2c4d 0%, #071a2e 100%);
  --shadow-sm: 0 4px 16px rgba(7, 26, 46, 0.04);
  --shadow: 0 16px 40px rgba(7, 26, 46, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 80px;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-en: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font: var(--font-ar);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: min(1120px, calc(100% - 3rem));
}

html[lang="en"],
html[dir="ltr"] {
  --font: var(--font-en);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.8;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

main,
.section,
.hero,
.site-footer {
  position: relative;
  isolation: isolate;
}

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

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100%;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 10px;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img,
.logo-wordmark {
  width: 148px;
  height: auto;
  object-fit: contain;
  display: block;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.lang-switch a {
  min-width: 44px;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-en);
}

.lang-switch a[lang="ar"] {
  font-family: var(--font-ar);
}

.lang-switch a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.lang-switch a.is-active {
  background: var(--green-grad);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 141, 70, 0.25);
}

.site-header.is-scrolled .lang-switch,
.site-header.menu-open .lang-switch {
  border-color: var(--line);
  background: var(--surface);
}

.site-header.is-scrolled .lang-switch a,
.site-header.menu-open .lang-switch a {
  color: var(--navy-soft);
}

.site-header.is-scrolled .lang-switch a:hover,
.site-header.menu-open .lang-switch a:hover {
  color: var(--navy);
  background: rgba(0, 141, 70, 0.08);
}

.site-header.is-scrolled .lang-switch a.is-active,
.site-header.menu-open .lang-switch a.is-active {
  color: var(--white);
  background: var(--green-grad);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--green-bright);
}

.site-header.is-scrolled .nav a:not(.nav-cta),
.site-header.menu-open .nav a:not(.nav-cta) {
  color: var(--navy-soft);
}

.site-header.is-scrolled .nav a:not(.nav-cta):hover,
.site-header.menu-open .nav a:not(.nav-cta):hover {
  color: var(--green);
}

.nav-cta {
  background: var(--green-grad);
  color: var(--white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: 12px;
  font-weight: 600 !important;
  box-shadow: 0 8px 20px rgba(0, 141, 70, 0.22);
}

.nav-cta:hover {
  filter: brightness(1.04);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  border: 1.5px solid transparent;
}

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

.btn-primary {
  background: var(--green-grad);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 141, 70, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(0, 141, 70, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  background: var(--hero-grad);
  color: var(--white);
  overflow: hidden;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 85% 25%, rgba(133, 196, 65, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 55% at 10% 80%, rgba(0, 141, 70, 0.18), transparent 65%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 65% 55% at 70% 40%, #000, transparent);
}

.hero-flow {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: min(70vw, 720px);
  opacity: 0.55;
}

.flow-path {
  stroke: #85c441;
  stroke-width: 1.25;
  stroke-linecap: round;
  fill: none;
  opacity: 0.45;
  stroke-dasharray: 8 14;
  animation: dashMove 18s linear infinite;
}

.flow-path--soft {
  stroke: #ffffff;
  opacity: 0.18;
  animation-duration: 24s;
  animation-direction: reverse;
}

.flow-node {
  fill: #85c441;
  opacity: 0.7;
}

.hero-content {
  max-width: 580px;
}

.hero-brand {
  margin-bottom: 2rem;
}

.hero-logo {
  width: min(280px, 72vw);
  height: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 1.15rem;
  max-width: 13ch;
  line-height: 1.35;
}

html[lang="en"] .hero-title {
  max-width: 16ch;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

html[lang="en"] .hero-lead {
  max-width: 36ch;
}

html[lang="en"] body {
  line-height: 1.65;
}

html[lang="en"] .section-text {
  line-height: 1.7;
}

.hero-title span {
  background: var(--green-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 30ch;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.visual-stage {
  position: relative;
  width: min(380px, 88%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.visual-gradient {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 196, 65, 0.28), transparent 68%);
  filter: blur(8px);
  animation: glowSoft 7s ease-in-out infinite;
}

.visual-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: drift 16s ease-in-out infinite;
}

.visual-logo-wrap {
  position: relative;
  z-index: 2;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  place-items: center;
  padding: 0;
}

.visual-logo-wrap .logo-icon,
.visual-logo-wrap img {
  width: 82%;
  height: auto;
  object-fit: contain;
}

/* ---------- Shared section styles ---------- */

.section {
  padding: clamp(5.5rem, 9vw, 8rem) 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.85rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-grad);
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.section-text {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.9;
}

.section-head {
  margin-bottom: 3.25rem;
  max-width: 480px;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 520px;
}

.section-head--center .eyebrow {
  justify-content: center;
}

/* ---------- About ---------- */

.section-about {
  background:
    radial-gradient(ellipse 40% 60% at 100% 0%, rgba(133, 196, 65, 0.07), transparent),
    var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 4rem;
  align-items: start;
}

.about-copy .section-text {
  font-size: 1.15rem;
  color: var(--navy-soft);
}

.about-aside {
  background: var(--soft-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.aside-line {
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: var(--green-grad);
  margin-bottom: 1.5rem;
}

.aside-points {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.aside-points li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}

.mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mini-icon svg {
  width: 18px;
  height: 18px;
}

/* ---------- Vision ---------- */

.section-vision {
  background: var(--surface);
}

.vision-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.25rem);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.vision-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green-grad);
}

.vision-ornament {
  color: var(--green);
  width: 110px;
  opacity: 0.85;
}

.vision-body .section-text {
  max-width: 58ch;
}

/* ---------- Goals ---------- */

.section-goals {
  background: var(--white);
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.goal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem 1.5rem;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s, background 0.3s;
}

.goal-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  border-color: rgba(0, 141, 70, 0.22);
  box-shadow: var(--shadow);
}

.goal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--green);
}

.goal-card:hover .goal-icon {
  background: var(--green-soft);
  border-color: rgba(0, 141, 70, 0.2);
}

.goal-icon svg {
  width: 22px;
  height: 22px;
}

.goal-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.55;
}

/* ---------- Why ---------- */

.section-why {
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(133, 196, 65, 0.06), transparent),
    var(--surface);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
}

.why-card {
  grid-column: span 2;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem 1.6rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.why-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.why-card:nth-child(5),
.why-card--wide {
  grid-column: 4 / span 2;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 141, 70, 0.2);
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 1.15rem;
}

.why-icon svg {
  width: 22px;
  height: 22px;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.55rem;
}

.why-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ---------- Technology ---------- */

.section-tech {
  background: var(--white);
}

.tech-panel {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 4.5vw, 3.5rem);
  background: var(--soft-grad);
  border: 1px solid var(--line);
}

.tech-visual {
  width: 160px;
  height: 160px;
  margin-inline: auto;
}

.tech-visual svg {
  width: 100%;
  height: 100%;
}

.tech-copy .section-text {
  max-width: 52ch;
}

/* ---------- CTA ---------- */

.section-cta {
  background: var(--surface);
  padding-bottom: clamp(5.5rem, 9vw, 8rem);
}

.cta-panel {
  text-align: center;
  border-radius: var(--radius-lg);
  padding: clamp(3.25rem, 6vw, 4.75rem) 1.75rem;
  background: var(--navy-grad);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(133, 196, 65, 0.18);
  filter: blur(60px);
  inset-inline-end: -80px;
  top: -100px;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel .section-title {
  color: var(--white);
  max-width: 18ch;
  margin-inline: auto;
}

.cta-panel .section-text {
  color: rgba(255, 255, 255, 0.76);
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 0.9fr;
  gap: 2.75rem;
  padding-bottom: 3rem;
}

.footer-brand img,
.footer-brand .logo-wordmark {
  width: 150px;
  height: auto;
  margin-bottom: 1.15rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 28ch;
  line-height: 1.75;
}

.footer-nav,
.footer-contact,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-nav h3,
.footer-contact h3,
.footer-legal h3 {
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.footer-nav a,
.footer-legal a {
  opacity: 0.8;
  transition: color 0.2s, opacity 0.2s;
  width: fit-content;
  font-size: 0.95rem;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--green-bright);
  opacity: 1;
}

.footer-lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-lang span {
  opacity: 0.7;
}

.footer-lang a {
  opacity: 0.85;
}

.footer-lang a.is-active {
  color: var(--green-bright);
  opacity: 1;
  font-weight: 600;
}

.editable-contact {
  display: inline-block;
  color: var(--green-bright);
  border-bottom: 1px dashed rgba(133, 196, 65, 0.45);
  padding: 0 0.15rem;
  outline: none;
}

.editable-contact:hover,
.editable-contact:focus {
  background: rgba(133, 196, 65, 0.12);
  border-bottom-color: var(--green-bright);
}

.socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.55rem;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.socials a:hover {
  background: rgba(133, 196, 65, 0.14);
  border-color: var(--green-bright);
  color: var(--green-bright);
}

.socials svg {
  width: 15px;
  height: 15px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Legal ---------- */

.legal-page {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: var(--surface);
  min-height: 70vh;
}

.legal-page .container.narrow,
.legal-page .container {
  width: min(760px, calc(100% - 2.5rem));
}

.legal-page .section-title {
  margin-bottom: 1.5rem;
}

.legal-page article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}

.legal-page h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.1rem;
}

.legal-page p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.legal-page .back-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--green);
  font-weight: 600;
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.goals-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.goals-grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.goals-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.goals-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.goals-grid .reveal:nth-child(6) { transition-delay: 0.25s; }

.why-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.why-grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.why-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.why-grid .reveal:nth-child(5) { transition-delay: 0.2s; }

@keyframes dashMove {
  to { stroke-dashoffset: -220; }
}

@keyframes glowSoft {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes drift {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .flow-path,
  .visual-gradient,
  .visual-mark {
    animation: none !important;
  }
}

/* ---------- Nav overlay ---------- */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 26, 46, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-locked {
  overflow: hidden;
  touch-action: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .nav {
    gap: 0.9rem;
  }

  .nav a {
    font-size: 0.88rem;
  }

  html[lang="en"] .nav a {
    font-size: 0.82rem;
  }
}

/* Tablet + mobile: hamburger menu (avoids English nav overflow) */
@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
    --container: min(1120px, calc(100% - 2rem));
  }

  .site-header {
    padding-top: env(safe-area-inset-top, 0);
    height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  }

  .brand {
    flex-shrink: 0;
    z-index: 2;
  }

  .brand img,
  .brand .logo-wordmark {
    width: 128px;
    max-width: 42vw;
  }

  .menu-toggle {
    display: flex;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 12px;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
  }

  .header-actions {
    gap: 0.55rem;
    margin-inline-start: auto;
  }

  .lang-switch {
    z-index: 2;
  }

  .lang-switch a {
    min-width: 44px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .nav {
    position: fixed;
    inset-inline: 0;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    bottom: 0;
    z-index: 95;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 1rem 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    border-bottom: none;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    font-size: 1.05rem !important;
    color: var(--navy) !important;
    -webkit-tap-highlight-color: transparent;
  }

  .nav a:hover,
  .nav a:active {
    background: var(--green-soft);
    color: var(--green) !important;
  }

  .nav-cta {
    justify-content: center;
    text-align: center;
    margin-top: 0.65rem;
    color: var(--white) !important;
    min-height: 54px;
  }

  .nav-cta:hover,
  .nav-cta:active {
    color: var(--white) !important;
    filter: brightness(1.04);
    background: var(--green-grad);
  }

  .site-header:not(.is-scrolled) .menu-toggle span {
    background: var(--white);
  }

  .site-header.is-scrolled .menu-toggle span,
  .site-header.menu-open .menu-toggle span {
    background: var(--navy);
  }

  .site-header.menu-open {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 1px 0 var(--line);
  }


  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1.75rem) 0 3.5rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-content {
    max-width: none;
    text-align: center;
  }

  .hero-title,
  .hero-lead {
    max-width: none;
    margin-inline: auto;
  }

  html[lang="en"] .hero-title,
  html[lang="en"] .hero-lead {
    max-width: none;
  }

  .hero-actions,
  .hero-brand {
    justify-content: center;
    display: flex;
  }

  .hero-visual {
    min-height: 260px;
    order: -1;
  }

  .visual-stage {
    width: min(260px, 62vw);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .vision-card {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 1.75rem 1.35rem;
  }

  .vision-ornament {
    width: 64px;
  }

  .goals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .why-card,
  .why-card:nth-child(4),
  .why-card:nth-child(5),
  .why-card--wide {
    grid-column: auto;
  }

  .tech-panel {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.75rem 1.35rem;
  }

  .tech-copy .section-text {
    margin-inline: auto;
  }

  .tech-copy .eyebrow {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .btn {
    min-height: 52px;
    padding: 0.95rem 1.5rem;
  }

  .section {
    padding: clamp(3.75rem, 7vw, 5.5rem) 0;
  }

  .section-text,
  .about-copy .section-text {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
  }

  .cta-panel {
    padding: 2.75rem 1.35rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
    --container: min(1120px, calc(100% - 1.5rem));
  }

  .brand img,
  .brand .logo-wordmark {
    width: 118px;
  }

  .hero-logo {
    width: min(220px, 70vw);
  }

  .hero-title {
    font-size: clamp(1.7rem, 7.2vw, 2.15rem);
    line-height: 1.35;
  }

  html[lang="en"] .hero-title {
    font-size: clamp(1.65rem, 6.8vw, 2.1rem);
    line-height: 1.22;
  }

  .hero-lead {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    min-height: 54px;
    font-size: 1.02rem;
  }

  .goals-grid,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .goal-card {
    min-height: 0;
    padding: 1.45rem 1.25rem;
  }

  .why-card {
    padding: 1.45rem 1.25rem;
  }

  .section-title {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .hero-visual {
    min-height: 220px;
  }

  .visual-stage {
    width: min(210px, 66vw);
  }

  .hero-flow,
  .hero-mesh {
    opacity: 0.25;
  }

  .cta-panel .section-title {
    max-width: none;
  }

  .socials a {
    width: 44px;
    height: 44px;
  }

  .editable-contact {
    display: inline;
    word-break: break-word;
  }

  .footer-grid {
    gap: 1.75rem;
  }

  .legal-page {
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2rem) 0 3rem;
  }

  .legal-page .back-link {
    min-height: 44px;
    align-items: center;
  }
}

@media (max-width: 380px) {
  .brand img,
  .brand .logo-wordmark {
    width: 108px;
  }

  .lang-switch a {
    min-width: 40px;
    padding: 0.35rem 0.45rem;
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .aside-points li {
    font-size: 0.95rem;
  }
}

/* Touch devices: avoid sticky hover lift */
@media (hover: none) {
  .btn:hover,
  .goal-card:hover,
  .why-card:hover {
    transform: none;
  }
}

/* ============================================
   Simple video homepage + inner pages
   ============================================ */

.page-home {
  background: var(--navy-deep);
}

.page-home .site-footer--compact {
  margin-top: 0;
}

.home-main {
  min-height: 100dvh;
}

.home-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.home-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--navy-deep);
}

.home-video-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(7, 26, 46, 0.28) 0%,
      rgba(7, 26, 46, 0.08) 35%,
      rgba(7, 26, 46, 0.2) 58%,
      rgba(7, 26, 46, 0.78) 100%
    );
}

.home-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 760px;
  padding: 0 1.25rem calc(2.75rem + env(safe-area-inset-bottom, 0px));
  margin-bottom: 0.5rem;
}

.home-logo {
  width: min(240px, 58vw);
  height: auto;
  margin: 0 auto 1.5rem;
}

.home-title {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.9rem;
  letter-spacing: -0.015em;
}

.home-title span {
  background: var(--green-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[lang="en"] .home-title {
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.home-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.84);
  margin: 0 auto 1.85rem;
  max-width: 34ch;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.site-footer--compact {
  background: var(--navy-deep);
  padding: 1.15rem 0 calc(1.15rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.footer-compact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.footer-compact-links a {
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}

.footer-compact-links a:hover {
  color: var(--green-bright);
  opacity: 1;
}

.page-inner .inner-main {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  min-height: 70vh;
}

.page-inner .section:first-child {
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.contact-details {
  margin-top: 2rem;
  text-align: center;
  color: var(--navy-soft);
}

.contact-details p {
  margin-bottom: 0.65rem;
}

.contact-details .editable-contact {
  color: var(--green);
  border-bottom-color: rgba(0, 141, 70, 0.35);
}

.contact-details .socials {
  justify-content: center;
  margin-top: 1rem;
}

.contact-details .socials a {
  color: var(--navy);
  border-color: var(--line);
}

.contact-details .socials a:hover {
  color: var(--green);
  border-color: rgba(0, 141, 70, 0.35);
  background: var(--green-soft);
}

.contact-details a:not(.btn) {
  color: var(--green);
  font-weight: 600;
}

.contact-social-text {
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

.contact-social-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .home-actions {
    flex-direction: column;
    width: min(320px, 100%);
    margin-inline: auto;
  }

  .home-actions .btn {
    width: 100%;
  }

  .footer-compact {
    flex-direction: column;
    text-align: center;
  }

  .footer-compact-links {
    justify-content: center;
  }
}
