/* ==========================================================================
   Marcelo Bayon — Growth Systems for Small Business
   Design system: "altitude + instrumentation"
   Palette per brief (navy / slate / silver, green + orange accents).
   Type: Space Grotesk (display) · IBM Plex Sans (body) · IBM Plex Mono (data)
   ========================================================================== */

:root {
  /* Brand palette (from brief) */
  --navy:          #0F2744;   /* Mountain Navy  — primary dark   */
  --slate:         #1F2937;   /* Deep Slate     — secondary dark */
  --silver:        #D9E2EC;   /* Summit Silver  — light dividers */
  --green:         #22C55E;   /* Growth Green   — accent         */
  --orange:        #F97316;   /* Signal Orange  — buttons only   */

  /* Derived surface + ink scale */
  --bg:            #F6F8FC;   /* cool near-white page bg         */
  --bg-2:          #FFFFFF;
  --ink:           #14213A;   /* body text on light              */
  --ink-soft:      #4A5A73;   /* muted text on light             */
  --line:          #E2E8F2;   /* hairlines on light              */
  --on-dark:       #EAF0F8;   /* text on navy                    */
  --on-dark-soft:  #9DB0CC;   /* muted text on navy              */
  --navy-line:     #27405F;   /* hairlines on navy               */
  --orange-press:  #E2620C;

  /* Type */
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale & spacing */
  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(15, 39, 68, .06), 0 2px 8px rgba(15, 39, 68, .05);
  --shadow-md: 0 10px 30px rgba(15, 39, 68, .10), 0 2px 6px rgba(15, 39, 68, .06);
  --shadow-lg: 0 24px 60px rgba(15, 39, 68, .16);
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

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

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--green);
  display: inline-block;
}
.on-navy .eyebrow { color: var(--on-dark-soft); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 60ch; }

/* ------------------------------------------------------------------- btns */
.btn {
  --pad-y: .82em;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--body);
  font-weight: 600; font-size: .97rem; letter-spacing: .005em;
  padding: var(--pad-y) 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .14s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(249, 115, 22, .32); }
.btn--primary:hover { background: var(--orange-press); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(249, 115, 22, .38); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-soft); transform: translateY(-2px); }
.on-navy .btn--ghost { color: var(--on-dark); border-color: var(--navy-line); }
.on-navy .btn--ghost:hover { border-color: var(--on-dark-soft); }

.btn--block { width: 100%; }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 248, 252, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(246, 248, 252, .94); }
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); font-family: var(--display); font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; }
.brand svg { flex: none; }
.brand small { display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .16em; color: var(--ink-soft); text-transform: uppercase; font-weight: 400; margin-top: 1px; }
.brand .brand__name { line-height: 1.05; }

.nav__links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--ink-soft); font-size: .94rem; font-weight: 500; transition: color .15s ease; }
.nav__links a:hover { color: var(--navy); }
.nav__cta { margin-left: 4px; }

.nav__toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; color: var(--navy);
}
.nav__toggle svg { pointer-events: none; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(54px, 8vw, 104px);
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.35rem);
  letter-spacing: -.035em;
  color: var(--navy);
  margin-bottom: 22px;
}
.hero__title .accent { color: var(--navy); }
.hero__sub { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 36ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__meta { margin-top: 30px; font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.hero__meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,.16); flex: none; }

