:root {
  color-scheme: light;
  --ink: #0d2f38;
  --ink-soft: #17424c;
  --green: #1f8f72;
  --green-deep: #12624f;
  --mint: #dff4ed;
  --warm-paper: #fbf5ea;
  --blue: #3766a6;
  --coral: #d96c4f;
  --gold: #d7a948;
  --paper: #ffffff;
  --wash: #f4f7f2;
  --muted: #5d6f70;
  --line: rgba(13, 47, 56, 0.14);
  --shadow: 0 22px 54px rgba(13, 47, 56, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--warm-paper);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
ol {
  margin: 0;
}

.site-section,
.section {
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(100% - 48px, 1160px);
  min-height: 70px;
  padding: 10px 12px 10px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(13, 47, 56, 0.1);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
}

.logo-link {
  display: inline-flex;
  width: 126px;
  text-decoration: none;
}

.logo-link img {
  display: block;
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.primary-nav a,
.language-option,
.button {
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.language-option.is-active {
  color: var(--paper);
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(0, 560px) minmax(380px, 560px) minmax(24px, 1fr);
  grid-template-areas: ". content scene .";
  align-items: center;
  gap: 40px;
  min-height: 780px;
  overflow: hidden;
  padding-top: 122px;
  padding-bottom: 80px;
  background: var(--warm-paper);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: auto 0 0 0;
  z-index: -2;
  height: 34%;
  background: var(--mint);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 88%;
  background: rgba(223, 244, 237, 0.62);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  content: "";
}

.hero-content {
  position: relative;
  grid-area: content;
  z-index: 2;
  max-width: 560px;
  width: 100%;
}

.hero-scene {
  position: relative;
  grid-area: scene;
  z-index: 1;
  width: min(100%, 540px);
  height: 500px;
  pointer-events: none;
}

.scene-window {
  position: absolute;
  border: 1px solid rgba(13, 47, 56, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
}

.scene-main {
  right: 0;
  bottom: 0;
  width: 460px;
  padding: 0;
  overflow: hidden;
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.window-bar span:first-child {
  background: var(--coral);
}

.window-bar span:nth-child(2) {
  background: var(--gold);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.invoice-editor {
  display: grid;
  gap: 22px;
  padding: 26px;
}

.editor-head,
.total-row,
.line-items div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.editor-head strong {
  display: block;
  margin-top: 4px;
  font-size: 1.4rem;
}

.mini-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--green-deep);
  background: var(--mint);
  font-size: 0.82rem;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.form-grid span,
.line-items span,
.total-row span,
.summary-grid span,
.export-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-grid strong,
.line-items strong {
  text-align: right;
}

.line-items {
  display: grid;
  gap: 10px;
}

.line-items div {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.total-row {
  padding: 18px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--green-deep);
}

.total-row strong {
  font-size: 1.35rem;
}

.eyebrow {
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 11.5ch;
  margin-top: 16px;
  color: var(--ink);
  font-size: clamp(3.2rem, 6vw, 5.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  color: var(--ink);
  font-size: clamp(2.15rem, 4vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.intro {
  max-width: 34rem;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 1.18rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 800;
  line-height: 1;
}

.button:hover,
.button:focus-visible,
.language-option:hover,
.language-option:focus-visible {
  outline: 3px solid rgba(31, 143, 114, 0.18);
  outline-offset: 2px;
}

.button-primary {
  border-color: var(--green-deep);
  color: var(--paper);
  background: var(--green-deep);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.78);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 550px;
  margin-top: 54px;
}

.hero-metrics div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(13, 47, 56, 0.07);
}

.hero-metrics dt {
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 900;
}

.hero-metrics dd {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.3;
}

.section {
  padding-block: 110px;
}

.section-intro {
  display: grid;
  gap: 20px;
  max-width: 850px;
  margin-bottom: 42px;
}

.section-intro.compact {
  max-width: 760px;
}

.section-intro p,
.dashboard-copy p,
.trust-panel p,
.final-cta p {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.product-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(13, 47, 56, 0.06);
}

.large-card {
  grid-row: span 2;
  min-height: 540px;
  background: var(--mint);
}

.accent-card {
  background: rgba(215, 169, 72, 0.14);
}

.card-kicker {
  width: fit-content;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.mini-flow {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.mini-flow span {
  position: relative;
  display: block;
  padding: 16px 18px 16px 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.mini-flow span::before {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  content: "";
  transform: translateY(-50%);
}

.workflow-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audience-section {
  padding-top: 0;
}

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

.audience-grid article,
.faq-list article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(13, 47, 56, 0.05);
}

.audience-grid p,
.faq-list p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  gap: 16px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.workflow-list span {
  color: #9f432f;
  font-size: 0.9rem;
  font-weight: 900;
}

.workflow-list p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.dashboard-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  align-items: center;
  gap: 64px;
}

.dashboard-copy {
  display: grid;
  gap: 20px;
}

.dashboard-panel {
  display: grid;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.panel-header,
.summary-grid,
.export-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-header span {
  color: rgba(255, 255, 255, 0.68);
}

.summary-grid {
  align-items: stretch;
}

.summary-grid div {
  flex: 1;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.summary-grid strong {
  font-size: 1.35rem;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 180px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.chart-bars span {
  flex: 1;
  min-width: 18px;
  border-radius: 8px 8px 4px 4px;
  background: var(--green);
}

.chart-bars span:nth-child(2n) {
  background: var(--gold);
}

.chart-bars span:nth-child(3n) {
  background: var(--blue);
}

.export-row {
  flex-wrap: wrap;
}

.export-row span {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.1);
}

.trust-section {
  padding-top: 0;
}

.faq-section {
  padding-top: 0;
}

.trust-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 48px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.final-cta {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding-block: 104px 120px;
  text-align: center;
}

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

.final-cta p {
  margin-inline: auto;
}

.final-actions {
  justify-content: center;
  margin-top: 10px;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(24px, 1fr) minmax(0, 520px) minmax(360px, 500px) minmax(24px, 1fr);
    gap: 28px;
  }

  .hero-scene {
    width: min(100%, 500px);
  }
}

@media (max-width: 1050px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(24px, 1fr) minmax(0, 680px) minmax(24px, 1fr);
    grid-template-areas:
      ". content ."
      ". scene .";
    gap: 0;
  }

  .site-header {
    grid-template-columns: auto auto;
    gap: 12px;
  }

  .primary-nav {
    display: none;
  }

  .header-actions {
    justify-content: end;
  }

  .hero-scene {
    width: min(100% - 48px, 620px);
    height: auto;
    margin: 48px auto 0;
  }

  .hero::after {
    width: 100%;
    height: 44%;
    clip-path: none;
  }

  .scene-window {
    position: relative;
  }

  .scene-main {
    right: auto;
    bottom: auto;
    width: 100%;
  }

  .product-grid,
  .dashboard-section,
  .trust-panel,
  .audience-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-section,
  .section {
    width: min(100% - 32px, 1160px);
  }

  .site-header {
    top: 10px;
    width: calc(100% - 24px);
    min-height: 62px;
    padding: 8px 10px 8px 14px;
    border-radius: 8px;
  }

  .logo-link {
    width: 104px;
  }

  .header-actions .button {
    display: none;
  }

  .hero {
    padding-top: 126px;
  }

  h1 {
    max-width: 11ch;
  }

  .intro {
    font-size: 1.04rem;
  }

  .hero-actions,
  .final-actions,
  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .workflow-list,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-scene {
    width: calc(100% - 24px);
  }

  .scene-main {
    width: 100%;
  }

  .editor-head,
  .form-grid,
  .line-items div,
  .total-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .form-grid {
    display: grid;
  }

  .form-grid strong,
  .line-items strong {
    text-align: left;
  }

  .section {
    padding-block: 72px;
  }

  .product-card,
  .large-card,
  .workflow-list li {
    min-height: 0;
  }

  .dashboard-section {
    gap: 34px;
  }

  .dashboard-panel,
  .trust-panel {
    padding: 24px;
    border-radius: 8px;
  }
}

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

  .language-option {
    min-width: 34px;
    padding-inline: 8px;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .invoice-editor {
    padding: 18px;
  }
}
