/* ═══════════════════════════════════════════════════════════════
   LAMA SOLUTIONS DESIGN SYSTEM
   Font: Barlow + Barlow Condensed
   Strategy: Committed — deep cobalt carries identity
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@300;400;500;600;700&display=swap');

/* ─── 1. TOKENS ─────────────────────────────────────────────── */

:root {
  /* Brand cobalt */
  --cobalt-950:  oklch(0.095 0.042 262);
  --cobalt-900:  oklch(0.140 0.055 262);
  --cobalt-800:  oklch(0.200 0.065 262);
  --cobalt-700:  oklch(0.280 0.080 262);
  --cobalt-600:  oklch(0.360 0.180 262);
  --cobalt-500:  oklch(0.430 0.195 262);
  --cobalt-400:  oklch(0.540 0.185 262);
  --cobalt-300:  oklch(0.680 0.140 262);
  --cobalt-200:  oklch(0.820 0.075 262);
  --cobalt-100:  oklch(0.930 0.030 262);
  --cobalt-50:   oklch(0.968 0.012 262);

  /* Amber accent */
  --amber-600:   oklch(0.620 0.175 52);
  --amber-500:   oklch(0.720 0.170 55);
  --amber-100:   oklch(0.950 0.040 65);

  /* Product colors */
  --product-maker:  oklch(0.720 0.170 55);
  --product-erp:    oklch(0.430 0.195 262);
  --product-vault:  oklch(0.480 0.200 288);
  --product-finca:  oklch(0.480 0.158 148);

  /* Surfaces */
  --bg:           oklch(1.000 0.000 0);
  --surface:      var(--cobalt-50);
  --surface-2:    var(--cobalt-100);
  --surface-3:    var(--cobalt-200);
  --border:       oklch(0.900 0.014 262);
  --border-dark:  oklch(0.860 0.020 262);

  /* Ink */
  --ink:          oklch(0.118 0.028 262);
  --ink-muted:    oklch(0.450 0.016 262);
  --ink-faint:    oklch(0.640 0.010 262);

  /* Dark surface tokens */
  --dark-bg:      var(--cobalt-950);
  --dark-surface: var(--cobalt-900);
  --dark-border:  var(--cobalt-800);
  --dark-ink:     oklch(0.960 0.006 262);
  --dark-muted:   oklch(0.720 0.030 262);

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-sans:    'Barlow', sans-serif;

  /* Type scale — fluid */
  --text-xs:      clamp(0.75rem,  0.70rem + 0.25vw, 0.875rem);
  --text-sm:      clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --text-base:    clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:      clamp(1.125rem, 1.05rem + 0.38vw, 1.375rem);
  --text-xl:      clamp(1.375rem, 1.20rem + 0.88vw, 1.75rem);
  --text-2xl:     clamp(1.75rem,  1.50rem + 1.25vw, 2.25rem);
  --text-3xl:     clamp(2.25rem,  1.80rem + 2.25vw, 3.25rem);
  --text-4xl:     clamp(3rem,     2.40rem + 3.00vw, 4.5rem);
  --text-5xl:     clamp(3.75rem,  2.80rem + 4.75vw, 6rem);

  /* Spacing */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.25rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
  --s-32: 8rem;
  --s-40: 10rem;

  /* Radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   20px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px oklch(0.118 0.028 262 / 0.07);
  --shadow-md: 0 4px 16px oklch(0.118 0.028 262 / 0.08);
  --shadow-lg: 0 8px 40px oklch(0.118 0.028 262 / 0.12);
  --shadow-xl: 0 20px 80px oklch(0.118 0.028 262 / 0.16);

  /* Z-index scale */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-modal-bg:  300;
  --z-modal:     400;
  --z-toast:     500;
  --z-tooltip:   600;

  /* Easing */
  --ease-out:  cubic-bezier(0.25, 1, 0.5, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Max widths */
  --container:      1280px;
  --container-text: 780px;
  --container-wide: 1440px;
}

/* ─── 2. RESET & BASE ────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  text-wrap: balance;
  font-weight: 600;
}

p {
  max-width: 68ch;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--cobalt-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── 3. LAYOUT UTILITIES ────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(var(--s-5), 5vw, var(--s-16));
}

.container--text {
  max-width: var(--container-text);
}

.container--wide {
  max-width: var(--container-wide);
}

/* ─── 4. NAVIGATION ──────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.nav--dark {
  --nav-text: var(--dark-ink);
  --nav-muted: var(--dark-muted);
}

.nav--light {
  background-color: oklch(1 0 0 / 0.95);
  border-color: var(--border);
  backdrop-filter: blur(12px);
  --nav-text: var(--ink);
  --nav-muted: var(--ink-muted);
  box-shadow: 0 1px 0 var(--border);
}

.nav--dark {
  background-color: oklch(0.095 0.042 262 / 1);
  border-color: oklch(0.430 0.195 262 / 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  width: 100%;
}

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

.nav__logo img {
  height: 32px;
  width: auto;
}

.nav--light .nav__logo img {
  filter: brightness(0);
}

.nav--dark .nav__logo img {
  filter: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-left: auto;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-2) var(--s-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--nav-text, var(--ink));
  border-radius: var(--r-sm);
  transition: color 150ms var(--ease-out),
              background-color 150ms var(--ease-out);
}

.nav__link:hover,
.nav__link--dropdown[aria-expanded="true"] {
  color: var(--cobalt-500);
  background-color: var(--cobalt-50);
}

.nav--dark .nav__link:hover {
  background-color: oklch(1 0 0 / 0.08);
  color: var(--dark-ink);
}

.nav__link--dropdown svg {
  width: 14px;
  height: 14px;
  transition: transform 200ms var(--ease-out);
}

.nav__link--dropdown[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Dropdown */
.nav__dropdown {
  position: fixed;
  top: 68px;
  left: auto;
  min-width: 260px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-2);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms var(--ease-out),
              transform 180ms var(--ease-out),
              visibility 0s 180ms;
  z-index: var(--z-dropdown);
}

