/* =========================
   Dataosphere — responsive stylesheet
   Drop this whole file into styles.css
   ========================= */

:root{
  --bg: #f7fafc;
  --surface: #ffffff;
  --border: #e5e7eb;

  --text: #0f172a;
  --muted: #475569;
  --muted2:#64748b;

  --accent: #1d4ed8;   /* blue */
  --accent2:#0891b2;   /* teal */

  --max: 1100px;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(2,6,23,0.07);
  --shadow2: 0 18px 52px rgba(2,6,23,0.08);

  /* ✅ responsive spacing */
  --sidePad: clamp(16px, 4vw, 28px);
  --sectionPad: clamp(38px, 6vw, 64px);
  --gap: 18px;

  --content: 90ch;
  --headerOffset: 92px; /* adjust if your header is taller/shorter */

  /* ✅ tools rail vars (merged here — avoid second :root) */
  --rail-gap: 16px;
  --rail-cols: 5;
  --rail-logo: 56px;

  /* ✅ fixed column width so the rail never collapses into a single centred column */
  --rail-colW: clamp(120px, 16vw, 160px);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a{ color: inherit; text-decoration: none; }

/* ✅ consistent side padding everywhere */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--sidePad);
}

/* ✅ media defaults so nothing touches edges */
img, svg, video, canvas{
  max-width: 100%;
  height: auto;
}

/* shrink the inner container for all sections except hero */
main > section:not(.hero):not(.tools) .wrap{
  max-width: var(--content);
}

/* tools needs more width so it doesn’t look “one logo per line” */
main > section.tools .wrap{
  max-width: var(--max);
}

/* footer should also follow the same narrower width */
.site-footer .wrap{
  max-width: var(--content);
}

/* apply to every section with an id */
section[id]{
  scroll-margin-top: var(--headerOffset);
}
#how{
  scroll-margin-top: var(--headerOffset);
}

/* keep header + hero full width */
header .wrap,
.hero .wrap{
  max-width: var(--max);
}

/* =========================
   HEADER
   ========================= */
header{
  position: sticky;
  top: 0;
  background: rgba(247,250,252,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 30;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}

/* Brand row */
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 860;
  letter-spacing: -0.02em;
  white-space: nowrap;
  min-width: 0;
}

/* Bigger logo WITHOUT increasing header height */
.brand-logo{
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  max-height: 70px;
  max-width: 56px;
}

.brand-text{
  font-size: 14px;
  font-weight: 860;
  letter-spacing: -0.02em;
}

/* Nav links */
nav{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:flex-end;
}

/* no layout shift on hover */
nav a:not(.btn){
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
nav a:not(.btn):hover{
  color: var(--text);
  background: rgba(255,255,255,0.75);
  border-color: var(--border);
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 780;
  font-size: 14px;
  transition: transform .08s ease, filter .12s ease, background .12s ease;
  will-change: transform;
  cursor: pointer;
  justify-content: center; /* ✅ centred text on wide buttons */
}
.btn:hover{ background: #f1f5f9; transform: translateY(-1px); }

.btn.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  color: white;
  box-shadow: 0 12px 26px rgba(29,78,216,0.22);
}
.btn.primary:hover{ filter: brightness(0.97); }
.btn.ghost{ background: transparent; }

/* Sections */
section{ padding: var(--sectionPad) 0; }

/* Section headers */
.section-head{
  margin: 0 auto 26px;
  text-align: center;
  max-width: 80ch;
  padding: 0; /* ensure wrap padding controls edges */
}
.section-title{
  margin: 0 0 10px;
  font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing: -0.02em;
  font-weight: 950;
}
.section-sub{
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 15px);
  line-height: 1.7;
}

.eyebrow{
  display:inline-flex;
  gap: 10px;
  align-items:center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  color: var(--muted);
  font-size: 13px;
  box-shadow: 0 10px 26px rgba(2,6,23,0.04);
  width: fit-content;
}

