/* === Reset & Variables === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563EB;
  --primary-dark: #1E40AF;
  --primary-light: #DBEAFE;
  --accent: #10B981;
  --accent-dark: #059669;
  --red: #EF4444;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text2: #64748B;
  --border: #E2E8F0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; border-radius: var(--radius-sm); cursor: pointer;
  border: none; transition: all .2s; text-align: center;
}
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 18px; border-radius: var(--radius); }
.btn:not(.btn--white) {
  background: var(--primary); color: #fff;
}
.btn:not(.btn--white):hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn--outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--outline:hover { background: var(--primary); color: #fff; }

/* === Header === */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header--scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.header__logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--text);
}
.header__nav { display: flex; gap: 28px; }
.header__link {
  font-size: 15px; font-weight: 500; color: var(--text2);
  transition: color .2s;
}
.header__link:hover { color: var(--primary); }
.header__burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.header__burger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; transition: all .3s; border-radius: 2px;
}

/* === Hero === */
.hero {
  padding: 140px 0 80px; background: linear-gradient(135deg, #F0F7FF 0%, #F8FAFC 50%, #F0FDF4 100%);
}
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero__title {
  font-size: 44px; line-height: 1.15; font-weight: 800; color: var(--text);
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 20px; color: var(--text2); margin-bottom: 32px; line-height: 1.5;
}
.hero__cta { font-size: 18px; }

.upload-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 32px; border: 3px dashed var(--primary);
  border-radius: var(--radius); background: rgba(37,99,235,.04);
  text-align: center; cursor: pointer; transition: all .3s;
}
.upload-zone:hover { background: rgba(37,99,235,.08); border-color: var(--primary-dark); }
.upload-zone__icon { margin-bottom: 16px; opacity: .7; }
.upload-zone__text { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.upload-zone__formats { font-size: 14px; color: var(--text2); }

/* === Sections === */
.section { padding: 80px 0; }
.section--gray { background: var(--bg); }
.section--dark { background: var(--text); }
.section--cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
}
.section__title {
  font-size: 36px; font-weight: 800; text-align: center; margin-bottom: 48px;
}
.section__title--light { color: #fff; }

/* === Problems === */
.problems { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.problem-card {
  display: flex; gap: 16px; padding: 24px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow); align-items: flex-start;
}
.problem-card__icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--radius-sm);
  background: #FEF2F2; display: flex; align-items: center; justify-content: center;
}
.problem-card__icon svg { width: 24px; height: 24px; }
.problem-card__text { font-size: 16px; color: var(--text); line-height: 1.5; }

/* === Steps === */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  text-align: center; padding: 32px 24px; position: relative;
}
.step__num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 24px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.step__title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.step__desc { font-size: 15px; color: var(--text2); line-height: 1.6; }
.step + .step::before {
  content: ''; position: absolute; top: 58px; left: -16px;
  width: 32px; height: 2px; background: var(--border);
}

/* === Dashboard === */
.dashboard__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.kpi {
  padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.08);
  text-align: center;
}
.kpi__label { display: block; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.kpi__value { display: block; font-size: 28px; font-weight: 700; }
.kpi--green .kpi__value { color: var(--accent); }
.kpi--red .kpi__value { color: var(--red); }
.kpi--blue .kpi__value { color: var(--primary-light); }

.dashboard__charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chart-card {
  background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 24px;
}
.chart-card__title { font-size: 16px; color: rgba(255,255,255,.7); margin-bottom: 20px; }

.chart-bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-row__label { font-size: 13px; color: rgba(255,255,255,.6); width: 80px; flex-shrink: 0; }
.bar-row__track { flex: 1; height: 24px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.bar-row__fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
.bar-row__pct { font-size: 13px; color: rgba(255,255,255,.5); width: 36px; text-align: right; }

.trend-svg { width: 100%; height: auto; }
.chart-trend__legend { display: flex; gap: 20px; margin-top: 12px; }
.legend { font-size: 13px; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 6px; }
.legend::before { content: ''; width: 12px; height: 3px; border-radius: 2px; }
.legend--green::before { background: var(--accent); }
.legend--red::before { background: var(--red); }

/* === Features === */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  padding: 28px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card__icon svg { width: 24px; height: 24px; color: var(--primary); }
.feature-card__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card__desc { font-size: 15px; color: var(--text2); line-height: 1.5; }

/* === Comparison === */
.comparison { overflow-x: auto; }
.comparison__table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.comparison__table th, .comparison__table td {
  padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--border);
}
.comparison__table th { font-weight: 600; font-size: 15px; background: var(--bg); }
.comparison__table td:first-child { font-weight: 600; color: var(--text); }
.comparison__table td:nth-child(2) { color: var(--text2); }
.comparison__table td:nth-child(3) { color: var(--primary); font-weight: 600; }
.comparison__table tr:last-child td { border-bottom: none; }

/* === Pricing === */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan {
  padding: 32px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center; transition: transform .2s;
  border: 2px solid transparent;
}
.plan--highlighted {
  border-color: var(--primary); transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}
.plan__name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.plan__price { font-size: 40px; font-weight: 800; color: var(--primary); }
.plan__period { font-size: 14px; color: var(--text2); margin-bottom: 24px; display: block; }
.plan__features { margin-bottom: 28px; text-align: left; }
.plan__features li {
  padding: 8px 0; font-size: 15px; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.plan__features li::before {
  content: ''; width: 20px; height: 20px; flex-shrink: 0;
  background: var(--accent); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 10l2 2 4-4' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 10l2 2 4-4' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}
.plan .btn { width: 100%; }

/* === FAQ === */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); overflow: hidden;
}
.faq-item__q {
  width: 100%; padding: 20px 24px; border: none; background: none;
  text-align: left; font-size: 16px; font-weight: 600; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-family: inherit; gap: 16px;
}
.faq-item__q::after {
  content: '+'; font-size: 24px; font-weight: 400; color: var(--text2);
  transition: transform .3s; flex-shrink: 0;
}
.faq-item--open .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s;
}
.faq-item--open .faq-item__a { max-height: 200px; }
.faq-item__a p {
  padding: 0 24px 20px; font-size: 15px; color: var(--text2); line-height: 1.6;
}

