/* ==========================================================================
   OS100 Technology Corp — shared stylesheet
   Used by all 8 pages. Keep selectors flat and class-based; avoid overrides.
   ========================================================================== */

:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --accent: #0028d8;
  --accent-deep: #002070;
  --gold: #f8b000;
  --line: #d2d2d7;
  --dark-bg: #07071a;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

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

p {
  margin: 0;
}

blockquote {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
}

/* -------------------------------------------------------------------------
   Nav
   ------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav.dark {
  background: rgba(7, 7, 26, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 34px;
  width: auto;
}

/* the logo art is dark blue — give it a white chip on dark navs so it stays legible */
.nav.dark .nav-logo img {
  background: #fff;
  padding: 3px 8px;
  border-radius: 8px;
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s var(--ease);
}

.nav.dark .nav-link {
  color: #f2f2f5;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 2px;
  background: var(--accent);
  transition: right 0.25s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  right: 0;
}

.nav.dark .nav-link::after {
  background: var(--gold);
}

.nav-link.is-active {
  color: var(--accent);
}

.nav.dark .nav-link.is-active {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav.dark .nav-toggle-bar {
  background: #f2f2f5;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }

  .nav.dark .nav-links {
    background: #07071a;
  }

  .nav-links.is-open {
    max-height: 480px;
  }

  .nav-link {
    padding: 16px 32px;
    border-bottom: 1px solid var(--line);
  }

  .nav.dark .nav-link {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .nav-link::after {
    display: none;
  }
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--ink);
}

.hero--dark .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero--dark .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero--dark {
  background: var(--dark-bg);
  color: #f2f2f5;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px 32px 80px;
  width: 100%;
}

.hero-content {
  max-width: 760px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-block;
}

.hero--dark .hero-eyebrow {
  color: var(--gold);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.55;
}

.hero--dark .hero-sub {
  color: #c2c2cf;
}

.hero-motif {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* keep the motif off the headline: fade it out over the left text zone */
  -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.3) 50%, #000 70%);
  mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.3) 50%, #000 70%);
}

.hero-motif svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* -------------------------------------------------------------------------
   Section system
   ------------------------------------------------------------------------- */
.section {
  padding: 120px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--tight {
  padding: 80px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 64px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  margin-bottom: 20px;
}

.section-lede {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   Card grid
   ------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards--2 {
  grid-template-columns: repeat(2, 1fr);
}

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

@media (max-width: 640px) {
  .cards--4,
  .cards--3,
  .cards--2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

a.card {
  display: block;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(29, 29, 31, 0.22);
  border-color: rgba(0, 40, 216, 0.25);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-body {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.55;
}

.card-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
}

/* -------------------------------------------------------------------------
   Feature rows (alternating image/text)
   ------------------------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}

.feature-row:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.feature-row.is-reversed .feature-media {
  order: 2;
}

.feature-media {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-step {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.feature-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 16px;
}

.feature-body {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-row.is-reversed .feature-media {
    order: 0;
  }
}

/* -------------------------------------------------------------------------
   Stat strip
   ------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14.5px;
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   Step strip (procurement → installation → support, etc.)
   ------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.steps--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .steps,
  .steps--4 {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding-top: 28px;
}

.step-index {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 14px;
}

.step-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.step-body {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   CTA band
   ------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  padding: 96px 0;
  text-align: center;
}

.cta-band-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 32px;
  color: #fff;
}

.cta-band .btn {
  background: #fff;
  color: var(--accent-deep);
  border-color: #fff;
}

.cta-band .btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--accent-deep);
}

/* -------------------------------------------------------------------------
   Image band — full-bleed photo section; the image stays fixed while the
   page scrolls past, so it "shows through" between content sections
   ------------------------------------------------------------------------- */
.imageband {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

/* fixed attachment only where it behaves (iOS/coarse pointers repaint badly) */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .imageband {
    background-attachment: fixed;
  }
}

.imageband::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(4, 6, 24, 0.62), rgba(4, 6, 24, 0.28));
}

.imageband-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 32px;
  width: 100%;
}

.imageband-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: inline-block;
}

.imageband-title {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 600;
  color: #fff;
  max-width: 640px;
  letter-spacing: -0.01em;
}

.imageband-sub {
  margin-top: 16px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  line-height: 1.55;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand img {
  height: 32px;
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact li {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.footer-contact a {
  color: var(--muted);
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* -------------------------------------------------------------------------
   Reveal-on-scroll
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger helpers for groups of reveals */
.reveal:nth-child(4n+2) { transition-delay: 0.08s; }
.reveal:nth-child(4n+3) { transition-delay: 0.16s; }
.reveal:nth-child(4n)   { transition-delay: 0.24s; }

/* -------------------------------------------------------------------------
   Misc utility
   ------------------------------------------------------------------------- */
.eyebrow-inline {
  color: var(--accent);
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 64px;
}

/* -------------------------------------------------------------------------
   Hero motif SVG (rendered by js/main.js hero-motif engine)
   ------------------------------------------------------------------------- */
.hero-motif svg {
  opacity: 0.9;
}

.hero-motif-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.5;
  transition: stroke-dashoffset 1.4s var(--ease);
}

.hero--dark .hero-motif-line {
  stroke: #5b7cff;
  opacity: 0.45;
}

.hero-motif-node {
  fill: var(--accent);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.4);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.hero--dark .hero-motif-node {
  fill: #7b93ff;
}

.hero-motif-node.is-visible {
  opacity: 0.85;
  transform: scale(1);
}

.hero-motif-node--gold {
  fill: var(--gold);
}

.hero-motif-node--gold.is-visible {
  opacity: 1;
  animation: motifNodeGlow 3.6s ease-in-out infinite alternate;
}

.hero-motif-pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.hero-motif-pulse.is-active {
  animation: motifPulse 3.4s var(--ease) infinite;
}

@keyframes motifNodeGlow {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

@keyframes motifPulse {
  0% { opacity: 0.55; transform: scale(0.55); }
  70% { opacity: 0; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* -------------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-motif svg [data-anim] {
    stroke-dashoffset: 0 !important;
  }

  .hero-motif-node {
    opacity: 0.85;
    transform: scale(1);
  }

  .hero-motif-node--gold {
    opacity: 1;
  }

  .hero-motif-pulse.is-active {
    opacity: 0.35;
    transform: scale(1);
  }
}
