:root {
  --navy: #13233c;
  --navy-2: #1b3152;
  --red: #d64845;
  --red-dark: #bc3835;
  --text: #182235;
  --muted: #647085;
  --line: #dde3eb;
  --soft: #f4f6f9;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(25, 39, 62, .14);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section-anchor { scroll-margin-top: 82px; }
.skip-link { position: fixed; left: 18px; top: -60px; z-index: 1000; padding: 10px 14px; border-radius: 8px; background: var(--navy); color: white; }
.skip-link:focus { top: 18px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 5px 22px rgba(25,39,62,.06); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 650; color: #566176; }
.nav-links > a:not(.nav-download) { position: relative; padding: 10px 0; }
.nav-links > a:not(.nav-download)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.nav-links > a:hover, .nav-links > a.active { color: var(--navy); }
.nav-links > a.active::after { transform: scaleX(1); }
.nav-download { padding: 10px 17px; border-radius: 9px; color: white; background: var(--navy); }
.nav-download:hover { background: var(--navy-2); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 9px; background: var(--soft); }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--navy); }

.hero { min-height: 760px; padding: 142px 0 85px; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f6f8fb 100%); }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 72px; }
.product-label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 25px; color: var(--navy); font-size: 14px; font-weight: 750; }
.product-label img { width: 32px; height: 32px; }
.hero h1 { margin: 0; max-width: 660px; color: var(--navy); font-size: clamp(48px, 6vw, 76px); line-height: 1.01; letter-spacing: -.055em; }
.hero-copy > p { max-width: 570px; margin: 24px 0 31px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-actions > span { color: #7a8495; font-size: 13px; font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 21px; border-radius: 10px; font-size: 14px; font-weight: 750; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover { transform: translateY(-2px); }
.button svg, .email-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { color: white; background: var(--red); box-shadow: 0 12px 28px rgba(214,72,69,.25); }
.button-primary:hover { background: var(--red-dark); box-shadow: 0 16px 34px rgba(214,72,69,.3); }
.promise-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.promise-row span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: #596477; background: white; font-size: 12px; font-weight: 700; }

.app-preview { overflow: hidden; border: 1px solid #cfd7e2; border-radius: 13px; background: #e9edf2; box-shadow: var(--shadow); transform: rotate(1deg); }
.app-titlebar { height: 37px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: white; color: #4f5b6b; font-size: 11px; }
.app-titlebar > div { display: flex; align-items: center; gap: 8px; }
.app-titlebar img { width: 21px; height: 21px; }
.app-titlebar strong { color: var(--navy); }
.app-titlebar div span { padding-left: 8px; border-left: 1px solid var(--line); }
.app-menu { height: 34px; display: flex; align-items: center; gap: 18px; padding: 0 14px; border-top: 1px solid #eef1f5; border-bottom: 1px solid var(--line); background: white; color: #4b5668; font-size: 10px; }
.app-tabs { height: 38px; display: flex; align-items: end; padding-left: 12px; background: #edf0f4; }
.app-tabs span { height: 31px; min-width: 185px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border-radius: 7px 7px 0 0; background: white; color: #4d596b; font-size: 10px; }
.app-tabs b { padding: 2px 4px; border-radius: 3px; color: white; background: var(--red); font-size: 7px; }
.app-toolbar { height: 52px; display: flex; align-items: center; gap: 18px; padding: 0 14px; border-bottom: 1px solid var(--line); background: white; color: #657084; font-size: 9px; }
.app-toolbar b { color: var(--red); }
.app-toolbar i { width: 1px; height: 25px; background: var(--line); }
.app-toolbar strong { color: var(--navy); }
.app-body { height: 350px; display: grid; grid-template-columns: 92px 1fr; }
.app-body aside { padding: 15px 12px; border-right: 1px solid #d2d8e1; background: #f7f8fa; }
.app-body aside small { display: block; margin-bottom: 12px; color: #5e697b; font-size: 9px; font-weight: 750; }
.page-thumb { width: 54px; height: 72px; margin: 0 auto 12px; padding: 12px 8px; border: 1px solid #d9dee6; background: white; box-shadow: 0 3px 7px rgba(24,34,53,.08); }
.page-thumb.active { outline: 2px solid var(--red); outline-offset: 2px; }
.page-thumb i { display: block; height: 3px; margin-bottom: 6px; background: #d7dce4; }
.document-area { display: grid; place-items: center; padding: 28px; background: #dfe4e9; }
.document-page { width: 260px; height: 300px; padding: 29px 26px; background: white; box-shadow: 0 8px 18px rgba(23,34,52,.14); }
.document-logo { display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: 10px; }
.document-logo img { width: 25px; height: 25px; }
.document-page h2 { margin: 35px 0 8px; color: var(--navy); font-size: 22px; line-height: 1.1; letter-spacing: -.04em; }
.document-page p { margin: 0; color: #758094; font-size: 8px; }
.document-lines { margin-top: 32px; }
.document-lines i { display: block; width: 100%; height: 4px; margin: 7px 0; border-radius: 2px; background: #e3e7ed; }
.document-lines i:nth-child(2) { width: 84%; }
.document-lines i:nth-child(3) { width: 91%; }
.document-lines i:nth-child(4) { width: 68%; }
.document-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 25px; }
.document-cards i { height: 36px; border-radius: 4px; background: #eef1f5; }
.document-cards i:first-child { background: #f6dfdf; }
.app-status { height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; border-top: 1px solid #d4dae3; background: white; color: #758094; font-size: 8px; }

.features { padding: 104px 0; }
.section-heading { max-width: 590px; margin: 0 auto 48px; text-align: center; }
.section-heading > span, .contact-card > div > span, .free-banner > div > span { color: var(--red); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2, .contact-card h2, .free-banner h2 { margin: 10px 0 12px; color: var(--navy); font-size: clamp(34px,4vw,49px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading p, .contact-card p { margin: 0; color: var(--muted); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature-card { min-height: 215px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature-card:hover { transform: translateY(-4px); border-color: #cbd4df; box-shadow: 0 15px 35px rgba(25,39,62,.08); }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 11px; color: var(--navy); background: #eef2f7; }
.feature-icon.red { color: var(--red); background: #fbeceb; }
.feature-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; letter-spacing: -.02em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.free-banner { margin-top: 70px; padding: 38px 42px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: var(--radius); background: var(--navy); }
.free-banner > div > span { color: #ff8a86; }
.free-banner h2 { margin-bottom: 0; color: white; font-size: clamp(28px,3vw,38px); }
.button-light { color: var(--navy); background: white; white-space: nowrap; }
.button-light:hover { background: #f1f4f7; }

.contact { padding: 32px 0 110px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px 52px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.contact-card h2 { font-size: clamp(30px,3vw,42px); }
.email-button { display: inline-flex; align-items: center; gap: 11px; padding: 15px 19px; border: 1px solid #cfd6e0; border-radius: 10px; color: var(--navy); background: white; font-size: 14px; font-weight: 750; white-space: nowrap; transition: transform .18s, border-color .18s; }
.email-button:hover { transform: translateY(-2px); border-color: var(--red); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; padding: 11px 16px; border-radius: 9px; color: white; background: var(--navy); box-shadow: 0 10px 30px rgba(20,35,60,.2); font-size: 13px; font-weight: 700; opacity: 0; transform: translate(-50%, 15px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: 125px; }
  .hero-grid { grid-template-columns: 1fr; gap: 55px; }
  .hero-copy { text-align: center; }
  .product-label, .hero-actions, .promise-row { justify-content: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .app-preview { width: min(680px,100%); margin: 0 auto; transform: none; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1160px); }
  .nav { height: 66px; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 66px; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 13px !important; border-radius: 8px; }
  .nav-links > a:not(.nav-download)::after { display: none; }
  .nav-download { text-align: center; margin-top: 5px; }
  .hero { padding: 112px 0 67px; }
  .hero h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero-copy > p { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .button-primary { width: 100%; max-width: 340px; }
  .app-body { height: 290px; grid-template-columns: 69px 1fr; }
  .app-menu span:nth-child(n+5), .app-toolbar span:nth-of-type(n+4) { display: none; }
  .document-area { padding: 18px; }
  .document-page { width: 220px; height: 255px; padding: 23px 20px; }
  .document-page h2 { margin-top: 26px; font-size: 18px; }
  .features { padding: 78px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .free-banner, .contact-card { flex-direction: column; align-items: flex-start; padding: 32px 27px; }
  .button-light, .email-button { width: 100%; }
  .contact { padding-bottom: 75px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