h1{
  margin: 16px 0 14px;
  font-size: clamp(30px, 6.2vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1.06;
}
p{ margin: 0 0 14px; color: var(--muted); }

.accent{ color: var(--accent); font-weight: 860; }
.accent2{ color: var(--accent2); font-weight: 860; }

/* =========================
   HERO
   ========================= */
.hero{
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  padding: 0;
  background:
    radial-gradient(1200px 560px at 14% 18%, rgba(29,78,216,0.22), transparent 62%),
    radial-gradient(1200px 560px at 86% 22%, rgba(8,145,178,0.22), transparent 62%),
    radial-gradient(980px 520px at 45% 105%, rgba(29,78,216,0.14), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 72%, #f7fafc 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner{ width: 100%; padding: clamp(44px, 7vw, 72px) 0; }

.hero-grid{
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.lead{
  font-size: clamp(15px, 2vw, 17px);
  color: var(--muted);
  max-width: 72ch;
}
.lead p{ margin-bottom: 14px; }

.cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  align-items:center;
}

/* WHAT YOU GET */
.hero-side{
  position: relative;
  border-radius: 26px;
  padding: 18px;
  box-shadow: var(--shadow2);
  border: 1px solid rgba(15,23,42,0.10);
  background:
    radial-gradient(680px 260px at 22% 8%, rgba(29,78,216,0.20), transparent 62%),
    radial-gradient(680px 260px at 92% 18%, rgba(8,145,178,0.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.86) 100%);
  overflow: hidden;
}
.get-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 10px 26px rgba(2,6,23,0.05);
}
.get-title{
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 900;
}
.get-sub{
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.5;
}
.benefits{
  margin-top: 14px;
  display:grid;
  gap: 12px;
}
.benefit{
  display:grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 10px 26px rgba(2,6,23,0.04);
}
.benefit-icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(15,23,42,0.08);
  background: linear-gradient(135deg, rgba(29,78,216,0.14), rgba(8,145,178,0.12));
  box-shadow: 0 12px 26px rgba(2,6,23,0.04);
}
.benefit-icon svg{ width: 20px; height: 20px; color: var(--accent); }
.benefit h4{
  margin: 0;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 900;
  line-height: 1.2;
}
.benefit p{
  margin: 6px 0 0;
  font-size: 12.8px;
  color: var(--muted2);
  line-height: 1.55;
}

/* =========================
   ABOUT
   ========================= */
.about{
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1200px 560px at 16% 12%, rgba(29,78,216,0.10), transparent 62%),
    radial-gradient(1200px 560px at 86% 18%, rgba(8,145,178,0.10), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.about-head{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 90ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
}

/* ✅ don’t justify on mobile (causes weird spacing/rivers) */
#about .about-head p{
  text-align: left;
}

/* ABOUT: split layout (text left, image right) */
.about-split{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.about-copy{
  flex: 1 1 0;
  min-width: 0;
}
.about-visual{
  flex: 0 0 420px;
  max-width: 420px;
  width: 38%;
}
.about-visual svg{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}
.about-copy p{ max-width: none; }

/* =========================
   FEATURES
   ========================= */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin-top: 18px;
}
.feature{
  grid-column: span 6;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow);
  padding: 20px;
  display:flex;
  gap: 14px;
  align-items:flex-start;
}
.feature-icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(15,23,42,0.08);
  background: linear-gradient(135deg, rgba(29,78,216,0.14), rgba(8,145,178,0.12));
  box-shadow: 0 12px 26px rgba(2,6,23,0.04);
  flex: 0 0 auto;
}
.feature-icon svg{ width: 20px; height: 20px; color: var(--accent); }
.feature h3{
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 900;
  line-height: 1.25;
}
.feature p{
  margin: 8px 0 0;
  color: var(--muted2);
  font-size: 13.5px;
  line-height: 1.65;
}

/* =========================
   HOW IT WORKS
   ========================= */
.how-wrap{
  margin-top: 28px;
  border-radius: 26px;
  border: 1px solid rgba(15,23,42,0.10);
  background:
    radial-gradient(900px 420px at 18% 25%, rgba(29,78,216,0.10), transparent 60%),
    radial-gradient(900px 420px at 86% 25%, rgba(8,145,178,0.10), transparent 60%),
    rgba(255,255,255,0.84);
  box-shadow: var(--shadow2);
  padding: 22px;
}
.how-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.how-head h3{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 950;
}
.steps{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin-top: 14px;
}
.step{
  grid-column: span 4;
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 26px rgba(2,6,23,0.04);
  padding: 16px;
  display:flex;
  gap: 12px;
}
.step-badge{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-weight: 950;
  font-size: 13px;
  box-shadow: 0 12px 24px rgba(29,78,216,0.18);
  flex: 0 0 auto;
}
.step h4{
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 900;
  line-height: 1.25;
}
.step p{
  margin: 6px 0 0;
  font-size: 12.8px;
  color: var(--muted2);
  line-height: 1.55;
}

/* =========================
   PARTNERS (logos section)
   ========================= */

.partners{
  padding: calc(var(--sectionPad) - 8px) 0 var(--sectionPad);
  border-bottom: 1px solid var(--border);
}

/* card that matches your "how-wrap" feel */
.partners-card{
  margin: 0 auto;
  border-radius: 26px;

  padding: 18px;
}

/* Responsive grid:
   desktop: 6 cols
   tablet: 4 cols
   mobile: 2 cols
*/
.partners-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

/* Each logo item */
.partner-chip{
  border-radius: 18px;

  padding: 14px 10px;
  display: grid;
  place-items: center;
  gap: 10px;

  /* ensures even heights */
  min-height: 110px;
  text-align: center;
}

.partner-chip img{
  width: 100%;
  max-width: 140px;
  height: 120px;
  object-fit: contain;
  display: block;
  filter: saturate(1.05);
}

.partners-note{
  margin: 14px 4px 0;
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.partners-note strong{
  color: var(--text);
  font-weight: 900;
}

/* Tablet */
@media (max-width: 980px){
  .partners-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .partner-chip{ min-height: 104px; }
}

/* Mobile */
@media (max-width: 560px){
  .partners-card{ padding: 14px; }
  .partners-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-chip{ min-height: 98px; padding: 12px 10px; }
  .partner-chip img{ height: 42px; max-width: 120px; }
}

/* =========================
   PRODUCTS
   ========================= */
.products{
  border-top: 1px solid var(--border);
  background:
    radial-gradient(1200px 560px at 14% 18%, rgba(29,78,216,0.08), transparent 62%),
    radial-gradient(1200px 560px at 86% 22%, rgba(8,145,178,0.08), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border-bottom: 1px solid var(--border);

}

.product-stack{
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.product-card{
  border-radius: 28px;
  border: 1px solid rgba(15,23,42,0.10);
  /* background: rgba(255,255,255,0.86); */
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.product-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  align-items: stretch;
}

.product-copy{
  padding: 26px;
}

.product-kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.82);
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  box-shadow: 0 10px 26px rgba(2,6,23,0.04);
}

.product-kicker .kdot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 20px rgba(29,78,216,0.20);
}

.product-title{
  margin: 14px 0 10px;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: var(--text);
}

.product-desc{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 70ch;
}

