/* =========================================================================
   SIYA INSTRUMENTS — stylesheet
   Brand: Deep Royal blue (#1A56C9) → teal → green (#2FAE73). SI-badge logo,
   Montserrat italic wordmark. Edit the tokens in :root to re-tune the brand.
   ========================================================================= */

:root {
  /* --- BRAND --- */
  --blue:        #15499E;
  --blue-bright: #1E63C8;
  --blue-deep:   #0E3A7D;
  --teal:        #1C6FB0;
  --green:       #45A038;
  --green-soft:  #86CE6F;
  --ink:         #0C2E52;   /* deep navy — text & dark sections */
  --ink-2:       #08223E;
  --paper:       #F2F6F9;
  --panel:       #FFFFFF;
  --muted:       #56666e;
  --line:        #dde4ec;
  --mist:        #e9eef4;
  --blue-soft:   #e7eef8;
  --green-tint:  #ecf5e8;

  /* legacy aliases */
  --orange: var(--blue);  --orange-bright: var(--blue-bright); --orange-deep: var(--blue-deep);
  --orange-soft: var(--blue-soft); --amber: var(--blue); --amber-soft: var(--blue-soft);
  --pine: var(--blue); --pine-deep: var(--ink); --pine-soft: var(--blue-soft);

  --maxw: 1180px; --r: 5px; --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }

h1,h2,h3,h4 { font-family: "Archivo", system-ui, sans-serif; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.74rem; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--green); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; font-family: "Archivo", sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: -0.01em; padding: 13px 24px; border-radius: var(--r); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .18s var(--ease), background .18s, color .18s, border-color .18s, box-shadow .18s; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(26,86,201,.24); }
.btn-primary:hover { transform: translateY(-2px); background: var(--blue-deep); box-shadow: 0 10px 24px rgba(26,86,201,.32); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); background: #fff; }

