/* ══════════════════════════════════════════════════════════
   Opengear landing page
   Palette taken from the live opengear.com stylesheet
   (#2d2926 brand charcoal / #0f39e1 brand blue / #ed0027 red)
   ══════════════════════════════════════════════════════════ */

:root {
  --og-charcoal: #2d2926;   /* brand dark — warm, not blue-black */
  --og-charcoal-2: #211e1c; /* deeper shade for layering */
  --og-blue: #0f39e1;       /* primary brand blue */
  --og-blue-dk: #0d2fb8;    /* hover / active */
  --og-blue-lt: #e9edfd;    /* tint background */
  --og-red: #ed0027;        /* accent */
  --og-warm: #ddd7d7;       /* brand warm grey */
  --og-gray-1: #f7f6f5;
  --og-gray-2: #e8e5e3;
  --og-gray-3: #b8b2af;
  --og-gray-4: #5e5754;
  --og-text: #2d2926;
  --og-muted: #6d6663;
  --og-white: #ffffff;

  /* Cancels the Bootstrap 5 .container gutter this page is rendered inside,
     so dark bands run edge to edge. Falls back to 1.5rem if the var is absent. */
  --og-bleed: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
}

/* ── IMAGE FRAMES ──
   Every image sits in a ratio-locked frame, so any source image renders at an
   identical size and cannot shift the layout.
   .og-img-cover   → photos / renders (crop to fill)
   .og-img-contain → product shots, logos, transparent art (fit whole, no crop) */
.og-img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--og-gray-1);
}

@supports not (aspect-ratio: 16 / 10) {
  .og-img-frame {
    height: 0;
    padding-bottom: 62.5%;
  }
}

.og-img-frame > img,
.og-img-frame > .og-img-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.og-img-cover {
  object-fit: cover;
  object-position: center;
}

.og-img-contain {
  object-fit: contain;
  object-position: center;
  padding: 20px;
}

/* Placeholder shown until a real image is dropped in */
.og-img-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(45, 41, 38, 0.05) 0px,
      rgba(45, 41, 38, 0.05) 12px,
      transparent 12px,
      transparent 24px
    ),
    var(--og-gray-1);
  border: 2px dashed var(--og-gray-3);
  border-radius: 14px;
  color: var(--og-gray-4);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
  padding: 12px;
}

.og-img-ph i {
  font-size: 26px;
  opacity: 0.55;
}

.og-img-ph-sm {
  font-size: 11px;
}

.og-img-ph-sm i {
  font-size: 20px;
}

/* Frame ratio variants */
/* 16/9 to match the supplied 1920x1080 hero: at 4/3 the cover fit was cropping
   roughly a quarter of the image width away. */
.og-frame-hero {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.og-frame-hero .og-img-ph {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 12px,
      transparent 12px,
      transparent 24px
    ),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
}

.og-frame-card {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.og-frame-card .og-img-ph {
  border-radius: 0;
  border-width: 0 0 2px 0;
}

.og-frame-why {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
}

@supports not (aspect-ratio: 4 / 3) {
  .og-frame-hero { padding-bottom: 56.25%; }
  .og-frame-card { padding-bottom: 56.25%; }
  .og-frame-why  { padding-bottom: 75%; }
}

/* ── SHARED SECTION FURNITURE ── */
.og-section-head {
  max-width: 780px;
  margin: 0 auto 46px;
  text-align: center;
}

.og-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--og-gray-4);
  margin-bottom: 14px;
  position: relative;
  padding-left: 26px;
}

.og-kicker::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 3px;
  background: var(--og-blue);
  transform: translateY(-50%);
}

.og-kicker-light {
  color: var(--og-gray-3);
}

.og-kicker-light::before {
  background: var(--og-white);
}

.og-h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--og-text);
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.og-h2-light {
  color: var(--og-white);
}

.og-sub {
  font-size: clamp(14px, 1rem, 1.05rem);
  color: var(--og-muted);
  line-height: 1.7;
  margin: 0;
}

.og-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.og-tag-blue {
  color: var(--og-white);
  background: var(--og-blue);
}

/* ── BUTTONS ── */
.og-btn-primary {
  background: var(--og-blue);
  color: var(--og-white) !important;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14.5px;
  text-decoration: none;
  display: inline-block;
  border: 2px solid var(--og-blue);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.og-btn-primary:hover {
  background: var(--og-blue-dk);
  border-color: var(--og-blue-dk);
  color: var(--og-white) !important;
  text-decoration: none;
  transform: translateY(-2px);
}

.og-btn-ghost {
  background: transparent;
  color: var(--og-white) !important;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s, background 0.2s;
}

.og-btn-ghost:hover {
  border-color: var(--og-white);
  background: rgba(255, 255, 255, 0.08);
  color: var(--og-white) !important;
  text-decoration: none;
}

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

/* ══════════ HERO ══════════ */
.og-hero {
  background: var(--og-charcoal);
  margin: 0 var(--og-bleed);
  padding: 76px 30px 84px;
  position: relative;
  overflow: hidden;
}

/* Angled brand-blue wash, echoing Opengear's diagonal hero treatment */
.og-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -12%;
  width: 62%;
  height: 160%;
  background: linear-gradient(150deg, rgba(15, 57, 225, 0.28), rgba(15, 57, 225, 0) 68%);
  transform: skewX(-12deg);
  pointer-events: none;
}

