/* =========================================================================
   NativeMinds AI Labs — marketing site styles
   Single stylesheet. Change the design tokens below to re-theme the whole
   site in one place (accent color, spacing, radius, typography).
   ========================================================================= */

/* ----------------------------- Design tokens ---------------------------- */
:root {
  /* Brand / accent — change --accent to rebrand */
  --accent: #40835a;          /* sage green */
  --accent-strong: #346d4a;   /* deeper sage (hover) */
  --accent-soft: #e9f3ec;     /* pale sage tint */

  /* Neutrals — subtly green-biased to sit with the sage accent */
  --bg: #ffffff;
  --bg-alt: #f3f8f4;
  --text: #15211a;
  --text-muted: #55655b;
  --border: #e1eae4;

  /* Effects */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 34, .05);
  --shadow-md: 0 12px 30px rgba(16, 18, 34, .08);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  /* Type scale (fluid) */
  --step--1: clamp(.85rem, .82rem + .15vw, .95rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.075rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.4rem);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* keep section headings clear of the sticky header on anchor jumps */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; }
p  { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

img, svg { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ------------------------------ Layout ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-lead { font-size: var(--step-1); color: var(--text-muted); font-weight: 400; }
/* A call to action inside a section heading, for the one product that has
   somewhere to go. Its own rule so the button clears the lead text. */
.section-cta { margin-top: 1.25rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 .75rem;
}

.accent-text { color: var(--accent); }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 650;
  font-size: var(--step-0);
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
    border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem 1.05rem; font-size: var(--step--1); }

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

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  max-width: none;                              /* span full width, not the 1120px container */
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);   /* comfortable edge spacing */
}

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 750; }
.brand:hover { color: var(--text); }
.brand-mark { display: inline-flex; }
.brand-name { font-size: 1.12rem; letter-spacing: -.01em; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 1.7rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a { color: var(--text-muted); font-weight: 550; font-size: var(--step--1); }
.primary-nav a:hover { color: var(--text); }
.primary-nav a.btn-primary { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  background:
    radial-gradient(60% 55% at 80% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(50% 50% at 0% 0%, #eef6f0, transparent 55%);
  overflow: hidden;
}
.hero-inner { max-width: none; text-align: center; }   /* fill the width, centered content */
.hero-title { margin-bottom: .35em; text-wrap: balance; }  /* headline uses the full width, wraps evenly */
.hero-sub {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 60ch;
  margin-inline: auto;          /* center the readable-width paragraph */
}

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 1.8rem 0 2.2rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;      /* center the badge row under the hero */
  gap: .6rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: var(--step--1);
}
.hero-badges li { position: relative; padding-left: 1.3rem; }
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ------------------------------ Pillars --------------------------------- */
.pillar {
  padding: 1.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
}
.pillar p { color: var(--text-muted); margin: 0; }

/* ------------------------------- Cards ---------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cadbcf; }

.card-badge {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: .3rem .6rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.card-badge-muted { color: var(--text-muted); background: #eef0f5; }

.card-desc { color: var(--text-muted); }
.card-features {
  list-style: none;
  margin: .4rem 0 1.2rem;
  padding: 0;
  color: var(--text);
}
.card-features li { position: relative; padding-left: 1.4rem; margin-bottom: .4rem; font-size: var(--step--1); }
.card-features li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}
.card-link { margin-top: auto; font-weight: 650; }

/* -------------------------------- Steps --------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.step {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.step-num {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: .5rem;
}
.step p { color: var(--text-muted); margin: 0; }

/* ------------------------------ CTA band -------------------------------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  background: var(--accent-soft);
  border: 1px solid #d3e6da;
  border-radius: var(--radius);
}
.cta-band h3 { margin-bottom: .2rem; }
.cta-band p { margin: 0; color: var(--text-muted); }

/* ------------------------------- Reasons -------------------------------- */
.reason {
  padding: 1.6rem;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.reason p { color: var(--text-muted); margin: 0; }

/* -------------------------------- About --------------------------------- */
.about-inner { max-width: 780px; }
.about-body p { font-size: var(--step-1); color: var(--text-muted); }

/* ------------------------------- Contact -------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  padding: .75rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; }
.field.invalid input,
.field.invalid textarea { border-color: #dc2626; }

.contact-form .btn { justify-self: start; }
.form-note { font-size: var(--step--1); color: var(--text-muted); margin: 0; min-height: 1.2em; }
.form-note.error { color: #dc2626; }
.form-note.success { color: #15803d; }

.contact-aside h3 { font-size: var(--step-0); margin-bottom: .3rem; }
.contact-aside h3 + p,
.contact-aside address { margin-bottom: 1.4rem; }
.contact-aside address { font-style: normal; color: var(--text-muted); }
.social-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }

/* ------------------------------- Footer --------------------------------- */
.site-footer {
  background: #14201a;
  color: #c3ccc6;
  padding-block: clamp(2.5rem, 6vw, 3.5rem) 1.5rem;
}
.site-footer a { color: #c7cad8; }
.site-footer a:hover { color: #fff; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand-name { color: #fff; font-size: 1.15rem; font-weight: 750; }
.footer-brand p { margin: .4rem 0 0; font-size: var(--step--1); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; align-content: start; }
.footer-nav a { font-size: var(--step--1); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  margin-top: 1.4rem;
  font-size: var(--step--1);
}
.footer-bottom p { margin: 0; }
.footer-legal a { margin: 0 .15rem; }

/* ---------------------------- Scroll reveal ----------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps  { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .primary-nav.open { max-height: 70vh; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.2rem;
  }
  .primary-nav li { border-bottom: 1px solid var(--border); }
  .primary-nav li:last-child { border-bottom: 0; padding-top: .8rem; }
  .primary-nav a { display: block; padding: .85rem 0; font-size: 1rem; }
  .primary-nav a.btn-primary { text-align: center; padding: .7rem 1rem; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

/* ------------------------- Reduced motion ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
