/* Sugama Nyaya — marketing site (index, vision, contact).
   Load after tokens.css. The pilot portal has its own stylesheet (portal.css). */

/* ---------- base ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--ink);
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
img { max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; }

/* ---------- navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 56px;
  height: 88px;
  box-shadow: 0 1px 0 var(--hairline);
}
.site-nav__brand { display: flex; align-items: center; }
.site-nav__brand img { height: 58px; display: block; }
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav__links a { color: var(--ink); }
.site-nav__links a:hover { color: var(--gold); }
.site-nav__links a[aria-current="page"] { color: var(--gold); }
.site-nav__cta { background: var(--gold); color: var(--ink); padding: 12px 22px; font-weight: 700; }
.site-nav__cta:hover { color: var(--ink); background: var(--gold-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 28px;
  text-align: center;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-dark); color: var(--ink); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--outline-light { border: 2px solid var(--navy-soft); color: #fff; padding: 14px 26px; }
.btn--outline-light:hover { color: var(--gold); border-color: var(--gold); }
.btn--outline-navy { border: 2px solid var(--navy); color: var(--navy); padding: 14px 28px; }

/* ---------- shared page furniture ---------- */
.eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow--navy { color: var(--navy); }
.section-title {
  font-weight: 800;
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.body-copy { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0 0 18px; }

/* Dashed gold strip pinned to the bottom of hero headers */
.gold-rule::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 3px, transparent 3px 14px);
}

/* Short navy hero used by the inner pages (vision, contact) */
.page-hero { background: var(--navy); padding: 88px 56px; position: relative; }
.page-hero__title {
  font-weight: 800;
  font-size: 54px;
  color: #fff;
  margin: 0;
  max-width: 860px;
  line-height: 1.12;
  text-wrap: pretty;
}

