/* ==========================================================================
   Steelray 2026 — site.css
   Concept: "Dispatch" — editorial / research-publication
   Palette: ivory + deep ink, purple accent
   Typeface: Inter (all weights)
   ========================================================================== */

:root {
  --bg:           #F5F3EC;
  --bg-2:         #EDEAE0;
  --paper:        #FFFFFF;
  --ink:          #141414;
  --ink-2:        #3A3A38;
  --mute:         #6E6B63;
  --rule:         #D9D5C8;
  --accent:       #655DC6;
  --accent-deep:  #4A42A8;

  --max:          1240px;
  --gutter:       32px;
  --header-h:     68px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-feature-settings: "ss01","cv11";
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------------------------------
   Header + primary navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0; z-index: 50;
  background: rgba(245,243,236,.92);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo svg { width: 132px; height: auto; display: block; }

.site-nav-primary { flex: 1 1 auto; display: flex; justify-content: center; }
.menu {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu > li { position: relative; }
.menu > li > a,
.menu > li > .menu-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 6px;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.menu > li:hover > a,
.menu > li:hover > .menu-label,
.menu > li:focus-within > a,
.menu > li:focus-within > .menu-label {
  color: var(--ink);
  background: var(--bg-2);
}
.caret { width: 10px; height: 10px; opacity: .6; }

.sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 8px;
  min-width: 240px;
  box-shadow: 0 12px 40px rgba(20,20,20,.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
  list-style: none;
  margin: 0;
}
.has-sub:hover > .sub,
.has-sub:focus-within > .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .16s ease, transform .16s ease, visibility 0s;
}
.sub.sub-right { left: auto; right: 0; min-width: 220px; }
.sub li a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-2);
}
.sub li a:hover { background: var(--bg-2); color: var(--ink); }

.site-nav-tail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.site-login-btn,
.site-cart {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--bg-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.site-login-btn:hover, .site-cart:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Hamburger — hidden on desktop */
.site-nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.site-nav-toggle span {
  display: block;
  width: 20px; height: 2px; background: currentColor;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.site-nav-toggle span + span { margin-top: 5px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 88px 0 64px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--mute);
}
.hero h1 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 20px 0 0;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede {
  margin-top: 36px;
  max-width: 58ch;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Generic sections
   -------------------------------------------------------------------------- */
section + section { border-top: 1px solid var(--rule); }
.sec { padding: 72px 0; }

.sec-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.sec-head .label,
.mission-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 8px;
}
.sec-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 28ch;
}
.sec-head-sm h2 {
  font-size: clamp(18px, 2vw, 24px);
  max-width: 48ch;
}

/* Mission two-column */
.mission-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
}
.mission-grid .body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 62ch;
}
.mission-grid .body p + p { margin-top: 18px; }

