/* ===================== TARI Landing Page ===================== */
:root {
  --indigo:        #211C44;
  --indigo-deep:   #181438;
  --indigo-light:  #2E2860;
  --gold:          #F5B700;
  --green:         #8DC63F;
  --lavender:      #E9E6FA;
  --lavender-card: #EEEBFB;
  --ink:           #1B1736;
  --muted:         #5b5570;
  --line:          #e3e0ee;
  --white:         #ffffff;

  --serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --cond:  'Merriweather', Georgia, 'Times New Roman', serif;
  --sans:  'Merriweather', Georgia, 'Times New Roman', serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  background: var(--indigo);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold); }
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 28px;
  color: var(--white);
  max-width: 22ch;
}
.section-title--light { color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-align: center;
}
.btn--gold { background: var(--gold); color: var(--indigo-deep); }
.btn--gold:hover { background: #ffce3a; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(245,183,0,.32); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24,20,56,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
}
.nav__brand img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  color: rgba(255,255,255,.86);
  text-decoration: none;
  font-weight: 500;
  font-size: .96rem;
}
.nav__links a:hover { color: #fff; }
.nav__links a.btn { color: var(--indigo-deep); }
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav__toggle span { width: 24px; height: 2px; background: #fff; display: block; transition: .2s; }

/* ===================== HERO ===================== */
/* Hero + Founders share one continuous curve graphic on a flat indigo base */
.flow { position: relative; background: var(--indigo); overflow: hidden; }
.flow::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: min(94%, 1300px);
  aspect-ratio: 2400 / 1350;
  background: url('../img/hero-curves.png') top right / contain no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.hero {
  position: relative;
  background: transparent;
  color: var(--white);
}
.hero__overlay { display: none; }
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: 86px 24px 76px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.08;
  margin: 0 0 34px;
  max-width: 16ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero__partners-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
}
.hero__partners-logos { display: flex; align-items: center; gap: 38px; flex-wrap: nowrap; }
.hero__partners-logos img { height: 38px; width: auto; object-fit: contain; flex: 0 0 auto; }
/* IRIS is solid uppercase letters — scale it down so it reads ~same size as "AIS" */
.hero__partners-logos img[alt="IRIS"] { height: 26px; }

/* ===================== WHAT IS TARI ===================== */
.why { padding: 86px 0; background: var(--indigo); }
.why__lead {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,.78);
  max-width: 58ch;
  margin: -8px 0 0;
}
/* ===================== TARI FRAMEWORK ===================== */
.framework { padding: 86px 0; background: var(--indigo); color: var(--white); }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stage {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  padding: 26px 24px 28px;
}
.stage__num { font-family: var(--cond); font-weight: 900; font-size: 1.6rem; color: var(--gold); }
.stage__title { font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.5rem; margin: 6px 0 2px; }
.stage__sub { color: var(--gold); font-weight: 600; font-size: .9rem; margin: 0 0 14px; }
.stage__list { list-style: none; margin: 0; padding: 0; }
.stage__list li { color: rgba(255,255,255,.74); font-size: .95rem; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.stage__list li strong { display: block; color: #fff; font-weight: 700; }
.stage__text { color: rgba(255,255,255,.74); font-size: .95rem; margin: 0; }

.fw-block { margin-top: 48px; }
.fw-block__title { font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.25rem; margin: 0 0 18px; }
.fw-block__title span { color: rgba(255,255,255,.5); font-weight: 400; font-size: .9rem; }
.fw-block__lead { color: rgba(255,255,255,.78); max-width: 70ch; margin: -6px 0 22px; font-family: var(--serif); }

.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chips span {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 9px 18px; font-weight: 600; font-size: .92rem; color: #fff;
  text-align: center;
}

.maturity { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr; gap: 14px; counter-reset: step; }
.maturity li {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 18px 16px;
}
.maturity li b { display: block; color: var(--gold); font-family: var(--serif); font-size: 1.02rem; margin-bottom: 6px; }
.maturity li span { color: rgba(255,255,255,.7); font-size: .88rem; font-style: italic; }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 26px; }
.pillar { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); }
.pillar__id {
  flex: 0 0 auto; font-family: var(--cond); font-weight: 900; font-size: .95rem;
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,183,0,.16); color: var(--gold);
}
.pillar h4 { font-family: var(--serif); font-weight: 700; color: #fff; margin: 4px 0 3px; font-size: 1rem; }
.pillar p { margin: 0; color: rgba(255,255,255,.7); font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.stat { border-left: 4px solid var(--gold); padding-left: 22px; }
.stat__num {
  font-family: var(--cond);
  font-weight: 900;
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -.01em;
}
.stat__unit { font-size: .45em; color: rgba(255,255,255,.6); font-weight: 600; }
.stat__label { font-weight: 600; margin-top: 14px; font-size: 1.05rem; color: var(--white); }
.stat__source { color: rgba(255,255,255,.6); font-size: .9rem; font-style: italic; margin-top: 4px; }

/* ===================== DELIVERS ===================== */
.delivers { padding: 86px 0; background: var(--indigo); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  padding: 26px 22px 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.card__title {
  font-family: var(--cond);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: .01em;
  color: var(--white);
  margin: 0;
}
.card__icon { height: 38px; width: 38px; object-fit: contain; opacity: .92; filter: brightness(0) invert(1); }
.card p { margin: 0; color: rgba(255,255,255,.74); font-size: .98rem; }

/* ===================== FOUNDERS ===================== */
.founders {
  position: relative;
  z-index: 1;
  padding: 86px 0;
  background: transparent;
  color: var(--white);
}
/* Subgrid: the three cards share row tracks so every row (logo, role, each item)
   aligns to the tallest across columns — keeps the 3 boxes perfectly aligned. */
.founders__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 34px;
  row-gap: 28px;
  grid-template-rows: repeat(5, auto);
  margin-top: 8px;
}
.founder {
  grid-row: 1 / span 5;
  display: grid;
  grid-template-rows: subgrid;
  gap: 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 28px 26px 30px;
}
.founder__logo {
  height: 56px; display: flex; align-items: center;
}
.founder__logo img { max-height: 46px; width: auto; }
.founder__logo img[alt="IRIS"] { max-height: 30px; }
.founder__role {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold);
  font-size: 0.95rem;
  line-height: 1.3;
  margin: 0;
}
.founder__item { margin: 0; }
.founder__item h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: #fff;
  margin: 0;
  font-size: 0.917rem;
}
.founder__item h4.nowrap { white-space: nowrap; }
.founder__item p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.74);
  font-size: .857rem;
}

