/* ══════════════════════════════════════════════════════════════
   SARI DATA — Production Stylesheet
   saridata.com | Cloudflare Pages
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,400&display=swap');

@font-face { font-family: 'Celebes'; src: url('../fonts/Celebes-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Celebes'; src: url('../fonts/Celebes-SemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Celebes'; src: url('../fonts/Celebes-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #1B2A4A;
  --navy-deep: #0F1A2E;
  --navy-light: #253A5C;
  --teal: #117174;
  --teal-light: #6ababc;
  --teal-muted: rgba(17,113,116,0.08);
  --gold: #C5963A;
  --gold-light: #D4AD5C;
  --dark: #2C3E50;
  --mid: #5D6D7E;
  --text: #3A3F47;
  --text-light: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --bg-warm: #FAFBFC;
  --border: #E2E5E9;
  --white: #FFFFFF;
  --font-brand: 'Celebes', Georgia, serif;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1120px;
  --nav-h: 72px;
  --ease: cubic-bezier(.25,.46,.45,.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--dark); }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
@media(max-width:480px){ .container { padding: 0 1.25rem; } }

/* ══════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════ */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; z-index: 1000; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 8px rgba(0,0,0,.04); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: .75rem; }
.nav-logo img { height: 38px; width: auto; }
.brand-name { font-family: var(--font-brand); font-weight: 700; color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-links a { font-size: .875rem; font-weight: 500; color: var(--dark); letter-spacing: .02em; transition: color .2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px; background: var(--teal); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--navy); }
.nav-cta { font-size: .8125rem; font-weight: 600; color: var(--white)!important; background: var(--navy); padding: .5rem 1.25rem; border-radius: 4px; transition: background .2s, transform .2s; }
.nav-cta::after { display: none!important; }
.nav-cta:hover { background: var(--navy-light); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px,6px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-6px); }

@media(max-width:768px){
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--white); flex-direction: column; padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .3s var(--ease); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
  .nav-links.open { transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════════════════════ */
.label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .75rem; }
.page-title { font-family: var(--font-display); font-size: clamp(2.25rem,5vw,3.5rem); font-weight: 700; color: var(--navy); line-height: 1.15; letter-spacing: -.01em; }
.section-title { font-family: var(--font-display); font-size: clamp(1.625rem,3vw,2.125rem); font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: 1rem; }
.section-sub { font-size: 1.0625rem; color: var(--mid); line-height: 1.7; max-width: 620px; }
h3, .h3 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; color: var(--dark); line-height: 1.4; margin-bottom: .75rem; }

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero { min-height: 88vh; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 4rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; right: -10%; width: 55%; height: 100%; background: linear-gradient(135deg, rgba(17,113,116,.03), rgba(27,42,74,.04)); border-radius: 0 0 0 40%; z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.hero .page-title { margin-bottom: 1.5rem; }
.hero-sub { font-family: var(--font-display); font-size: 1.125rem; font-style: italic; color: var(--mid); margin-bottom: 2rem; max-width: 560px; line-height: 1.7; }
.hero-body { font-size: 1rem; color: var(--text); max-width: 540px; margin-bottom: 2.5rem; line-height: 1.75; }

/* Page hero (inner pages) */
.page-hero { padding: calc(var(--nav-h) + 4rem) 0 3rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero .page-title { margin-bottom: .75rem; }
.page-hero .hero-sub { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-size: .9375rem; font-weight: 600; padding: .8rem 1.75rem; border-radius: 4px; transition: all .25s var(--ease); border: none; cursor: pointer; letter-spacing: .01em; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(27,42,74,.2); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-light); transform: translateY(-2px); }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-arrow::after { content: '\2192'; transition: transform .2s; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════ */
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .section-sub, .section-navy p { color: rgba(255,255,255,.75); }
.section-navy .label { color: var(--teal-light); }
.section-navy h3 { color: var(--white); }
.section-navy .section-title { color: var(--white); }
.section-divider { height: 1px; background: var(--border); }

/* ══════════════════════════════════════════════════════════════
   GRIDS
   ══════════════════════════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media(max-width:1024px){ .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:768px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════ */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 2.25rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.card-label { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .75rem; }
.card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: .75rem; line-height: 1.3; }
.card p { font-size: .9375rem; line-height: 1.7; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 600; color: var(--teal); margin-top: 1.25rem; transition: gap .2s; }
.card-link:hover { gap: .7rem; }
.card-link::after { content: '\2192'; }

/* Pillar cards (trust bar) */
.pillar { text-align: center; padding: 2rem 1.25rem; }
.pillar-icon { width: 48px; height: 48px; margin: 0 auto 1.25rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--teal-muted); }
.pillar-icon svg { width: 24px; height: 24px; stroke: var(--teal); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.section-navy .pillar-icon { background: rgba(106,186,188,.12); }
.section-navy .pillar-icon svg { stroke: var(--teal-light); }
.pillar h3 { font-size: .9375rem; }
.pillar p { font-size: .875rem; color: var(--text-light); line-height: 1.65; }
.section-navy .pillar p { color: rgba(255,255,255,.6); }

/* ══════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cmp-table th { background: var(--navy); color: var(--white); font-weight: 600; font-size: .8rem; letter-spacing: .03em; text-align: left; padding: .875rem 1.125rem; }
.cmp-table td { padding: .875rem 1.125rem; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.6; }
.cmp-table tr:nth-child(even) td { background: var(--bg-alt); }
.cmp-table td:first-child { font-weight: 600; color: var(--dark); white-space: nowrap; }
@media(max-width:768px){ .cmp-table { min-width: 640px; } }

/* ══════════════════════════════════════════════════════════════
   CAPABILITIES LIST
   ══════════════════════════════════════════════════════════════ */
.cap { display: flex; gap: 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.cap:last-child { border-bottom: none; }
.cap-label { flex: 0 0 200px; font-weight: 600; color: var(--dark); font-size: .9375rem; padding-top: .1rem; }
.cap-detail { flex: 1; font-size: .9375rem; line-height: 1.7; }
@media(max-width:768px){ .cap { flex-direction: column; gap: .5rem; } .cap-label { flex: none; } }

/* ══════════════════════════════════════════════════════════════
   GOVERNANCE LAYERS
   ══════════════════════════════════════════════════════════════ */
.layer { position: relative; padding: 1.75rem 2rem; background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--teal); border-radius: 0 6px 6px 0; margin-bottom: 1.25rem; }
.layer-num { font-family: var(--font-display); font-size: .8125rem; font-weight: 700; color: var(--teal); margin-bottom: .375rem; }
.layer h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.layer p { font-size: .9375rem; }

/* ══════════════════════════════════════════════════════════════
   DEPLOY CARDS
   ══════════════════════════════════════════════════════════════ */
.deploy { padding: 2.25rem; border: 1px solid var(--border); border-radius: 6px; background: var(--white); position: relative; overflow: hidden; }
.deploy::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--teal); }
.deploy h3 { font-family: var(--font-display); font-size: 1.1875rem; color: var(--navy); margin-bottom: .75rem; }
.deploy .best-for { margin-top: 1.125rem; padding-top: 1.125rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--mid); }

