:root {
  --navy: #07182f;
  --navy-2: #0d2544;
  --blue: #176bff;
  --blue-dark: #0957dc;
  --cyan: #40c9ff;
  --green: #19b683;
  --text: #102035;
  --muted: #64748b;
  --soft: #f4f7fb;
  --border: #dfe7f1;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(7, 24, 47, .11);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(223,231,241,.8);
  backdrop-filter: blur(18px);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--navy);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--blue), #38a3ff);
  box-shadow: 0 8px 20px rgba(23,107,255,.25);
  overflow: hidden;
}

.pulse-line {
  width: 27px;
  height: 13px;
  position: relative;
}

.pulse-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 2px;
  background: #fff;
  box-shadow:
    6px 0 0 #fff,
    18px 0 0 #fff,
    24px 0 0 #fff;
}

.pulse-line::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  width: 7px;
  height: 12px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: skew(-22deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 750;
  transition: .2s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding-inline: 17px;
  font-size: 14px;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), #388dff);
  box-shadow: 0 12px 25px rgba(23,107,255,.25);
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.button-secondary,
.button-outline {
  background: white;
  color: var(--navy);
  border-color: var(--border);
}

.button-secondary:hover,
.button-outline:hover {
  border-color: #bac9dc;
}

.button-full {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 105px;
  background:
    radial-gradient(circle at 90% 10%, rgba(64,201,255,.13), transparent 28%),
    radial-gradient(circle at 10% 35%, rgba(23,107,255,.09), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 70px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 680px;
  margin: 20px 0 24px;
  font-size: clamp(43px, 6vw, 70px);
  line-height: 1.01;
  letter-spacing: -3.5px;
  color: var(--navy);
}

.hero-copy h1 span {
  display: block;
  color: var(--blue);
}

.hero-lead {
  max-width: 650px;
  margin: 0;
  font-size: 19px;
  line-height: 1.75;
  color: #53657c;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow {
  padding: 8px 12px;
  border: 1px solid #d9e7ff;
  border-radius: 999px;
  background: #f4f8ff;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(25,182,131,.12);
}

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

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 23px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
}

.product-demo {
  position: relative;
  max-width: 510px;
  margin-left: auto;
}

.demo-window {
  position: relative;
  border: 1px solid #dbe6f4;
  border-radius: 26px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.demo-topbar {
  height: 55px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e6edf6;
  font-size: 13px;
  font-weight: 750;
  color: #3c4b60;
}

.demo-dots {
  display: flex;
  gap: 5px;
}

.demo-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccd6e2;
}

.demo-secure {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8faf3;
  color: #087a55;
  font-size: 11px;
}

.telegram-demo {
  position: relative;
  min-height: 545px;
  padding: 38px 28px;
  background:
    radial-gradient(circle at 5px 5px, rgba(56,130,126,.05) 1px, transparent 1.5px),
    #eaf4e7;
  background-size: 20px 20px;
}

.chat-label {
  position: absolute;
  top: 15px;
  right: 17px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: rgba(255,255,255,.8);
  color: #607364;
}

.receipt-photo {
  width: 66%;
  margin-left: auto;
  padding: 13px;
  border-radius: 16px;
  background: #d9dfd2;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.receipt-paper {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 17px;
  color: #4f5050;
  background: #fffdf5;
  box-shadow: 0 2px 6px rgba(0,0,0,.07);
  font-family: "Courier New", monospace;
  font-size: 11px;
}

.receipt-divider {
  margin: 4px 0;
  border-top: 1px dashed #aaa;
}

.chat-bubble {
  width: 91%;
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px 16px 16px 4px;
  background: white;
  box-shadow: 0 4px 14px rgba(29,64,35,.08);
}

.bubble-title {
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 15px;
}

.bubble-title span {
  color: var(--green);
}

.receipt-result {
  display: grid;
  gap: 12px;
}

.receipt-result > div {
  display: grid;
  gap: 2px;
}

.receipt-result small,
.tax-mini-card small,
.floating-stat small,
.mini-extraction small,
.dashboard-card small {
  color: #7a8b9e;
  font-size: 11px;
}

