/* ============================================================
   INSCALED — Shared Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Variables ── */
:root {
  --g:        #2eaa3b;
  --g-bright: #3ccc4a;
  --g-glow:   rgba(46,170,59,.15);
  --g-faint:  rgba(46,170,59,.06);
  --bg:       #08090a;
  --card:     #0d0e10;
  --card-solid: #101112;
  --card2:    #111315;
  --ink:      #f0f0ec;
  --mid:      #8a8f98;
  --dim:      #82828a;
  --line:     rgba(255,255,255,.06);
  --line-solid: #1a1b1d;
  --r:        8px;
  --r-sm:     6px;
  --nav-h:    68px;
  --wrap:     1200px;
  --gap:      clamp(16px, 3vw, 32px);
}

/* ── Base ── */
html {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body { overflow-x: hidden; }

/* Grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.05; }

h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700;
  letter-spacing: -.035em;
}
h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -.03em;
}
h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -.02em;
}

.serif {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 900;
  color: var(--g);
}

p { color: var(--mid); font-size: clamp(15px, 1.8vw, 17px); line-height: 1.65; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 16px;
}

/* ── Layout utilities ── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
  border-top: 1px solid rgba(255,255,255,.04);
}
.section:first-of-type { border-top: none; }

/* ── Nav ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex; align-items: center; justify-content: flex-start;
  gap: 0;
  background: rgba(8,9,10,.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
#nav.nav-transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
#nav.nav-transparent.nav-scrolled {
  background: rgba(8,9,10,.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: rgba(255,255,255,.05);
}

.logo {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-links a {
  color: var(--mid);
  font-size: 13.5px;
  font-weight: 400;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.05); }

.nav-cta {
  background: var(--g) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 9px 22px !important;
  margin-left: 8px;
  font-size: 13.5px !important;
  transition: background .2s, box-shadow .25s, transform .18s !important;
}
.nav-cta:hover {
  background: var(--g-bright) !important;
  transform: translateY(-1px) !important;
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background .18s;
}
.nav-burger:hover { background: rgba(255,255,255,.06); }
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* Mobile nav open state */
.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(8,9,10,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 16px 20px 24px;
  gap: 4px;
  z-index: 499;
}
.nav-open .nav-links a {
  padding: 12px 16px;
  font-size: 16px;
  width: 100%;
}
.nav-open .nav-cta {
  margin-left: 0 !important;
  margin-top: 8px;
  text-align: center;
}
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 15px; font-weight: 600;
  border-radius: 6px;
  padding: 14px 28px;
  transition: transform .18s, background .2s, box-shadow .25s, border-color .2s;
  white-space: nowrap;
  min-height: 48px;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--g);
  color: #fff;
}
.btn-primary:hover {
  background: var(--g-bright);
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.btn-ghost {
  background: rgba(255,255,255,.03);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.08);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r);
  padding: 28px;
  transition: transform .2s, border-color .25s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(46,170,59,.2);
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}

/* ── Grid utilities ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

/* ── Pill tag ── */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(46,170,59,.06);
  border: 1px solid rgba(46,170,59,.15);
  color: var(--g);
  font-size: 12px; font-weight: 500;
  padding: 8px 18px;
  border-radius: 9999px;
  margin-bottom: 32px;
}
.pill-dot {
  width: 6px; height: 6px;
  background: var(--g);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(46,170,59,.6);
  animation: pulse-glow 2.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,100% { opacity:1; box-shadow: 0 0 6px rgba(46,170,59,.6); }
  50% { opacity:.4; box-shadow: 0 0 2px rgba(46,170,59,.2); }
}

/* ── Stats strip ── */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.stat-num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--g);
  letter-spacing: -.03em;
  line-height: 1.0;

}
.stat-label {
  font-size: 12px;
  color: var(--mid);
  margin-top: 6px;
  max-width: 160px;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 72px;
  text-align: center;
}
.page-hero h1 { max-width: 760px; margin: 0 auto 20px; }
.page-hero p { max-width: 560px; margin: 0 auto; font-size: clamp(15px, 1.9vw, 18px); }

/* ── Section headers ── */
.section-header { margin-bottom: clamp(40px, 5vw, 64px); }
.section-header h2 { margin-top: 8px; max-width: 680px; }
.section-header.centered { text-align: center; }
.section-header.centered h2 { margin: 8px auto 0; }

/* ── Step cards (How We Work) ── */
.step-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .2s, border-color .25s, box-shadow .3s;
}
.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(46,170,59,.2);
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.step-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.step-body { padding: 24px; }

.step-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 6px;
}
.step-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-desc { font-size: 15px; color: var(--mid); line-height: 1.65; }

/* ── Service number cards ── */
.service-num {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 12px;
}
.service-name { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.service-sub { font-size: 14px; color: var(--g); font-weight: 500; margin-bottom: 12px; }
.service-desc { font-size: 15px; color: var(--mid); line-height: 1.65; }

/* ── VALIRIS spotlight ── */
.valiris-card {
  background: var(--card);
  border: 1px solid rgba(46,170,59,.15);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(46,170,59,.04);
}
.valiris-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.valiris-left { padding: clamp(28px, 4vw, 48px); border-right: 1px solid rgba(255,255,255,.06); }
.valiris-right { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.valiris-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--g);
  border: 1px solid rgba(46,170,59,.2);
  border-radius: 6px;
  padding: 5px 10px;
  margin-bottom: 16px;
}
.valiris-name {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 20px;
  color: var(--ink);
}
.valiris-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--g); font-size: 14px; font-weight: 600;
  margin-top: 20px;
  transition: gap .18s;
}
.valiris-link:hover { gap: 10px; }
.valiris-stat-num {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  color: var(--g); letter-spacing: -.03em; line-height: 1;

}
.valiris-stat-label { font-size: 13px; color: var(--mid); margin-top: 4px; }

