/* ============================================================
   Soudarshini Valve - pitch redesign
   Conviction: machined steel + foundry brass + mono-set specs
   ============================================================ */

/* Fonts loaded via <link> in each page head (preconnected) to avoid render-blocking @import */

:root {
  /* palette */
  --ink: #15191E;
  --graphite: #222A31;
  --steel: #1C4E7A;
  --steel-bright: #2E6BA0;
  --brass: #C2872B;
  --brass-bright: #D89A3C;
  --brass-dark: #946312;
  --paper: #F4F1EB;
  --paper-dim: #E8E3D8;
  --grey: #586571;
  --grey-light: #9AA4AD;
  --hairline-dark: #2C353D;
  --hairline-light: #D8D2C5;
  --white: #FCFBF8;

  /* type */
  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  /* rhythm */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--brass); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--graphite { background: var(--graphite); color: var(--paper); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--dim { background: var(--paper-dim); color: var(--ink); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--graphite h1, .section--graphite h2, .section--graphite h3 { color: var(--white); }

/* eyebrow / mono label */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}
.section--paper .eyebrow, .section--dim .eyebrow { color: var(--steel); }
.section--paper .eyebrow::before, .section--dim .eyebrow::before { background: var(--steel); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
.section-head .lede { font-size: 1.15rem; color: var(--grey); margin-top: 0.5rem; }
.section--dark .lede, .section--graphite .lede { color: var(--grey-light); }

/* ---------- wordmark lockup ---------- */
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; gap: 0.18em; }
.wordmark__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}
.wordmark__desc {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.5rem;
  letter-spacing: 0.42em;
  color: var(--grey);
  padding-left: 0.04em;
}
.wordmark--light .wordmark__name { color: var(--white); }
.wordmark--light .wordmark__desc { color: var(--grey-light); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--brass-bright); color: var(--ink); }
.btn--outline { border-color: var(--hairline-dark); color: var(--paper); }
.section--paper .btn--outline, .section--dim .btn--outline { border-color: var(--hairline-light); color: var(--ink); }
.btn--outline:hover { border-color: var(--brass); color: var(--brass); }
.btn--ghost { padding-left: 0; padding-right: 0; color: var(--brass); }
.btn--ghost:hover { color: var(--brass-bright); gap: 0.85rem; }
.section--paper .btn--ghost, .section--dim .btn--ghost { color: var(--brass-dark); }
.section--paper .btn--ghost:hover, .section--dim .btn--ghost:hover { color: var(--ink); gap: 0.85rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 25, 30, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__links { display: flex; align-items: center; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: 0.01em;
}
.nav__links a:not(.btn):hover, .nav__links a:not(.btn)[aria-current="page"] { color: var(--brass); }
.nav__cta { margin-left: 0.5rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--paper); margin: 5px 0; transition: .2s; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 18%, rgba(21,25,30,0.72) 48%, rgba(21,25,30,0.15) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(5rem, 13vw, 9rem) var(--gutter); max-width: calc(38rem + 2 * var(--gutter)); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 600; color: var(--white); }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero__lede { font-size: 1.22rem; color: var(--paper-dim); margin: 1.4rem 0 2.2rem; max-width: 32rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__specstrip {
  position: relative; z-index: 2;
  border-top: 1px solid var(--hairline-dark);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero__specstrip div { padding: 1.4rem var(--gutter); border-left: 1px solid var(--hairline-dark); }
.hero__specstrip div:first-child { border-left: 0; }
.hero__specstrip dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-light); margin-bottom: 0.35rem; }
.hero__specstrip dd { margin: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--white); }

/* ---------- grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- product card ---------- */
.pcard {
  background: var(--graphite);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.pcard:hover { border-color: var(--brass); transform: translateY(-3px); }
.pcard__media { aspect-ratio: 1 / 1; background: #1a2026; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.pcard__body h3 { color: var(--white); font-size: 1.28rem; margin-bottom: 0.3rem; }
.pcard__std { font-family: var(--mono); font-size: 0.72rem; color: var(--brass); letter-spacing: 0.04em; margin-bottom: 0.9rem; }
.pcard__desc { font-size: 0.95rem; color: var(--grey-light); margin-bottom: 1.1rem; }
.pcard__link { margin-top: auto; font-family: var(--mono); font-size: 0.78rem; color: var(--paper); letter-spacing: 0.05em; }
.pcard:hover .pcard__link { color: var(--brass); }

/* ---------- spec table (instrument panel) ---------- */
.spec {
  font-family: var(--mono);
  border-top: 1px solid var(--hairline-light);
  font-size: 0.9rem;
}
.section--dark .spec, .section--graphite .spec { border-color: var(--hairline-dark); }
.spec__row { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--hairline-light); }
.section--dark .spec__row, .section--graphite .spec__row { border-color: var(--hairline-dark); }
.spec__key { color: var(--brass); letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.72rem; padding-top: 0.15rem; }
.spec__val { color: inherit; }
.section--paper .spec__val { color: var(--ink); }

/* ---------- feature row (image + text) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature--flip .feature__media { order: 2; }
.feature__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.feature__media .placeholder-note { font-family: var(--mono); font-size: 0.68rem; color: var(--grey); margin-top: 0.5rem; }

/* ---------- stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { border-left: 2px solid var(--brass); padding-left: 1.1rem; }
.stat dt { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1; }
.stat dd { margin: 0.45rem 0 0; font-size: 0.92rem; color: var(--grey); }
.section--dark .stat dd, .section--graphite .stat dd { color: var(--grey-light); }

/* ---------- checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.7rem; height: 0.7rem;
  border: 2px solid var(--brass); border-top: 0; border-right: 0;
  transform: rotate(-45deg) translateY(-2px);
}

/* ---------- logo wall ---------- */
.logowall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--hairline-light); border: 1px solid var(--hairline-light); }
.section--dark .logowall, .section--graphite .logowall { background: var(--hairline-dark); border-color: var(--hairline-dark); }
.logowall__cell { background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; aspect-ratio: 3/2; }
.section--dark .logowall__cell, .section--graphite .logowall__cell { background: var(--graphite); }
.logowall__cell img { max-height: 58px; width: auto; opacity: 1; filter: grayscale(1); transition: .2s; }
.logowall__cell:hover img { filter: none; }

/* ---------- pill / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.chips li {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem; border: 1px solid var(--hairline-light); border-radius: 2rem; color: var(--grey);
}
.section--dark .chips li, .section--graphite .chips li { border-color: var(--hairline-dark); color: var(--grey-light); }

/* ---------- CTA band ---------- */
.ctaband { background: var(--steel); color: var(--white); }
.ctaband .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: clamp(3rem,6vw,4.5rem); padding-bottom: clamp(3rem,6vw,4.5rem); flex-wrap: wrap; }
.ctaband h2 { color: var(--white); font-size: clamp(1.7rem, 3.5vw, 2.5rem); max-width: 28rem; }
.ctaband .btn--brass { background: var(--brass); }
.ctaband .btn--brass:hover { background: var(--white); }

/* ---------- page hero (interior) ---------- */
.pagehero { background: var(--ink); color: var(--paper); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem,5vw,3.5rem); border-bottom: 1px solid var(--hairline-dark); }
.pagehero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--white); max-width: 20ch; }
.pagehero .lede { font-size: 1.18rem; color: var(--paper-dim); max-width: 44rem; margin-top: 1rem; }
.breadcrumb { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-light); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--grey-light); }
.breadcrumb a:hover { color: var(--brass); }

/* ---------- prose ---------- */
.prose { max-width: 42rem; }
.prose h3 { font-size: 1.4rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }

/* ---------- form ---------- */
.form { display: grid; gap: 1.1rem; max-width: 32rem; }
.form label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); display: block; margin-bottom: 0.4rem; }
.section--dark .form label, .section--graphite .form label { color: var(--grey-light); }
.form input, .form textarea {
  width: 100%; font-family: var(--body); font-size: 1rem;
  padding: 0.8rem 0.9rem; border: 1px solid var(--hairline-dark);
  border-radius: var(--radius); background: var(--graphite); color: var(--paper);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brass); }
.form .placeholder-note { font-family: var(--mono); font-size: 0.7rem; color: var(--grey); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--grey-light); padding: clamp(3.5rem,7vw,5rem) 0 2rem; border-top: 1px solid var(--hairline-dark); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer__grid .footer__h { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin: 0 0 1rem; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer__grid a { color: var(--grey-light); font-size: 0.92rem; }
.footer__grid a:hover { color: var(--brass); }
.footer__addr { font-style: normal; font-size: 0.9rem; line-height: 1.7; }
.footer__addr .mono { font-family: var(--mono); font-size: 0.82rem; }
.footer__bottom { border-top: 1px solid var(--hairline-dark); padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--grey-light); }

/* ---------- placeholder marker (pitch only) ---------- */
.ph { outline: 1px dashed rgba(194,135,43,0.5); outline-offset: 2px; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero__specstrip { grid-template-columns: repeat(2, 1fr); }
  .hero__specstrip div:nth-child(3) { border-left: 0; }
  .logowall { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--hairline-dark);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-120%); transition: transform .25s ease;
    height: auto;
  }
  .nav__links[data-open="true"] { transform: translateY(0); }
  .nav__links li { width: 100%; border-bottom: 1px solid var(--hairline-dark); }
  .nav__links li:last-child { border-bottom: 0; }
  .nav__links a { display: block; padding: 0.9rem 0; }
  .nav__cta { margin: 0.6rem 0 0; }
  .nav__toggle { display: block; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__specstrip { grid-template-columns: 1fr 1fr; }
  .spec__row { grid-template-columns: 1fr; gap: 0.2rem; }
  .logowall { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .ctaband .wrap { flex-direction: column; align-items: flex-start; }
}