.result-row {
  grid-template-columns: 1fr 1fr;
}

.tax-mini-card {
  width: 85%;
  margin-top: 12px;
  margin-left: 7%;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 13px;
  background: #fbfdff;
  border: 1px solid #dce5ef;
  box-shadow: 0 4px 14px rgba(29,64,35,.05);
}

.tax-mini-card > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tax-mini-card div div {
  display: flex;
  flex-direction: column;
}

.tax-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #0d7a5a;
  background: #e6f8f1;
}

.review-tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff4d7;
  color: #946200;
  font-size: 10px;
  font-weight: 800;
}

.floating-stat {
  position: absolute;
  z-index: 4;
  min-width: 195px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid #dae6f3;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 35px rgba(7,24,47,.12);
}

.floating-stat > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f3f7ff;
}

.floating-stat div {
  display: flex;
  flex-direction: column;
}

.floating-stat strong {
  font-size: 12px;
}

.floating-stat-left {
  left: -65px;
  bottom: 70px;
}

.floating-stat-right {
  right: -43px;
  top: 140px;
}

.trust-strip {
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  background: white;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 27px 24px;
  border-right: 1px solid #edf2f7;
}

.trust-grid div:first-child {
  border-left: 1px solid #edf2f7;
}

.trust-grid strong {
  font-size: 14px;
}

.trust-grid span {
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 100px 0;
}

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

.section-heading {
  max-width: 730px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-heading h2,
.tax-safety h2,
.final-cta h2 {
  margin: 13px 0 15px;
  color: var(--navy);
  font-size: clamp(32px, 4.5vw, 49px);
  line-height: 1.08;
  letter-spacing: -2px;
}

.section-heading p,
.tax-safety p,
.final-cta p {
  color: var(--muted);
  font-size: 17px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step-card,
.feature-card,
.price-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

.step-card {
  min-height: 310px;
  padding: 31px;
}

.step-number {
  position: absolute;
  top: 23px;
  right: 25px;
  color: #dce4ee;
  font-size: 24px;
  font-weight: 900;
}

.step-icon,
.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  border-radius: 15px;
  background: #eff5ff;
  font-size: 23px;
}

.step-card h3,
.feature-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 21px;
}

.step-card p,
.feature-card p {
  margin: 0;
  color: var(--muted);
}

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

.feature-card {
  padding: 28px;
  transition: .22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(7,24,47,.08);
}

.feature-wide {
  grid-column: span 2;
}

.mini-extraction {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid #e2eaf4;
  border-radius: 14px;
  background: #f8fafc;
}

.mini-extraction div {
  display: flex;
  flex-direction: column;
  padding: 13px 15px;
  border-right: 1px solid #e2eaf4;
}

.mini-extraction div:last-child {
  border-right: 0;
}

.tax-safety-grid {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 90px;
  align-items: center;
}

.tax-safety h2 span {
  color: var(--blue);
}

.notice {
  margin-top: 28px;
  padding: 17px 18px;
  border-left: 4px solid #f2b233;
  border-radius: 8px;
  background: #fff9ea;
  color: #725619;
  font-size: 14px;
}

.dashboard-card {
  padding: 27px;
  border: 1px solid #dbe5f0;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.dashboard-header,
.dashboard-total,
.dash-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-header div {
  display: flex;
  flex-direction: column;
}

.dashboard-header > span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.dashboard-total {
  margin: 25px 0;
  padding: 22px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--navy), #123760);
}

.dashboard-total strong {
  font-size: 25px;
}

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

.dash-item {
  display: grid;
  gap: 7px;
}

.dash-item span,
.dash-item strong {
  font-size: 12px;
}

.dash-item > i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.dashboard-note {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #edf1f5;
  color: #8895a6;
  font-size: 11px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  padding: 31px;
}

.price-popular {
  border: 2px solid var(--blue);
  box-shadow: 0 18px 50px rgba(23,107,255,.12);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 13px;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.price-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 13px 0;
}

.price strong {
  font-size: 38px;
  letter-spacing: -2px;
  color: var(--navy);
}

