/* IBROPS marketing site — v2 slate brand */

:root {
  --ibr-primary: #0c5c9c;
  --ibr-primary-hover: #094a7d;
  --ibr-accent: #009fe3;
  --ibr-bg-body: #f1f5f9;
  --ibr-bg-card: #ffffff;
  --ibr-bg-elevated: #f8fafc;
  --ibr-text: #0f172a;
  --ibr-text-muted: #64748b;
  --ibr-navy: #0f172a;
  --ibr-border: #e2e8f0;
  --ibr-radius: 0.75rem;
  --ibr-radius-lg: 1.25rem;
  --ibr-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --ibr-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --ibr-display: "Source Serif 4", Georgia, serif;
  --ibr-container: 72rem;
  --ibr-header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ibr-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ibr-text);
  background: var(--ibr-bg-body);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ibr-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--ibr-primary-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ibr-navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--ibr-container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2.5rem, 42rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 245, 249, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--ibr-border);
  background: rgba(255, 255, 255, 0.92);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--ibr-header-h);
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ibr-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-logo img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.site-logo-text {
  font-size: 1.15rem;
}

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

.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ibr-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ibr-primary);
}

/* Nav CTA is an <a.btn> — keep primary button text white (nav link color would gray it out) */
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover,
.site-nav a.btn-primary:focus,
.site-nav a.btn-primary.is-active {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.35rem;
  background: var(--ibr-text);
  border-radius: 2px;
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 0.65rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--ibr-primary);
  color: #fff;
  border-color: var(--ibr-primary);
}

.btn-primary:hover {
  background: var(--ibr-primary-hover);
  border-color: var(--ibr-primary-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

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

.btn-outline {
  background: transparent;
  color: var(--ibr-primary);
  border-color: var(--ibr-primary);
}

.btn-outline:hover {
  background: var(--ibr-primary);
  color: #fff;
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Typography */
.display {
  font-family: var(--ibr-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ibr-accent);
  margin-bottom: 0.85rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--ibr-text-muted);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-title {
  font-family: var(--ibr-display);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--ibr-text-muted);
  max-width: 40rem;
  margin: 0 0 2.5rem;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head.centered {
  text-align: center;
}

.section-head.centered .section-intro {
  margin-inline: auto;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--ibr-header-h));
  min-height: calc(100svh - var(--ibr-header-h));
  display: flex;
  align-items: stretch;
  background: var(--ibr-navy);
  color: #e2e8f0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0, 159, 227, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(12, 92, 156, 0.45), transparent 50%),
    linear-gradient(160deg, #020617 0%, #0f172a 45%, #0c5c9c 140%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.7;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
  width: min(100% - 2.5rem, var(--ibr-container));
  margin: 0 auto;
  padding: 4rem 0 3.5rem;
}

.hero-copy .display {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  color: #fff;
  max-width: 14ch;
}

.hero-copy .lead {
  color: #94a3b8;
  font-size: 1.15rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--ibr-radius-lg);
  box-shadow: var(--ibr-shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s ease;
}

.hero-visual:hover img {
  transform: perspective(1200px) rotateY(-2deg) rotateX(0deg);
}

.hero-brand {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ibr-accent);
  margin-bottom: 1rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-copy .reveal {
  opacity: 0;
  animation: heroRise 0.9s ease forwards;
}

.hero-copy .reveal:nth-child(1) { animation-delay: 0.05s; }
.hero-copy .reveal:nth-child(2) { animation-delay: 0.18s; }
.hero-copy .reveal:nth-child(3) { animation-delay: 0.32s; }
.hero-copy .reveal:nth-child(4) { animation-delay: 0.45s; }

@keyframes heroRise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Problem / promise bands */
.band-light {
  background: var(--ibr-bg-card);
}

.band-slate {
  background: var(--ibr-bg-elevated);
}

.band-navy {
  background: var(--ibr-navy);
  color: #e2e8f0;
}

.band-navy .section-title,
.band-navy .display {
  color: #fff;
}

.band-navy .section-intro,
.band-navy p {
  color: #94a3b8;
}

.band-navy .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.band-navy .btn-outline:hover {
  background: #fff;
  color: var(--ibr-navy);
}

/* Feature / module lists */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.module-item {
  padding: 1.5rem 1.35rem;
  border-left: 3px solid var(--ibr-accent);
  background: transparent;
}

.module-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.module-item p {
  margin: 0;
  color: var(--ibr-text-muted);
  font-size: 0.98rem;
}

.band-navy .module-item p {
  color: #94a3b8;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-media img {
  border-radius: var(--ibr-radius-lg);
  box-shadow: var(--ibr-shadow);
  border: 1px solid var(--ibr-border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 0.25rem;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--ibr-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ibr-accent);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.step p {
  margin: 0;
  color: var(--ibr-text-muted);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.proof-strip figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--ibr-radius);
  border: 1px solid var(--ibr-border);
  background: var(--ibr-bg-card);
}

.proof-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.page-hero {
  padding: 4rem 0 3rem;
  background: var(--ibr-navy);
  color: #fff;
}

.page-hero .lead {
  color: #94a3b8;
}

.page-hero .eyebrow {
  color: var(--ibr-accent);
}

.prose-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.prose-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  color: var(--ibr-text-muted);
}

.prose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ibr-accent);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.solution-panel {
  background: var(--ibr-bg-card);
  border: 1px solid var(--ibr-border);
  border-radius: var(--ibr-radius-lg);
  padding: 2rem 1.75rem;
}