.nav__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.nav__dropdown a {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  transition: background-color 120ms var(--ease-out);
  gap: var(--s-1);
}

.nav__dropdown a:hover {
  background-color: var(--surface);
}

.nav__dropdown-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.nav__dropdown-desc {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  font-weight: 400;
}

.nav__dropdown-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink-muted);
  padding: 1px 6px;
  border-radius: var(--r-full);
}

.nav__dropdown-badge--maker { background: var(--product-maker); }
.nav__dropdown-badge--erp   { background: var(--product-erp); }
.nav__dropdown-badge--vault { background: var(--product-vault); }
.nav__dropdown-badge--finca { background: var(--product-finca); }

/* Mobile nav toggle */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  transition: background-color 150ms var(--ease-out);
  margin-left: auto;
}

.nav__hamburger:hover {
  background-color: var(--surface);
}

.nav__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--nav-text, var(--ink));
  border-radius: 2px;
  transition: transform 250ms var(--ease-out),
              opacity 250ms var(--ease-out);
}

.nav__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-active span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 68px 0 0;
  background: var(--bg);
  z-index: calc(var(--z-sticky) - 1);
  overflow-y: auto;
  padding: var(--s-6) var(--s-5) var(--s-10);
  flex-direction: column;
  gap: var(--s-1);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  display: block;
  padding: var(--s-3) var(--s-4);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-md);
  transition: background-color 120ms;
}

.nav__mobile a:hover {
  background-color: var(--surface);
}

