/* ============================================================
   CemNex Innovations — Landing Page Styles
   A Geopolymer Future · Sustainable Construction & Energy
   v1.1: visual overlap + RTL audit pass
   ------------------------------------------------------------
   Visual fixes:
     - Moved vertical scroll indicator to right edge (no more
       hero chip intersection)
     - Tighter hero content bottom padding + safe bottom area
     - Company panel narrowed so logo + facts don't collide
   RTL hardening (works in both `dir="ltr"` and `dir="rtl"`):
     - physical sides (left/right) → `inset-inline-*`,
       `margin-inline-*`, `border-inline-*`, `text-align: end`
     - progress bar origin uses `inline-start` (auto-flips)
     - ticker animation auto-reverses under `dir="rtl"`
   ============================================================ */

:root {
  /* Palette */
  --ink: #0b120f;            /* deep forest black */
  --ink-2: #101a15;          /* raised dark surface */
  --ink-3: #17251e;          /* card on dark */
  --line-dark: rgba(255, 255, 255, 0.09);
  --paper: #f4f1ea;          /* warm off-white */
  --paper-2: #ffffff;
  --mist: #9aa6a8;           /* WCAG AAA on ink (was #6b7680 — borderline AA) */
  --mist-dark: #5b6864;
  --leaf: #4be3a8;           /* bumped to AA against ink for body text */
  --leaf-2: #0fae7a;         /* deeper emerald */
  --leaf-soft: rgba(75, 227, 168, 0.14);
  --leaf-line: rgba(75, 227, 168, 0.40);
  --leaf-light: #b9f3dd;
  --amber: #f59e0b;

  /* Type (logical multilingual — Arabic will fall through to Noto) */
  --font-body: "Inter", "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Noto Sans Arabic", system-ui, sans-serif;

  /* Shape */
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-lg: 0 30px 60px -20px rgba(5, 12, 8, 0.55);
  --shadow-green: 0 24px 55px -22px rgba(15, 174, 122, 0.45);

  /* Layout */
  --container: 1240px;
  --container-ultrawide: 1320px;
  --nav-h: 76px;
  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-padding-top: 0; }
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
button:disabled, [aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

::selection { background: var(--leaf); color: var(--ink); }

.container { width: min(var(--container), 92%); margin-inline: auto; }
@media (min-width: 1440px) {
  .container { width: min(var(--container-ultrawide), 94%); }
}

/* ---------- Accessibility ---------- */

/* Skip-to-content: rendered above the page until focused via keyboard.
   z-index 200 so it sits above the fixed nav. transform keeps it offscreen
   when not focused; opacity:0 + pointer-events:none avoids accidental
   click targets and screen-reader reads when it's not relevant. */
.skip-link {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 1rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--leaf);
  color: #06231a;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  opacity: 1;
  transform: translateY(120px);
  pointer-events: auto;
  outline: 2px solid #06231a;
  outline-offset: 2px;
}

/* Universal focus ring for keyboard users — uses :focus-visible so
   it doesn't draw around mouse clicks. High-contrast outer ring is
   readable on both dark and light surfaces the page flips between. */
*:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(75, 227, 168, 0.25);
}
/* Tactile press state — buttons visibly depress on click */
button:active:not(:disabled),
.btn:active,
.link-arrow:active {
  transform: translateY(1px) scale(0.99);
  transition: transform 0.08s var(--ease-out-quart);
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 1.1rem;
}
.eyebrow__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px var(--leaf-soft);
}
.eyebrow--dark { color: #0a6b4f; }
.eyebrow--dark::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: #0a6b4f;
  box-shadow: 0 0 0 4px rgba(10, 107, 79, 0.12);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section__lede {
  color: var(--mist);
  font-size: 1.06rem;
  max-width: 62ch;
  margin-top: 1.1rem;
}

.section__head { max-width: 720px; margin-bottom: 3.2rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .section__lede { margin-inline: auto; }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

/* Fallback: green text if background-clip:text is unsupported */
.grad {
  display: inline;
  color: #34d399;
  background: linear-gradient(100deg, #34d399 10%, #6ee7b7 45%, #a3e635 90%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Defensive: if background-clip:text is unsupported, fall back to solid color so
   gradient text never renders as a solid rectangle overlapping neighbors. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad { color: #34d399; background: none; -webkit-text-fill-color: currentColor; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1rem; }

.btn--solid {
  background: linear-gradient(120deg, var(--leaf) 0%, #6ee7b7 100%);
  color: #06231a;
  box-shadow: var(--shadow-green);
}
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -22px rgba(15, 174, 122, 0.6); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--paper);
  padding: 0.7rem 1.3rem;
  font-size: 0.88rem;
}
.btn--ghost:hover { border-color: var(--leaf); color: var(--leaf); }

.btn--line {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--paper);
}
.btn--line:hover { border-color: var(--leaf); color: var(--leaf); transform: translateY(-3px); }

.btn--block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease, padding 0.3s ease;
  padding: 1.1rem 0;
}
.nav.scrolled {
  background: rgba(11, 18, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.8);
  padding: 0.6rem 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.nav__brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.nav__logo { height: 44px; width: auto; display: block; }

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(244, 241, 234, 0.82);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%; height: 2px;
  background: var(--leaf);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.3s ease;
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { transform: scaleX(1); }

/* Language switcher */
.nav__lang { display: inline-flex; align-items: center; gap: 0.25rem; margin-inline-start: 0.4rem; padding: 0.35rem 0.5rem; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.nav__lang a { color: rgba(244, 241, 234, 0.85); padding: 0.4rem 0.65rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.nav__lang a:hover { color: var(--leaf); }
.nav__lang a.is-active { background: var(--leaf); color: #06231a; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 4% 1.4rem;
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 0.85rem 0.4rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(244, 241, 234, 0.85);
}
.nav__mobile a:last-child { border-bottom: 0; margin-top: 0.6rem; }
.nav__mobile .btn { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding-block-end: 80px; /* reserved safe area so chips never collide with scroll indicator */
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

/* Ambient depth auras — symmetric in LTR, mirror in RTL */
.hero__aura {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}
.hero__aura--a {
  top: -120px; inset-inline-start: -120px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.5) 0%, transparent 70%);
}
.hero__aura--b {
  bottom: -180px; inset-inline-end: -120px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.35) 0%, transparent 70%);
  animation: auraFloat 14s ease-in-out infinite alternate;
}
@keyframes auraFloat {
  to { transform: translate(0, -20px); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 18, 15, 0.96) 0%, rgba(11, 18, 15, 0.78) 45%, rgba(11, 18, 15, 0.35) 100%),
    linear-gradient(0deg, rgba(11, 18, 15, 0.9) 0%, transparent 40%),
    linear-gradient(180deg, rgba(11, 18, 15, 0.55) 0%, transparent 25%);
}
/* RTL counter-foil (gravitate from opposite side) */
[dir="rtl"] .hero__veil {
  background:
    linear-gradient(270deg, rgba(11, 18, 15, 0.96) 0%, rgba(11, 18, 15, 0.78) 45%, rgba(11, 18, 15, 0.35) 100%),
    linear-gradient(0deg, rgba(11, 18, 15, 0.9) 0%, transparent 40%),
    linear-gradient(180deg, rgba(11, 18, 15, 0.55) 0%, transparent 25%);
}

/* Landscape, symmetrical two-pane hero on desktop */
.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: 7.5rem 4.5rem; /* a bit more room at the bottom so chips sit comfortably */
  width: min(var(--container), 92%);
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .hero { min-height: 92svh; }
  .hero__container { padding-block: 8rem 5rem; }
}
/* Landscape interchange — at ≥1080px trigger two-pane with even weight.
   1.05/1 keeps copy slightly dominant without dwarfing the cards pane. */
@media (min-width: 1080px) {
  .hero__container {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;       /* both panes share the same vertical centerline */
    column-gap: clamp(2.5rem, 4vw, 4rem);
    padding-block: 7rem 5rem;
  }
  .hero { min-height: 90svh; }
}

.hero__pane { display: flex; flex-direction: column; gap: 0; min-width: 0; /* defensive: prevent grid blowout */ }
.hero__pane--text { max-width: 720px; min-width: 0; }
.hero__pane--media {
  width: 100%;
  display: grid;
  gap: 0.85rem;
  align-content: center;        /* cards stack around the same midline as the copy */
  position: relative;
  z-index: 0;
  min-width: 0;
  isolation: isolate;            /* defensive: keep any decorative gradients inside the pane */
}
.hero__card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

/* Decorative media pane cards (landscape, symmetric) */
.hero__card {
  background: rgba(15, 30, 24, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 1.05rem 1.25rem;
  display: grid;
  gap: 0.2rem;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
  min-width: 0;
}
.hero__card:hover { transform: translateY(-3px); border-color: var(--leaf-line); }
.hero__card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
}
.hero__card-eyebrow i { font-size: 0.78rem; }
.hero__card strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.hero__card small { color: var(--mist); font-size: 0.78rem; }
.hero__card--lead strong {
  font-size: 2.4rem;
  background: linear-gradient(100deg, #34d399 10%, #6ee7b7 45%, #a3e635 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__card--accent {
  background: linear-gradient(140deg, rgba(15, 174, 122, 0.4), rgba(15, 30, 24, 0.7));
  border-color: var(--leaf-line);
}
@media (min-width: 720px) {
  .hero__card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Title / copy originally lived under .hero__content — keep working under new structure */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.hero__sub {
  font-size: clamp(1.02rem, 1.55vw, 1.2rem);
  color: rgba(244, 241, 234, 0.85);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero__sub strong { color: var(--leaf); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.4rem; }

.hero__chipbar { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;          /* WCAG touch target */
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(244, 241, 234, 0.92);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  padding: 0.65rem 1rem;
  border-radius: 999px;
}
.chip i { color: var(--leaf); }

/* Scroll indicator — moved to inline-end edge, vertically centered.
   Resolves overlap with hero__chips and works in RTL via logical properties. */
.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  inset-inline-end: 1.6rem;
  width: 26px; height: 44px;
  border: 2px solid rgba(244, 241, 234, 0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8px;
}
.hero__scroll span {
  width: 4px; height: 10px;
  background: var(--leaf);
  border-radius: 2px;
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll span { animation: none !important; opacity: 0.7; }
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink-2);
  border-block: 1px solid var(--line-dark);
  overflow: hidden;
  padding: 1.15rem 0;
  -webkit-mask-image: linear-gradient(to inline-end, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to inline-end, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker__track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 234, 0.9);
  white-space: nowrap;
}
.ticker__track i { color: var(--leaf); font-size: 1.05rem; }
@keyframes ticker { to { transform: translateX(-50%); } }
/* RTL: marquee should flow left→right so text reads "forward" */
[dir="rtl"] .ticker__track { animation-direction: reverse; }

/* ---------- Cards ---------- */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--leaf-line); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--leaf);
  background: var(--leaf-soft);
  border: 1px solid var(--leaf-line);
  margin-bottom: 1.4rem;
}
.card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 1.1rem; }
.card__list { display: grid; gap: 0.75rem; }
.card__list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(244, 241, 234, 0.85);
  font-size: 0.98rem;
}
.card__list li i { color: var(--leaf); width: 18px; font-size: 0.95rem; flex: none; }
.card__text { color: var(--mist); font-size: 0.98rem; margin-bottom: 1.2rem; }
.card__text strong { color: var(--paper); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--leaf);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.25s ease;
}
.link-arrow:hover { gap: 0.85rem; }
/* In RTL, the visual "→" arrow should point toward inline-start */
[dir="rtl"] .link-arrow i, [dir="rtl"] .btn i.fa-arrow-right { transform: scaleX(-1); }

/* ---------- Problem ---------- */
.problem { background: var(--ink); }
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.problem__card--accent {
  background: linear-gradient(150deg, #123b2c 0%, #0d2720 100%);
  border-color: var(--leaf-line);
  display: flex;
  flex-direction: column;
}
.problem__card--accent .card__icon { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); }
.problem__card--accent .card__text { color: rgba(244, 241, 234, 0.75); }
.problem__card--accent .card__text strong { color: var(--leaf-light); }
.problem__card--accent .link-arrow { margin-top: auto; }

/* ---------- Solution ---------- */
.solution { background: linear-gradient(180deg, var(--ink-2), var(--ink)); border-top: 1px solid var(--line-dark); }
.solution__split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.solution__steps { display: grid; gap: 1.1rem; margin-top: 2.2rem; }
.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.15rem 1.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.step:hover { border-color: var(--leaf-line); background: rgba(52, 211, 153, 0.05); }
.step__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--leaf);
  border: 1px solid var(--leaf-line);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  flex: none;
  line-height: 1.2;
}
.step h4 { font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 0.2rem; }
.step p { color: var(--mist); font-size: 0.93rem; }

