/* ==========================================================================
   Yaazhi — site stylesheet
   One file, no build step. Edit tokens in :root to re-skin the whole site.
   ========================================================================== */

:root {
  /* Brand — core palette. Blue is the identity; red and green appear
     only in the mark and its variants. */
  --ink:        #14273D;
  --deep:       #1E3A5F;
  --brand:      #1E3A5F;
  --brand-soft: #E8EDF4;
  --accent:     #8FA8C4;
  --accent-soft:#EEF2F6;

  /* Surfaces & text */
  --paper:      #FFFFFF;
  --mist:       #F4F6FB;
  --line:       #DFE5EF;
  --body:       #2B3648;
  --muted:      #5F6E85;

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --head: "Sora", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Rhythm */
  --wrap: 1140px;
  --gap: 28px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,39,61,.05), 0 8px 28px rgba(20,39,61,.07);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 72px;
}

/* Brand lockup: mark, "Yaazhi Systems", and the tagline set to the exact
   width of the wordmark. The tagline words are separate spans so
   space-between spreads them across whatever width the wordmark takes —
   the fit stays exact whether or not the webfont has loaded. */

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand:hover { text-decoration: none; }

.brand-mark { width: 36px; height: 36px; flex: none; }

.brand-text { display: flex; flex-direction: column; gap: 4px; }

.brand-name {
  font-family: var(--head);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}

.brand-tag {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: .5rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.nav a {
  color: var(--body);
  font-size: .95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { background: var(--mist); color: var(--ink); text-decoration: none; }
.nav a.is-current { color: var(--brand); background: var(--brand-soft); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px;
  font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer;
}

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  transition: transform .12s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #162C48; }

.btn-ghost { border-color: rgba(255,255,255,.32); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-line { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }

/* ------------------------------------------------------------------ hero -- */

.hero {
  background:
    radial-gradient(1000px 520px at 82% -12%, rgba(52,94,148,.50), transparent 62%),
    radial-gradient(760px 420px at 8% 108%, rgba(143,168,196,.16), transparent 60%),
    linear-gradient(160deg, var(--ink), var(--deep));
  color: #E8F1F4;
  padding: clamp(72px, 11vw, 128px) 0 clamp(56px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}

.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  color: rgba(232,241,244,.82);
  max-width: 58ch;
  margin-bottom: 2rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow.on-light { color: var(--brand); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero.compact { padding: clamp(56px, 8vw, 88px) 0; }
.hero.compact h1 { max-width: 22ch; }
.hero.compact .lede { margin-bottom: 0; }

/* ------------------------------------------------------------------ stats -- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(48px, 7vw, 76px);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat { background: rgba(20,39,61,.34); padding: 26px 22px; }
.stat b {
  display: block;
  font-family: var(--head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -.02em;
}
.stat span { font-size: .88rem; color: rgba(232,241,244,.7); }

/* --------------------------------------------------------------- sections -- */

.section { padding: clamp(64px, 9vw, 104px) 0; }
.section.alt { background: var(--mist); border-block: 1px solid var(--line); }
.section.ink { background: var(--ink); color: rgba(232,241,244,.8); }
.section.ink h2, .section.ink h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
.section.ink .section-head p { color: rgba(232,241,244,.72); }

/* ------------------------------------------------------------------ grids -- */

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ------------------------------------------------------------------ cards -- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .97rem; }
.card p:last-child { margin-bottom: 0; }

.card-link { display: block; color: inherit; transition: border-color .16s ease, transform .16s ease; }
.card-link:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); }

.card .icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.card .icon.amber { background: var(--accent-soft); color: #35577E; }

/* product cards */

.product {
  display: flex; flex-direction: column;
  border-top: 3px solid var(--brand);
}
.product .kicker {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.product ul { margin: 0 0 18px; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.product li { margin-bottom: .35em; }
.product .more { margin-top: auto; font-weight: 600; font-size: .95rem; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.badge.live    { background: #E3F3E9; color: #1D6E3F; }
.badge.build   { background: var(--accent-soft); color: #35577E; }

/* --------------------------------------------------------------- domains -- */

.domain {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
}
.domain h3 { font-size: 1.05rem; }
.domain p { font-size: .94rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------ principles -- */

.principle {
  border-left: 2px solid rgba(255,255,255,.18);
  padding: 4px 0 4px 22px;
}
.principle h3 { font-size: 1.05rem; margin-bottom: .4em; }
.principle p { font-size: .96rem; margin: 0; }

/* ----------------------------------------------------------- split rows -- */

.split {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: clamp(24px, 5vw, 60px);
  padding: clamp(36px, 5vw, 52px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.split:first-of-type { border-top: 0; padding-top: 0; }
.split h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: .5em; }
.split .split-note { color: var(--muted); font-size: .95rem; margin: 0; }
.split .split-body > p:first-child { margin-top: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--paper);
}

.spec {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 22px;
  font-size: .95rem;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--line);
}
.spec dt { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 2px; }
.spec dd { margin: 0; }

/* --------------------------------------------------------- mark explainer -- */

.mark-explainer {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  margin: 28px 0 0;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}
.mark-explainer img { width: 100%; height: auto; }

.mark-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mark-legend li {
  display: flex; gap: 12px; align-items: baseline;
  margin: 0; font-size: .96rem; color: var(--muted);
}
.mark-legend b { color: var(--ink); font-weight: 600; }
.mark-legend .sw {
  width: 12px; height: 12px; border-radius: 3px;
  flex: none; transform: translateY(2px);
}
.mark-legend .sw.void { background: none; box-shadow: inset 0 0 0 2px var(--muted); }

/* ------------------------------------------------------------------- prose */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.15em; }
.prose li { margin-bottom: .5em; }

/* -------------------------------------------------------------------- cta -- */

.cta {
  background: linear-gradient(150deg, var(--deep), var(--ink));
  color: #E8F1F4;
  border-radius: 18px;
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(232,241,244,.78); max-width: 54ch; margin: 0 auto 1.8rem; }

/* ----------------------------------------------------------- feature band -- */

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.feature-band h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: .4em; }
.feature-band .split-note { color: var(--muted); font-size: .97rem; margin: 0; }
.feature-band ul {
  margin: 0 0 18px; padding-left: 1.1em;
  color: var(--muted); font-size: .97rem;
}
.feature-band li { margin-bottom: .4em; }
.feature-band > div > p:first-child { margin-top: 0; }

/* --------------------------------------------------------------- contact -- */

.contact-line {
  font-family: var(--head);
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -.02em;
}

/* ---------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--ink);
  color: rgba(232,241,244,.62);
  padding: 56px 0 40px;
  font-size: .92rem;
}
.site-footer a { color: rgba(232,241,244,.82); }
.site-footer h4 {
  font-family: var(--head);
  color: #fff;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid .brand { margin: 0 0 16px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag  { color: rgba(232,238,250,.58); }
.footer-bottom {
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  font-size: .86rem;
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; gap: 16px; }
  .feature-band { grid-template-columns: 1fr; gap: 20px; }
  .mark-explainer { grid-template-columns: 1fr; justify-items: start; gap: 24px; }
  .mark-explainer img { max-width: 132px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    gap: 2px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
  .site-header .wrap { position: relative; }
}