.nav__mobile-section {
  padding: var(--s-3) var(--s-4) var(--s-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav__mobile-divider {
  height: 1px;
  background: var(--border);
  margin: var(--s-3) var(--s-4);
}

/* ─── 5. BUTTONS ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-md);
  transition: background-color 150ms var(--ease-out),
              color 150ms var(--ease-out),
              transform 150ms var(--ease-out),
              box-shadow 150ms var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background-color: var(--cobalt-500);
  color: oklch(0.98 0.005 262);
}

.btn--primary:hover {
  background-color: var(--cobalt-600);
}

.btn--dark {
  background-color: var(--dark-ink);
  color: var(--dark-bg);
}

.btn--dark:hover {
  background-color: oklch(0.880 0.012 262);
}

.btn--ghost {
  background-color: transparent;
  color: var(--dark-ink);
  border: 1.5px solid oklch(1 0 0 / 0.25);
}

.btn--ghost:hover {
  background-color: oklch(1 0 0 / 0.08);
  border-color: oklch(1 0 0 / 0.45);
}

.btn--ghost-dark {
  background-color: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-dark);
}

.btn--ghost-dark:hover {
  background-color: var(--surface);
}

.btn--maker {
  background-color: var(--product-maker);
  color: var(--dark-ink);
}

.btn--maker:hover {
  background-color: oklch(0.660 0.168 52);
  color: oklch(1 0 0);
}

.btn--sm {
  padding: var(--s-2) var(--s-4);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--s-4) var(--s-8);
  font-size: var(--text-base);
}

/* ─── 6. HERO ────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--cobalt-950);
  overflow: hidden;
  padding-top: 68px;
}

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

/* Subtle grid texture */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.430 0.195 262 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.430 0.195 262 / 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Radial glow */
.hero__bg::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle,
    oklch(0.430 0.195 262 / 0.18) 0%,
    oklch(0.430 0.195 262 / 0.08) 40%,
    transparent 70%
  );
}

.hero__glow-bottom {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle,
    oklch(0.720 0.170 55 / 0.07) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(var(--s-24), 12vh, var(--s-40));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}

.hero__left {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--dark-ink);
  line-height: 1.00;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: normal;
  color: var(--cobalt-300);
}

.hero__sub {
  font-size: var(--text-lg);
  color: var(--dark-muted);
  line-height: 1.7;
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.hero__product-links {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  padding-top: var(--s-4);
  border-top: 1px solid var(--dark-border);
  margin-top: var(--s-4);
}

.hero__product-link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--dark-muted);
  transition: color 150ms;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.hero__product-link::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background-color: currentColor;
  flex-shrink: 0;
}

.hero__product-link:hover { color: var(--dark-ink); }
.hero__product-link--maker::before { background-color: var(--product-maker); }
.hero__product-link--erp::before   { background-color: var(--product-erp); }
.hero__product-link--vault::before { background-color: var(--product-vault); }
.hero__product-link--finca::before { background-color: var(--product-finca); }

/* Hero ecosystem diagram (right column) */
.hero__diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ─── 7. SECTION LABELS ──────────────────────────────────────── */

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  display: block;
  margin-bottom: var(--s-5);
}

.section-label--dark {
  color: var(--dark-muted);
}

/* ─── 8. PRODUCT STRIP (Homepage) ────────────────────────────── */

.product-strip {
  padding-block: clamp(var(--s-20), 10vw, var(--s-40));
}

.product-strip--alt {
  background-color: var(--surface);
}

.product-strip--alt2 {
  background-color: var(--surface-2);
}

.product-strip--dark {
  background-color: var(--cobalt-950);
}

.product-strip__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s-12), 8vw, var(--s-24));
  align-items: center;
}

.product-strip__inner--reversed {
  direction: rtl;
}

.product-strip__inner--reversed > * {
  direction: ltr;
}

