/* ============================================================
   MammothShift — Shared Stylesheet
   ============================================================ */

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* --- VARIABLES --- */
:root {
  --bg:           #ffffff;
  --bg-soft:      #f0f6ff;
  --fg:           #0d1f3c;
  --fg-2:         #1e3a5f;
  --muted:        #5a7a9a;
  --muted-2:      #8ba5be;
  --blue:         #1a5fa8;
  --blue-mid:     #2080d0;
  --blue-light:   #56aae0;
  --cyan:         #0ea5c9;
  --navy:         #0a1628;
  --navy-mid:     #0f2040;
  --border:       rgba(13,31,60,0.08);
  --border-blue:  rgba(26,95,168,0.2);
  --shadow-sm:    0 1px 4px rgba(13,31,60,0.06), 0 4px 16px rgba(13,31,60,0.06);
  --shadow-md:    0 2px 8px rgba(13,31,60,0.07), 0 12px 40px rgba(13,31,60,0.1);
  --radius:       20px;
  --radius-sm:    10px;
  --pad:          clamp(24px,4vw,64px);
  --nav-h:        68px;
}

/* --- BASE --- */
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad); }

.grad {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.08em;
}

.eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--blue);
}
.eyebrow--inv { color: rgba(255,255,255,0.5); margin-bottom: 16px; }

.section-label { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-label span:first-child { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); white-space: nowrap; }
.section-label span:last-child  { flex: 1; height: 1px; background: var(--border); }

/* --- ANIMATIONS --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.anim { opacity: 0; animation: fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) forwards; }
.d1{animation-delay:.06s} .d2{animation-delay:.14s} .d3{animation-delay:.22s}
.d4{animation-delay:.30s} .d5{animation-delay:.38s} .d6{animation-delay:.46s}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 14px 28px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  color: #fff; font-size: 15px; font-weight: 700;
  border-radius: 100px; text-decoration: none;
  box-shadow: 0 4px 20px rgba(26,95,168,0.32);
  transition: box-shadow 0.2s, transform 0.2s;
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(26,95,168,0.48); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 24px;
  border: 1.5px solid var(--border);
  color: var(--fg-2); font-size: 15px; font-weight: 600;
  border-radius: 100px; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--border-blue); background: var(--bg-soft); }

.btn-primary-inv {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px;
  background: #fff; color: var(--blue);
  font-size: 15px; font-weight: 700;
  border-radius: 100px; text-decoration: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transition: box-shadow 0.2s, transform 0.2s;
}
.btn-primary-inv:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.3); transform: translateY(-2px); }



/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.nav--scrolled { box-shadow: 0 1px 8px rgba(13,31,60,0.08); }
.nav__inner {
  max-width: 1080px; margin: 0 auto; padding: 0 var(--pad);
  height: 100%; display: flex; align-items: center;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--fg);
  font-size: 17px; font-weight: 800; letter-spacing: -0.02em;
  margin-right: 36px; flex-shrink: 0;
}
.nav__logo img { height: 28px; width: auto; }
.nav__logo span { color: var(--fg); }
.nav__links { display: flex; align-items: center; gap: 2px; flex: 1; list-style: none; }
.nav__link {
  padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--fg-2);
  text-decoration: none; border-radius: 8px; transition: background 0.15s, color 0.15s;
}
.nav__link:hover { background: var(--bg-soft); color: var(--fg); }
.nav__link--active { color: var(--blue); background: rgba(26,95,168,0.07); font-weight: 600; }
.nav__cta {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  color: #fff; font-size: 13.5px; font-weight: 700;
  border-radius: 100px; text-decoration: none;
  box-shadow: 0 2px 14px rgba(26,95,168,0.28);
  transition: box-shadow 0.2s, transform 0.15s;
}
.nav__cta:hover { box-shadow: 0 4px 22px rgba(26,95,168,0.42); transform: translateY(-1px); }
/* --- Burger button --- */
.nav__burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; margin-left: 16px; flex-shrink: 0;
}
.nav__burger span {
  display: block; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--fg); border-radius: 1px; transition: transform 0.25s, opacity 0.2s;
}
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 9px; }
.nav__burger span:nth-child(3) { top: 18px; }
.nav__burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- Mobile nav panel --- */
.mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 16px var(--pad); z-index: 99;
  flex-direction: column; gap: 4px;
  box-shadow: 0 8px 24px rgba(13,31,60,0.1);
}
.mobile-nav.open { display: flex; }
.mobile-nav__link {
  padding: 12px 16px; font-size: 15px; font-weight: 500; color: var(--fg-2);
  text-decoration: none; border-radius: 8px; transition: background 0.15s;
}
.mobile-nav__link:hover { background: var(--bg-soft); }
.mobile-nav__link--active { color: var(--blue); font-weight: 600; }
.mobile-nav__cta {
  margin-top: 8px; padding: 12px 16px; text-align: center;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  color: #fff; font-size: 15px; font-weight: 700;
  border-radius: 100px; text-decoration: none;
}

