:root {
  --ink: #101312;
  --muted: #6e746f;
  --paper: #f4f0e8;
  --surface: #fffdf8;
  --line: rgba(16, 19, 18, 0.13);
  --charcoal: #111615;
  --charcoal-2: #1b211f;
  --sage: #b7c6b8;
  --moss: #50675a;
  --clay: #b17450;
  --stone: #e4ded3;
  --danger: #9f2d2d;
  --ok: #2f6f4e;
  --shadow: 0 28px 80px rgba(16, 19, 18, 0.14);
  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; color: var(--ink); background: var(--paper); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 40; padding: 10px 14px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(244, 240, 232, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.brand, .site-header nav, .header-actions, .hero-actions, .addons, .app-topbar, .row-actions, .chips, .support-filters {
  display: flex;
  align-items: center;
}

.brand { gap: 11px; font-weight: 900; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: var(--ink); border-radius: 8px; font-size: 0.88rem; }
.site-header nav { justify-content: center; gap: 26px; font-size: 0.88rem; font-weight: 760; }
.site-header nav a, .site-footer a { text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { color: var(--clay); }
.header-actions, .hero-actions, .row-actions, .chips { gap: 10px; flex-wrap: wrap; }

.button, .ghost-button, .app-sidebar button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button { color: #fff; background: var(--ink); }
.button.secondary, .ghost-button { color: var(--ink); background: transparent; }
.button.small { min-height: 38px; padding: 9px 13px; }
.button.danger { background: var(--danger); border-color: var(--danger); }
.button.ok { background: var(--ok); border-color: var(--ok); }
.full { width: 100%; }
.intake-extras { border: 1px solid #d7dbe0; border-radius: 10px; padding: 12px 14px; margin: 4px 0; }
.intake-extras legend { font-weight: 600; padding: 0 6px; }
.intake-extras .check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 6px 0; }
.intake-extras .check input { width: auto; }
.addons-intro { margin: 14px 0 6px; opacity: .85; }
.checklist { list-style: none; padding: 0; margin: 8px 0; }
.checklist li { margin: 6px 0; }
.checklist label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cms-block { border: 1px solid #d7dbe0; border-radius: 10px; padding: 12px; margin: 10px 0; }
.cms-block .cms-fields { display: grid; gap: 8px; margin: 8px 0; }
.cms-block input, .cms-block textarea { width: 100%; padding: 9px; border: 1px solid #d7dbe0; border-radius: 8px; }
.button:hover, .ghost-button:hover, .app-sidebar button:hover { transform: translateY(-1px); }

.hero {
  position: relative;
  min-height: min(820px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(420px, 0.9fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: center;
  overflow: hidden;
  padding: clamp(64px, 9vw, 118px) clamp(18px, 6vw, 88px);
  color: #f7f2e9;
  background:
    linear-gradient(115deg, rgba(12, 16, 16, 0.98), rgba(17, 22, 21, 0.9) 44%, rgba(36, 46, 48, 0.8)),
    radial-gradient(circle at 78% 18%, rgba(125, 174, 190, 0.25), transparent 34rem),
    radial-gradient(circle at 58% 72%, rgba(177, 116, 80, 0.18), transparent 28rem),
    var(--charcoal);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8vw -18vw 38vw;
  height: 44vw;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 560px;
}

.device-frame {
  position: absolute;
  inset: 4% 0 auto auto;
  width: min(620px, 100%);
  min-height: 470px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.055)),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  box-shadow: 0 40px 120px rgba(0,0,0,.34);
  backdrop-filter: blur(14px);
}

.device-nav { display: flex; gap: 7px; margin-bottom: 18px; }
.device-nav span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); }
.device-hero {
  display: grid;
  align-content: end;
  gap: 8px;
  height: 190px;
  padding: 22px;
  margin-bottom: 16px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244,240,232,.9), rgba(183,198,184,.68)),
    linear-gradient(90deg, var(--clay), #4f7582);
}
.device-hero span,
.device-grid small {
  color: rgba(16, 19, 18, .62);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.device-hero strong {
  max-width: 360px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: .98;
}
.device-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.device-grid span {
  height: 96px;
  display: grid;
  align-content: space-between;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.14);
}
.device-grid small { color: rgba(255,255,255,.58); }
.device-grid strong { color: #fff; font-size: 1.35rem; }
.code-strip {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding: 16px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
}
.code-strip i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.74), rgba(255,255,255,.14));
}
.code-strip i:nth-child(1) { width: 82%; }
.code-strip i:nth-child(2) { width: 56%; }
.code-strip i:nth-child(3) { width: 72%; }
.code-strip i:nth-child(4) { width: 38%; }

.floating-card {
  position: absolute;
  display: grid;
  gap: 7px;
  width: 210px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255,253,248,.92);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.floating-card span { color: var(--muted); font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.floating-card strong { font-size: 1.05rem; }
.card-one { left: 0; top: 58px; }
.card-two { right: 24px; bottom: 58px; }

.eyebrow, .package-label {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; letter-spacing: 0; }
h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 6vw, 6.8rem);
  line-height: 0.95;
  font-weight: 900;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(2.05rem, 4vw, 4.55rem);
  line-height: 1;
  font-weight: 880;
}
h3 { margin-bottom: 12px; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.15; }
.hero-content p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(247,242,233,.74);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.68;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 26px;
}
.hero-tags span {
  padding: 8px 11px;
  color: rgba(247,242,233,.84);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 760;
}
.section p, .site-footer p { color: var(--muted); font-size: 1.02rem; line-height: 1.72; }
.hero .button.secondary { color: #fff; border-color: rgba(255,255,255,.38); }

.metrics, .section, .site-footer { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  transform: translateY(-38px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.metrics article { min-height: 126px; display: grid; gap: 6px; align-content: center; padding: 24px; background: var(--surface); }
.metrics strong { font-size: 1.85rem; }
.metrics span { color: var(--muted); font-weight: 700; }

.section { padding: clamp(64px, 9vw, 118px) 0; }
.section-heading { max-width: 820px; margin-bottom: 34px; }
.section-heading.centered { max-width: 920px; margin-inline: auto; text-align: center; }
.intro-section { padding-top: clamp(44px, 6vw, 74px); }

.service-grid, .pricing-grid, .timeline, .security-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pricing-grid, .timeline, .security-list { grid-template-columns: repeat(3, 1fr); }

.service-grid article, .price-card, .timeline article, .security-list article, details, .intake-shell, .login-card, .panel-card, .data-table, .client-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-grid article {
  min-height: 250px;
  padding: 24px;
}
.service-grid span, .timeline span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 44px;
  color: #fff;
  background: var(--moss);
  border-radius: 8px;
  font-weight: 900;
}

.dark {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .58fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  padding-inline: max(18px, calc((100vw - 1180px) / 2));
  color: #f7f2e9;
  background: var(--charcoal);
}
.band-panel {
  padding: 30px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
}
.band-panel p { color: rgba(247,242,233,.74); margin: 0; }

.price-card { display: grid; gap: 20px; padding: 28px; }
.price-card.featured { color: #fff; background: var(--charcoal); transform: translateY(-12px); }
.price-card.featured .button { color: var(--ink); background: var(--surface); }
.price-card ul { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.price-card li { position: relative; padding-left: 22px; color: var(--muted); line-height: 1.5; font-weight: 680; }
.price-card.featured li { color: rgba(255,255,255,.72); }
.price-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--clay); border-radius: 50%; }
.price { margin: 0; font-size: 3rem; font-weight: 900; }
.price span { display: block; color: var(--muted); font-size: 0.9rem; }
.addons { flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.addons span, .chip { padding: 9px 11px; color: var(--ink); background: var(--stone); border-radius: 8px; font-size: 0.9rem; font-weight: 800; }
.chip.warn { background: #f0d9ca; }
.chip.danger { color: #fff; background: var(--danger); }
.chip.ok { color: #fff; background: var(--ok); }

.timeline article { min-height: 234px; padding: 22px; }
.security-list article { padding: 24px; }
.security-list strong { font-size: 1.05rem; }
.security-list span { display: block; margin-top: 8px; color: var(--muted); line-height: 1.58; }

.intake-shell {
  display: grid;
  grid-template-columns: .78fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(24px, 5vw, 52px);
  box-shadow: var(--shadow);
}
.intake-form, .form-grid, form, .panel-grid, .stack { display: grid; gap: 14px; }
.form-grid { grid-template-columns: repeat(2, 1fr); }
label { display: grid; gap: 8px; font-size: 0.92rem; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--clay); box-shadow: 0 0 0 4px rgba(177, 116, 80, 0.14); }
.form-note { margin: 0; color: var(--muted); font-size: 0.92rem; }
.faq { display: grid; gap: 12px; }
details { padding: 18px 20px; }
summary { cursor: pointer; font-weight: 850; }
details p { max-width: 850px; margin: 12px 0 0; }

.app-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--paper);
}
.app-shell.logged-out {
  grid-template-columns: 1fr;
}
.app-shell.logged-out .app-sidebar,
.app-shell.logged-out .app-topbar {
  display: none;
}
.app-shell.logged-out .app-main {
  display: grid;
  place-items: start center;
  padding-top: clamp(42px, 10vh, 110px);
}
.app-sidebar { display: grid; align-content: start; gap: 10px; padding: 18px; color: #fff; background: var(--charcoal); overflow-y: auto; }
.app-sidebar .brand { margin-bottom: 18px; }
.app-sidebar .brand-mark { background: #fff; color: var(--ink); }
.app-sidebar button { justify-content: flex-start; width: 100%; color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); }
.app-sidebar button.active { color: var(--ink); background: var(--surface); }
.ghost-button.active-filter { color: #fff; background: var(--moss); border-color: var(--moss); }
.app-main { overflow-y: auto; padding: 24px; }
.app-topbar { justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.app-topbar h2 { margin-bottom: 0; font-size: clamp(1.8rem, 4vw, 3.4rem); }
.login-card { max-width: 440px; display: grid; gap: 14px; padding: 24px; box-shadow: var(--shadow); }
.panel-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.panel-card { padding: 18px; }
.panel-card strong { display: block; font-size: 2rem; }
.panel-card span { color: var(--muted); font-weight: 750; }
.data-table { width: 100%; overflow: hidden; border-collapse: collapse; }
.data-table th, .data-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.data-table tr:last-child td { border-bottom: 0; }
.workspace { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start; }
.support-workspace { grid-template-columns: minmax(0, 1.35fr) minmax(360px, .75fr); }
.support-filters { gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.support-ingest { margin-bottom: 14px; }
.analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.analysis-grid p { margin: 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.detail-panel, .editor-panel { display: grid; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.log-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.log-list li { padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.muted { color: var(--muted); }
.bar-track { width: 120px; height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--moss, #6b8f71); border-radius: 6px; }
label.inline { display: flex; align-items: center; gap: 8px; flex-direction: row; }
label.inline input { width: auto; }
.ghost-button.full, .button.full { width: 100%; }
.codebox { white-space: pre-wrap; min-height: 160px; padding: 14px; background: #111; color: #f8f8f2; border-radius: 8px; overflow-x: auto; }
.codebox.light { min-height: 120px; color: var(--ink); background: #fff; border: 1px solid var(--line); }
.client-card { display: grid; gap: 12px; padding: 18px; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 80; max-width: 420px; padding: 14px 16px; color: #fff; background: var(--ink); border-radius: 8px; box-shadow: var(--shadow); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 36px 0; border-top: 1px solid var(--line); }
.site-footer p { margin: 8px 0 0; }
body.edit-mode [data-editable] { outline: 2px dashed rgba(177,116,80,.8); outline-offset: 4px; cursor: text; }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { grid-column: 1 / -1; justify-content: start; overflow-x: auto; padding-bottom: 3px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 430px; order: -1; }
  .device-frame { inset: 0 auto auto 0; width: min(620px, 100%); }
  .metrics, .service-grid, .pricing-grid, .timeline, .security-list, .intake-shell, .workspace, .dark { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .panel-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 740px) {
  .site-header { padding-inline: 14px; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.15rem; }
  .hero { padding-top: 42px; }
  .hero-visual { min-height: 320px; }
  .device-frame { min-height: 290px; }
  .device-hero { height: 110px; }
  .device-grid span { height: 58px; }
  .floating-card { display: none; }
  .metrics, .form-grid, .panel-grid { grid-template-columns: 1fr; }
  .metrics { transform: none; margin-top: 16px; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { grid-auto-flow: column; overflow-x: auto; }
  .app-sidebar .brand { display: none; }
  .app-main { padding: 16px; }
  .data-table { display: block; overflow-x: auto; }
  .site-footer { display: grid; }
}