/* ══════════════════════════════════════════════════════════════
   STEPS
   ══════════════════════════════════════════════════════════════ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 2rem; }
.step-num { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: rgba(17,113,116,.15); line-height: 1; margin-bottom: .75rem; }
.step h3 { font-size: 1rem; margin-bottom: .5rem; }
.step p { font-size: .9375rem; }
@media(max-width:768px){ .steps { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ══════════════════════════════════════════════════════════════
   USE CASES
   ══════════════════════════════════════════════════════════════ */
.uc { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.uc:last-child { border-bottom: none; }
.uc h3 { font-size: 1rem; margin-bottom: .375rem; }
.uc p { font-size: .9375rem; max-width: 680px; }

/* ══════════════════════════════════════════════════════════════
   INDUSTRY TAGS
   ══════════════════════════════════════════════════════════════ */
.tags { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.25rem; }
.tag { font-size: .8125rem; font-weight: 500; color: var(--dark); background: var(--white); border: 1px solid var(--border); padding: .45rem 1.125rem; border-radius: 3px; }

/* ══════════════════════════════════════════════════════════════
   FOUNDER
   ══════════════════════════════════════════════════════════════ */
.founder { max-width: 720px; }
.founder-name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.founder-role { font-size: .9375rem; color: var(--mid); margin-bottom: 1.25rem; }
.founder p { font-size: .9375rem; margin-bottom: 1rem; }
.founder-link { font-size: .875rem; color: var(--teal); font-weight: 500; }
.founder-link:hover { color: var(--teal-light); }

/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-info h3 { font-size: 1rem; margin-bottom: .375rem; }
.contact-info p { font-size: .9375rem; margin-bottom: 1.25rem; }
.contact-info a { color: var(--teal); font-weight: 500; }
.contact-info a:hover { color: var(--teal-light); }
.contact-steps { counter-reset: cstep; }
.contact-step { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.contact-step:last-child { border-bottom: none; }
.contact-step::before { counter-increment: cstep; content: counter(cstep); flex: 0 0 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--white); font-family: var(--font-display); font-size: .8125rem; font-weight: 700; border-radius: 50%; }
.contact-step div h3 { font-size: .9375rem; margin-bottom: .125rem; }
.contact-step div p { font-size: .875rem; color: var(--text-light); margin-bottom: 0; }
@media(max-width:768px){ .contact-grid { grid-template-columns: 1fr; } }

/* Tally embed */
.tally-embed { min-height: 520px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--white); }
.tally-embed iframe { width: 100%; min-height: 520px; border: none; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { height: 32px; width: auto; margin-bottom: .75rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .8125rem; color: rgba(255,255,255,.4); line-height: 1.6; max-width: 260px; }
.footer-col h4 { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .8125rem; color: rgba(255,255,255,.6); margin-bottom: .625rem; transition: color .2s; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.75rem; font-size: .75rem; color: rgba(255,255,255,.3); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,.3); }
.footer-legal a:hover { color: rgba(255,255,255,.5); }
@media(max-width:768px){
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════ */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }
