:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #5c6b70;
  --line: #d7e1df;
  --paper: #fbfdfc;
  --surface: #ffffff;
  --soft: #eef7f4;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --gold: #d6a434;
  --coral: #c85d4f;
  --shadow: 0 18px 45px rgba(19, 45, 48, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(251, 253, 252, 0.92);
  border-bottom: 1px solid rgba(215, 225, 223, 0.8);
  backdrop-filter: blur(18px);
}

.site-header .brand {
  margin-right: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.24);
}

.brand-mark.large {
  width: 64px;
  height: 64px;
  font-size: 2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a.active,
.site-nav a:hover {
  background: var(--soft);
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: clamp(620px, 72vh, 820px);
  padding: clamp(48px, 7vw, 96px) clamp(18px, 6vw, 88px);
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.1), transparent 42%),
    linear-gradient(180deg, #ffffff, #f4faf8);
}

.hero-copy,
.page-hero {
  min-width: 0;
  max-width: 760px;
}

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

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

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
}

.hero-text,
.page-hero p,
.split-band p,
.contact-note p {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

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

.project-form .form-actions {
  align-items: center;
}

.consent-check {
  flex-basis: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.consent-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--teal);
}

.consent-check a,
.policy-content a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  background: var(--teal);
  color: #fff;
}

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

.button.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--teal-dark);
}

.hero-panel {
  position: relative;
  min-width: 0;
  min-height: 480px;
  padding: 18px;
  border: 1px solid rgba(215, 225, 223, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82)),
    url("assets/hero-workspace.svg");
  background-size: cover;
  box-shadow: var(--shadow);
}

.product-mockup {
  display: grid;
  align-content: start;
  gap: 16px;
  overflow: hidden;
}

.screen-top {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.screen-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
}

.screen-top span:nth-child(2) {
  background: var(--gold);
}

.screen-top span:nth-child(3) {
  background: var(--teal);
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.mockup-toolbar span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.mockup-toolbar strong {
  color: var(--teal-dark);
  font-size: 0.86rem;
}

.mockup-layout {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 124px;
  gap: 14px;
  align-items: stretch;
  min-height: 342px;
}

.mockup-sidebar,
.mockup-main,
.mockup-phone,
.mockup-stats div,
.mockup-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.mockup-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px 12px;
}

.mockup-sidebar span {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--soft);
}

.mockup-sidebar span:first-child {
  background: var(--teal);
}

.mockup-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-width: 0;
  padding: 14px;
}

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

.mockup-stats div {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 82px;
  padding: 12px;
}

.mockup-stats strong,
.mockup-row span,
.mockup-phone span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.mockup-stats span {
  color: var(--ink);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 950;
  line-height: 1;
}

.mockup-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 138px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.9));
}

.mockup-chart span {
  display: block;
  min-height: 34px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
}

.mockup-chart span:nth-child(1) { height: 42%; }
.mockup-chart span:nth-child(2) { height: 68%; }
.mockup-chart span:nth-child(3) { height: 52%; }
.mockup-chart span:nth-child(4) { height: 84%; background: linear-gradient(180deg, var(--gold), #b9851d); }
.mockup-chart span:nth-child(5) { height: 62%; }

.mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
}

.mockup-row strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.mockup-phone {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: 46px 12px 20px;
  border: 8px solid #15191c;
  border-radius: 32px;
  background:
    radial-gradient(circle at 70% 16%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #0e8568, #075b51);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 30px rgba(19, 45, 48, 0.18);
}

.mockup-phone strong {
  font-size: 0.92rem;
}

.mockup-phone span:not(.mockup-notch) {
  color: rgba(255, 255, 255, 0.78);
}

.mockup-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 52px;
  height: 16px;
  border-radius: 999px;
  background: #050708;
  transform: translateX(-50%);
}

.content-band,
.split-band,
.page,
.site-footer {
  padding-inline: clamp(18px, 6vw, 88px);
}

.content-band {
  padding-block: clamp(44px, 7vw, 92px);
  background: #fff;
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin-bottom: 28px;
}

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

.feature-card,
.service-list article,
.contact-panel,
.contact-note,
.project-form fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(19, 45, 48, 0.06);
}

.feature-card {
  padding: 24px;
}

.feature-card p,
.service-list p,
.timeline p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--coral);
  font-weight: 900;
}

.split-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: clamp(38px, 5vw, 68px);
  background: var(--soft);
}

