/* IntuiForge website - the only custom stylesheet. Bootstrap 5.3 provides the rest. */

:root {
  /* Header/footer colours. Navy shown; slate alternative: #5b6676 / #6f7c8e. */
  --if-header-dark: #0b1a30;
  --if-header-mid: #12284a;
  --if-pill: #d9dde3;        /* light grey behind the navbar/footer logos (light-blue alternatives: #cfe2f8 / #bcd6f5) */
  --if-pill-hover: #eceef1;
  --if-blue: #1572e8;
  --if-cyan: #18b4f0;
  --if-orange: #ff7a1a;
  --if-light: #f4f7fb;
  --bs-primary: #1572e8;
  --bs-primary-rgb: 21, 114, 232;
  --bs-link-color: #1572e8;
  --bs-link-color-rgb: 21, 114, 232;
  --bs-link-hover-color: #0f5bbd;
  --bs-link-hover-color-rgb: 15, 91, 189;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* ---------- Buttons ---------- */

.btn-primary {
  --bs-btn-bg: var(--if-blue);
  --bs-btn-border-color: var(--if-blue);
  --bs-btn-hover-bg: #0f5bbd;
  --bs-btn-hover-border-color: #0f5bbd;
  --bs-btn-active-bg: #0d4fa4;
  --bs-btn-active-border-color: #0d4fa4;
}

.btn-accent {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: var(--if-orange);
  --bs-btn-border-color: var(--if-orange);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #e8650a;
  --bs-btn-hover-border-color: #e8650a;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #d05a08;
  --bs-btn-active-border-color: #d05a08;
}

/* ---------- Navbar ---------- */

.site-navbar {
  background-color: var(--if-header-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Horizontal IntuiForge logo on a light pill (matches the IntuiPortal button) so the dark "Forge" lettering stays readable. */
.site-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  background-color: var(--if-pill);
  border-radius: 999px;
}

.site-navbar .navbar-brand img {
  height: 34px;
  width: auto;
}

.site-navbar .nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: #ffffff;
}

.site-navbar .nav-link.active {
  color: #ffffff;
  border-bottom: 2px solid var(--if-orange);
}

/* IntuiPortal button: light pill so the full-colour horizontal logo reads clearly on slate. */
.portal-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  background-color: var(--if-pill);
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.portal-link img {
  height: 30px;
  width: auto;
}

.portal-link:hover,
.portal-link:focus {
  background-color: var(--if-pill-hover);
  border-color: var(--if-orange);
}

/* ---------- Hero ---------- */

.hero {
  background: radial-gradient(circle at 80% 20%, rgba(24, 180, 240, 0.25), transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(255, 122, 26, 0.18), transparent 45%),
    linear-gradient(160deg, var(--if-header-dark) 0%, var(--if-header-mid) 100%);
  color: #ffffff;
  padding: 5rem 0;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
}

.hero-logo {
  max-width: 100%;
  width: 420px;
  height: auto;
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
}

.page-header {
  background: linear-gradient(160deg, var(--if-header-dark) 0%, var(--if-header-mid) 100%);
  color: #ffffff;
  padding: 3.5rem 0;
}

.page-header .lead {
  color: rgba(255, 255, 255, 0.85);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--if-orange);
}

/* ---------- Sections and cards ---------- */

.section {
  padding: 4rem 0;
}

/* Keep anchored sections (#contact, #intuipay, #viqing-eft) clear of the sticky navbar. */
section[id] {
  scroll-margin-top: 72px;
}

.section-alt {
  background-color: var(--if-light);
}

.feature-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.25rem 1.25rem rgba(11, 26, 48, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1.75rem rgba(11, 26, 48, 0.14);
}

.feature-card .card-icon {
  height: 56px;
  width: auto;
}

.product-panel-light {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 0.25rem 1.25rem rgba(11, 26, 48, 0.08);
}

.product-panel-light img {
  max-width: 100%;
  width: 360px;
  height: auto;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--if-cyan), var(--if-blue));
}

.portal-cta {
  background: linear-gradient(135deg, var(--if-blue) 0%, var(--if-header-mid) 100%);
  color: #ffffff;
  border-radius: 1.25rem;
  padding: 2.5rem;
}

.portal-cta-logo {
  display: inline-block;
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  transition: transform 0.15s ease;
}

.portal-cta-logo:hover {
  transform: scale(1.03);
}

.portal-cta-logo img {
  width: 260px;
  max-width: 100%;
  height: auto;
}

/* ---------- Owner placeholders ---------- */
/* Remove the class (and the [PLACEHOLDER] text) once the owner has supplied real content. */

.owner-placeholder {
  background-color: #fff8e1;
  border-left: 4px solid #f5b400;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  color: #5c4a00;
}

.owner-placeholder-tag {
  font-weight: 700;
  color: #b07d00;
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--if-header-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0 1.5rem;
  flex-shrink: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Same light pill as the navbar brand. */
.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  background-color: var(--if-pill);
  border-radius: 999px;
}

.site-footer .footer-brand img {
  height: 34px;
  width: auto;
}

.site-footer hr {
  border-color: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

@media (max-width: 991.98px) {
  .site-navbar .nav-link.active {
    border-bottom: 0;
    color: var(--if-orange);
  }

  .portal-link {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .hero {
    padding: 3rem 0;
    text-align: center;
  }
}
