/* =========================================================
   1) CSS Variables
   ========================================================= */
:root{
  --brand: #0b5fff;           /* primary blue */
  --brand-600: #0a53e3;
  --accent: #ebeb34;          /* requested accent */
  --ink: #0b1324;
  --muted: #6b7280;
  --bg: #f7f8fb;
  --card: #ffffff;
  --ring: rgba(11,95,255,.15);
  --shadow: 0 10px 30px rgba(2, 21, 68, .08);
  --radius: 16px;
}

/* =========================================================
   2) Base / Resets
   ========================================================= */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

/* =========================================================
   3) Layout Helpers
   ========================================================= */
.container{
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* Optional legacy horizontal scroller (kept) */
.card-container{
  display: flex;           /* Arranges cards in a row */
  overflow-x: auto;        /* Horizontal scrolling */
  overflow-y: hidden;      /* Hide vertical scrollbar */
  white-space: nowrap;     /* Prevent wrap */
  padding-bottom: 15px;    /* Space for scrollbar if needed */
}

/* =========================================================
   4) Header & Navigation
   ========================================================= */
header{
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(8px);
  background: color-mix(in oklab, white 80%, transparent);
  border-bottom: 1px solid #e6e9f6;
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
}

/* “Main links” bar outside header */
.main-links{
  display: flex;
  justify-content: center;      /* centers links in their own bar */
  background: #ffffff;
  border-bottom: 1px solid #e6e9f6;
  padding: .6rem 0;
}

.main-links a:hover{ color: var(--brand); }

/* Mobile menu toggles */
.mobile-toggle{ display: none; }

/* =========================================================
   5) Branding / Logo
   ========================================================= */
.brand{
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
}

.brand-text{
  font-size: 5rem;        /* adjust size */
  font-weight: 800;       /* bold */
  color: #0b1324;         /* text color */
  letter-spacing: 12px;   /* optional spacing */
}

.brand-subtext{
  font-size: 1.2rem;
  font-weight: lighter;
  color: #0b1324;
}

.brand-labels{
  display: flex;
  flex-direction: column; /* stacks text vertically */
  line-height: 1.2;
}

.logo{ height: 200px; width: auto; border-radius: 6px; }
.logo-footer{ height: 75px; width: 75px; border-radius: 6px; }

.logo-badge{
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--ring);
}

/* =========================================================
   6) Buttons
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 4.1rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .2px;
  background: var(--brand);
  color: white;
  border: 1px solid var(--brand);
  box-shadow: var(--shadow);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: var(--brand-600);
}

.btn.outline{
  background: transparent;
  color: var(--ink);
  border-color: #cdd5ef;
  box-shadow: none;
}

.btn.outline2{
  background: transparent;
  color: var(--ink);
}

/* =========================================================
   7) Hero
   ========================================================= */
.hero{ padding: 72px 0 36px; }

.hero .wrap{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
/* the .x .y.single{} code below makes a new page's main body container different, wider, than 
the homepage */

.hero .wrap.single{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 800px;
}

.hero h1{
  font-size: clamp(30px, 4vw, 30px);
  line-height: 1.05;
  margin: 0 0 12px;
}

.eyebrow{
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--brand);
  font-size: 2.9rem;
}

.sub{ color: var(--muted); font-size: 1.05rem; }

.sub.creator { color: var(--muted); font-size: 1.55rem; }

.hero-card{
  background: var(--card);
  border: 1px solid #e6e9f6;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-watermark{
  position: absolute;
  right: -40px;
  bottom: -40px;
  opacity: .06;
  width: 280px;
  filter: grayscale(1);
}

.kpis{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 14px;
}

.kpis .k{
  background: #0b5fff10;
  border: 1px dashed #bfd0ff;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.k .n{
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand);
}

/* =========================================================
   8) Sections / Cards / Grids
   ========================================================= */
section{ padding: 56px 0; }

.card{
  background: var(--card);
  border: 1px solid #e6e9f6;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);

}

/* Classic 3-column grid (non-scrolling by default) */
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* --- Horizontal scroll variant: add .grid-scroll to .grid-3 --- */
.grid-3.grid-scroll{
  grid-template-columns: unset;        /* stop forcing fixed columns */
  grid-auto-flow: column;              /* lay items left→right */
  grid-auto-columns: minmax(280px, 1fr);
  overflow-x: auto;                    /* horizontal scroll */
  gap: 16px;
  padding: 8px 8px 12px;
  scroll-snap-type: x mandatory;       /* snap feel */
  -webkit-overflow-scrolling: touch;   /* smooth on iOS */
}

.grid-3.grid-scroll > *{
  scroll-snap-align: start;
}

/* =========================================================
   9) Feature Badge Bullets
   ========================================================= */
.feat{
  display: flex;
  gap: 12px;
}

.feat .badge{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f2f6ff;
  border: 1px solid #dfe7ff;
  font-weight: 800;
  color: var(--brand);
}

/* =========================================================
   10) Forms
   ========================================================= */
.contact form{ display: grid; gap: 12px; }

input, textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d9e0ef;
  background: #fff;
  outline: none;
  font-size: 1rem;
}

input:focus, textarea:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

.note{ color: var(--muted); font-size: .9rem; }

/* =========================================================
   11) Footer
   ========================================================= */
footer{ padding: 36px 0 60px; color: #667085; }

.footer-row{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.footer-links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   12) Utilities
   ========================================================= */
/* Offset anchors so sections aren’t hidden behind sticky header */
#simtools { scroll-margin-top: 250px; }

/* =========================================================
   13) Media Queries
   ========================================================= */

/* ≤ 900px: collapse hero grid; only collapse non-scrolling .grid-3 */
@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .grid-3:not(.grid-scroll){ grid-template-columns: 1fr; }
}

/* ≤ 760px: mobile navigation */
@media (max-width: 760px){
  .links{ display: none; }
  .mobile-toggle{ display: inline-flex; }

  .mobile-menu{
    position: fixed;
    inset: 64px 12px auto 12px;
    background: var(--card);
    border: 1px solid #e6e9f6;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: .5rem;
    display: none;
    flex-direction: column;
  }

  .mobile-menu.open{ display: flex; }
  .mobile-menu a{ padding: .8rem 1rem; border-radius: 8px; }
  .mobile-menu a:hover{ background: #f2f5ff; }
}

/* ≤ 600px: scrolling grids show one card per view */
@media (max-width: 600px){
  .grid-3.grid-scroll{
    grid-auto-columns: 100%;
  }
}


/* Ensure header & footer containers center consistently */
header .container,
nav.main-links .container,
footer .container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px; /* or whatever your site uses */
  padding-left: -6px;
  padding-right: -6px;
}
