:root {
  color-scheme: light;
  --navy: #1c2045;
  --navy-deep: #111633;
  --orange: #f99d1c;
  --orange-strong: #fc8703;
  --ink: #22242b;
  --muted: #646877;
  --line: #e5e7ec;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --shadow: 0 18px 48px rgba(28, 32, 69, 0.16);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--surface);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem max(1rem, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: rgba(28, 32, 69, 0.95);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  width: min(213px, 56vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 2px solid transparent;
  color: #fff;
  font-size: 0.96rem;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--orange);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: center;
  padding: 8rem max(1rem, calc((100vw - var(--max)) / 2)) 7rem;
  overflow: hidden;
  color: #fff;
  background: var(--navy) url("/brand/triway-hero.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  right: -5vw;
  bottom: -1px;
  left: -5vw;
  height: 86px;
  background: #fff;
  clip-path: polygon(0 24%, 50% 100%, 100% 24%, 100% 100%, 0 100%);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 32, 69, 0.96), rgba(28, 32, 69, 0.66) 42%, rgba(28, 32, 69, 0.52));
}

.hero-copy,
.product-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: 1.2rem;
  justify-items: start;
  max-width: 720px;
}

.eyebrow {
  margin: 0;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #fff;
  font-family: "Roboto Slab", Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 1.02;
  text-transform: uppercase;
}

h1 span {
  display: inline-block;
}

.lede {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-family: "Roboto Slab", Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2.4vw, 1.48rem);
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: #fff;
  border-color: var(--orange);
  background: var(--orange);
}

.button.primary:hover,
.button.primary:focus-visible {
  border-color: var(--orange-strong);
  background: var(--orange-strong);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.78);
  background: transparent;
}

.product-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.panel-bar {
  height: 46px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 16px;
  background: var(--navy-deep);
}

.panel-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
}

.panel-bar span:nth-child(2) {
  background: var(--orange);
}

.panel-bar span:nth-child(3) {
  background: #57b3ff;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
}

.metric {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.metric.wide {
  min-height: 138px;
  grid-column: 1 / -1;
  border-left: 5px solid var(--orange);
  background: #fff;
}

.metric strong {
  color: var(--navy);
  font-family: "Roboto Slab", Georgia, "Times New Roman", serif;
  text-transform: uppercase;
}

.metric span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
  }

  .site-nav {
    gap: 0.25rem;
  }

  .site-nav a {
    padding-inline: 0.55rem;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
  }

  .hero-copy {
    justify-items: center;
    text-align: center;
  }

  .actions {
    justify-content: center;
  }
}