/* portrait + elevation framing */
.hero__portrait { position: relative; justify-self: center; }
.hero__portrait-frame {
  position: relative;
  width: min(340px, 74vw);
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--silver);
}
.hero__portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero__tag {
  position: absolute; left: -14px; bottom: 22px;
  background: var(--navy); color: var(--on-dark);
  padding: 10px 15px; border-radius: 11px;
  box-shadow: var(--shadow-md);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
}
.hero__tag b { display: block; font-family: var(--display); font-size: .92rem; letter-spacing: -.01em; color: #fff; margin-bottom: 2px; font-weight: 500; }
.hero__elev {
  position: absolute; top: 16px; right: -10px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px;
}

/* trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 4vw, 46px); padding-block: 20px; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--ink-soft); text-transform: uppercase; }
.trust__inner span { display: inline-flex; align-items: center; gap: 9px; }
.trust__inner span::before { content: ""; width: 6px; height: 6px; background: var(--green); border-radius: 50%; flex: none; }
.trust__label { color: var(--navy); font-weight: 700; }

/* =====================================================================
   SECTION SHELL
   ===================================================================== */
.problems, .climb, .proof, .about, .contact { padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: 84px; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); color: var(--navy); margin-bottom: 16px; }
.on-navy .section-head h2 { color: #fff; }

/* =====================================================================
   PROBLEMS  — "where growth leaks"
   ===================================================================== */
.problems { background: var(--bg); }
.problems__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 16px; }
.leak {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.leak:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--silver); }
.leak__num { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--orange); margin-bottom: 14px; }
.leak h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: 8px; letter-spacing: -.01em; }
.leak p { font-size: .96rem; color: var(--ink-soft); }

/* =====================================================================
   THE CLIMB — service ladder as elevation stations  (signature)
   ===================================================================== */