@media (max-width: 800px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
}


/* ============================================================
   HERO (index)
   ============================================================ */
.hero {
  padding-top: calc(var(--nav-h) + clamp(56px,8vw,88px));
  padding-bottom: clamp(56px,7vw,80px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 15% 0%, rgba(26,95,168,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 600px 500px at 90% 80%, rgba(14,165,201,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--blue);
  background: rgba(26,95,168,0.07);
  border: 1px solid rgba(26,95,168,0.18);
  border-radius: 100px; padding: 5px 16px;
  margin-bottom: 22px;
}
.hero__pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.hero h1 {
  font-size: clamp(36px,5.5vw,64px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.06;
  color: var(--fg); margin-bottom: 20px;
}
.hero__sub {
  font-size: clamp(15px,1.8vw,18px);
  color: var(--muted); max-width: 540px; line-height: 1.72;
  margin-bottom: 32px;
}
.hero__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }


/* ============================================================
   PAGE HERO (about, contact)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(48px,7vw,72px));
  padding-bottom: clamp(40px,5vw,56px);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 15% 0%, rgba(26,95,168,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 90% 100%, rgba(14,165,201,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--blue);
  background: rgba(26,95,168,0.07);
  border: 1px solid rgba(26,95,168,0.18);
  border-radius: 100px; padding: 5px 16px;
  margin-bottom: 20px;
}
.page-hero__pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.page-hero h1 {
  font-size: clamp(34px,5vw,56px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.06;
  color: var(--fg); margin-bottom: 16px;
}
.page-hero__sub {
  font-size: clamp(14px,1.7vw,17px);
  color: var(--muted); max-width: 580px; line-height: 1.75;
}


/* ============================================================
   HOW WE HELP (index)
   ============================================================ */
.how-section {
  padding: clamp(56px,7vw,80px) 0;
  border-bottom: 1px solid var(--border);
}
.how-section--alt { background: var(--bg-soft); }
.how-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(26,95,168,0.25);
  margin-bottom: 16px;
}
.how-title {
  font-size: clamp(22px,3vw,30px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.18;
  color: var(--fg); margin-bottom: 10px;
}
.how-desc {
  font-size: 14px; color: var(--muted); line-height: 1.82;
  max-width: 680px; margin-bottom: 32px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.how-item {
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.how-section--alt .how-item { background: var(--bg); }
.how-section:not(.how-section--alt) .how-item { background: var(--bg-soft); }
.how-item:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.how-item__title { font-size: 14px; font-weight: 700; color: var(--fg); margin-bottom: 7px; }
.how-item__body  { font-size: 13px; color: var(--muted); line-height: 1.72; }


/* ============================================================
   ABOUT SECTIONS
   ============================================================ */
.about-section {
  padding: clamp(56px,7vw,80px) 0;
  border-bottom: 1px solid var(--border);
}
.about-section--soft { background: var(--bg-soft); }
.about-section h2 {
  font-size: clamp(22px,3vw,30px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
  color: var(--fg); margin-bottom: 20px;
}
.about-section p {
  font-size: 15px; color: var(--muted); line-height: 1.82;
  max-width: 700px; margin-bottom: 16px;
}
.about-section p:last-child { margin-bottom: 0; }
.about-section p strong { color: var(--fg-2); font-weight: 600; }

/* --- Experience grid --- */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.exp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.exp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.exp-card__icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 3px 10px rgba(26,95,168,0.22);
}
.exp-card__title { font-size: 14px; font-weight: 700; color: var(--fg); margin-bottom: 7px; }
.exp-card__body  { font-size: 13px; color: var(--muted); line-height: 1.72; }

/* --- Software aside --- */
.sw-aside {
  margin-top: 32px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(26,95,168,0.04) 0%, rgba(14,165,201,0.02) 100%);
  border: 1px solid rgba(26,95,168,0.12);
  border-radius: var(--radius);
}
.sw-aside__label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.sw-aside p {
  font-size: 14px; color: var(--muted); line-height: 1.78;
  max-width: none; margin-bottom: 0;
}


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: clamp(72px,9vw,100px) 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 700px 500px at 60% 50%, rgba(26,95,168,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { max-width: 600px; position: relative; }
.cta-headline {
  font-size: clamp(28px,4.5vw,48px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  color: #fff; margin-bottom: 16px;
}
.cta-body { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }


/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-section {
  padding: clamp(56px,7vw,80px) 0;
  background: var(--bg-soft);
}
.form-wrap {
  max-width: 600px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group--full {
  grid-column: 1 / -1;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
}
.form-group input,
.form-group textarea {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,95,168,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-2);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}
.form-submit {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 14px 32px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  color: #fff; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700;
  border: none; border-radius: 100px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(26,95,168,0.32);
  transition: box-shadow 0.2s, transform 0.2s;
}
.form-submit:hover { box-shadow: 0 6px 28px rgba(26,95,168,0.48); transform: translateY(-2px); }
.form-error {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 10px;
  font-size: 14px;
  color: #dc2626;
  line-height: 1.6;
}
.form-error a { color: #dc2626; font-weight: 600; }
@media (max-width: 500px) {
  .form-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   THANK YOU
   ============================================================ */
.thank-you {
  padding-top: calc(var(--nav-h) + clamp(80px,12vw,140px));
  padding-bottom: clamp(80px,12vw,140px);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.thank-you::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 50% 0%, rgba(26,95,168,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.thank-you__icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  box-shadow: 0 6px 20px rgba(26,95,168,0.28);
}
.thank-you h1 {
  font-size: clamp(30px,5vw,48px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.1;
  color: var(--fg); margin-bottom: 16px;
}
.thank-you p {
  font-size: clamp(15px,1.8vw,18px);
  color: var(--muted); max-width: 480px; margin: 0 auto;
  line-height: 1.72;
}
.thank-you__link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 36px;
  padding: 13px 24px;
  border: 1.5px solid var(--border);
  color: var(--fg-2); font-size: 15px; font-weight: 600;
  border-radius: 100px; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.thank-you__link:hover { border-color: rgba(26,95,168,0.2); background: var(--bg-soft); }


/* ============================================================
   FOOTER
   ============================================================ */
footer { padding: 28px 0; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-logo { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: var(--fg); }
.footer-logo img { height: 20px; width: auto; }
.footer-logo span { color: var(--fg); }
.footer-note { font-size: 12px; color: var(--muted-2); }
.footer-powered { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted-2); }
.footer-powered img { height: 14px; width: auto; }
.footer-powered a { color: var(--muted-2); text-decoration: none; font-weight: 600; }
.footer-powered a:hover { color: var(--muted); }


/* ============================================================
   LEGAL PAGES (privacy)
   ============================================================ */
.legal-page {
  padding-top: calc(var(--nav-h) + clamp(48px,7vw,72px));
  padding-bottom: clamp(56px,7vw,80px);
}
.legal-inner { max-width: 680px; }
.legal-header { margin-bottom: 40px; }
.legal-header h1 {
  font-size: clamp(30px,5vw,44px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--fg); margin-bottom: 10px;
}
.legal-header__meta {
  font-size: 13px; color: var(--muted-2);
}
.legal-section { margin-bottom: 36px; }
.legal-section h2 {
  font-size: 18px; font-weight: 700; color: var(--fg);
  margin-bottom: 12px;
}
.legal-section p {
  font-size: 15px; color: var(--muted); line-height: 1.82;
  margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }
