:root {
  --navy: #0d1b2a;
  --navy-2: #153451;
  --primary: #0ea896;
  --primary-dark: #087f73;
  --primary-light: #e9f8f6;
  --text: #0d1b2a;
  --text-secondary: #586675;
  --muted: #8995a2;
  --background: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f3f6f8;
  --border: #e6ecf2;
  --success: #29a36a;
  --success-bg: #e9f7ef;
  --warning: #9b6718;
  --warning-bg: #fff4de;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow: 0 12px 32px rgba(13, 27, 42, 0.08);
  --container: 1180px;
  --header-h: 68px;
  --font-heading: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--background);
  line-height: 1.55;
  min-height: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 200;
  padding: 8px 12px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.header-inner {
  min-height: var(--header-h);
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.logo img {
  height: 36px;
  width: auto;
  max-width: min(210px, 48vw);
}

#nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}

nav a {
  color: var(--text-secondary);
}

nav a:hover {
  color: var(--text);
}

.header-wa {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.header-wa:hover {
  background: rgba(37, 211, 102, 0.12);
}

.header-cta {
  flex-shrink: 0;
}

.btn {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: #bac7d1;
}

.btn-block {
  width: 100%;
}

.hero {
  padding: 72px 0 64px;
  background: radial-gradient(circle at 85% 18%, rgba(14, 168, 150, 0.12), transparent 34%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-light);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 640px;
  margin: 0 0 26px;
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}

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

.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.hero-note a {
  color: var(--primary-dark);
  font-weight: 600;
}

.app-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.app-header {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.app-title {
  font-weight: 700;
}

.period {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.app-body {
  padding: 18px;
}

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

.stat {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  min-width: 0;
}

.stat-number {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-heading);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 750;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
}

.doc-list {
  display: grid;
  gap: 8px;
}

.doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}

.doc-title {
  font-weight: 650;
}

.doc-meta {
  margin-top: 3px;
  color: var(--muted);
}

.status {
  align-self: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status-ok {
  color: var(--success);
  background: var(--success-bg);
}

.status-review {
  color: var(--warning);
  background: var(--warning-bg);
}

section {
  padding: 72px 0;
}

.section-white {
  background: #fff;
}

.section-title {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-title h2,
.accountant-copy h2,
.cdc-copy h2,
.cta h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-title p,
.accountant-copy p,
.cdc-copy p,
.cta p {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.8vw, 17px);
}

.demo-stage {
  max-width: 880px;
  margin: 0 auto;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 28px;
  align-items: start;
}
.demo-shorts {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.demo-card-title {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.demo-card-short .yt-lite,
.demo-card-short .yt-frame,
.yt-lite-short {
  max-width: 320px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}

.yt-lite,
.yt-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0d1b2a;
  box-shadow: var(--shadow);
}

.yt-lite {
  padding: 0;
  cursor: pointer;
}

.yt-lite:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.yt-lite-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-lite-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 10px 28px rgba(13, 27, 42, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}

.yt-lite-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}

.yt-lite:hover .yt-lite-play {
  background: var(--primary-dark);
  transform: scale(1.04);
}

.yt-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-link {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.demo-link a {
  color: var(--primary-dark);
  font-weight: 600;
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pain-card,
.step,
.feature {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 0;
}

.pain-card h3,
.step h3,
.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.pain-card p,
.step p,
.feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

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

.step-number,
.feature-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 14px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--primary);
  font-size: 15px;
}

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

.accountant {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.accountant-box {
  padding: 26px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-xl);
}

.client-row {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.client-row:last-child {
  border-bottom: 0;
}

.client-name {
  font-weight: 650;
}

.client-info {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.client-status {
  font-size: 12px;
  font-weight: 700;
  color: #73d9c7;
  white-space: nowrap;
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 550;
}

.check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.cdc-box {
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  border-radius: var(--radius-xl);
  background: var(--navy);
  color: #fff;
}

.cdc-box h2 {
  color: #fff;
}

.cdc-box p {
  color: rgba(255, 255, 255, 0.72);
}

.cdc-flow {
  display: grid;
  gap: 8px;
}

.cdc-step {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 14px;
}

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

.cta-wrap {
  padding: 56px clamp(18px, 4vw, 30px);
  text-align: center;
  border-radius: 28px;
  background: var(--primary-light);
}

.cta-wrap p {
  max-width: 640px;
  margin: 0 auto 24px;
}

.cta-wrap h2 {
  max-width: 720px;
  margin: 0 auto 14px;
}

footer {
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-social a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.footer-social a:hover {
  color: var(--primary);
}

@media (max-width: 960px) {
  .hero-grid,
  .accountant,
  .cdc-box,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-shorts {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .demo-shorts .demo-card-short {
    flex: 1 1 220px;
    max-width: 280px;
  }

  .demo-card-short .yt-lite,
  .demo-card-short .yt-frame,
  .yt-lite-short {
    max-width: 280px;
  }

  .steps,
  .features,
  .security {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .accountant-box {
    order: 2;
  }
}

@media (max-width: 860px) {
  .nav-burger {
    display: grid;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 8px;
  }

  nav a:hover {
    background: var(--surface-soft);
  }

  #nav-toggle:checked ~ nav {
    display: flex;
  }

  #nav-toggle:checked + .nav-burger {
    border-color: var(--primary);
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  section {
    padding: 52px 0;
  }

  .steps,
  .features,
  .security,
  .pain-grid,
  .stats {
    grid-template-columns: 1fr;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .app-header,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo img {
    height: 32px;
  }

  .pain-card,
  .step,
  .feature {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
