:root {
  --ink: #101916;
  --muted: #54625d;
  --soft: #e8e1d3;
  --paper: #f4efe4;
  --card: #fffaf0;
  --line: #c9bfae;
  --teal: #0d7d73;
  --teal-dark: #063f3b;
  --sun: #e0a739;
  --coral: #bd4f3a;
  --mint: #c9e1d8;
  --shadow: 0 24px 60px rgba(16, 25, 22, 0.2);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(16, 25, 22, 0.12);
  background: rgba(244, 239, 228, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(23, 33, 31, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(232, 225, 211, 0.76));
  box-shadow: 0 12px 30px rgba(23, 33, 31, 0.08);
}

.nav-links a,
.nav-product-group {
  min-height: 42px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 800;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-product-group {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 6px;
  align-items: stretch;
  padding: 4px 4px 4px 22px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: rgba(220, 239, 232, 0.58);
}

.nav-product-group::before {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 18px;
  height: 1px;
  background: rgba(15, 118, 110, 0.42);
  content: "";
  transform: translateY(-50%);
}

.nav-product-group a {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  line-height: 1.1;
}

.nav-product-group small {
  color: currentColor;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.64;
}

.nav-main-product {
  min-width: 118px;
  font-weight: 900;
}

.nav-sub-product {
  position: relative;
  min-width: 106px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(255, 250, 240, 0.74);
}

.nav-sub-product::before {
  position: absolute;
  top: 50%;
  left: -8px;
  width: 8px;
  height: 1px;
  background: rgba(15, 118, 110, 0.5);
  content: "";
  transform: translateY(-50%);
}

.nav-product-group .nav-sub-product {
  padding-left: 12px;
}

.nav-links a.is-active,
.nav-links a:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 17px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.22);
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}

.btn-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.86rem;
  line-height: 1;
}

.btn-secondary .btn-icon {
  background: var(--mint);
  color: var(--teal-dark);
}

.icon-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
}

.icon-button span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.hero,
.product-hero,
.firstday-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  min-height: 82svh;
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px) clamp(36px, 5vw, 64px);
}

.hero {
  background:
    linear-gradient(90deg, rgba(232, 225, 211, 0.95), rgba(244, 239, 228, 0.64)),
    url("assets/simple-crm-dashboard.svg") right 8vw center / min(44vw, 620px) no-repeat;
}

.hero-visual {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.55rem, 7vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero-text,
.product-copy p,
.modal-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.modal-copy a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: clamp(58px, 8vw, 100px) clamp(18px, 5vw, 72px);
}

.intro-band,
.split-section,
.closing-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.intro-grid,
.product-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.intro-grid article,
.product-card,
.feature-grid article,
.metric-panel,
.firstday-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 14px 32px rgba(16, 25, 22, 0.1);
}

.intro-grid article {
  padding: 22px;
}

.intro-grid p,
.product-card p,
.feature-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  min-height: 260px;
  padding: 28px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: var(--shadow);
}

.product-card-static:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 14px 32px rgba(16, 25, 22, 0.1);
}

.accent-card {
  background: #f4dfad;
}

.card-kicker {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-hero {
  background: linear-gradient(180deg, var(--mint), var(--paper));
}

.firstday-hero {
  background: linear-gradient(180deg, #ead39b, var(--paper));
}

.metric-panel {
  display: grid;
  gap: 0;
  padding: 8px;
}

.metric-panel div {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.metric-panel div:last-child {
  border-bottom: 0;
}

.metric-panel strong,
.metric-panel span {
  display: block;
}

.metric-panel span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.feature-grid article {
  min-height: 230px;
  padding: 24px;
}

.feature-grid.compact article {
  min-height: 190px;
}

.feature-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 18px 18px 18px 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  left: 18px;
  top: 23px;
  width: 12px;
  height: 7px;
  border-bottom: 3px solid var(--teal);
  border-left: 3px solid var(--teal);
  color: var(--teal);
  content: "";
  transform: rotate(-45deg);
}

.firstday-panel {
  padding: 28px;
}

.panel-label {
  color: var(--teal-dark);
  font-weight: 800;
}

.firstday-panel ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.firstday-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
  counter-increment: flow;
}

.firstday-panel li::before {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 99px;
  background: var(--sun);
  color: var(--ink);
  content: counter(flow);
  font-weight: 900;
}

.firstday-panel li span {
  flex: 1;
  color: var(--muted);
}

.firstday-panel li strong {
  color: var(--teal-dark);
}

.closing-cta {
  align-items: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.site-footer button {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(23, 33, 31, 0.54);
}

.modal-backdrop.is-open {
  display: flex;
}

.contact-modal {
  position: relative;
  width: min(100%, 620px);
  max-height: min(820px, calc(100svh - 36px));
  overflow-y: auto;
  border-radius: 8px;
  background: var(--paper);
  padding: clamp(24px, 5vw, 42px);
  box-shadow: var(--shadow);
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
}

.close-modal span:first-child {
  transform: rotate(45deg);
}

.close-modal span:last-child {
  transform: rotate(-45deg);
}

form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  padding: 13px 14px;
}

input:focus,
textarea:focus,
.btn:focus-visible,
.nav-links a:focus-visible,
.icon-button:focus-visible,
.site-footer button:focus-visible {
  outline: 3px solid rgba(242, 184, 75, 0.65);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 480ms ease,
    transform 480ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .nav-links {
    position: fixed;
    top: 82px;
    right: 14px;
    left: 14px;
    z-index: 40;
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-self: stretch;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(23, 33, 31, 0.14);
    background: rgba(244, 239, 228, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    justify-content: flex-start;
    min-height: 54px;
    padding: 14px 16px;
    background: rgba(232, 225, 211, 0.9);
    color: var(--ink);
    font-size: 1rem;
  }

  .nav-product-group {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 8px;
    padding: 12px;
    background: rgba(220, 239, 232, 0.56);
  }

  .nav-product-group::before {
    display: none;
  }

  .nav-product-group a {
    min-height: 58px;
    padding: 14px 16px;
  }

  .nav-sub-product {
    border-color: rgba(15, 118, 110, 0.24);
    background: var(--ink);
    color: var(--paper);
  }

  .nav-sub-product::before {
    display: none;
  }

  .nav-product-group .nav-sub-product {
    padding-left: 16px;
  }

  .nav-product-group small {
    font-size: 0.8rem;
    opacity: 0.78;
  }

  .hero,
  .product-hero,
  .firstday-hero,
  .intro-band,
  .split-section,
  .closing-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(232, 225, 211, 0.96), rgba(244, 239, 228, 0.82)),
      url("assets/simple-crm-dashboard.svg") center bottom 18px / min(74vw, 480px) no-repeat;
    padding-bottom: 198px;
  }

  .hero-visual {
    display: none;
  }

  .intro-grid,
  .feature-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero,
  .product-hero,
  .firstday-hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(232, 225, 211, 0.96), rgba(244, 239, 228, 0.82)),
      url("assets/simple-crm-dashboard.svg") center bottom 14px / min(62vw, 400px) no-repeat;
    padding-bottom: 42px;
  }

  h1 {
    font-size: clamp(2.1rem, 12vw, 3.05rem);
  }

  .btn {
    width: 100%;
  }

  .firstday-panel li {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
