/* TrackTask Marketing Website — style.css
   Brand palette derived from the TrackTask logo.
   Edit the tokens below to re-theme the whole site. */

:root {
  --tt-violet: #6c4cf1;
  --tt-blue: #2e9bf0;
  --tt-magenta: #e5109c;
  --tt-orange: #f7941d;
  --tt-green: #2fbf71;

  --brand: var(--tt-violet);
  --brand-dark: #4b31c9;
  --brand-soft: #f0ecff;

  --ink: #101827;
  --ink-2: #2c3648;
  --muted: #5b6577;
  --line: #e6e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-deep: #0d1020;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 39, .06), 0 4px 14px rgba(16, 24, 39, .05);
  --shadow: 0 10px 30px rgba(16, 24, 39, .09);
  --shadow-lg: 0 30px 70px rgba(16, 24, 39, .16);
  --gradient: linear-gradient(100deg, var(--tt-magenta), var(--tt-orange) 32%, var(--tt-green) 62%, var(--tt-blue) 86%, var(--tt-violet));
  --container: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--tt-blue); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .8rem;
}
.center { text-align: center; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: #fff; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep p { color: #b9c0d4; }
.section-head { max-width: 720px; margin: 0 auto 44px; }
.section-head.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.35rem; border-radius: 12px; font-weight: 650; font-size: .97rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(108, 76, 241, .28); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--brand); transform: translateY(-2px); }
.btn--outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.03rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.brand span { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .5rem .7rem; border-radius: 10px; color: var(--ink-2);
  font-weight: 550; font-size: .95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 11px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-cta { display: none; }
  .site-header.is-open .nav-links,
  .site-header.is-open .nav-cta {
    display: flex; flex-direction: column; align-items: stretch; width: 100%;
    gap: 6px; padding: 8px 0 18px;
  }
  .site-header.is-open .nav { flex-wrap: wrap; height: auto; padding-bottom: 8px; }
  .site-header.is-open .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 70px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -220px -10% auto; height: 620px; z-index: -1;
  background: radial-gradient(60% 60% at 20% 30%, rgba(108, 76, 241, .16), transparent 70%),
              radial-gradient(50% 50% at 80% 20%, rgba(46, 155, 240, .16), transparent 70%),
              radial-gradient(40% 40% at 60% 70%, rgba(229, 16, 156, .10), transparent 70%);
  filter: blur(6px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 34rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.4rem; font-size: .88rem; color: var(--muted); }
.hero-meta strong { color: var(--ink); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Product UI mockups ---------- */
.ui {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: .8rem;
}
.ui-top { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: #fbfbfe; }
.ui-top .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ui-title { font-weight: 700; color: var(--ink); font-size: .85rem; }
.ui-body { display: grid; grid-template-columns: 148px 1fr; }
.ui-side { border-right: 1px solid var(--line); padding: .9rem .7rem; background: #fcfcff; }
.ui-side b { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: .4rem .4rem .5rem; }
.ui-side a, .ui-side div.item { display: block; padding: .38rem .5rem; border-radius: 8px; color: var(--ink-2); font-weight: 550; }
.ui-side .item.active { background: var(--brand-soft); color: var(--brand); }
.ui-main { padding: 1rem; display: grid; gap: .8rem; }
.ui-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.ui-stat { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .7rem; background: #fff; }
.ui-stat small { color: var(--muted); font-size: .7rem; display: block; }
.ui-stat b { font-size: 1.15rem; }
.ui-row { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.ui-row + .ui-row { margin-top: .4rem; }
.badge { display: inline-block; padding: .16rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 700; }
.badge--todo { background: #eef1f7; color: #59627a; }
.badge--progress { background: #e6f2fe; color: #1873c4; }
.badge--review { background: #fff1e0; color: #b96b06; }
.badge--approved { background: #e4f7ee; color: #17804c; }
.badge--overdue { background: #ffe8f3; color: #b40a75; }
.avatars { display: flex; }
.avatars i {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px;
  font-style: normal; font-size: .62rem; font-weight: 700; color: #fff; display: grid; place-items: center;
}
.avatars i:first-child { margin-left: 0; }
.bar { height: 7px; border-radius: 99px; background: #eef0f6; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--gradient); }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 108px; padding-top: .4rem; }
.chart span { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--tt-violet), var(--tt-blue)); opacity: .85; }
.donut {
  width: 104px; height: 104px; border-radius: 50%;
  background: conic-gradient(var(--tt-green) 0 42%, var(--tt-blue) 42% 68%, var(--tt-orange) 68% 86%, var(--tt-magenta) 86% 100%);
  position: relative; margin: 0 auto;
}
.donut::after { content: ""; position: absolute; inset: 20px; background: #fff; border-radius: 50%; }
.ui-pane { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; background: #fff; }
.ui-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.kanban .col { background: #f7f8fc; border-radius: 12px; padding: .55rem; }
.kanban .col h5 { margin: .1rem .2rem .5rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kanban .card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .6rem; margin-bottom: .45rem; box-shadow: var(--shadow-sm); }
.kanban .card b { display: block; font-size: .78rem; margin-bottom: .3rem; }
@media (max-width: 620px) {
  .ui-body { grid-template-columns: 1fr; }
  .ui-side { display: none; }
  .ui-cards { grid-template-columns: 1fr 1fr; }
  .kanban { grid-template-columns: 1fr; }
}

/* ---------- Value strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 26px 0; }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 0; padding: 0; }
.strip li { font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: .5rem; }
.strip li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.strip li:nth-child(2)::before { background: var(--tt-magenta); }
.strip li:nth-child(3)::before { background: var(--tt-orange); }
.strip li:nth-child(4)::before { background: var(--tt-green); }
.strip li:nth-child(5)::before { background: var(--tt-blue); }
.strip li:nth-child(6)::before { background: var(--tt-violet); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; 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); border-color: #d9dcea; }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; font-size: .95rem; }
.icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: .9rem; font-size: 1.1rem;
}
.icon--magenta { background: #fdeaf6; color: var(--tt-magenta); }
.icon--orange { background: #fef2e2; color: #c9760a; }
.icon--green { background: #e6f7ef; color: #17804c; }
.icon--blue { background: #e8f3fe; color: #1873c4; }
.icon svg { width: 20px; height: 20px; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split + .split { margin-top: 80px; }
.split--rev .split-text { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split--rev .split-text { order: 0; }
}
.checklist { list-style: none; margin: 1.1rem 0 1.4rem; padding: 0; display: grid; gap: .5rem; }
.checklist li { position: relative; padding-left: 1.7rem; color: var(--ink-2); font-size: .96rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--tt-green); color: #fff; font-size: .72rem; display: grid; place-items: center; font-weight: 800;
}

/* ---------- Lifecycle ---------- */
.lifecycle { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.lifecycle .step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px;
  text-align: center; position: relative;
}
.lifecycle .step b { display: block; font-size: .95rem; }
.lifecycle .step small { color: var(--muted); font-size: .8rem; }
.lifecycle .step i {
  font-style: normal; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto .6rem;
  border-radius: 10px; background: var(--gradient); color: #fff; font-weight: 800; font-size: .82rem;
}
@media (max-width: 900px) { .lifecycle { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; gap: 18px; }
.steps .step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps .step b { font-size: 1.5rem; color: var(--brand); font-variant-numeric: tabular-nums; }

/* ---------- Packages ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%; }
.plan--featured { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.plan--featured::after {
  content: "Most popular"; position: absolute; top: -12px; right: 22px; background: var(--brand); color: #fff;
  font-size: .7rem; font-weight: 750; padding: .25rem .7rem; border-radius: 999px; letter-spacing: .04em;
}
.plan .package-fit { min-height: 2.8rem; margin-top: .35rem; color: var(--brand); font-weight: 750; font-size: .92rem; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .5rem; }
.plan li { padding-left: 1.6rem; position: relative; font-size: .93rem; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--tt-green); font-weight: 800; }
.plan .btn { width: 100%; margin-top: auto; }
.package-note { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 18px; }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.quote p { color: var(--ink-2); font-size: 1rem; }
.quote footer { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; }
.quote footer i {
  font-style: normal; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 800; background: var(--brand);
}
.quote footer b { display: block; font-size: .9rem; }
.quote footer small { color: var(--muted); font-size: .8rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; }
.faq summary {
  cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 14px; font-size: .95rem; }

/* ---------- Final CTA ---------- */
.cta-final { background: linear-gradient(120deg, #1b1442, #26196b 45%, #123a63); color: #fff; border-radius: 26px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: auto -10% -60% ; height: 320px; background: var(--gradient); filter: blur(90px); opacity: .35; }
.cta-final h2, .cta-final p { position: relative; color: #fff; }
.cta-final p { color: #cfd5ea; max-width: 34rem; margin: 0 auto 1.6rem; }
.cta-final .btn-row { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: #aeb6cd; padding: 62px 0 28px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer a { color: #aeb6cd; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-brand img { height: 54px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; }
.footer-brand p { color: #8f98b2; font-size: .92rem; max-width: 24rem; margin-top: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.field { display: grid; gap: .35rem; }
.field label { font-size: .88rem; font-weight: 650; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .95rem; padding: .75rem .85rem; border: 1px solid var(--line);
  border-radius: 11px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(108, 76, 241, .15); }
.form-note { font-size: .82rem; color: var(--muted); }
.alert { padding: .85rem 1rem; border-radius: 11px; font-size: .92rem; margin-bottom: 1rem; }
.alert--ok { background: #e4f7ee; color: #14663f; }
.alert--err { background: #ffe9ef; color: #a11440; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Page hero ---------- */
.page-hero { padding: 64px 0 40px; background: linear-gradient(180deg, #f7f6ff, #fff); border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 46rem; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.mobile-cta .btn { width: 100%; }
@media (max-width: 720px) { .mobile-cta { display: block; } body { padding-bottom: 74px; } }

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

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