.og-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.og-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--og-blue);
  margin-bottom: 18px;
}

.og-hero-text h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 800;
  color: var(--og-white);
  line-height: 1.06;
  letter-spacing: -1.4px;
  margin-bottom: 18px;
}

.og-hero-text h1 .og-accent {
  color: var(--og-blue);
  /* Keeps the accent legible against the dark ground */
  text-shadow: 0 0 24px rgba(15, 57, 225, 0.45);
}

.og-hero-text > p {
  font-size: clamp(15px, 1.1rem, 1.15rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 30px;
}

.og-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.og-hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.og-hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.og-hero-points i {
  color: var(--og-blue);
  font-size: 17px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Grid cells default to min-width:auto, which lets a wide child overflow the
   track — pin them so the frames always shrink with the column instead. */
.og-hero-visual,
.og-why-visual {
  min-width: 0;
}

@media (max-width: 900px) {
  .og-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .og-hero {
    padding: 56px 22px 62px;
  }
}

/* ══════════ TRUST BAR ══════════ */
/* Light ground on purpose: every supplied logo is dark artwork on transparency,
   so on a dark band they either vanish or need a silhouette filter — and a
   silhouette destroys any logo with knocked-out text (HYVE) or internal detail
   (the Comptroller seal). On a light ground they all render as authored. */
.og-trust {
  background: var(--og-gray-1);
  border-bottom: 1px solid var(--og-gray-2);
  margin: 0 var(--og-bleed);
  padding: 34px 30px 40px;
  text-align: center;
}

.og-trust-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--og-gray-4);
  margin: 0 0 24px;
}

.og-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 1060px;
  margin: 0 auto;
}

/* Fixed slot so mixed-size logos never reflow the row */
.og-trust-ph,
.og-trust-img {
  width: 168px;
  height: 58px;
  flex: 0 0 auto;
}

.og-trust-img {
  object-fit: contain;
  object-position: center;
  /* Desaturate only — never brightness/invert, which would flatten a logo to a
     solid silhouette and lose knocked-out text and internal detail. This keeps
     mixed-colour logos visually consistent; colour returns on hover. */
  filter: grayscale(1);
  opacity: 0.7;
  transition: opacity 0.2s, filter 0.2s;
}

.og-trust-img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.og-trust-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--og-gray-3);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--og-gray-4);
}

/* ══════════ ONE PLATFORM ══════════ */
.og-platform {
  background: var(--og-white);
  padding: 84px 30px;
}

.og-pillars {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.og-pillar {
  background: var(--og-white);
  border: 1px solid var(--og-gray-2);
  border-top: 4px solid var(--og-blue);
  border-radius: 12px;
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.og-pillar:hover {
  box-shadow: 0 14px 38px rgba(45, 41, 38, 0.12);
  transform: translateY(-4px);
}

.og-pillar-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--og-blue);
  background: var(--og-blue-lt);
  padding: 5px 11px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.og-pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--og-charcoal);
  color: var(--og-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.og-pillar h3 {
  font-size: 23px;
  font-weight: 800;
  color: var(--og-text);
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.og-pillar-lead {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--og-blue);
  line-height: 1.5;
  margin-bottom: 12px;
}

.og-pillar > p {
  font-size: 14px;
  color: var(--og-muted);
  line-height: 1.68;
  margin-bottom: 20px;
  flex-grow: 1;
}

.og-pillar-link {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--og-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s, color 0.2s;
}

.og-pillar-link:hover {
  color: var(--og-blue-dk);
  text-decoration: none;
  gap: 11px;
}

@media (max-width: 900px) {
  .og-pillars {
    grid-template-columns: 1fr;
  }
  .og-platform {
    padding: 58px 22px;
  }
}

/* ══════════ PRODUCTS ══════════ */
.og-products {
  background: var(--og-gray-1);
  padding: 84px 30px;
}

.og-card-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.og-card {
  background: var(--og-white);
  border: 1px solid var(--og-gray-2);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.og-card:hover {
  box-shadow: 0 14px 36px rgba(45, 41, 38, 0.13);
  transform: translateY(-4px);
  border-color: var(--og-gray-3);
}

.og-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.og-card-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--og-gray-4);
  margin-bottom: 8px;
}