/* ── Testimonial ── */
.testimonial {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
.testimonial-who { text-align: right; }
.testimonial-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.testimonial-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.testimonial-company { font-size: 13px; color: var(--mid); }
.testimonial-quote { font-size: clamp(18px, 2.5vw, 22px); color: var(--ink); line-height: 1.65; font-style: italic; font-family: 'Lora', Georgia, serif; }
.quote-mark { font-size: 64px; line-height: .5; color: var(--g); opacity: .4; margin-bottom: 16px; }

/* ── CTA section ── */
.cta-section {
  text-align: center;
  padding: clamp(64px, 10vw, 120px) 0;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { max-width: 520px; margin: 0 auto 36px; }

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(255,255,255,.04);
  padding: 40px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.f-logo { height: 36px; width: auto; opacity: .55; transition: opacity .18s; }
.f-logo:hover { opacity: .8; }
.f-links { display: flex; gap: 4px; flex-wrap: wrap; }
.f-links a { color: var(--mid); font-size: 13px; padding: 6px 12px; border-radius: 8px; transition: color .18s, background .18s; }
.f-links a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.f-copy { font-size: 12px; color: var(--dim); }

/* ── Use case cards ── */
.uc-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--g);
  background: rgba(46,170,59,.07);
  border: 1px solid rgba(46,170,59,.15);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.uc-problem { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.uc-solution { font-size: 15px; color: var(--mid); margin-bottom: 14px; line-height: 1.6; }
.uc-outcome {
  font-size: 13px; font-weight: 600;
  color: var(--g);
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ── Values cards (about) ── */
.value-icon {
  width: 40px; height: 40px;
  color: var(--g);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.value-icon svg { width: 100%; height: 100%; display: block; }
.value-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.value-desc { font-size: 15px; color: var(--mid); line-height: 1.65; }

/* ── Service deep-dive blocks ── */
.service-block {
  padding: clamp(48px, 7vw, 96px) 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.service-block:first-child { border-top: none; }
.service-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.service-block-num {
  font-size: 72px; font-weight: 800;
  color: var(--line-solid);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: -8px;
}
.service-block h3 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 16px; }
.service-block p { margin-bottom: 20px; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tool-tag {
  font-size: 12px; font-weight: 500;
  color: var(--mid);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 6px;
  padding: 5px 12px;
}
.outcome-list { list-style: none; margin-top: 16px; }
.outcome-list li {
  font-size: 14px; color: var(--mid);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding-left: 18px;
  position: relative;
}
.outcome-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--g);
}

/* ── Calendly embed wrapper ── */
.calendly-wrap {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  margin: 0 auto;
  max-width: 900px;
}

/* ── Responsive ── */

/* Tablet: 768px–1199px */
@media (max-width: 1199px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .testimonial { grid-template-columns: 160px 1fr; gap: 32px; }
  .service-block-inner { grid-template-columns: 1fr; gap: 32px; }
  .service-block-num { font-size: 48px; }
  .valiris-inner { grid-template-columns: 1fr; }
  .valiris-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .valiris-right { flex-direction: row; flex-wrap: wrap; gap: 24px; }
}

/* Mobile: <768px */
@media (max-width: 767px) {
  :root { --nav-h: 60px; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .stats-strip {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
  }

  .testimonial {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 24px;
  }
  .testimonial-who { text-align: left; }

  .valiris-right { flex-direction: column; }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .f-links { gap: 2px; }

  .page-hero { padding: calc(var(--nav-h) + 48px) 0 56px; text-align: left; }
  .page-hero h1 { margin-left: 0; }
  .page-hero p { margin-left: 0; }

  .section-header.centered { text-align: left; }
  .section-header.centered h2 { margin-left: 0; }

  .cta-section { text-align: left; }
  .cta-section p { margin-left: 0; }

  .calendly-wrap { border-radius: 0; border-left: none; border-right: none; }
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--g);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid var(--g);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline: 2px solid var(--g);
  outline-offset: 4px;
}
.nav-cta:focus-visible {
  outline-offset: 4px;
  border-radius: 40px !important;
}

/* ── Animations ── */
@keyframes breathe {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50%       { transform: translateX(-50%) scale(1.12); opacity: .6; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #hero-canvas { display: none; }
  .pill-dot { animation: none; opacity: 1; }
}

/* ── Logo ── */
.nav-logo,
.nav-logo:visited,
.nav-logo:link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
  transition: opacity .18s;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
}
.nav-logo:hover { opacity: .7; }

.f-logo-text {
  display: inline-flex;
  align-items: center;
  transition: opacity .18s;
}
.f-logo-text img {
  height: 18px;
  width: auto;
  display: block;
  opacity: .45;
  transition: opacity .18s;
}
.f-logo-text:hover img { opacity: .7; }

/* ── Language switch ── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--dim);
  margin-right: 8px;
  flex-shrink: 0;
}
.lang-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 5px 8px;
  border-radius: 6px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.lang-btn:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.lang-active { color: var(--ink) !important; cursor: default; pointer-events: none; }