.price span {
  color: var(--muted);
  font-size: 13px;
}

.price-description {
  min-height: 52px;
  color: var(--muted);
  font-size: 14px;
}

.price-card ul {
  min-height: 215px;
  margin: 25px 0 27px;
  padding: 0;
  list-style: none;
}

.price-card li {
  margin: 12px 0;
  color: #45576c;
  font-size: 14px;
}

.pricing-footnote {
  max-width: 720px;
  margin: 27px auto 0;
  text-align: center;
  color: #77879a;
  font-size: 12px;
}

.faq-container {
  max-width: 850px;
}

.faq-container details {
  padding: 23px 0;
  border-bottom: 1px solid var(--border);
}

.faq-container summary {
  cursor: pointer;
  list-style: none;
  color: var(--navy);
  font-size: 17px;
  font-weight: 750;
}

.faq-container summary::-webkit-details-marker {
  display: none;
}

.faq-container summary::after {
  content: "+";
  float: right;
  color: var(--blue);
  font-size: 23px;
}

.faq-container details[open] summary::after {
  content: "−";
}

.faq-container details p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.final-cta {
  padding: 35px 0 90px;
}

.final-cta-box {
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  padding: 55px 60px;
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 90% 10%, rgba(64,201,255,.3), transparent 25%),
    linear-gradient(135deg, var(--navy), #0e3260);
}

.final-cta-box > div {
  max-width: 750px;
}

.final-cta h2 {
  color: white;
  margin-top: 10px;
}

.final-cta p {
  color: #c5d4e5;
}

.section-kicker.light {
  color: #79d9ff;
}

.button-white {
  flex-shrink: 0;
  color: var(--navy);
  background: white;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.site-footer {
  padding-top: 65px;
  color: #aab8c9;
  background: #061426;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 55px;
}

.brand-footer {
  color: white;
}

.footer-brand p {
  max-width: 310px;
  color: #8ea1b7;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.footer-links strong {
  margin-bottom: 5px;
  color: white;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: 11px;
}

.legal-page {
  min-height: 100vh;
  background: #f7f9fc;
}

.legal-hero {
  padding: 65px 0 35px;
}

.legal-hero h1 {
  margin: 10px 0 8px;
  color: var(--navy);
  font-size: clamp(35px, 5vw, 52px);
  letter-spacing: -2px;
}

.legal-hero p {
  color: var(--muted);
}

.legal-card {
  margin-bottom: 80px;
  padding: 45px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: white;
  box-shadow: 0 15px 50px rgba(7,24,47,.05);
}

.legal-card h2 {
  margin-top: 36px;
  color: var(--navy);
  font-size: 21px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: #56687e;
}

.legal-card a {
  color: var(--blue);
  font-weight: 700;
}

.legal-card ul {
  padding-left: 22px;
}

.legal-back {
  display: inline-block;
  margin-top: 25px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .tax-safety-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1,
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero-actions,
  .hero-notes {
    justify-content: center;
  }

  .product-demo {
    margin: 20px auto 0;
    width: min(100%, 520px);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .price-card ul {
    min-height: 0;
  }

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

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .final-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header .button-small {
    display: none;
  }

  .nav {
    height: 68px;
  }

  .hero {
    padding: 65px 0 80px;
  }

  .hero-copy h1 {
    letter-spacing: -2.2px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

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

  .floating-stat {
    display: none;
  }

  .telegram-demo {
    min-height: 500px;
    padding: 35px 17px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid div {
    border-left: 1px solid #edf2f7;
  }

  .section {
    padding: 75px 0;
  }

  .section-heading h2,
  .tax-safety h2,
  .final-cta h2 {
    letter-spacing: -1.5px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-wide {
    grid-column: auto;
  }

  .mini-extraction {
    grid-template-columns: 1fr;
  }

  .mini-extraction div {
    border-right: 0;
    border-bottom: 1px solid #e2eaf4;
  }

  .mini-extraction div:last-child {
    border-bottom: 0;
  }

  .final-cta-box {
    padding: 40px 27px;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
  }

  .legal-card {
    padding: 28px 22px;
  }
}