.solution-panel h2 {
  font-family: var(--ibr-display);
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}

.solution-panel p {
  color: var(--ibr-text-muted);
}

/* Forms */
.flash {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--ibr-radius);
  font-weight: 500;
}

.flash-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.flash-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.flash-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.form-shell {
  background: var(--ibr-bg-card);
  border: 1px solid var(--ibr-border);
  border-radius: var(--ibr-radius-lg);
  padding: 2rem;
  box-shadow: var(--ibr-shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.25rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-field .hint {
  display: block;
  font-size: 0.8rem;
  color: var(--ibr-text-muted);
  font-weight: 400;
  margin-top: 0.25rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--ibr-border);
  border-radius: 0.55rem;
  font: inherit;
  color: var(--ibr-text);
  background: var(--ibr-bg-elevated);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ibr-primary);
  box-shadow: 0 0 0 3px rgba(12, 92, 156, 0.15);
  background: #fff;
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ibr-border);
  border-radius: 999px;
  background: var(--ibr-bg-elevated);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 0;
}

.pill-group input {
  width: auto;
  accent-color: var(--ibr-primary);
}

.pill-group label:has(input:checked) {
  border-color: var(--ibr-primary);
  background: rgba(12, 92, 156, 0.08);
  color: var(--ibr-primary);
}

.form-actions {
  margin-top: 0.5rem;
}

.form-aside {
  color: var(--ibr-text-muted);
  font-size: 0.95rem;
}

.form-aside h2 {
  font-family: var(--ibr-display);
  color: var(--ibr-text);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
  align-items: start;
}

/* Downloads page */
.downloads-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 159, 227, 0.12), transparent 55%),
    var(--ibr-bg-body);
}

.downloads-page main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
}

.downloads-card {
  width: min(100%, 26rem);
  background: var(--ibr-bg-card);
  border: 1px solid var(--ibr-border);
  border-radius: var(--ibr-radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--ibr-shadow);
  text-align: center;
}

.downloads-card .site-logo {
  justify-content: center;
  margin-bottom: 0.5rem;
}

.downloads-card .site-logo img {
  width: 4.5rem;
  height: 4.5rem;
}

.downloads-card h1 {
  font-family: var(--ibr-display);
  font-size: 1.65rem;
  margin: 0.5rem 0 0.65rem;
}

.downloads-card p {
  color: var(--ibr-text-muted);
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
}

.downloads-card .form-field {
  text-align: left;
  margin-bottom: 1rem;
}

.downloads-card .btn {
  width: 100%;
  margin-top: 0.35rem;
}

.downloads-card .message-box {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.55rem;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.downloads-card .message-box.success {
  background: #ecfdf5;
  color: #065f46;
  opacity: 1;
}

.downloads-card .message-box.error {
  background: #fef2f2;
  color: #991b1b;
  opacity: 1;
}

.downloads-back {
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.downloads-back a {
  color: var(--ibr-text-muted);
  text-decoration: none;
}

.downloads-back a:hover {
  color: var(--ibr-primary);
}

/* Footer */
.site-footer {
  background: var(--ibr-navy);
  color: #94a3b8;
  padding: 4rem 0 0;
  margin-top: auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.site-logo-footer {
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer-brand p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.95rem;
}

.footer-heading {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: #fff;
}

.footer-note {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.site-footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.25rem 0;
  font-size: 0.85rem;
}

.site-footer-bottom p {
  margin: 0;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4.5rem 0;
}

.cta-band .section-title {
  max-width: 20ch;
  margin-inline: auto;
}

.cta-band .section-intro {
  margin-inline: auto;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner,
  .split,
  .contact-layout,
  .solution-grid,
  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    transform: none;
  }

  .hero-visual:hover img {
    transform: none;
  }

  .module-grid,
  .steps,
  .proof-strip {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--ibr-border);
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav li a {
    display: block;
    padding: 0.75rem 0;
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy .display {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .module-grid,
  .steps,
  .proof-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }
}