/* ---------- header + logo ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(14,34,56,.07); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; transition: height .25s var(--ease); }
.site-header.scrolled .nav { height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.logo-mark { height: 46px; width: auto; flex: none; display: block; transition: transform .35s var(--ease); }
.logo-word { height: 32px; width: auto; display: block; }
.site-header.scrolled .logo-mark { height: 40px; }
.site-header.scrolled .logo-word { height: 28px; }
.brand:hover .logo-mark { transform: rotate(-4deg) scale(1.05); }
.brand-word { display: flex; flex-direction: column; line-height: 1; font-family: "Montserrat", Arial, sans-serif; }
.brand-siya { font-weight: 800; font-style: italic; font-size: 1.5rem; letter-spacing: .01em; color: var(--ink); }
.brand-inst { font-weight: 700; font-style: italic; font-size: .62rem; letter-spacing: .26em; color: var(--blue); margin-top: 4px; }

.brand-mark { width: 40px; height: 40px; border-radius: var(--r); background: var(--blue); color: #fff; display: grid; place-items: center; font-family: "Montserrat", Arial, sans-serif; font-weight: 800; font-style: italic; font-size: 1.15rem; flex: none; }
.brand-name { font-family: "Montserrat", Arial, sans-serif; font-weight: 800; font-style: italic; font-size: 1.12rem; line-height: 1; letter-spacing: .01em; }
.brand-sub { display: block; margin-top: 3px; color: var(--muted); }

.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem; padding: 8px 15px; border-radius: var(--r); transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--blue-soft); }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- hero ---------- */
.hero { padding: 92px 0 68px; position: relative; overflow: hidden; }
.hero-orb { position: absolute; pointer-events: none; z-index: 0; top: -120px; right: -160px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(26,86,201,.10), rgba(47,174,115,0) 62%); }
.hero-orb::before, .hero-orb::after { content: ""; position: absolute; inset: 90px; border-radius: 50%; border: 1.5px dashed rgba(26,86,201,.26); animation: spin 38s linear infinite; }
.hero-orb::after { inset: 150px; border-style: solid; border-color: rgba(47,174,115,.16); animation-duration: 26s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { color: var(--blue); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--green); display: inline-block; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-lead { font-size: 1.18rem; color: var(--muted); max-width: 52ch; margin: 24px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center; }

.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 60%, transparent); border-radius: var(--r); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a { display: flex; align-items: baseline; gap: 16px; padding: 18px 14px; text-decoration: none; color: var(--ink); transition: padding .2s var(--ease), color .2s, background .2s; }
.index-list a:hover { padding-left: 24px; color: var(--blue); background: var(--blue-soft); }
.index-list .num { color: var(--green); font-family: "IBM Plex Mono", monospace; font-size: .8rem; flex: none; }
.index-list .lbl { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.2rem; }
.index-list .cnt { margin-left: auto; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 58px 0; }
.section-head { max-width: 60ch; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 16px 0 0; }
.bg-pine { background: var(--ink); color: var(--paper); }
.bg-pine .section-head p, .bg-pine .muted { color: #b9c6cf; }
.bg-mist { background: var(--mist); }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; min-height: 210px; position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.cat-card::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: linear-gradient(var(--blue), var(--green)); transform: scaleY(0); transform-origin: top; transition: transform .25s var(--ease); }
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(14,34,56,.12); border-color: var(--blue); }
.cat-card:hover::after { transform: scaleY(1); }
.cat-card .num { color: var(--blue); }
.cat-card h3 { font-size: 1.5rem; margin-top: 4px; }
.cat-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.cat-card .more { margin-top: auto; color: var(--blue); font-weight: 600; font-family: "Archivo", sans-serif; font-size: .92rem; }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.trust div { background: var(--panel); padding: 32px 28px; }
.trust .mono { color: var(--green); }
.trust h3 { font-size: 1.25rem; margin: 10px 0 6px; }
.trust p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- about band ---------- */
.about-home { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: center; }
.about-home h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 18ch; }
.about-home p { color: var(--muted); font-size: 1.06rem; margin: 18px 0 0; max-width: 56ch; }
.about-home .btn { margin-top: 26px; }
.stat-card { background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 36px; position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1.5px dashed rgba(47,174,115,.45); }
.stat-card .big { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 3.6rem; line-height: 1; letter-spacing: -0.03em; }
.stat-card .lbl { display: block; margin-top: 10px; color: #b9c6cf; max-width: 22ch; }
.stat-card hr { border: 0; border-top: 1px solid rgba(255,255,255,.16); margin: 24px 0; }
.stat-card .row { display: flex; align-items: baseline; gap: 12px; }
.stat-card .row + .row { margin-top: 10px; }
.stat-card .row .mono { color: var(--green-soft); }
.stat-card .row .v { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.25rem; }

/* ---------- clients ---------- */
.clients-head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }
.clients-head .eyebrow { justify-content: center; }
.clients-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.clients-head p { color: var(--muted); font-size: 1.06rem; margin: 14px 0 0; }
.clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.client-logo { aspect-ratio: 3 / 2; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: grid; place-items: center; gap: 7px; color: var(--muted); text-align: center; padding: 12px; transition: transform .2s var(--ease), border-color .2s; }
.client-logo:hover { transform: translateY(-3px); border-color: var(--blue); }
.client-logo svg { width: 24px; height: 24px; opacity: .45; }
.client-logo .mono { font-size: .66rem; }
.client-logo .tag { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }

/* ---------- products ---------- */
.prod-tools { position: sticky; top: 80px; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 14px 0; }
.site-header.scrolled ~ .prod-tools { top: 68px; }
.prod-tools-inner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 100px; padding: 9px 18px; flex: 1; min-width: 220px; transition: border-color .15s, box-shadow .15s; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.search-box svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-box input { border: 0; outline: 0; background: none; font: inherit; font-size: .98rem; width: 100%; color: var(--ink); }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-family: "Archivo", sans-serif; font-weight: 600; font-size: .85rem; color: var(--ink); background: var(--panel); padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; cursor: pointer; transition: .15s; }
.pill:hover { border-color: var(--blue); }
.pill.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.no-results { text-align: center; color: var(--muted); padding: 50px 0; font-size: 1.05rem; }
.linkbtn { background: none; border: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

.prod-cat { padding-top: 18px; margin-bottom: 60px; scroll-margin-top: 150px; }
.prod-cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.prod-cat-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.prod-cat-head .mono { color: var(--muted); }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prod-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; }
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14,34,56,.12); border-color: var(--blue); }
.prod-card[hidden] { display: none; }
.prod-thumb { aspect-ratio: 4 / 3; background: var(--blue-soft); display: grid; place-items: center; color: var(--blue); border-bottom: 1px solid var(--line); }
.prod-thumb .ph { text-align: center; opacity: .8; }
.prod-thumb .ph svg { width: 34px; height: 34px; margin-bottom: 6px; }
.prod-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-body h3 { font-size: 1.08rem; letter-spacing: -0.01em; }
.prod-spec { color: var(--green); font-weight: 600; }
.prod-desc { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
.prod-desc.todo { color: #9aa8a4; font-style: italic; }

.cat-nav { position: sticky; top: 80px; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 0; }
.cat-nav ul { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.cat-nav a { text-decoration: none; font-family: "Archivo", sans-serif; font-weight: 600; font-size: .85rem; color: var(--ink); padding: 7px 13px; border: 1px solid var(--line); border-radius: 100px; transition: .15s; }
.cat-nav a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- about page ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.placeholder-para { border: 1px dashed var(--green); background: var(--green-tint); border-radius: var(--r); padding: 22px 24px; color: #1d6b46; margin-top: 22px; }
.placeholder-para .mono { color: #1d6b46; display: block; margin-bottom: 8px; }
.founder-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.founder-photo { aspect-ratio: 3 / 4; background: var(--blue-soft); display: grid; place-items: center; color: var(--blue); border-bottom: 1px solid var(--line); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; }
.founder-meta { padding: 20px 22px; }
.founder-meta .mono { color: var(--muted); }
.founder-meta h3 { font-size: 1.4rem; margin: 6px 0 2px; }
.founder-meta p { margin: 0; color: var(--blue); font-weight: 600; }
.val-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 22px; }
.val-grid .val { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.val .mono { color: var(--green); }
.val h3 { font-size: 1.2rem; margin: 10px 0 6px; }
.val p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.contact-list li:first-child { padding-top: 0; }
.contact-ico { width: 42px; height: 42px; flex: none; border-radius: var(--r); background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.contact-ico svg { width: 20px; height: 20px; }
.contact-list .mono { color: var(--muted); display: block; margin-bottom: 4px; }
.contact-list a, .contact-list span { text-decoration: none; color: var(--ink); font-size: 1.08rem; font-weight: 500; }
.contact-list a:hover { color: var(--blue); }
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: "Archivo", sans-serif; font-weight: 600; font-size: .85rem; margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: .98rem; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field textarea { resize: vertical; min-height: 120px; }
.map-embed { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 38px; }
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-2); color: var(--paper); padding: 58px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand-name { color: var(--paper); }
.site-footer p { color: #aab8c2; margin: 14px 0 0; max-width: 38ch; font-size: .96rem; }
.footer-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green-soft); margin-bottom: 16px; font-family: "IBM Plex Mono", monospace; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #c8d3da; text-decoration: none; font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #82919c; font-size: .85rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s var(--ease) forwards; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .26s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.obs { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.obs.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) { .hero-grid, .about-grid, .contact-grid, .about-home { grid-template-columns: 1fr; gap: 36px; } .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } .footer-grid { grid-template-columns: 1fr 1fr; } .val-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); transform: translateY(-115%); opacity: 0; visibility: hidden; transition: transform .25s var(--ease), opacity .2s, visibility .25s; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { display: block; }
  .cat-grid, .prod-grid, .trust, .footer-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .trust { border-radius: var(--r); }
  .hero { padding: 60px 0 46px; }
  .section { padding: 58px 0; }
  .prod-tools, .cat-nav { top: 68px; }
  .logo-word { height: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto; transition: none !important; } .reveal, .obs { opacity: 1 !important; transform: none !important; } .hero-orb { display: none; } }