.workflow-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 34px);
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 88px);
  overflow: visible;
  background: linear-gradient(180deg, #ffffff, #f4faf8);
}

.workflow-strip::before {
  content: "";
  position: absolute;
  left: -10%;
  bottom: 24px;
  width: 52%;
  height: 160px;
  border-top: 16px solid rgba(15, 118, 110, 0.12);
  border-radius: 50%;
  transform: rotate(8deg);
}

.workflow-strip::after {
  content: "";
  position: absolute;
  left: 12%;
  bottom: -48px;
  width: 34%;
  height: 150px;
  border-top: 14px solid rgba(214, 164, 52, 0.22);
  border-radius: 50%;
  transform: rotate(-6deg);
}

.workflow-strip article {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(215, 225, 223, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(19, 45, 48, 0.07);
}

.workflow-strip article.featured {
  background: linear-gradient(180deg, #0f766e, #0b4f4a);
  color: #fff;
  box-shadow: 0 24px 42px rgba(15, 118, 110, 0.24);
}

.workflow-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

.workflow-strip h2 {
  font-size: 1.2rem;
}

.workflow-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.workflow-strip a {
  align-self: end;
  width: fit-content;
  color: var(--teal-dark);
  font-weight: 900;
}

.workflow-strip a::after {
  content: "->";
  margin-left: 8px;
}

.workflow-strip .featured .workflow-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.workflow-strip .featured p,
.workflow-strip .featured a {
  color: rgba(255, 255, 255, 0.86);
}

.page {
  padding-block: clamp(36px, 6vw, 74px);
}

.page-section {
  margin: clamp(30px, 5vw, 54px) 0;
}

.page-hero {
  margin-bottom: 28px;
}

.page-hero.compact {
  max-width: 680px;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.request-intro {
  max-width: 860px;
}

.service-list article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  margin-top: 6px;
  color: var(--teal-dark);
  font-weight: 900;
}

.service-link::after {
  content: "->";
  margin-left: 8px;
  color: var(--gold);
}

.timeline {
  display: grid;
  gap: 16px;
  max-width: 920px;
}

.timeline article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 28px;
  align-items: start;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.contact-panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--teal-dark);
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-note {
  max-width: 760px;
  margin-top: 24px;
  padding: 24px;
}

.policy-content {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.policy-content h2 {
  margin-top: 10px;
  font-size: 1.25rem;
}

.policy-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-form {
  display: grid;
  gap: 18px;
  max-width: 1080px;
}

.project-form fieldset {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
}

.project-form legend {
  padding: 0 8px;
  color: var(--teal-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid.one-column {
  grid-template-columns: 1fr;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

input[type="file"] {
  padding: 10px;
}

input[type="file"]::file-selector-button {
  min-height: 36px;
  margin-right: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 900;
  padding: 0 14px;
  cursor: pointer;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--teal);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.checkbox-group > span {
  grid-column: 1 / -1;
  font-weight: 900;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  font-weight: 700;
}

.checkbox-group input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.form-status {
  min-height: 28px;
  color: var(--teal-dark);
  font-weight: 800;
}

.field-hint {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.install-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  width: min(520px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgba(215, 225, 223, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.install-dismiss {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.install-banner div {
  display: grid;
  gap: 3px;
}

.install-banner strong {
  color: var(--ink);
}

.install-banner span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.install-banner .button {
  min-height: 42px;
}

.offline-view {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.offline-view p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .contact-layout,
  .split-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: 380px;
  }

  .mockup-layout {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .mockup-phone {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(220px, 62vw);
    min-height: 260px;
  }

  .feature-grid,
  .service-list,
  .workflow-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-band .button {
    width: fit-content;
  }
}

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

  .hero,
  .page,
  .content-band,
  .split-band,
  .site-footer {
    padding-inline: 16px;
  }

  .hero-copy,
  .hero-panel {
    width: min(100%, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  .hero-panel {
    justify-self: center;
  }

  .eyebrow {
    font-size: 0.68rem;
    line-height: 1.45;
  }

  h1,
  .page-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.7rem);
  }

  .feature-grid,
  .service-list,
  .workflow-strip,
  .form-grid,
  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .mockup-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mockup-sidebar {
    display: none;
  }

  .mockup-stats {
    grid-template-columns: 1fr;
  }

  .mockup-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .install-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    width: auto;
  }
}
