:root {
  color-scheme: light;
  --ink: #111b17;
  --muted: #66736d;
  --green: #2fb34a;
  --green-dark: #176b31;
  --line: #e2e8e4;
  --soft: #f6f8f7;
  font-family: Inter, Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; background: #fff; }
body { color: var(--ink); }
.ambient, .hero-seal { display: none; }
.page-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.site-header { display: flex; min-height: 98px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 18px; color: inherit; text-decoration: none; }
.logo-frame { display: block; width: 184px; height: 52px; }
.logo-frame img { width: 100%; height: 100%; object-fit: contain; }
.portal-name { display: flex; gap: 5px; padding-left: 18px; border-left: 1px solid var(--line); font-size: .78rem; letter-spacing: .14em; }
.portal-name strong { font-weight: 850; }
.portal-name span { color: var(--green-dark); font-weight: 750; }
.header-meta { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }

main { padding: 76px 0 68px; }
.hero { display: block; min-height: auto; }
.hero-copy { max-width: 760px; }
.eyebrow, .section-kicker { margin: 0; color: var(--green-dark); font-size: .7rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { display: inline-block; margin-right: 10px; padding: 6px 8px; color: #fff; background: var(--green-dark); border-radius: 3px; letter-spacing: .1em; }
h1 { margin: 22px 0 0; font-size: clamp(3.2rem, 7vw, 6.1rem); font-weight: 720; letter-spacing: -.065em; line-height: .96; }
h1 em { color: var(--green-dark); font-style: normal; }
.hero-intro { max-width: 640px; margin: 24px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

.build-section { margin-top: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.section-heading > span { color: var(--muted); font: 700 .7rem/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.build-card { position: relative; display: flex; min-height: 350px; padding: 26px; overflow: hidden; flex-direction: column; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(21, 46, 35, .045); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.build-card:hover, .build-card:focus-visible { border-color: #9fcfac; outline: none; box-shadow: 0 18px 36px rgba(21, 46, 35, .1); transform: translateY(-4px); }
.build-card--crm { --accent: #327eb2; }
.build-card--inv { --accent: #a86620; }
.card-top { display: flex; align-items: center; justify-content: space-between; color: #8b9691; font: 700 .7rem/1 ui-monospace, monospace; letter-spacing: .1em; }
.card-arrow { display: grid; width: 34px; height: 34px; place-items: center; color: var(--ink); background: var(--soft); border-radius: 50%; font-size: 1rem; }
.build-card:hover .card-arrow { color: #fff; background: var(--accent, var(--green-dark)); }
.card-icon { display: grid; width: 54px; height: 54px; margin-top: 40px; place-items: center; color: var(--accent, var(--green-dark)); background: var(--soft); border-radius: 12px; }
.card-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.card-content { display: grid; gap: 8px; margin-top: 24px; }
.card-content small { color: var(--accent, var(--green-dark)); font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.card-content strong { font-size: 2.65rem; letter-spacing: -.05em; line-height: 1; }
.card-content > span { max-width: 290px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.card-action { margin-top: auto; padding-top: 21px; color: var(--ink); border-top: 1px solid var(--line); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.build-card--disabled { cursor: not-allowed; filter: grayscale(.8); opacity: .5; }
.build-card--disabled:hover { border-color: var(--line); box-shadow: 0 10px 30px rgba(21, 46, 35, .045); transform: none; }
.configuration-message { margin: 18px 0 0; padding: 14px 18px; color: #7b3617; background: #fff4ed; border: 1px solid #efcdbb; border-radius: 8px; }
footer { display: flex; min-height: 82px; align-items: center; justify-content: space-between; color: #84908a; border-top: 1px solid var(--line); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }

@media (max-width: 820px) {
  .page-shell { width: min(100% - 32px, 620px); }
  .site-header { min-height: 82px; }
  .logo-frame { width: 146px; height: 44px; }
  .portal-name { display: none; }
  main { padding: 52px 0; }
  h1 { font-size: clamp(2.9rem, 12vw, 4.8rem); }
  h1 br { display: block; }
  .build-section { margin-top: 0; }
  .build-grid { grid-template-columns: 1fr; }
  .build-card { min-height: 310px; }
  .card-icon { margin-top: 28px; }
}

@media (max-width: 480px) {
  .page-shell { width: calc(100% - 28px); }
  .logo-frame { width: 128px; height: 40px; }
  .header-meta { font-size: 0; }
  .live-dot { width: 8px; height: 8px; }
  main { padding-top: 42px; }
  .eyebrow { line-height: 2.2; }
  h1 { font-size: clamp(2.75rem, 13vw, 3.5rem); }
  .hero-intro { font-size: .96rem; }
  .section-heading > span { display: none; }
  .build-card { min-height: 295px; padding: 22px; }
  footer span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