.climb { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.climb__bg { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.climb .container { position: relative; z-index: 1; }
.climb .section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.climb .section-head p { color: var(--on-dark-soft); }

.stations { position: relative; margin-top: 8px; }
/* vertical ascent line */
.stations::before {
  content: ""; position: absolute; left: 27px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(to top, var(--navy-line), var(--green));
}
.station {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 26px;
  padding: 22px 0;
}
.station + .station { border-top: 1px solid var(--navy-line); }
.station__mark {
  position: relative; z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--slate); border: 2px solid var(--navy-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .92rem; font-weight: 600; color: var(--green);
}
.station--summit .station__mark { background: var(--green); border-color: var(--green); color: var(--navy); }
.station__body { display: grid; grid-template-columns: 1.3fr .9fr; gap: 18px 36px; align-items: start; }
.station__elev { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 7px; }
.station__name { font-size: 1.32rem; color: #fff; margin-bottom: 8px; }
.station__promise { color: var(--on-dark); font-size: 1rem; }
.station__price { font-family: var(--mono); font-size: .92rem; color: var(--green); margin-top: 12px; letter-spacing: .02em; }
.station__incl { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.chip {
  font-size: .8rem; color: var(--on-dark-soft);
  border: 1px solid var(--navy-line); border-radius: 999px;
  padding: 5px 11px; background: rgba(255,255,255,.02);
}
.climb__footnote {
  margin-top: 34px; padding: 20px 24px;
  border: 1px dashed var(--navy-line); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  color: var(--on-dark-soft); font-size: .95rem;
}
.climb__footnote b { color: #fff; font-family: var(--display); font-weight: 500; }
.climb__footnote .price { color: var(--green); font-family: var(--mono); }

/* =====================================================================
   PROOF — case study
   ===================================================================== */
.proof { background: var(--bg); }
.proof__card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-md); overflow: hidden;
  display: grid; grid-template-columns: .92fr 1.08fr;
}
.proof__aside { background: var(--slate); color: var(--on-dark); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.proof__aside .eyebrow { color: var(--on-dark-soft); }
.proof__client { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem); color: #fff; line-height: 1.1; }
.proof__sector { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; color: var(--green); text-transform: uppercase; }
.proof__stack { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.proof__stack .chip { color: var(--on-dark-soft); border-color: var(--navy-line); }

.proof__steps { padding: clamp(28px, 4vw, 44px); display: grid; gap: 22px; }
.pstep { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.pstep__tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); padding-top: 3px; white-space: nowrap; }
.pstep h4 { font-size: 1.08rem; color: var(--navy); margin-bottom: 5px; letter-spacing: -.01em; }
.pstep p { color: var(--ink-soft); font-size: .97rem; }
.pstep--result { background: rgba(34,197,94,.07); border: 1px solid rgba(34,197,94,.28); border-radius: var(--radius); padding: 18px; margin: 2px -6px 0; }
.pstep--result .pstep__tag { color: var(--green); }
.editable { color: var(--ink-soft); background: rgba(249,115,22,.10); border-bottom: 1px dashed var(--orange); padding: 0 3px; border-radius: 3px; }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about { background: var(--bg-2); border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.about__photo { position: relative; }
.about__photo img { width: 100%; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; object-position: center 18%; }
.about__roles { position: absolute; right: -10px; bottom: -14px; background: var(--navy); color: var(--on-dark); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-md); display: grid; gap: 4px; }
.about__roles span { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.about__roles span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.about__text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--navy); margin-bottom: 18px; }
.about__text p { color: var(--ink-soft); margin-bottom: 16px; max-width: 56ch; }
.about__text p strong { color: var(--navy); font-weight: 600; }

/* =====================================================================
   CONTACT / FINAL CTA
   ===================================================================== */
.contact { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; opacity: .45; pointer-events: none; }
.contact .container { position: relative; z-index: 1; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 72px); align-items: start; }
.contact__head h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); color: #fff; margin-bottom: 16px; }
.contact__head p { color: var(--on-dark-soft); max-width: 42ch; margin-bottom: 30px; }
.contact__direct { display: grid; gap: 14px; margin-top: 30px; }
.contact__direct a { text-decoration: none; color: var(--on-dark); display: inline-flex; align-items: center; gap: 13px; font-size: 1.02rem; transition: color .15s ease; }
.contact__direct a:hover { color: #fff; }
.contact__direct .ic { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--slate); border: 1px solid var(--navy-line); display: flex; align-items: center; justify-content: center; color: var(--green); }
.contact__direct .ml { font-family: var(--mono); font-size: .92rem; }

/* form */
.form-card { background: var(--bg-2); border-radius: 18px; padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-lg); color: var(--ink); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; letter-spacing: .01em; }
.form-row label .opt { color: var(--ink-soft); font-weight: 400; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%; font-family: var(--body); font-size: .98rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.form-row textarea { resize: vertical; min-height: 92px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.16); background: #fff; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--ink-soft); margin-top: 4px; }
.form-error { display: none; margin-top: 12px; padding: 11px 14px; border-radius: var(--radius-sm); background: #FEF2F2; border: 1px solid #FECACA; color: #B42318; font-size: .9rem; }
.form-error.show { display: block; }

.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success.show { display: block; }
.form-success .check { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: rgba(34,197,94,.12); display: flex; align-items: center; justify-content: center; color: var(--green); }
.form-success h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--slate); color: var(--on-dark-soft); padding-block: 46px 36px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--navy-line); }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--on-dark-soft); }
.foot-contact { display: grid; gap: 6px; font-size: .92rem; font-style: normal; }
.foot-contact a { color: var(--on-dark); text-decoration: none; }
.foot-contact a:hover { color: #fff; }
.foot-contact .muted { color: var(--on-dark-soft); font-size: .82rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: .82rem; }
.site-footer__bottom a { color: var(--on-dark-soft); text-decoration: none; }
.site-footer__bottom a:hover { color: #fff; }

/* =====================================================================
   REVEAL ANIMATION
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* contour draw */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__portrait { order: -1; justify-self: start; }
  .hero__sub { max-width: 48ch; }
  .station__body { grid-template-columns: 1fr; gap: 14px; }
  .proof__card { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 360px; }
  .about__roles { right: auto; left: 10px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 20px; box-shadow: var(--shadow-md); margin: 0;
  }
  .nav__links.is-open a { padding: 11px 4px; border-bottom: 1px solid var(--line); color: var(--navy); }
  .nav__links.is-open .nav__cta { margin-top: 10px; }
  .nav__links.is-open .btn { width: 100%; }
  .form-two { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

@media (max-width: 460px) {
  .station { grid-template-columns: 44px 1fr; gap: 18px; }
  .stations::before { left: 21px; }
  .station__mark { width: 44px; height: 44px; }
}

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