.product-strip__content {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.product-strip__name {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-strip__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.product-strip__desc {
  font-size: var(--text-base);
  color: var(--ink-muted);
  line-height: 1.75;
}

.product-strip--dark .product-strip__desc {
  color: var(--dark-muted);
}

.product-strip--dark .product-strip__title {
  color: var(--dark-ink);
}

.product-strip__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.product-strip__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.5;
}

.product-strip__features li::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23dee8ff'/%3E%3Cpath d='M5.5 9l2.5 2.5 4.5-4.5' stroke='%231b52cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.product-strip__actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* Product visual box */
.product-strip__visual {
  border-radius: var(--r-xl);
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.product-strip__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-strip__visual--maker {
  background-color: var(--bg);
}

.product-strip__visual--erp {
  background-color: var(--cobalt-50);
}

/* Product visual SVG illustrations */
.product-visual-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* ─── 9. COMING SOON GRID ────────────────────────────────────── */

.coming-soon-section {
  padding-block: clamp(var(--s-20), 8vw, var(--s-32));
  background-color: var(--cobalt-950);
}

.coming-soon-section__header {
  margin-bottom: var(--s-12);
}

.coming-soon-section__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--dark-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.coming-soon-section__sub {
  font-size: var(--text-base);
  color: var(--dark-muted);
  margin-top: var(--s-4);
  max-width: 60ch;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-5);
}

.coming-soon-card {
  border-radius: var(--r-xl);
  padding: var(--s-8);
  border: 1px solid var(--dark-border);
  background-color: var(--cobalt-900);
  position: relative;
  overflow: hidden;
  transition: border-color 200ms var(--ease-out),
              transform 200ms var(--ease-out);
}

.coming-soon-card:hover {
  border-color: var(--dark-muted);
  transform: translateY(-2px);
}

.coming-soon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.coming-soon-card--vault::before { background: var(--product-vault); }
.coming-soon-card--finca::before { background: var(--product-finca); }

.coming-soon-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-muted);
  border: 1px solid var(--dark-border);
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-bottom: var(--s-5);
}

.coming-soon-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--dark-ink);
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}

.coming-soon-card__desc {
  font-size: var(--text-sm);
  color: var(--dark-muted);
  line-height: 1.7;
}

.coming-soon-card__url {
  display: inline-block;
  margin-top: var(--s-5);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--dark-muted);
  font-family: 'Courier New', monospace;
}

/* ─── 10. ECOSYSTEM SECTION ──────────────────────────────────── */

.ecosystem-section {
  padding-block: clamp(var(--s-24), 12vw, var(--s-40));
  background-color: var(--bg);
}

.ecosystem-section__intro {
  max-width: 64ch;
  margin-bottom: clamp(var(--s-16), 8vw, var(--s-24));
}

.ecosystem-section__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: var(--s-6);
}

.ecosystem-section__sub {
  font-size: var(--text-lg);
  color: var(--ink-muted);
  line-height: 1.7;
}

.ecosystem-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  position: relative;
}

.ecosystem-node {
  border-radius: var(--r-xl);
  padding: clamp(var(--s-6), 3vw, var(--s-8));
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 200ms var(--ease-out),
              box-shadow 200ms var(--ease-out),
              transform 200ms var(--ease-out);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.ecosystem-node:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.ecosystem-node--maker { border-top: 3px solid var(--product-maker); }
.ecosystem-node--erp   { border-top: 3px solid var(--product-erp); }
.ecosystem-node--vault { border-top: 3px solid var(--product-vault); }
.ecosystem-node--finca { border-top: 3px solid var(--product-finca); }

.ecosystem-node__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecosystem-node--maker .ecosystem-node__icon { background: oklch(0.950 0.040 55); }
.ecosystem-node--erp   .ecosystem-node__icon { background: var(--cobalt-100); }
.ecosystem-node--vault .ecosystem-node__icon { background: oklch(0.920 0.040 288); }
.ecosystem-node--finca .ecosystem-node__icon { background: oklch(0.920 0.040 148); }

.ecosystem-node__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.ecosystem-node__desc {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
}

.ecosystem-node__status {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.ecosystem-node__status--live::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: oklch(0.55 0.18 148);
}

.ecosystem-node__status--soon::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--ink-faint);
}

