:root {
  --ink: #213343;
  --muted: #516f7d;
  --line: #d9e5ea;
  --panel: #ffffff;
  --soft: #f6f9fc;
  --cream: #fff4e5;
  --peach: #ffebe6;
  --teal: #00a4bd;
  --green: #00bda5;
  --blue: #2e75b6;
  --amber: #f5a623;
  --coral: #ff5c35;
  --shadow: 0 20px 52px rgba(33, 51, 67, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(33, 51, 67, 0.12);
  background: rgba(255, 250, 244, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(33, 51, 67, 0.16);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  color: #3d4b5c;
  font-size: 14px;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--coral);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--coral);
  border-radius: 7px;
  color: #fff;
  background: var(--coral);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 92, 53, 0.24);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: 82svh;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 76px) 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 92, 53, 0.12), transparent 28%),
    linear-gradient(180deg, var(--cream) 0%, #fffaf4 72%, #ffffff 100%);
}

.hero-photo {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: calc(100svh - 71px);
  padding: clamp(72px, 9vw, 120px) clamp(18px, 5vw, 76px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20, 24, 28, 0.76), rgba(20, 24, 28, 0.42) 44%, rgba(20, 24, 28, 0.66)),
    linear-gradient(180deg, rgba(20, 24, 28, 0.28), rgba(20, 24, 28, 0.78)),
    url("./assets/hero-ai-business-impact.png") center / cover no-repeat;
  text-align: center;
}

.hero-photo::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 92, 53, 0.16), transparent 32%);
  content: "";
}

.hero::after {
  position: absolute;
  right: -8vw;
  bottom: -18vw;
  width: min(520px, 52vw);
  height: min(520px, 52vw);
  border-radius: 999px;
  background: rgba(0, 164, 189, 0.1);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-photo .hero-copy {
  max-width: 900px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 740px;
  font-size: clamp(42px, 5.6vw, 74px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-photo h1 {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  color: #fff;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.04;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #415064;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.78;
}

.hero-photo .hero-lead {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.65;
}

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

.hero-photo .hero-actions,
.hero-photo .proof-row {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 13px 19px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(26, 42, 62, 0.12);
}

.button.primary {
  border-color: var(--coral);
  color: #fff;
  background: var(--coral);
  box-shadow: 0 12px 28px rgba(255, 92, 53, 0.2);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
}

.hero-photo .button.secondary {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.button.light {
  border-color: #fff;
  color: var(--ink);
  background: #fff;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.proof-row span {
  padding: 10px 13px;
  border: 1px solid rgba(33, 51, 67, 0.14);
  border-radius: 7px;
  color: #3f4d5e;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.stats-row span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.stats-row strong {
  color: var(--coral);
  font-size: 22px;
}

.hero-photo .proof-row span {
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-photo .stats-row strong {
  color: #ffb199;
}

.hero-media {
  position: relative;
  z-index: 1;
}

.hero-media::before {
  position: absolute;
  inset: 9% -7% -8% 10%;
  z-index: -1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 92, 53, 0.2), transparent 38%),
    radial-gradient(circle at 80% 70%, rgba(0, 164, 189, 0.18), transparent 35%);
  content: "";
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(33, 51, 67, 0.12);
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.intro-strip {
  padding: 0 clamp(18px, 5vw, 76px) 34px;
  background: #fff;
}

.intro-strip div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--peach);
  box-shadow: none;
}

.intro-strip strong {
  flex: 0 0 auto;
}

.intro-strip span {
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: clamp(62px, 8vw, 104px) clamp(18px, 5vw, 76px);
  background: #fff;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 32px;
}

.section-heading.centered {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.narrow {
  max-width: 760px;
}

.compact-heading {
  position: relative;
  max-width: 980px;
  margin-bottom: 34px;
  padding-left: 18px;
}

.compact-heading::before {
  position: absolute;
  top: 0.18em;
  bottom: 0.18em;
  left: 0;
  width: 5px;
  border-radius: 999px;
  background: var(--coral);
  content: "";
}

.section-heading.compact-heading h2 {
  max-width: 920px;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.08;
}

.section-heading h2,
.cta-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.cta-section p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.platform-section {
  padding-top: clamp(54px, 7vw, 84px);
  background:
    linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.platform-grid article {
  position: relative;
  min-height: 390px;
  padding: 28px;
  border: 1px solid rgba(255, 92, 53, 0.16);
  border-radius: 7px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 244, 0.96)),
    #fff;
  box-shadow: 0 18px 44px rgba(33, 51, 67, 0.09);
}

.platform-grid article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--teal));
  content: "";
}

