/*
 * styles-v2.css — Moderant Labs, v2 (Bulma edition, rebuilt again).
 * Companion stylesheet to the Bulma CDN build, themed via Bulma's own
 * --bulma-* CSS custom-property API.
 *
 * Visual rhythm down the page (light -> rich, front to back):
 *   Hero              light blue/warm gradient, airy, centered
 *   Ecosystem strip    white, horizontal scroll row
 *   Divider band        solid amber punctuation
 *   About                near-white, alternating tinted tiles
 *   Products             light indigo wash, tri-tint bento
 *   Contact               darkest/richest band (indigo/navy) — peak density
 *   Footer                  eases back to a light gradient close
 *
 * Palette anchors:
 *   Blue   #1d4ed8  — primary brand color, CTAs, links
 *   Indigo #201c4e  — headings, contact band, "02" tile family
 *   Amber  #f59e0b  — divider band, secondary CTAs, "Live"/roadmap tiles
 */

:root {
  --bulma-family-primary: "Inter", sans-serif;

  --bulma-primary-h: 224deg;
  --bulma-primary-s: 76%;
  --bulma-primary-l: 48%;

  --bulma-link-h: 224deg;
  --bulma-link-s: 76%;
  --bulma-link-l: 48%;

  --bulma-warning-h: 38deg;
  --bulma-warning-s: 92%;
  --bulma-warning-l: 50%;

  --bulma-text-h: 36deg;
  --bulma-text-s: 12%;
  --bulma-text-l: 20%;
  --bulma-text-strong-l: 12%;

  --bulma-scheme-h: 38deg;
  --bulma-scheme-s: 20%;

  --bulma-title-color: #201c4e;
  --bulma-subtitle-color: #4a4470;

  --bulma-radius: 0.75rem;
  --bulma-radius-large: 1.25rem;

  --blue: #1d4ed8;
  --blue-dark: #143aa8;
  --blue-soft: #e7eefc;

  --indigo: #201c4e;
  --indigo-soft: #e8e6f5;
  --indigo-wash: #f2f1fa;
  --navy-deep-1: #171337;
  --navy-deep-2: #241f5c;

  --amber: #f59e0b;
  --amber-dark: #b96f04;
  --amber-soft: #fdf1dc;

  --line-on-dark: rgba(255, 255, 255, 0.14);
  --line-on-dark-strong: rgba(255, 255, 255, 0.3);
  --ink-on-dark-soft: #c7c3e6;
  --ink-on-dark-faint: #8f89b8;

  --container-wide: 1320px;
  --container-narrow: 720px;

  --shadow-lg: 0 30px 70px rgba(20, 16, 50, 0.2);
  --shadow-md: 0 16px 40px rgba(20, 16, 50, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container-wide {
  width: min(var(--container-wide), calc(100% - 48px));
  margin: 0 auto;
}

.container-narrow {
  width: min(var(--container-narrow), calc(100% - 40px));
  margin: 0 auto;
}

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

.site-navbar {
  background: hsla(0, 0%, 100%, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--bulma-border);
}

.navbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(32, 28, 78, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bulma-text-strong);
}

.brand-tagline {
  font-size: 11px;
  color: var(--bulma-text);
}

.navbar-item:hover,
.navbar-link:hover {
  color: var(--blue) !important;
}

/* ---------- Shared bits ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.7em 1.1em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--bulma-border);
  color: var(--bulma-text);
  box-shadow: var(--shadow-md);
}

.eyebrow-pill-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-on-dark-soft);
  border: 1px solid var(--line-on-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.eyebrow-tag {
  display: inline-flex;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.9rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bulma-text);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

/* ---------- Hero: light airy gradient, centered/stacked ---------- */

.hero-band {
  position: relative;
  overflow: hidden;
  padding: 8.5rem 0 5.5rem;
  background: linear-gradient(160deg, #eef3ff 0%, #f7f6fd 45%, #fdf1dc 100%);
  text-align: center;
}

.hero-band-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 15%, rgba(29, 78, 216, 0.14), transparent 42%),
    radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.18), transparent 40%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  margin: 1.5rem 0 0;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--indigo);
}