.solution__tagline {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border-inline-start: 3px solid var(--leaf);
  background: var(--leaf-soft);
  border-radius: 0 14px 14px 0;
}
[dir="rtl"] .solution__tagline { border-radius: 14px 0 0 14px; }
.solution__tagline > i { color: var(--leaf); font-size: 1.2rem; }
.solution__tagline p {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0.5rem 0 0.35rem;
}
.solution__tagline span { color: var(--mist); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }

.solution__visual { position: relative; }
.solution__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-dark);
}
.solution__frame img { width: 100%; height: 460px; object-fit: cover; }

.solution__badge {
  position: absolute;
  inset-inline-start: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(11, 18, 15, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--leaf-line);
  border-radius: 14px;
  padding: 0.85rem 1.15rem;
}
.solution__badge-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--leaf);
  color: #06231a;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex: none;
}
.solution__badge strong { font-family: var(--font-display); font-size: 0.95rem; display: block; }
.solution__badge small { color: var(--mist); font-size: 0.78rem; }

.solution__stat-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.2rem;
  padding: 1.25rem 1.4rem;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.solution__stat-ring {
  width: 46px; height: 46px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--leaf);
  background: radial-gradient(circle, rgba(52, 211, 153, 0.16) 55%, transparent 56%);
}
.solution__stat-card strong { font-family: var(--font-display); font-size: 1rem; display: block; }
.solution__stat-card p { color: var(--mist); font-size: 0.88rem; margin-top: 0.2rem; }

/* ---------- Product ---------- */
.product { background: var(--ink); border-top: 1px solid var(--line-dark); }

.product__bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 1.2rem;
}
.product__tile {
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  position: relative;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink-2);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.product__tile:hover { transform: translateY(-4px); border-color: var(--leaf-line); }

.product__tile--wide { grid-column: span 2; grid-row: span 2; padding: 0; }
.product__tile--wide img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product__tile--wide:hover img { transform: scale(1.06); }
.product__tile-overlay {
  position: relative;
  z-index: 1;
  margin-top: auto;
  background: linear-gradient(0deg, rgba(11, 18, 15, 0.92), transparent);
  padding: 3rem 1.5rem 1.5rem;
}
.product__tile-overlay h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 0.3rem; }
.product__tile-overlay p { color: rgba(244, 241, 234, 0.8); font-size: 0.92rem; max-width: 42ch; }

.product__tile--one i, .product__tile--three i {
  font-size: 1.7rem;
  color: var(--leaf);
  margin-bottom: 0.9rem;
}
.product__tile h4 { font-family: var(--font-display); font-size: 1.16rem; margin-bottom: 0.35rem; }
.product__tile > p { color: var(--mist); font-size: 0.9rem; }