/* Pull quote */
.pull {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
}
.pull blockquote {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 22ch;
}
.pull blockquote span { color: var(--accent); }
.pull cite {
  display: block;
  margin-top: 28px;
  font-size: 13px;
  font-style: normal;
  color: var(--mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Principles grid */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.p-card {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.p-num {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.p-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.p-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* Clients logo grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.clients-grid .logo-cell {
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  min-width: 0;
  overflow: hidden;
}
.clients-grid .logo-cell img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .65;
  transition: filter .2s ease, opacity .2s ease;
}
.clients-grid .logo-cell img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
.clients-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}
.clients-foot {
  margin-top: 24px;
  color: var(--mute);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Home — product filter + cards
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.prod-card {
  display: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.prod-card:hover {
  box-shadow: 0 8px 32px rgba(20,20,20,.06);
}
.prod-card.show { display: block; }
.prod-card-header {
  padding: 16px 24px;
}
.prod-card-header img {
  height: 28px;
  width: auto;
}
.prod-card-body {
  padding: 0 24px 24px;
}
.prod-card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.prod-card-body h3 a {
  color: var(--ink);
}
.prod-card-body h3 a:hover {
  color: var(--accent);
}
.prod-card-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.prod-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 24px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: color .15s ease;
}
.prod-card-link:hover { color: var(--accent-deep); }
.prod-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform .15s ease;
}
.prod-card-link:hover svg { transform: translateX(3px); }
.prod-card-thumb {
  padding: 0 24px 24px;
  text-align: center;
}
.prod-card-thumb img {
  max-width: 100%;
  border-radius: 4px;
  border: 1px solid var(--rule);
}

.header_sda { background-color: #8C7A3E; }
.header_spa { background-color: var(--accent); }
.header_ap6 { background-color: #8B5C6B; }
.header_viewer { background-color: #4A8B96; }

/* --------------------------------------------------------------------------
   Product pages
   -------------------------------------------------------------------------- */

/* Hero split (text + video) */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero .cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  letter-spacing: -0.005em;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-outline:hover {
  border-color: var(--ink);
}

/* Video responsive embed */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--rule);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Alerts */
.alert {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 24px;
}
.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}
.alert-danger {
  background: #ffeaea;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* Feature cards (3-col) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--rule);
  margin-bottom: 16px;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.feature-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* Detail feature list */
.detail-list {
  max-width: 72ch;
  padding-left: 20px;
}
.detail-list li {
  margin-bottom: 12px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}
.detail-list li strong {
  color: var(--ink);
}
.detail-list ul {
  margin-top: 8px;
  padding-left: 20px;
}

/* Section with tinted background */
.sec-tinted { background: var(--bg-2); }

/* Forms (2026) */
.form-2026 {
  max-width: 560px;
}
.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="tel"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  transition: border-color .15s ease;
}
.form-field input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.form-check input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 800px;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 40px 32px;
  text-align: center;
}
.price-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 500;
}
.price-amount {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-unit {
  font-size: 15px;
  color: var(--mute);
  font-weight: 400;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2;
}
.price-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.price-card .btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-card blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  font-style: italic;
}
.testimonial-card cite {
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.testimonial-card cite span {
  display: block;
  font-weight: 400;
  color: var(--mute);
  font-size: 13px;
  margin-top: 2px;
}

/* Icon feature grid */
.icon-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.icon-feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.icon-feature img {
  width: 40px;
  height: 40px;
  opacity: .7;
}
.icon-feature h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.icon-feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Trial form with sidebar */
.trial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.release-notes {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.release-notes h1, .release-notes h2, .release-notes h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin: 20px 0 8px;
}
.release-notes h1:first-child, .release-notes h2:first-child, .release-notes h3:first-child {
  margin-top: 0;
}
.release-notes ul { padding-left: 20px; }
.release-notes a { color: var(--accent); }

/* Article / long-form content */
.article-body {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.article-body h1 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
}
.article-body h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin: 32px 0 12px;
  letter-spacing: -0.015em;
}
.article-body p { margin: 0 0 16px; }
.article-body ul {
  padding-left: 20px;
  margin: 0 0 16px;
}
.article-body li {
  margin-bottom: 10px;
}

/* Form radio/checkbox groups */
.form-group-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--ink-2);
}
.form-group-inline label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Data tables
   -------------------------------------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.data-table th {
  background: var(--bg-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: rgba(245,243,236,.5); }
.data-table a { color: var(--accent); font-weight: 500; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0 32px;
  font-size: 13px;
  color: var(--mute);
}
.site-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .site-nav-toggle { display: inline-flex; }
  .site-nav-primary {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 12px var(--gutter) 20px;
    display: none;
  }
  body.site-nav-open .site-nav-primary { display: block; }
  body.site-nav-open .site-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.site-nav-open .site-nav-toggle span:nth-child(2) { opacity: 0; }
  body.site-nav-open .site-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu { flex-direction: column; gap: 0; }
  .menu > li > a,
  .menu > li > .menu-label {
    width: 100%;
    justify-content: space-between;
    padding: 14px 10px;
    font-size: 16px;
  }
  .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 18px;
    margin: 0;
  }
  .sec-head,
  .mission-grid { grid-template-columns: 1fr; gap: 12px; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .product-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .icon-features { grid-template-columns: 1fr; }
  .trial-split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .principles { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 56px 0 32px; }
  .sec { padding: 48px 0; }
  .pull { padding: 64px 0; }
}