.hero-title-sub {
  display: block;
  margin-top: 0.8rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bulma-subtitle-color);
}

.hero-lede {
  margin: 1.4rem auto 0;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--bulma-text);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Ecosystem strip: separate section, horizontal scroll ---------- */

.ecosystem-strip {
  padding: 4rem 0 4.5rem;
  background: #fff;
}

.ecosystem-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ecosystem-heading {
  margin: 0.3rem 0 0;
  font-size: 1.7rem;
  color: var(--indigo);
}

.ecosystem-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.75rem;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
}

.scroll-card {
  scroll-snap-align: start;
  flex: 1 1 340px;
  min-width: 300px;
  display: block;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--bulma-border);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
}

.scroll-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tile-blue {
  background: var(--blue-soft);
  border-color: rgba(29, 78, 216, 0.18);
}

.tile-amber {
  background: var(--amber-soft);
  border-color: rgba(245, 158, 11, 0.28);
}

.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.tile-blue .tile-icon {
  color: var(--blue-dark);
}

.tile-amber .tile-icon {
  color: var(--amber-dark);
}

.tile-icon svg {
  width: 22px;
  height: 22px;
}

.tile-tag {
  float: right;
  font-weight: 700;
}

.tile-title {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
  color: var(--indigo);
  clear: both;
}

.tile-copy {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--bulma-text);
}

.tile-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.tile-blue .tile-link {
  color: var(--blue-dark);
}

.tile-amber .tile-link {
  color: var(--amber-dark);
}

/* ---------- Divider band: solid amber + pattern ---------- */

.divider-band {
  height: 4rem;
  background-color: var(--amber);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.16) 0,
    rgba(255, 255, 255, 0.16) 2px,
    transparent 2px,
    transparent 18px
  );
}

/* ---------- Section shells / rhythm ---------- */

.section-tight {
  padding: 4.5rem 0 5rem;
}

.section-loose {
  padding: 7.5rem 0 8.5rem;
}

.section-indigo-wash {
  background: var(--indigo-wash);
  border-top: 1px solid var(--indigo-soft);
  border-bottom: 1px solid var(--indigo-soft);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.section-icon-light {
  background: var(--indigo-soft);
  color: var(--indigo);
}

.section-icon svg {
  width: 20px;
  height: 20px;
}

.section-title {
  margin: 0.6rem 0 0;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--indigo);
}

.section-lede {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--bulma-text);
}

/* ---------- About: feature row ---------- */

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-tile {
  padding: 2rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid var(--bulma-border);
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-tile:hover {
  transform: translateY(-3px);
}

.feature-tile-blue {
  background: var(--blue-soft);
  border-color: rgba(29, 78, 216, 0.16);
}

.feature-tile-amber {
  background: var(--amber-soft);
  border-color: rgba(245, 158, 11, 0.24);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--indigo);
  margin-bottom: 1rem;
}

.feature-tile-blue .feature-icon {
  color: var(--blue-dark);
}

.feature-tile-amber .feature-icon {
  color: var(--amber-dark);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-tile h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--indigo);
}

.feature-tile p {
  margin: 0.7rem 0 0;
  color: var(--bulma-text);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ---------- Products: tri-tint asymmetric bento ---------- */

.roadmap-bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.roadmap-stack {
  display: grid;
  gap: 1.5rem;
}

.roadmap-tile {
  padding: 2rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid var(--bulma-border);
  box-shadow: var(--shadow-md);
}

.roadmap-featured {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.roadmap-featured h3 {
  font-size: 1.4rem;
}

.roadmap-blue {
  background: var(--blue-soft);
  border-color: rgba(29, 78, 216, 0.18);
}

.roadmap-indigo {
  background: var(--indigo-soft);
  border-color: rgba(32, 28, 78, 0.18);
}

.roadmap-dashed {
  border-style: dashed;
  border-color: rgba(245, 158, 11, 0.55);
  background: var(--amber-soft);
  box-shadow: none;
}

.roadmap-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.5rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.roadmap-tile h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--indigo);
}