/* ---------- home: hero ---------- */
.hero {
  background: var(--navy);
  padding: 96px 56px 110px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero__badge {
  display: inline-block;
  border: 1px solid rgba(217, 228, 245, 0.4);
  color: var(--navy-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 16px;
  margin-bottom: 28px;
}
.hero__title {
  font-weight: 800;
  font-size: 62px;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.hero__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--navy-soft);
  margin: 0 0 36px;
  max-width: 540px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__art { position: relative; height: 440px; }
.hero__art svg { width: 100%; height: 100%; }

/* Hero illustration animation */
@keyframes swing {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@keyframes pan-left {
  0% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-7px); }
  100% { transform: rotate(-3deg) translateY(0); }
}
@keyframes pan-right {
  0% { transform: rotate(-3deg) translateY(-7px); }
  50% { transform: rotate(3deg) translateY(0); }
  100% { transform: rotate(-3deg) translateY(-7px); }
}
@keyframes file-fly {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate(210px, -46px); opacity: 0; }
}
@keyframes dash-move { to { stroke-dashoffset: -24; } }
@keyframes tick-hand {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes gavel {
  0%, 72%, 100% { transform: rotate(0deg); }
  80% { transform: rotate(-24deg); }
  88% { transform: rotate(4deg); }
}
.fx-dash { animation: dash-move 2.5s linear infinite; }
.fx-swing { animation: swing 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
.fx-pan-left { animation: pan-left 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
.fx-pan-right { animation: pan-right 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
.fx-file { animation: file-fly 4s ease-in-out infinite; }
.fx-file--late { animation-delay: 2s; }
.fx-float { animation: float-y 6s ease-in-out infinite; }
.fx-tick { animation: tick-hand 8s linear infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.fx-gavel { animation: gavel 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: 80% 80%; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* ---------- home: stats band ---------- */
.stats {
  background: var(--navy-dark);
  padding: 72px 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.stat { border-left: 3px solid var(--gold); padding-left: 28px; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 52px;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.stat__value .unit { color: var(--gold); }
.stat__desc { font-size: 16px; color: var(--navy-soft); margin-top: 12px; line-height: 1.5; }

/* ---------- home: problem section ---------- */
.problem { padding: 110px 56px 90px; }
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.pull-line {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  margin: 0;
  border-top: 2px solid var(--gold);
  padding-top: 18px;
}
.funnel { display: flex; flex-direction: column; }
.funnel__step {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(90, 100, 114, 0.35);
}
.funnel__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--muted);
  width: 32px;
  flex: none;
}
.funnel__label { font-size: 16px; font-weight: 500; color: var(--muted); line-height: 1.4; }
.funnel__step--court .funnel__num,
.funnel__step--pendency .funnel__num { color: var(--gold); }
.funnel__step--court .funnel__label { font-weight: 600; color: var(--ink); }
.funnel__step--pendency .funnel__label { font-weight: 700; color: var(--ink); }
.funnel__cut {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  padding: 18px 22px;
  margin-top: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.funnel__cut .scissors { font-size: 22px; }

/* ---------- home: how it works ---------- */
.how {
  background: var(--surface);
  padding: 100px 56px;
  border-top: 1px solid rgba(90, 100, 114, 0.15);
}
.section-intro { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-intro .section-title { margin-bottom: 18px; }
.section-intro .body-copy { margin-bottom: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card {
  background: var(--navy);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 250px;
}
.step-card__num {
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card h3 { font-weight: 700; font-size: 23px; color: #fff; }
.step-card p { font-size: 15px; line-height: 1.6; color: var(--navy-soft); margin: 0; }
.how__cta { text-align: center; margin-top: 48px; }

/* ---------- home: team ---------- */
.team { background: var(--navy-soft); padding: 100px 56px; }
.team__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
}
.team__head .eyebrow { margin-bottom: 14px; }
.team__head .section-title { margin-bottom: 0; }
.team__note { font-size: 16px; color: var(--navy); flex: none; max-width: 280px; text-align: right; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  background: var(--surface);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 0 rgba(22, 41, 79, 0.15);
}
.team-card__photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}
.team-card h3 { font-weight: 700; font-size: 23px; color: var(--ink); }
.team-card__role {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}
.team-card__bio { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }
.team-card__link {
  margin-top: auto;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid var(--gold);
  align-self: flex-start;
  padding-bottom: 2px;
}

/* ---------- home: closing quote band ---------- */
.quote-band {
  background: var(--navy);
  padding: 90px 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.quote-band__title {
  font-weight: 800;
  font-size: 44px;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.quote-band p { font-size: 17px; color: var(--navy-soft); line-height: 1.7; margin: 0; }
.quote-band__actions { display: flex; flex-direction: column; gap: 16px; }

/* ---------- vision: article ---------- */
.article { max-width: 860px; margin: 0 auto; padding: 90px 56px; }
.article__lead {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
  margin: 0 0 48px;
  border-left: 4px solid var(--gold);
  padding-left: 28px;
}
.article .eyebrow { margin: 56px 0 14px; }
.article .eyebrow:first-of-type { margin-top: 0; }
.article__p { font-size: 17px; line-height: 1.8; color: var(--muted); margin: 0 0 22px; }
.article__p strong { color: var(--ink); }
.article__p--ink { color: var(--ink); font-weight: 600; }
.commitments { display: flex; flex-direction: column; margin-bottom: 26px; }
.commitment {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px dashed rgba(90, 100, 114, 0.35);
}
.commitment__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--gold);
  flex: none;
  width: 32px;
}
.commitment__body span { color: var(--muted); }
.article__callout {
  background: var(--navy-soft);
  padding: 36px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
}
.article__callout-line {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.article__callout .btn { flex: none; padding: 14px 26px; }

/* ---------- contact ---------- */
.contact {
  max-width: 1000px;
  margin: 0 auto;
  padding: 90px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-card {
  background: var(--surface);
  padding: 44px 40px;
  box-shadow: 0 2px 0 rgba(22, 41, 79, 0.15);
}
.contact-card__tag {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.contact-card h2 { font-weight: 700; font-size: 28px; margin: 0 0 20px; }
.contact-card__links { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.contact-card__links a { font-weight: 600; }
.contact__cta {
  grid-column: 1 / -1;
  background: var(--navy-dark);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.contact__cta p {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.45;
  text-wrap: pretty;
}
.contact__cta .btn { flex: none; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-dark);
  padding: 48px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__mark { background: var(--surface); padding: 5px 7px; display: flex; align-items: center; }
.site-footer__mark img { height: 26px; display: block; }
.site-footer__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; }
.site-footer__links { display: flex; gap: 28px; font-size: 14px; font-weight: 600; }
.site-footer__links a { color: var(--navy-soft); }
.site-footer__links a:hover { color: var(--gold); }
.site-footer__fine { font-size: 13px; color: var(--navy-faint); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero__title { font-size: 52px; }
  .page-hero__title { font-size: 46px; }
}
@media (max-width: 960px) {
  .site-nav { padding: 0 24px; height: auto; min-height: 72px; flex-wrap: wrap; row-gap: 0; padding-top: 12px; padding-bottom: 12px; }
  .site-nav__links { gap: 20px; flex-wrap: wrap; }
  .hero,
  .page-hero,
  .stats,
  .problem,
  .how,
  .team,
  .quote-band,
  .article,
  .contact,
  .site-footer { padding-left: 24px; padding-right: 24px; }
  .hero { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .hero__art { height: 340px; }
  .stats,
  .problem__grid,
  .steps,
  .team__grid,
  .quote-band,
  .contact { grid-template-columns: 1fr; }
  .steps,
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .team__head { flex-direction: column; align-items: flex-start; }
  .team__note { text-align: left; }
  .article__callout,
  .contact__cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .hero__title { font-size: 40px; }
  .page-hero__title { font-size: 36px; }
  .section-title { font-size: 32px; }
  .quote-band__title { font-size: 34px; }
  .steps,
  .team__grid { grid-template-columns: 1fr; }
  .site-footer { justify-content: flex-start; }
}