/* === Final CTA === */
.cta-final { text-align: center; }
.cta-final__title { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-final__subtitle { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 32px; }

/* === Footer === */
.footer { padding: 32px 0; background: var(--text); }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
}
.footer__copy { font-size: 14px; color: rgba(255,255,255,.5); }
.footer__links { display: flex; gap: 24px; }
.footer__link { font-size: 14px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer__link:hover { color: #fff; }

/* === Section subtitle === */
.section__subtitle {
  text-align: center; font-size: 17px; color: var(--text2);
  margin-top: -32px; margin-bottom: 40px;
}

/* === Audience === */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.audience-card {
  padding: 28px 24px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center;
  border-top: 3px solid var(--primary-light); transition: border-color .2s, transform .2s;
}
.audience-card:hover { border-top-color: var(--primary); transform: translateY(-3px); }
.audience-card__icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.audience-card__icon svg { width: 24px; height: 24px; color: var(--primary); }
.audience-card__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.audience-card__desc { font-size: 14px; color: var(--text2); line-height: 1.5; }

/* === DDS Info === */
.dds-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.dds-info__title {
  font-size: 28px; font-weight: 800; margin-bottom: 20px; line-height: 1.3;
}
.dds-info__text p {
  font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 16px;
}
.dds-info__text p:last-child { margin-bottom: 0; }
.dds-info__points { display: flex; flex-direction: column; gap: 24px; }
.dds-point {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dds-point__icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius-sm);
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
}
.dds-point__icon svg { width: 20px; height: 20px; color: var(--primary); }
.dds-point strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.dds-point p { font-size: 14px; color: var(--text2); margin: 0; line-height: 1.5; }

/* === Banks === */
.banks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bank-card {
  padding: 24px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); border-left: 4px solid var(--primary-light);
  transition: border-left-color .2s;
}
.bank-card:hover { border-left-color: var(--primary); }
.bank-card__name {
  font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--text);
}
.bank-card__steps { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* === Animations === */
.animate-in {
  opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease;
}
.animate-in--visible { opacity: 1; transform: translateY(0); }

/* === Responsive === */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__title { font-size: 36px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .dashboard__charts { grid-template-columns: 1fr; }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .dds-info { grid-template-columns: 1fr; gap: 40px; }
  .banks { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__cta { display: none; }
  .header__burger { display: block; }

  .header__nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--surface); box-shadow: var(--shadow-lg); padding: 8px 0;
  }
  .header__nav.open .header__link { padding: 14px 20px; border-bottom: 1px solid var(--border); }

  .hero { padding: 110px 0 60px; }
  .hero__title { font-size: 28px; }
  .hero__subtitle { font-size: 17px; }

  .section { padding: 56px 0; }
  .section__title { font-size: 28px; margin-bottom: 32px; }

  .problems { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step + .step::before { display: none; }
  .features { grid-template-columns: 1fr; }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .dds-info { gap: 32px; }
  .dds-info__title { font-size: 22px; }
  .banks { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .plan--highlighted { transform: none; }
  .dashboard__kpis { grid-template-columns: 1fr; }
  .kpi__value { font-size: 22px; }

  .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 24px; }
  .btn--lg { padding: 14px 24px; font-size: 16px; }
  .comparison__table th, .comparison__table td { padding: 12px 14px; font-size: 14px; }
}