.product-points{
  margin: 0;
  padding-left: 18px;
  color: var(--muted2);
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.product-cta{
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* media pane */
.product-media{
  padding: 22px;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(15,23,42,0.08);
  /* background:
    radial-gradient(900px 420px at 18% 30%, rgba(29,78,216,0.10), transparent 60%),
    radial-gradient(900px 420px at 86% 28%, rgba(8,145,178,0.10), transparent 60%),
    rgba(255,255,255,0.60); */
}



/* alternate layout (image on left on desktop) */
/* .product-card.alt .product-grid{
  grid-template-columns: 0.95fr 1.05fr;
} */
.product-card.alt .product-media{
  order: -1;
  border-left: 0;
  border-right: 1px solid rgba(15,23,42,0.08);
}

/* responsive */
@media (max-width: 980px){
  .product-grid{
    grid-template-columns: 1fr;
  }
  .product-media{
    border-left: 0;
    border-top: 1px solid rgba(15,23,42,0.08);
  }
  .product-card.alt .product-media{
    order: 0;
    border-right: 0;
    border-top: 1px solid rgba(15,23,42,0.08);
  }
  .product-copy{ padding: 20px; }
}

@media (max-width: 520px){
  .product-title{ font-size: 22px; }
  .product-desc{ font-size: 15px; }
  .product-copy{ padding: 18px; }
}

/* =========================
   DEMO MODAL (shares your contact-modal look)
   ========================= */
.demo-modal .contact-modal-panel{
  width: min(720px, 92vw);
}

.demo-modal .form{
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

.demo-modal .contact-form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 860px){
  .demo-modal .contact-form-grid{ grid-template-columns: 1fr; }
}



/* =========================
   TOOLS (logo rail)
   ========================= */
.tools{
  background: transparent !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--border);
}

.logo-rail{
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Buttons above scroll area */
.rail-btn{
  position: relative;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 10px 22px rgba(2,6,23,0.06);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  cursor: pointer;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}
.rail-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.95);
  border-color: rgba(15,23,42,0.14);
}
.rail-btn:active{ transform: translateY(0); }
.rail-btn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Scroll viewport */
.rail-viewport{
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  scrollbar-width: none;
}
.rail-viewport::-webkit-scrollbar{ display:none; }

/* ✅ two rows, but with a stable column width */
.rail-grid{
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: var(--rail-colW);
  gap: var(--rail-gap);
  align-items: stretch;
  min-width: max-content;
}

/* No boxes around each logo */
.logo-chip{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 16px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.logo-chip:hover img{
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 14px rgba(2,6,23,0.10));
}

.logo-chip img{
  width: var(--rail-logo);
  height: var(--rail-logo);
  object-fit: contain;
  display: block;
  transition: transform .12s ease, filter .12s ease;
}

.logo-chip span{
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.logo-text{
  width: var(--rail-logo);
  height: var(--rail-logo);
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  background: linear-gradient(135deg, rgba(29,78,216,0.12), rgba(8,145,178,0.10));
  border: 0;
}

/* =========================
   CONTACT
   ========================= */
.contact .contact-wrap{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.contact-card{
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid rgba(15,23,42,0.10);
  background:
    radial-gradient(900px 460px at 18% 35%, rgba(29,78,216,0.12), transparent 60%),
    radial-gradient(900px 460px at 86% 28%, rgba(8,145,178,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.72) 100%);
  box-shadow: var(--shadow2);
  padding: 22px;
  overflow: hidden;
}

.contact-card .form{
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.contact-form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.contact-card label{
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 850;
  color: var(--muted);
}

.contact-card input,
.contact-card textarea{
  width: 100%;
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.92);
  font: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  box-shadow: 0 10px 24px rgba(2,6,23,0.03);
}

.contact-card textarea{
  min-height: 120px;
  resize: vertical;
}

.contact-card input:focus,
.contact-card textarea:focus{
  border-color: rgba(29,78,216,0.45);
  box-shadow: 0 14px 30px rgba(29,78,216,0.12);
}

.field-error{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(220,38,38,0.95);
  font-weight: 750;
}

.contact-cta{ margin-top: 12px; }

/* Modal popup */
.contact-modal{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.contact-modal.is-open{ display: flex; }

.contact-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.55);
  backdrop-filter: blur(10px);
}

.contact-modal-panel{
  position: relative;
  z-index: 1;
  width: min(620px, 92vw);
  border-radius: 26px;
  border: 1px solid rgba(15,23,42,0.10);
  background:
    radial-gradient(900px 420px at 18% 15%, rgba(29,78,216,0.16), transparent 60%),
    radial-gradient(900px 420px at 86% 20%, rgba(8,145,178,0.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.86) 100%);
  box-shadow: 0 28px 90px rgba(2,6,23,0.28);
  overflow: hidden;
}

.contact-modal-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
}

.contact-modal-title{
  margin: 0;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: var(--text);
}

.contact-modal-text{
  margin: 8px 0 0;
  color: var(--muted2);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 70ch;
}

.contact-modal-body{
  padding: 0 16px 16px;
}