/* ─── 11. WHY LAMA SECTION ───────────────────────────────────── */

.why-section {
  padding-block: clamp(var(--s-24), 12vw, var(--s-40));
  background-color: var(--cobalt-950);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.430 0.195 262 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.430 0.195 262 / 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
}

.why-section__inner {
  position: relative;
  z-index: 1;
}

.why-section__header {
  margin-bottom: clamp(var(--s-16), 8vw, var(--s-24));
  max-width: 64ch;
}

.why-section__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-400);
  margin-bottom: var(--s-4);
  display: block;
}

.why-section__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--dark-ink);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.why-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--s-8), 4vw, var(--s-12));
  border-top: 1px solid var(--dark-border);
  padding-top: clamp(var(--s-12), 6vw, var(--s-16));
}

.why-pillar {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.why-pillar__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  color: var(--cobalt-800);
  line-height: 1;
  letter-spacing: -0.03em;
}

.why-pillar__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--dark-ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.why-pillar__body {
  font-size: var(--text-base);
  color: var(--dark-muted);
  line-height: 1.75;
  max-width: 38ch;
}

/* ─── 12. CTA STRIP ──────────────────────────────────────────── */

.cta-strip {
  padding-block: clamp(var(--s-20), 10vw, var(--s-32));
  background-color: var(--cobalt-500);
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.200 0.065 262 / 0.15) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.200 0.065 262 / 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
}

.cta-strip__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  flex-wrap: wrap;
}

.cta-strip__content {}

.cta-strip__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: oklch(0.98 0.005 262);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--s-3);
}

.cta-strip__sub {
  font-size: var(--text-base);
  color: oklch(0.820 0.060 262);
}

/* ─── 13. FOOTER ─────────────────────────────────────────────── */

.footer {
  background-color: var(--cobalt-950);
  padding-top: clamp(var(--s-16), 8vw, var(--s-24));
  padding-bottom: var(--s-10);
  border-top: 1px solid var(--cobalt-900);
}

.footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(var(--s-8), 4vw, var(--s-16));
  padding-bottom: clamp(var(--s-12), 6vw, var(--s-20));
  border-bottom: 1px solid var(--cobalt-900);
  margin-bottom: var(--s-8);
}

.footer__brand {}

.footer__logo {
  display: block;
  margin-bottom: var(--s-4);
}

.footer__logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--dark-muted);
  max-width: 36ch;
  line-height: 1.65;
  margin-bottom: var(--s-6);
}

.footer__contact {
  font-size: var(--text-sm);
  color: var(--dark-muted);
}

.footer__contact a {
  color: var(--cobalt-300);
  transition: color 150ms;
}

.footer__contact a:hover {
  color: var(--dark-ink);
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--dark-ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--dark-muted);
  transition: color 150ms var(--ease-out);
}

.footer__links a:hover {
  color: var(--dark-ink);
}

.footer__links .soon {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark-muted);
  border: 1px solid var(--dark-border);
  padding: 1px 6px;
  border-radius: var(--r-full);
  margin-left: var(--s-2);
  vertical-align: middle;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.footer__legal {
  font-size: var(--text-xs);
  color: var(--dark-muted);
}

.footer__legal-links {
  display: flex;
  gap: var(--s-5);
}

.footer__legal-links a {
  font-size: var(--text-xs);
  color: var(--dark-muted);
  transition: color 150ms;
}

.footer__legal-links a:hover {
  color: var(--dark-ink);
}

/* ─── 14. PAGE HERO (inner pages) ────────────────────────────── */

.page-hero {
  padding-top: calc(68px + clamp(var(--s-16), 8vw, var(--s-24)));
  padding-bottom: clamp(var(--s-16), 8vw, var(--s-24));
  background-color: var(--cobalt-950);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.430 0.195 262 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.430 0.195 262 / 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--dark-muted);
  margin-bottom: var(--s-8);
  transition: color 150ms;
}

.page-hero__back:hover { color: var(--dark-ink); }

.page-hero__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-full);
  color: oklch(0.98 0.005 262);
  margin-bottom: var(--s-5);
}

.page-hero__badge--maker { background: var(--product-maker); color: oklch(0.15 0.02 55); }
.page-hero__badge--erp   { background: var(--product-erp); }
.page-hero__badge--vault { background: var(--product-vault); }
.page-hero__badge--finca { background: var(--product-finca); }

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--dark-ink);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: var(--s-6);
}

.page-hero__sub {
  font-size: var(--text-lg);
  color: var(--dark-muted);
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: var(--s-8);
}

.page-hero__actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* ─── 15. PRODUCT PAGE FEATURES ──────────────────────────────── */

.feature-grid {
  padding-block: clamp(var(--s-20), 10vw, var(--s-32));
}

.feature-grid__header {
  margin-bottom: clamp(var(--s-12), 6vw, var(--s-20));
  max-width: 60ch;
}

.feature-grid__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-4);
}

.feature-grid__sub {
  font-size: var(--text-base);
  color: var(--ink-muted);
  line-height: 1.7;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--s-6), 3vw, var(--s-10));
}

.feature {
  padding: var(--s-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  background: var(--surface);
}

.feature__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--s-2);
  letter-spacing: -0.01em;
}

.feature__body {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ─── 16. COMING SOON PAGE ───────────────────────────────────── */

.coming-soon-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--cobalt-950);
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

.coming-soon-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.430 0.195 262 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.430 0.195 262 / 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.coming-soon-page__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(var(--s-24), 12vw, var(--s-40));
}

.coming-soon-page__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--dark-ink);
  letter-spacing: -0.025em;
  margin-top: var(--s-5);
  margin-bottom: var(--s-5);
}

.coming-soon-page__sub {
  font-size: var(--text-lg);
  color: var(--dark-muted);
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: var(--s-8);
}

.coming-soon-page__url {
  font-size: var(--text-sm);
  color: var(--dark-muted);
  font-family: 'Courier New', monospace;
  margin-top: var(--s-5);
  display: block;
}

/* ─── 17. TEXT SECTIONS ──────────────────────────────────────── */

.text-section {
  padding-block: clamp(var(--s-20), 10vw, var(--s-32));
}

.text-section--alt {
  background-color: var(--surface);
}

.text-section--dark {
  background-color: var(--cobalt-950);
}

.rich-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: var(--s-12);
  margin-bottom: var(--s-5);
}

.rich-text h2:first-child { margin-top: 0; }

.rich-text p {
  font-size: var(--text-base);
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: var(--s-5);
}

.rich-text--dark p {
  color: var(--dark-muted);
}

.rich-text--dark h2 {
  color: var(--dark-ink);
}

/* Split content layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s-12), 8vw, var(--s-24));
  align-items: start;
}

/* Values/stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8);
  padding-block: var(--s-12);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--cobalt-500);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--s-2);
}

.stat-item__label {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  width: 100%;
  transition: border-color 150ms var(--ease-out),
              box-shadow 150ms var(--ease-out);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cobalt-500);
  box-shadow: 0 0 0 3px var(--cobalt-100);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}

/* ─── 18. CAREERS PAGE ───────────────────────────────────────── */

.roles-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.role-item {
  padding: var(--s-6) var(--s-8);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  transition: box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out);
  text-decoration: none;
}

.role-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.role-item__info {}

.role-item__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: var(--s-1);
}

.role-item__meta {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  display: flex;
  gap: var(--s-4);
}

.role-item__arrow {
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: color 150ms, transform 150ms;
}

.role-item:hover .role-item__arrow {
  color: var(--cobalt-500);
  transform: translateX(3px);
}