.product__tile--apps { background: linear-gradient(150deg, #123b2c, #0d2720); border-color: var(--leaf-line); }
.product__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.product__tags span {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(244, 241, 234, 0.9);
}

/* ---------- Band ---------- */
.band { padding: 2.6rem 0; background: var(--ink-2); border-top: 1px solid var(--line-dark); }
.band--dark { background: linear-gradient(120deg, #0d2720, #123b2c 60%, #0d2720); border-block: 1px solid var(--leaf-line); }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.band__lead { display: flex; align-items: flex-start; gap: 1.2rem; max-width: 720px; }
.band__lead > i {
  font-size: 1.4rem;
  color: var(--leaf);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: none;
}
.band__lead p { color: rgba(244, 241, 234, 0.88); font-size: 1.02rem; }
.band__lead strong { color: var(--leaf-light); }
.band__stat { text-align: end; }
.band__stat strong {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(100deg, #34d399, #a3e635);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}
.band__stat span { color: rgba(244, 241, 234, 0.65); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- POC ---------- */
.poc { background: var(--paper); color: var(--ink); }
.poc .section__lede { color: var(--mist-dark); }
.poc__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 900px;
  margin-inline: auto;
}
.poc__card {
  background: var(--paper-2);
  border: 1px solid rgba(11, 18, 15, 0.08);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  text-align: center;
  box-shadow: 0 18px 40px -26px rgba(11, 18, 15, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.poc__card:hover { transform: translateY(-6px); box-shadow: 0 28px 55px -26px rgba(11, 18, 15, 0.4); }
.poc__number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: #0a6b4f;
  margin-bottom: 1rem;
}
.poc__number .pct { font-size: 2.2rem; font-weight: 600; }
.poc__bar {
  height: 8px;
  background: rgba(11, 18, 15, 0.08);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.poc__bar span {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, #0fae7a, #34d399);
  border-radius: 8px;
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.poc__card.visible .poc__bar span { transform: scaleX(1); }
.poc__label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }

.poc__note {
  text-align: center;
  color: var(--mist-dark);
  font-size: 0.88rem;
  margin-top: 2.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.poc__note i { color: #0a6b4f; }

/* ---------- Ask (pilot) ---------- */
.ask { background: var(--ink-2); border-top: 1px solid var(--line-dark); }
.ask__panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
  background: linear-gradient(150deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 4rem);
  box-shadow: var(--shadow-lg);
}
.ask__target {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 1.8rem 0 2.2rem;
  padding: 1.2rem 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--leaf-line);
  border-radius: 14px;
}
.ask__target-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  background: var(--leaf);
  color: #06231a;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex: none;
}
.ask__target small { display: block; color: var(--mist); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.15rem; }
.ask__target strong { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.ask__target span { color: var(--mist); font-size: 0.9rem; }
.ask__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.ask__visual { position: relative; }
.ask__visual img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
}
.ask__visual-tag {
  position: absolute;
  inset-inline-end: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(11, 18, 15, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--leaf-line);
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}
.ask__visual-tag i { color: var(--leaf); }

/* ---------- Team ---------- */
.team { background: var(--ink); }
.team__grid {
  /*
   * auto-fit + minmax lets the grid:
   *   - balance 2 cards (centered, no orphan cell)
   *   - balance 3 cards (row of 3)
   *   - fall back to 2 columns on tablet and 1 on mobile via the @media queries
   * The 240px floor prevents cards from becoming too narrow on tiny desktops.
   */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  justify-content: center; /* centers an orphan row of <max children */
  gap: 1.4rem;
  max-width: 1080px;
  margin-inline: auto;
}
@media (max-width: 1080px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
}
.team__card {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.team__card:hover { transform: translateY(-6px); border-color: var(--leaf-line); box-shadow: var(--shadow-lg); }

.team__avatar {
  width: 84px; height: 84px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  background: var(--leaf-soft);
  border: 1px solid var(--leaf-line);
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  color: var(--leaf);
}
.team__card h3 { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.25; }
.team__role {
  color: var(--leaf);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0.5rem 0 0.9rem;
}
.team__bio { color: var(--mist); font-size: 0.9rem; line-height: 1.55; max-width: 38ch; margin-inline: auto; }

/* ---------- Company / Registration ---------- */
.company { background: var(--ink-2); border-top: 1px solid var(--line-dark); }
.company__panel {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.4rem);
}
.company__mark {
  width: 180px; height: 78px;
  border: 1px solid var(--leaf-line);
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--leaf-soft);
  padding: 0.7rem 1rem;
  flex: none;
}
.company__mark img { width: 100%; height: 100%; object-fit: contain; }
.company__name { font-family: var(--font-display); font-size: 1.5rem; margin: 0.2rem 0 0.3rem; }
.company__lede { color: var(--mist); max-width: 46ch; }
.company__facts {
  display: grid;
  gap: 0.85rem;
  min-width: 240px;
  border-inline-start: 1px solid var(--line-dark);
  padding-inline-start: clamp(1.2rem, 2.5vw, 2.2rem);
}
.company__facts div { display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; }
.company__facts dt { color: var(--mist); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.company__facts dd { font-weight: 600; text-align: end; font-size: 0.95rem; }
.pill { display: inline-flex; align-items: center; gap: 0.45rem; color: #6ee7b7; }
.pill__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

/* ---------- Contact ---------- */
.contact { background: var(--ink); border-top: 1px solid var(--line-dark); }
.contact__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--leaf);
  border-bottom: 2px solid var(--leaf-line);
  padding-bottom: 0.3rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.contact__mail:hover { color: #6ee7b7; border-color: #6ee7b7; }
.contact__foot { margin-top: 1.3rem; color: var(--mist); font-size: 0.9rem; display: flex; align-items: center; gap: 0.55rem; }

.contact__form {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: grid;
  gap: 1.2rem;
}
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; color: rgba(244, 241, 234, 0.85); }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.85rem 1.05rem;
  transition: border-color 0.25s ease, background 0.25s ease;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(244, 241, 234, 0.35); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--leaf);
  background: rgba(52, 211, 153, 0.05);
}
.field .err {
  font-size: 0.8rem;
  color: #fca5a5;
  display: none;
}
.field.invalid input,
.field.invalid textarea { border-color: #ef4444; }
.field.invalid .err { display: block; }

.form__hint { font-size: 0.8rem; color: var(--mist); text-align: center; }
.contact__form-fields { display: grid; gap: 1.2rem; }
.form__hide { display: none !important; }

.form__success {
  text-align: center;
  padding: 2.5rem 1rem;
  display: none;
}
.form__success i { font-size: 2.6rem; color: var(--leaf); margin-bottom: 1rem; }
.form__success h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.4rem; }
.form__success p { color: var(--mist); font-size: 0.95rem; margin-bottom: 1.4rem; }
.form__show { display: block !important; }

/* ---------- Footer ---------- */
.footer { background: #070c09; border-top: 1px solid var(--line-dark); padding: 4rem 0 2rem; }
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand p { color: var(--mist); font-size: 0.92rem; margin-top: 1rem; max-width: 34ch; }
.footer__nav { display: grid; gap: 0.6rem; align-content: start; }
.footer__nav h4, .footer__reg h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.6);
  margin-bottom: 0.6rem;
}
.footer__nav a { color: rgba(244, 241, 234, 0.82); font-size: 0.93rem; transition: color 0.25s ease; }
.footer__nav a:hover { color: var(--leaf); }
.footer__reg p { color: rgba(244, 241, 234, 0.6); font-size: 0.88rem; margin-bottom: 0.35rem; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  color: var(--mist);
  font-size: 0.85rem;
}
.footer__tag { display: flex; align-items: center; gap: 0.45rem; }
.footer__tag i { color: var(--leaf); }

/* ---------- Scroll to top ---------- */
.totop {
  position: fixed;
  inset-inline-end: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--leaf-line);
  background: var(--ink-2);
  color: var(--leaf);
  font-size: 1rem;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.25s ease;
}
.totop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: var(--leaf); color: #06231a; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; transform: none; }
  .hero__aura,
  .ticker__track,
  .hero__scroll span,
  .poc__bar span,
  .totop { animation: none !important; transition: none !important; }
}

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

/* Ultrawide: rebalance for screens ≥1440px so the hero doesn't feel sparse.
   Container widens, hero pane splits more evenly, ticker copies more items. */
@media (min-width: 1440px) {
  .hero__container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(3rem, 5vw, 6rem); }
  .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
}

/* Mobile-first breakpoint: ≤1024px = tablet & below */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .solution__split, .ask__panel { gap: 2.5rem; }
  .product__bento { grid-auto-rows: 180px; }
  .company__panel { grid-template-columns: 1fr; }
  .company__facts { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line-dark); padding-top: 1.6rem; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .nav__lang { margin-inline-start: auto; }
}

@media (max-width: 860px) {
  .problem__grid { grid-template-columns: 1fr; }
  .solution__split { grid-template-columns: 1fr; }
  .solution__visual { order: -1; }
  .product__bento { grid-template-columns: repeat(2, 1fr); }
  .product__tile--wide { grid-column: span 2; }
  .poc__grid { grid-template-columns: 1fr; max-width: 440px; }
  .ask__panel { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; max-width: 480px; }
  .contact__wrap { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero__cta .btn, .ask__cta .btn { width: 100%; }
  .product__bento { grid-template-columns: 1fr; }
  .product__tile--wide { grid-column: auto; grid-row: span 2; }
  .band__inner { flex-direction: column; align-items: flex-start; }
  .band__stat { text-align: start; }
  .footer__top { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
  .hero__content { padding: 7rem 0 0; }
  .hero__chips { gap: 0.5rem; }
  .chip { font-size: 0.78rem; }
  .company__mark { width: 150px; height: 68px; }
  .hero__scroll { display: none; } /* hide on tiny mobile, scroll affordance not needed */
}
/* Touch-friendly hamburger: ≥44px tap target on mobile */
@media (max-width: 1024px) {
  .nav__toggle { width: 44px; height: 44px; align-items: center; justify-content: center; }
}