.contact-modal-actions{
  display:flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.contact-x{
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.75);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display:grid;
  place-items:center;
  cursor: pointer;
}
.contact-x:hover{ background: rgba(241,245,249,0.9); }

/* =========================
   FOOTER
   ========================= */
.site-footer{
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
}

.footer-top{
  padding: 34px 0 26px;
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 26px;
  align-items: start;
}

.footer-brand-row{
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo{
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.footer-name{
  font-weight: 950;
  letter-spacing: -0.02em;
  color: var(--text);
  font-size: 14px;
}

.footer-tagline{
  color: var(--muted2);
  font-size: 13px;
  margin-top: 4px;
}

.footer-cols{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.footer-col h4{
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 950;
  color: var(--text);
}

.footer-col a{
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.footer-col a:hover{ color: var(--text); }

.footer-social{
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-social .social-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.80);
  box-shadow: 0 10px 22px rgba(2,6,23,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  transition: transform .08s ease, background .12s ease;
}
.footer-social .social-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.95);
}
.footer-social .social-btn svg{
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}
.footer-social .social-btn[aria-label="LinkedIn"] svg{ transform: translateX(1px); }

.footer-bottom{
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.footer-bottom-inner{
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-copy{
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   RESPONSIVE BREAKPOINTS
   ========================= */

/* Tablet */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .feature{ grid-column: span 12; }
  .step{ grid-column: span 6; }
  .footer-top{ grid-template-columns: 1fr; }
  .footer-cols{ grid-template-columns: repeat(2, 1fr); }

  .about-split{
    flex-direction: column;
    gap: 18px;
  }
  .about-visual{
    width: 100%;
    max-width: 640px;
  }

  :root{ --rail-cols: 3; }
}

/* ✅ Mobile header/nav + full-width CTAs + better padding */
@media (max-width: 780px){
  :root{ --headerOffset: 116px; } /* header is taller when stacked */

  header .wrap.nav{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  /* ✅ logo + brand centred on mobile */
  .brand{
    justify-content: center;
    width: 100%;
  }

  /* nav in ONE row, scrollable */
  header nav{
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    justify-content: center; /* ✅ centred under logo */
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  header nav::-webkit-scrollbar{ display: none; }
  header nav a{ white-space: nowrap; }

  header nav a:not(.btn){
    font-size: 13px;
    padding: 7px 9px;
  }
  header nav .btn{
    padding: 10px 12px;
    font-size: 13px;
  }

  .brand-logo{
    width: 46px;
    height: 46px;
    max-width: 46px;
    max-height: 46px;
  }

  /* ✅ hero buttons not hugging edges / better touch targets */
  .cta{
    align-items: stretch;
  }
  .cta .btn{
    min-height: 46px;
  }

  /* contact two-column -> one column */
  .contact-form-grid{ grid-template-columns: 1fr; }
}

/* Small mobile */
@media (max-width: 560px){
  .step{ grid-column: span 12; }
  .footer-cols{ grid-template-columns: 1fr; }

  /* ✅ make CTAs full width */
  .cta{
    flex-direction: column;
    align-items: stretch;
  }
  .cta .btn{ width: 100%; }

  /* ✅ slightly tighter cards so content doesn’t feel “stuck to borders” */
  .hero-side{ padding: 14px; border-radius: 22px; }
  .benefit{ padding: 12px; }
  .how-wrap{ padding: 16px; border-radius: 22px; }
  .contact-card{ padding: 16px; border-radius: 22px; }

  /* tools: hide arrows */
  .rail-btn{ display:none; }

  :root{ --rail-cols: 2; --rail-logo: 52px; --rail-colW: clamp(110px, 44vw, 150px); }
}

/* Footer brand centring on small screens */
@media (max-width: 520px){
  .footer-brand-row{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-cols{
    text-align: left;
  }
}

/* ✅ FORCE hero left/right padding (put at the END of styles.css) */
:root{
  --sidePad: clamp(16px, 4vw, 28px); /* ensure this exists in the LAST :root */
}

/* ensure ALL wraps keep side padding */
.wrap{
  padding-left: var(--sidePad) !important;
  padding-right: var(--sidePad) !important;
}

/* extra safety for hero (in case something overrides .wrap) */
.hero .wrap{
  padding-left: var(--sidePad) !important;
  padding-right: var(--sidePad) !important;
}

/* ✅ FOOTER: centre the link columns on mobile */
@media (max-width: 980px){
  .footer-cols{
    text-align: center;
    justify-items: center;
  }
  .footer-col h4{
    text-align: center;
  }
  .footer-col a{
    text-align: center;
  }
  .footer-social{
    justify-content: center;
  }
}

/* ✅ HERO eyebrow: mobile sizing + wrapping */
@media (max-width: 560px){
  .eyebrow{
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 16px;

    /* allow it to wrap nicely */
    white-space: normal;
    text-wrap: balance;        /* safe if supported, ignored if not */
    line-height: 1.35;

    /* prevent it looking like a giant banner */
    max-width: 100%;
  }
}

@media (max-width: 360px){
  .eyebrow{
    font-size: 11px;
    padding: 6px 9px;
  }
}

/* =========================
   PRODUCTS – media height
   ========================= */

/* 1) Give the right-side media box a taller area */
.product-media{
  display: flex;
  align-items: center;
  justify-content: center;
}

/* If you're using <img> inside .product-media */
.product-media img{
  width: 100%;
  height: 800px;          /* ✅ increase height here */
  object-fit: contain;    /* no stretching */
  display: block;
}

/* If your image sits inside .product-illu wrapper */
.product-illu{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-illu img{
  width: 100%;
  height: 320px;          /* ✅ increase height here */
  object-fit: contain;
  display: block;
}

/* Responsive heights */
@media (max-width: 980px){
  .product-media img,
  .product-illu img{
    height: 260px;
  }
}
@media (max-width: 560px){
  .product-media img,
  .product-illu img{
    height: 220px;
  }
}

/* =========================
   DEMO MODAL FORM (fix sizing + layout)
   ========================= */

/* Reuse the same input styling inside the modal */
.contact-modal-panel label{
  display:block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 850;
  color: var(--muted);
}

.contact-modal-panel input,
.contact-modal-panel textarea{
  width: 100%;
  min-width: 0;                 /* important in grids */
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.92);
  font: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  box-shadow: 0 10px 24px rgba(2,6,23,0.03);
  box-sizing: border-box;
}

.contact-modal-panel textarea{
  min-height: 120px;
  resize: vertical;
}

.contact-modal-panel input:focus,
.contact-modal-panel textarea:focus{
  border-color: rgba(29,78,216,0.45);
  box-shadow: 0 14px 30px rgba(29,78,216,0.12);
}

/* Grid for the demo modal form */
.demo-form{
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.demo-form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

/* Make a field span both columns (textarea row) */
.demo-span-2{
  grid-column: 1 / -1;
}

@media (max-width: 860px){
  .demo-form-grid{ grid-template-columns: 1fr; }
  .demo-span-2{ grid-column: auto; }
}

@media (max-width: 560px){
  .eyebrow{
    font-size: 11px !important;
    padding: 4px 8px !important;     /* key: reduce pill size */
    gap: 6px !important;
    border-radius: 12px !important;
    box-shadow: none !important;     /* removes “big pill” feel */
  }
}

@media (max-width: 360px){
  .eyebrow{
    font-size: 10.5px !important;
    padding: 4px 7px !important;
  }
}

@media (max-width: 780px){

  header nav{
    justify-content: flex-start !important; /* not center */
    gap: 6px !important;                   /* tighter */
    padding: 0 2px 6px !important;
  }

  header nav a:not(.btn){
    padding: 6px 8px !important;           /* smaller pills */
    font-size: 12.5px !important;
  }

  header nav .btn{
    padding: 8px 10px !important;
    font-size: 12.5px !important;
  }
}

@media (max-width: 780px){
  header nav{
    justify-content: flex-start !important;
  }
}

@media (max-width: 780px){
  header nav a{ flex: 0 0 auto; }
}