/* ==========================================================================
   Kamali — marketing site
   Palette: deep teal (growth/trust) + warm amber (hope) on a warm off-white.
   ========================================================================== */

:root {
  --teal-900: #0b2f30;
  --teal-800: #0f3d3e;
  --teal-700: #145253;
  --teal-600: #1a6a6b;
  --teal-500: #2a8a89;
  --amber-500: #e8a33d;
  --amber-400: #f0b95f;
  --amber-300: #f7d49a;

  --ink: #16211f;
  --ink-soft: #40514e;
  --ink-faint: #6b7d79;
  --paper: #fbf9f4;
  --paper-2: #f3efe6;
  --card: #ffffff;
  --line: #e7e1d5;
  --line-strong: #d8d0be;

  --ok: #2f9e6b;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 47, 48, .06), 0 2px 8px rgba(11, 47, 48, .05);
  --shadow-md: 0 8px 28px rgba(11, 47, 48, .10);
  --shadow-lg: 0 24px 60px rgba(11, 47, 48, .16);

  --font-body: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Ubuntu", "Work Sans", system-ui, Segoe UI, sans-serif;
  --font-title: "Zilla Slab", "Rockwell", Georgia, serif;

  --maxw: 1140px;
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--teal-800); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ----- buttons ----- */
.btn {
  --btn-pad-y: 11px; --btn-pad-x: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--teal-800); color: #fff; box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--teal-700); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink-faint); }
.btn--lg { --btn-pad-y: 14px; --btn-pad-x: 26px; font-size: 1rem; }

/* ----- shared section bits ----- */
.section { padding: 92px 0; }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 14px;
}
.section__title { font-family: var(--font-title); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--teal-900); letter-spacing: -0.01em; }
.section__lede { color: var(--ink-soft); font-size: 1.12rem; margin-top: 18px; max-width: 62ch; }
.section__lede.center { margin-inline: auto; }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head .eyebrow { text-align: center; }

.chip {
  display: inline-flex; align-items: center; font-size: .72rem; font-weight: 600;
  letter-spacing: .02em; padding: 4px 10px; border-radius: 999px;
  background: var(--teal-800); color: #fff;
}
.chip--soft { background: var(--amber-300); color: var(--teal-900); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 244, .82);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; color: var(--teal-900); letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 26px; margin-left: 12px; margin-right: auto; }
.nav__links a { font-size: .94rem; font-weight: 500; color: var(--ink-soft); position: relative; }
.nav__links a:hover { color: var(--teal-800); }
.nav__actions { display: flex; gap: 10px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: 72px 0 60px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: 0;
  background:
    radial-gradient(600px 340px at 22% 20%, rgba(232, 163, 61, .22), transparent 70%),
    radial-gradient(680px 420px at 82% 8%, rgba(42, 138, 137, .20), transparent 68%);
  filter: blur(4px);
}
.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 880px; }
.hero .eyebrow { display: inline-block; }
.hero__title { font-family: var(--font-title); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.4rem); color: var(--teal-900); letter-spacing: -0.01em; }
.hero__title-line { display: block; white-space: nowrap; }
.hero__title-accent { color: var(--teal-600); }
.hero__lede { margin: 24px auto 0; max-width: 60ch; font-size: 1.2rem; color: var(--ink-soft); }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero__note { margin-top: 22px; font-size: .95rem; color: var(--ink-faint); }
.hero__note strong { color: var(--teal-700); }

/* dashboard preview */
.hero__panel {
  position: relative; z-index: 1; margin-top: 56px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.panel__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background: #f2705f; } .dot--y { background: #f2c14e; } .dot--g { background: #55b884; }
.panel__url { margin-left: 10px; font-size: .82rem; color: var(--ink-faint); }
.panel__body { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; padding: 22px; }
.panel__col { display: grid; gap: 14px; }
.mini-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; text-align: left; }
.mini-card__label { display: block; font-size: .78rem; color: var(--ink-faint); }
.mini-card__value { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--teal-800); margin-top: 4px; }
.mini-card__trend { display: block; font-size: .78rem; color: var(--ink-faint); margin-top: 2px; }
.mini-card__trend.up { color: var(--ok); }
.panel__main { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; text-align: left; }
.panel__main-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--teal-900); margin-bottom: 12px; }
.pipeline { display: grid; gap: 8px; }
.pipeline li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 9px; font-size: .88rem; }
.pipeline__name { font-weight: 500; }
.pipeline__stage { font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.stage--won { background: #e2f3ea; color: #1f7a52; }
.stage--live { background: #e9eef7; color: #38558c; }
.stage--new { background: var(--amber-300); color: var(--teal-900); }
.panel__report { margin-top: 14px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 10px; background: #fffdf8; }
.panel__report p { margin-top: 8px; font-size: .9rem; color: var(--ink-soft); }

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.trustbar { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.trustbar__label { text-align: center; color: var(--ink-faint); font-size: .9rem; margin-bottom: 22px; }
.trustbar__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trustbar__stats div { text-align: center; }
.trustbar__stats strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--teal-800); }
.trustbar__stats span { font-size: .88rem; color: var(--ink-faint); }

/* ==========================================================================
   PROBLEM
   ========================================================================== */
.problem__list { margin-top: 28px; display: grid; gap: 12px; }
.problem__list li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: 1.02rem; }
.problem__list li::before {
  content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--amber-500); transform: rotate(45deg);
}

/* ==========================================================================
   FEATURES
   ========================================================================== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.feature--accent { border-color: var(--teal-500); box-shadow: 0 12px 34px rgba(26, 106, 107, .16); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--teal-700), var(--teal-500)); color: #fff; margin-bottom: 18px;
}
.feature--accent .feature__icon { background: linear-gradient(150deg, var(--amber-500), var(--amber-400)); color: var(--teal-900); }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--teal-900); margin-bottom: 10px; }
.feature > p { color: var(--ink-soft); font-size: .98rem; }
.feature__points { margin-top: 16px; display: grid; gap: 9px; }
.feature__points li { position: relative; padding-left: 26px; font-size: .9rem; color: var(--ink-soft); }
.feature__points li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}

/* ==========================================================================
   CAPABILITIES
   ========================================================================== */
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cap:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.cap__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cap__icon {
  flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--teal-700), var(--teal-500)); color: #fff;
}
.cap__icon svg { width: 21px; height: 21px; }
.cap h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--teal-900); }
.cap > p { color: var(--ink-soft); font-size: .93rem; }
.cap__points { margin-top: 14px; display: grid; gap: 8px; }
.cap__points li { position: relative; padding-left: 22px; font-size: .87rem; color: var(--ink-soft); }
.cap__points li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.cap__ai {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong);
  display: flex; gap: 9px; align-items: flex-start; font-size: .87rem; color: var(--ink-soft);
}
.cap-tag {
  flex: none; font-size: .64rem; font-weight: 700; letter-spacing: .06em; margin-top: 1px;
  text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--amber-300); color: var(--teal-900);
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how { background: var(--teal-900); color: #eaf1ef; }
.how .eyebrow { color: var(--amber-400); }
.how .section__title { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 26px 22px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.step__num { font-family: var(--font-display); font-size: 2rem; color: var(--amber-400); display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.12rem; color: #fff; margin-bottom: 8px; }
.step p { font-size: .92rem; color: #b9cbc7; }

/* ==========================================================================
   IMPACT
   ========================================================================== */
.impact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.impact__points { margin-top: 26px; display: grid; gap: 16px; }
.impact__points div { padding-left: 20px; border-left: 3px solid var(--amber-400); color: var(--ink-soft); font-size: 1rem; }
.impact__points strong { color: var(--teal-900); }
.impact__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); }
.impact__card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--teal-900); margin-bottom: 18px; }
.report-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.report-line span:first-child { color: var(--ink-soft); }
.report-line span:last-child { font-weight: 600; color: var(--teal-900); }
.report-line .ok { color: var(--ok); }
.report-bar { height: 8px; background: var(--paper-2); border-radius: 999px; margin: 10px 0 4px; overflow: hidden; }
.report-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-600), var(--teal-500)); }
.report-story { margin-top: 18px; padding: 16px; background: #fffdf8; border: 1px dashed var(--line-strong); border-radius: 12px; }
.report-story p { margin-top: 8px; font-size: .92rem; color: var(--ink-soft); }
.report-story em { color: var(--ink-faint); font-style: normal; display: block; margin-top: 6px; font-size: .82rem; }

/* ==========================================================================
   SECURITY
   ========================================================================== */
.security__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-card { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.trust-card h3 { font-size: 1.08rem; color: var(--teal-900); margin-bottom: 8px; }
.trust-card p { font-size: .92rem; color: var(--ink-soft); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { padding-bottom: 110px; }
.cta__card {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--teal-800), var(--teal-900));
  color: #eaf1ef; border-radius: var(--radius-lg); padding: 56px clamp(24px, 5vw, 64px);
  text-align: center; box-shadow: var(--shadow-lg);
}
.cta__glow { position: absolute; inset: auto -10% -60% 40%; height: 420px; background: radial-gradient(closest-side, rgba(232,163,61,.35), transparent); z-index: 0; }
.cta__card > * { position: relative; z-index: 1; }
.cta__card h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.8rem); color: #fff; }
.cta__card > p { max-width: 60ch; margin: 18px auto 0; color: #c4d5d1; font-size: 1.08rem; }
.cta__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 620px; margin: 32px auto 0; text-align: left; }
.field { display: grid; gap: 6px; }
.field:nth-child(3) { grid-column: 1 / -1; }
.cta__form label { font-size: .82rem; font-weight: 600; color: #bcd0cc; }
.cta__form input {
  padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #fff; font-size: .96rem; font-family: inherit;
}
.cta__form input::placeholder { color: #7f9995; }
.cta__form input:focus { outline: 2px solid var(--amber-400); outline-offset: 1px; border-color: transparent; }
.cta__form .btn { grid-column: 1 / -1; }
.cta__form-note { grid-column: 1 / -1; font-size: .9rem; min-height: 1.2em; color: var(--amber-300); text-align: center; }
.cta__alt { margin-top: 20px; font-size: .92rem; color: #a9bfbb; }
.cta__alt a { color: var(--amber-300); font-weight: 600; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--teal-900); color: #b9cbc7; padding: 60px 0 34px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand__name { color: #fff; }
.footer__brand p { margin-top: 14px; max-width: 34ch; font-size: .92rem; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__heading { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #7f9995; margin-bottom: 4px; }
.footer__col a { font-size: .92rem; color: #b9cbc7; }
.footer__col a:hover { color: #fff; }
.footer__base { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: .85rem; color: #7f9995; }
.footer__legal a:hover { color: #fff; }

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 940px) {
  .features, .steps, .security__grid, .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .impact__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px; box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__actions { display: flex; position: absolute; top: 100%; right: 24px; }
  .panel__body { grid-template-columns: 1fr; }
  .trustbar__stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .section { padding: 68px 0; }
}
@media (max-width: 520px) {
  .features, .steps, .security__grid, .caps-grid { grid-template-columns: 1fr; }
  .hero__title-line { white-space: normal; }
  .cta__form { grid-template-columns: 1fr; }
  .field:nth-child(3) { grid-column: auto; }
  .footer__base { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