/* ===================== CONTACT ===================== */
.contact { padding: 86px 0; background: var(--indigo); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__intro p { color: rgba(255,255,255,.78); max-width: 46ch; }
.contact__details { list-style: none; padding: 0; margin: 26px 0 30px; }
.contact__details li { margin-bottom: 18px; }
.contact__det-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 3px;
}
.contact__details a {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}
.contact__details a:hover { color: var(--gold); }

.contact__form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 30px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: rgba(255,255,255,.9); }
.field label span { color: #d23b3b; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfc9ec;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(33,28,68,.12);
}
.field textarea { resize: vertical; }
.form__note { font-size: .9rem; margin: 14px 0 0; min-height: 1.2em; }
.form__note.is-error { color: #d23b3b; }
.form__note.is-ok { color: #2e7d32; }

/* ===================== FOOTER ===================== */
.footer { background: var(--indigo-deep); color: rgba(255,255,255,.8); padding: 40px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer__logo { height: 30px; width: auto; margin-bottom: 6px; }
.footer__line { font-family: var(--cond); letter-spacing: .14em; margin: 0; font-size: .95rem; }
.footer__partners { margin: 0; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; gap: 26px; }
  .stages { grid-template-columns: 1fr; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .maturity { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .founders__grid { display: flex; flex-direction: column; gap: 34px; }
  .founder { display: block; grid-row: auto; }
  .founder__logo { margin-bottom: 18px; }
  .founder__item + .founder__item { margin-top: 18px; }
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--indigo-deep);
    padding: 0 24px;
    max-height: 0; overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: max-height .28s ease, padding .28s ease;
  }
  .nav__links.open { max-height: 460px; padding: 12px 24px 22px; }
  .nav__links a { padding: 12px 0; width: 100%; }
  .nav__links a.btn { margin-top: 8px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__partners-logos { gap: 18px; }
  .hero__partners-logos img { height: 26px; }
  .hero__partners-logos img[alt="IRIS"] { height: 18px; }
}
@media (max-width: 380px) {
  .hero__partners-logos { gap: 14px; }
  .hero__partners-logos img { height: 22px; }
  .hero__partners-logos img[alt="IRIS"] { height: 16px; }
}