/* ─── 19. ANIMATIONS ─────────────────────────────────────────── */

/* Reveal on scroll */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms var(--ease-expo),
              transform 600ms var(--ease-expo);
}

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

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

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms var(--ease-expo),
              transform 500ms var(--ease-expo);
}

[data-stagger].is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
[data-stagger].is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 80ms; }
[data-stagger].is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 160ms; }
[data-stagger].is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 240ms; }
[data-stagger].is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 320ms; }
[data-stagger].is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 400ms; }

/* Hero entrance */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__title {
  animation: fadeUp 700ms var(--ease-expo) 100ms both;
}
.hero__sub {
  animation: fadeUp 700ms var(--ease-expo) 220ms both;
}
.hero__actions {
  animation: fadeUp 700ms var(--ease-expo) 340ms both;
}
.hero__product-links {
  animation: fadeUp 700ms var(--ease-expo) 440ms both;
}
.hero__diagram {
  animation: fadeUp 700ms var(--ease-expo) 200ms both;
}

/* Page-hero entrance (product pages) */
.page-hero__back    { animation: fadeUp 600ms var(--ease-expo) 50ms  both; }
.page-hero__badge   { animation: fadeUp 600ms var(--ease-expo) 150ms both; }
.page-hero__title   { animation: fadeUp 700ms var(--ease-expo) 260ms both; }
.page-hero__sub     { animation: fadeUp 700ms var(--ease-expo) 390ms both; }
.page-hero__actions { animation: fadeUp 700ms var(--ease-expo) 510ms both; }

/* Coming-soon page entrance (FincaSuite) */
.coming-soon-page__title { animation: fadeUp 700ms var(--ease-expo) 260ms both; }
.coming-soon-page__sub   { animation: fadeUp 700ms var(--ease-expo) 390ms both; }

/* Hero diagram: orbit ring dashflow */
@keyframes dashFlow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -1131; }
}

.diagram-orbit {
  animation: dashFlow 16s linear infinite;
  filter: drop-shadow(0 0 2px oklch(0.430 0.195 262 / 0.3));
}

/* Hero diagram: dot pulse with scale and glow */
@keyframes nodePulse {
  0%, 100% {
    opacity: 0.15;
    transform: scale(0.8);
    filter: drop-shadow(0 0 0px oklch(0.430 0.195 262 / 0));
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
    filter: drop-shadow(0 0 8px oklch(0.430 0.195 262 / 0.8));
  }
}

.diagram-dot {
  animation: nodePulse 2.8s ease-in-out infinite;
  transform-origin: center;
}
.diagram-dot--1 { animation-delay: 0s; }
.diagram-dot--2 { animation-delay: 0.7s; }
.diagram-dot--3 { animation-delay: 1.4s; }
.diagram-dot--4 { animation-delay: 2.1s; }

/* Orbital animation for product nodes around center */
@keyframes orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.diagram-orbit-group {
  transform-origin: 260px 260px;
  animation: orbit 45s linear infinite;
}

/* ─── 20. RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 1100px) {
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-10);
  }
}

@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--s-12);
  }

  .hero__diagram {
    display: none;
  }

  .product-strip__inner {
    grid-template-columns: 1fr;
    gap: var(--s-10);
  }

  .product-strip__inner--reversed {
    direction: ltr;
  }

  .why-pillars {
    grid-template-columns: 1fr;
    gap: var(--s-10);
  }

  .ecosystem-diagram {
    grid-template-columns: 1fr 1fr;
  }

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

  .split-layout {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta-desktop { display: none; }
  .nav__hamburger { display: flex; }

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

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-strip__inner {
    flex-direction: column;
  }

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

  .ecosystem-diagram {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }
}

/* ─── 21. REDUCED MOTION ─────────────────────────────────────── */

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

  .reveal[data-reveal],
  [data-stagger] > * {
    opacity: 1;
    transform: none;
  }
}