.og-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--og-text);
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.og-card p {
  font-size: 13.5px;
  color: var(--og-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex-grow: 1;
}

.og-card-link {
  align-self: flex-start;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--og-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s, color 0.2s;
}

.og-card-link:hover {
  color: var(--og-blue-dk);
  text-decoration: none;
  gap: 11px;
}

@media (max-width: 1000px) {
  .og-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .og-card-grid {
    grid-template-columns: 1fr;
  }
  .og-products {
    padding: 58px 22px;
  }
}

/* ══════════ APPLICATIONS ══════════ */
.og-apps {
  background: var(--og-white);
  padding: 84px 30px;
}

.og-app-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.og-app {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 18px;
  background: var(--og-gray-1);
  border: 1px solid var(--og-gray-2);
  border-left: 3px solid var(--og-blue);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--og-text);
  line-height: 1.35;
  transition: background 0.2s, transform 0.15s;
}

.og-app:hover {
  background: var(--og-blue-lt);
  transform: translateX(3px);
}

.og-app i {
  font-size: 20px;
  color: var(--og-blue);
  flex-shrink: 0;
}

@media (max-width: 1000px) {
  .og-app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .og-app-grid {
    grid-template-columns: 1fr;
  }
  .og-apps {
    padding: 58px 22px;
  }
}

/* ══════════ WHY IT WORKS ══════════ */
.og-why {
  background: var(--og-charcoal);
  margin: 0 var(--og-bleed);
  padding: 88px 30px;
}

.og-why-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.og-why-left .og-h2 {
  margin-bottom: 30px;
}

.og-why-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.og-why-item:last-child {
  border-bottom: none;
}

.og-why-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(15, 57, 225, 0.18);
  border: 1px solid rgba(15, 57, 225, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #7d97f5;
  flex-shrink: 0;
  margin-top: 2px;
}

.og-why-item h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--og-white);
  margin-bottom: 5px;
}

.og-why-item p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
  margin: 0;
}

.og-certs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.og-cert {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 7px 13px;
}

.og-cert i {
  color: var(--og-blue);
  font-size: 14px;
}

@media (max-width: 900px) {
  .og-why-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .og-why {
    padding: 58px 22px;
  }
}

/* ══════════ INDUSTRIES ══════════ */
.og-industries {
  background: var(--og-gray-1);
  padding: 84px 30px;
}

.og-ind-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.og-ind {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 22px 12px;
  background: var(--og-white);
  border: 1px solid var(--og-gray-2);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--og-text);
  line-height: 1.35;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.og-ind:hover {
  border-color: var(--og-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(45, 41, 38, 0.1);
}

.og-ind i {
  font-size: 24px;
  color: var(--og-blue);
}

@media (max-width: 1000px) {
  .og-ind-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .og-ind-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .og-industries {
    padding: 58px 22px;
  }
}

/* ══════════ TESTIMONIAL ══════════ */
.og-quote {
  background: var(--og-white);
  padding: 84px 30px;
}

.og-quote-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 44px 40px;
  background: var(--og-blue-lt);
  border-radius: 16px;
  position: relative;
}

.og-quote-mark {
  font-size: 34px;
  color: var(--og-blue);
  opacity: 0.5;
  display: block;
  margin-bottom: 16px;
}

.og-quote blockquote {
  font-size: clamp(17px, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--og-text);
  line-height: 1.55;
  letter-spacing: -0.3px;
  margin: 0 0 24px;
}

.og-quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.og-quote-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--og-text);
}

.og-quote-role {
  font-size: 13px;
  color: var(--og-muted);
}

@media (max-width: 640px) {
  .og-quote {
    padding: 58px 22px;
  }
  .og-quote-inner {
    padding: 34px 24px;
  }
}

/* ══════════ CTA ══════════ */
.og-cta {
  background: linear-gradient(115deg, var(--og-charcoal-2) 0%, var(--og-charcoal) 45%, var(--og-blue-dk) 100%);
  margin: 0 var(--og-bleed);
  padding: 88px 30px;
  text-align: center;
}

.og-cta-inner {
  max-width: 760px;
  margin: 0 auto;
}

.og-cta h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--og-white);
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.og-cta p {
  font-size: clamp(14px, 1rem, 1.05rem);
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
  margin: 0 auto 32px;
}

.og-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* On the gradient the solid blue button loses contrast — invert it to white */
.og-cta .og-btn-primary {
  background: var(--og-white);
  border-color: var(--og-white);
  color: var(--og-blue) !important;
}

.og-cta .og-btn-primary:hover {
  background: var(--og-gray-1);
  border-color: var(--og-gray-1);
  color: var(--og-blue-dk) !important;
}

@media (max-width: 640px) {
  .og-cta {
    padding: 58px 22px;
  }
}