.roadmap-tile p {
  margin: 0.7rem 0 0;
  color: var(--bulma-text);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ---------- Contact: darkest band, stacked intro + reordered row ---------- */

.section-contact {
  padding: 6rem 0 7.5rem;
}

.contact-shell {
  position: relative;
  overflow: hidden;
  padding: 3.6rem;
  border-radius: 2rem;
  background: linear-gradient(160deg, var(--navy-deep-2), var(--navy-deep-1));
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--amber);
}

.contact-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 90% -10%, rgba(29, 78, 216, 0.55), transparent 45%),
    radial-gradient(circle at -5% 110%, rgba(245, 158, 11, 0.28), transparent 42%);
}

.contact-top {
  position: relative;
  max-width: 34rem;
  margin: 0 auto 2.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #fff;
}

.contact-title {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.contact-lede {
  margin: 0;
  color: var(--ink-on-dark-soft);
  line-height: 1.75;
  font-size: 0.98rem;
}

.contact-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 2.2rem 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--line-on-dark);
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.contact-blob {
  position: absolute;
  width: 220px;
  height: 220px;
  top: -70px;
  right: -70px;
  border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.45), rgba(245, 158, 11, 0.4));
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

.contact-form-card > * {
  position: relative;
  z-index: 1;
}

.contact-card-title {
  margin: 0.5rem 0 1.25rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  color: #fff;
}

.form-success {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.form-success.is-visible {
  opacity: 1;
  visibility: visible;
}

.contact-form {
  max-width: 25rem;
  margin: 0 auto;
  text-align: left;
}

.contact-form .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-on-dark-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-form .input,
.contact-form .textarea {
  border-radius: 0.9rem;
  border: 1px solid var(--line-on-dark);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: none;
}

.contact-form .input::placeholder,
.contact-form .textarea::placeholder {
  color: var(--ink-on-dark-faint);
}

.contact-form .input:focus,
.contact-form .textarea:focus {
  border-color: rgba(245, 158, 11, 0.75);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 0.125em rgba(245, 158, 11, 0.28);
}

.contact-form .button {
  display: flex;
  margin: 0 auto;
  border: none;
}

.contact-actions-card {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--line-on-dark);
  border-left: 3px solid var(--amber);
  background: rgba(255, 255, 255, 0.04);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.contact-btn-blue {
  color: var(--blue) !important;
}

/* ---------- Footer: eases back to a light gradient close ---------- */

.site-footer {
  padding: 2.4rem 0;
  background: linear-gradient(180deg, #fdf1dc 0%, #f7f6fd 100%);
  border-top: 1px solid var(--bulma-border);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.footer-mark {
  border-radius: 6px;
  opacity: 0.85;
}

.footer-row p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--bulma-text);
}

.footer-row a {
  font-weight: 600;
  color: var(--bulma-text-strong);
}

.footer-row a:hover {
  color: var(--blue);
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .navbar-menu {
    background: #fff;
  }

  .roadmap-bento {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .contact-shell {
    padding: 2.2rem 1.4rem;
  }
}

@media (max-width: 768px) {
  .hero-band {
    padding: 6.5rem 0 4rem;
  }

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

  .section-loose {
    padding: 5rem 0;
  }

  .ecosystem-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .tile-tag {
    float: none;
    display: inline-block;
    margin-bottom: 0.6rem;
  }

  .scroll-card {
    flex: 1 1 260px;
    min-width: 260px;
  }
}

/* ---------- Privacy policy (secondary page) ---------- */

.policy-copy {
  margin-top: 0.5rem;
}

.policy-copy p {
  margin: 0 0 1.1rem;
  color: var(--bulma-text);
  line-height: 1.8;
  font-size: 1rem;
}

.policy-copy p:last-child {
  margin-bottom: 0;
}

.policy-copy a {
  color: var(--blue);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.policy-copy a:hover {
  color: var(--blue-dark);
}