.problem-tag {
  display: inline-flex;
  margin-top: 22px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--coral);
  background: #fff0ea;
  font-size: 13px;
  font-weight: 900;
}

.platform-grid h3 {
  margin: 16px 0 0;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.22;
}

.platform-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.problem-visual {
  position: relative;
  display: grid;
  min-height: 120px;
  padding: 16px;
  border: 1px solid rgba(33, 51, 67, 0.1);
  border-radius: 7px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 164, 189, 0.14), transparent 34%),
    #f8fbfd;
}

.problem-visual span,
.problem-visual strong {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(33, 51, 67, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.problem-visual strong {
  color: #fff;
  background: var(--coral);
}

.chat-load {
  align-content: center;
  gap: 10px;
}

.chat-load span {
  width: 72%;
  min-height: 28px;
}

.chat-load span:nth-child(2) {
  width: 58%;
  margin-left: auto;
}

.chat-load strong {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
}

.knowledge-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.knowledge-stack span,
.knowledge-stack strong {
  min-height: 32px;
}

.knowledge-stack strong {
  grid-column: 1 / -1;
}

.report-chart {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}

.report-chart span {
  min-height: 38px;
  background: linear-gradient(180deg, var(--teal), #c4f1ed);
}

.report-chart span:nth-child(2) {
  min-height: 62px;
  background: linear-gradient(180deg, var(--amber), #ffe2a7);
}

.report-chart span:nth-child(3) {
  min-height: 88px;
  background: linear-gradient(180deg, var(--coral), #ffc8b7);
}

.report-chart strong {
  min-height: 44px;
  align-self: center;
}

.problem-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
}

.problem-path span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid rgba(33, 51, 67, 0.1);
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.problem-path b {
  color: var(--coral);
}

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

.service-card,
.case-card,
.timeline article,
.architecture div {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.service-card {
  min-height: 390px;
  padding: 24px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.result-pill {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 92, 53, 0.18);
  border-radius: 7px;
  color: #7a2b18;
  background: #fff2ec;
  font-weight: 800;
  line-height: 1.55;
}

.service-visual {
  position: relative;
  display: grid;
  min-height: 112px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(33, 51, 67, 0.1);
  border-radius: 7px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 92, 53, 0.08), transparent 50%),
    #f8fbfd;
}

.service-visual::before {
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(0, 164, 189, 0.26);
  border-radius: 7px;
  content: "";
}

.service-visual span,
.service-visual strong,
.service-visual em {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #213343;
  background: #fff;
  box-shadow: 0 8px 22px rgba(33, 51, 67, 0.08);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.service-visual strong {
  color: #fff;
  background: var(--coral);
}

.visual-knowledge {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.visual-knowledge strong {
  grid-column: 1 / -1;
}

.visual-chat {
  align-content: center;
  gap: 8px;
}

.visual-chat span {
  justify-self: start;
  border-radius: 7px 7px 7px 2px;
}

.visual-chat strong {
  justify-self: end;
  border-radius: 7px 7px 2px 7px;
}

.visual-chat em {
  justify-self: center;
  color: var(--teal);
}

.visual-sales {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}

.visual-sales span,
.visual-sales strong {
  min-width: 0;
  height: 40px;
}

.visual-sales span:nth-child(2) {
  height: 54px;
}

.visual-sales span:nth-child(3) {
  height: 68px;
}

.visual-sales strong {
  height: 82px;
}

.visual-content {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.visual-content strong {
  grid-column: 1 / -1;
  min-height: 42px;
}

.visual-store {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.visual-store::after {
  position: absolute;
  right: 16%;
  left: 16%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 164, 189, 0.22), rgba(255, 92, 53, 0.58));
  content: "";
}

.visual-ops {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}

.visual-ops span {
  align-self: end;
  min-height: 34px;
  padding: 0;
  background: linear-gradient(180deg, var(--teal), #bff2ed);
}

.visual-ops span:nth-child(2) {
  min-height: 58px;
  background: linear-gradient(180deg, var(--coral), #ffd1c4);
}

.visual-ops span:nth-child(3) {
  min-height: 78px;
  background: linear-gradient(180deg, #6b61c9, #d8d2ff);
}

.visual-ops strong {
  align-self: center;
  min-height: 46px;
}

.service-card details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.service-card summary {
  color: var(--coral);
  font-weight: 900;
  cursor: pointer;
}

.service-card details[open] summary {
  margin-bottom: 12px;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 92, 53, 0.42);
  box-shadow: 0 18px 42px rgba(31, 47, 72, 0.1);
}

.service-card.featured {
  background: linear-gradient(180deg, #ffffff 0%, #fff0ea 100%);
}

.service-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.service-card:nth-child(2) .service-icon {
  background: var(--blue);
}

.service-card:nth-child(3) .service-icon {
  background: var(--green);
}

.service-card:nth-child(4) .service-icon {
  background: var(--amber);
}

.service-card:nth-child(5) .service-icon {
  background: var(--coral);
}

.service-card:nth-child(6) .service-icon {
  background: #6b61c9;
}

.service-card h3,
.case-card h3,
.timeline h3 {
  margin: 18px 0 10px;
  font-size: 22px;
  line-height: 1.28;
}

.service-card p,
.case-card p,
.timeline p,
.architecture p {
  color: var(--muted);
  line-height: 1.72;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: #3f4d5e;
  line-height: 1.6;
}

.service-card li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.solution-band {
  background:
    linear-gradient(90deg, rgba(255, 92, 53, 0.08), transparent 38%),
    linear-gradient(180deg, #f6f9fc, #ffffff);
}

.architecture {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.architecture div {
  padding: 22px;
}

.architecture span,
.case-meta,
.timeline span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.architecture strong {
  display: block;
  margin-top: 12px;
  font-size: 19px;
}

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

.case-card {
  padding: 26px;
  background: #fff;
}

.case-card strong {
  display: block;
  margin-top: 18px;
  color: #223144;
  line-height: 1.6;
}

.delivery {
  background: var(--soft);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline article {
  padding: 24px;
}

.timeline span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  background: #ffe7df;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin: clamp(18px, 4vw, 44px) clamp(18px, 5vw, 76px);
  padding: clamp(34px, 5vw, 58px);
  border-radius: 7px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(255, 92, 53, 0.96), rgba(33, 51, 67, 0.96)),
    var(--coral);
}

.cta-section h2 {
  max-width: 780px;
}

.cta-section .eyebrow,
.cta-section p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 5vw, 76px);
  color: #445266;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.site-footer a {
  font-weight: 800;
}

.demo-page {
  min-height: 100vh;
  background: #f8f1e8;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 7vw, 108px);
  background: #fffaf4;
}

.demo-phone {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.demo-main {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.9fr);
  align-items: start;
  gap: clamp(36px, 6vw, 88px);
  min-height: calc(100vh - 90px);
  padding: clamp(72px, 9vw, 132px) clamp(18px, 7vw, 108px);
}

.demo-copy {
  max-width: 720px;
}

.demo-copy h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.06;
}

.demo-copy p {
  color: #2f3f4d;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.78;
}

.demo-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.demo-badges div {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(33, 51, 67, 0.16);
  border-radius: 7px;
  background: #fff;
}

.demo-badges strong,
.demo-badges span {
  display: block;
}

.demo-badges strong {
  color: var(--coral);
  font-size: 18px;
}

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

.demo-form-card {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(33, 51, 67, 0.08);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(33, 51, 67, 0.1);
}

.demo-form-card h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 3vw, 40px);
  text-align: center;
}

.demo-form-card form {
  display: grid;
  gap: 18px;
}

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

.demo-form-card input,
.demo-form-card select,
.demo-form-card textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(33, 51, 67, 0.36);
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.demo-form-card textarea {
  resize: vertical;
}

.demo-form-card button {
  width: 100%;
  margin-top: 6px;
  border: 0;
  cursor: pointer;
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 189, 165, 0.28);
  border-radius: 7px;
  color: #135f56;
  background: #e9fbf7;
  font-size: 14px;
  line-height: 1.6;
}

.form-status a,
.form-note a {
  color: var(--coral);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ledger-page {
  min-height: 100vh;
  background: #f6f9fc;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(24px, 5vw, 64px);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 92, 53, 0.14), transparent 28%),
    linear-gradient(135deg, #fffaf4 0%, #f6f9fc 100%);
}

.login-screen[hidden],
#admin-console[hidden] {
  display: none;
}

.login-card {
  display: grid;
  gap: 22px;
  width: min(100%, 460px);
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(33, 51, 67, 0.12);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(33, 51, 67, 0.12);
}

.login-card h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
}

.login-card p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.login-card input {
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(33, 51, 67, 0.32);
  border-radius: 5px;
  color: var(--ink);
  font: inherit;
}

.login-card button {
  border: 0;
  cursor: pointer;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 92, 53, 0.24);
  border-radius: 7px;
  color: #9d2f19;
  background: #fff0ea;
}

.ledger-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ledger-actions .button {
  min-height: 40px;
}

.ledger-actions button {
  cursor: pointer;
}

.ledger-main {
  padding: clamp(42px, 6vw, 76px) clamp(18px, 5vw, 76px);
}

.ledger-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.ledger-heading h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.ledger-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.ledger-panel {
  border: 1px solid rgba(33, 51, 67, 0.12);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(33, 51, 67, 0.08);
}

.ledger-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.text-button {
  border: 0;
  color: var(--coral);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.table-wrap {
  overflow-x: auto;
}

.appointment-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.appointment-table th,
.appointment-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.appointment-table th {
  color: var(--ink);
  background: #fff7f2;
  font-size: 13px;
  white-space: nowrap;
}

.appointment-table td {
  color: #33475b;
  font-size: 14px;
  line-height: 1.55;
}

.status-select,
.note-input {
  width: 100%;
  border: 1px solid rgba(33, 51, 67, 0.24);
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.status-select {
  min-width: 112px;
  padding: 8px;
}

.note-input {
  min-width: 180px;
  padding: 8px;
  resize: vertical;
}

.empty-ledger {
  margin: 0;
  padding: 26px 20px;
  color: var(--muted);
}

@media (max-width: 1020px) {
  .hero,
  .service-grid,
  .case-list,
  .architecture,
  .timeline,
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy {
    grid-column: 1 / -1;
  }

  .hero-media {
    grid-column: 1 / -1;
  }

  .cta-section {
    grid-template-columns: 1fr;
  }

  .demo-main {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .header-cta {
    width: 100%;
  }

  .brand strong {
    white-space: normal;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .hero-photo {
    min-height: calc(100svh - 150px);
    padding-top: 56px;
    text-align: left;
  }

  .hero-photo .hero-actions,
  .hero-photo .proof-row {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(34px, 12vw, 46px);
  }

  .intro-strip div {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-grid,
  .case-list,
  .architecture,
  .timeline,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .compact-heading {
    align-items: flex-start;
    margin-bottom: 24px;
    padding-left: 14px;
  }

  .section-heading.compact-heading h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .service-visual {
    min-height: 104px;
  }

  .visual-sales,
  .visual-ops {
    gap: 6px;
  }

  .visual-sales span,
  .visual-sales strong,
  .visual-store span,
  .visual-store strong {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 11px;
  }

  .service-card {
    min-height: auto;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .demo-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-main {
    padding-top: 48px;
  }

  .demo-badges {
    grid-template-columns: 1fr;
  }

  .ledger-actions {
    align-items: stretch;
    width: 100%;
    flex-direction: column;
  }

  .ledger-actions .button {
    width: 100%;
  }

  .ledger-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}
