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

:root {
  --clr-primary: #0f172a;
  --clr-accent: #3b82f6;
  --clr-accent-dark: #1d4ed8;
  --clr-accent-light: #eff6ff;
  --clr-surface: #f8fafc;
  --clr-white: #ffffff;
  --clr-text: #1e293b;
  --clr-muted: #64748b;
  --clr-border: #e2e8f0;
  --clr-bad: #fee2e2;
  --clr-bad-text: #b91c1c;
  --clr-good: #dcfce7;
  --clr-good-text: #15803d;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --transition: 0.25s ease;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Poppins', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.65;
  font-size: 1rem;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: var(--clr-accent);
  color: var(--clr-white);
}
.btn--primary:hover { background: var(--clr-accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: var(--clr-white);
}
.btn--outline:hover { background: rgba(255,255,255,.1); }
.btn--full { width: 100%; justify-content: center; }

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--clr-white);
  transition: color var(--transition);
}
.header.scrolled .nav__logo { color: var(--clr-primary); }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  font-weight: 500;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--clr-white); }
.header.scrolled .nav__link { color: var(--clr-muted); }
.header.scrolled .nav__link:hover { color: var(--clr-accent); }

.nav__link--cta {
  background: var(--clr-accent);
  color: var(--clr-white) !important;
  padding: .5rem 1.25rem;
  border-radius: var(--radius-sm);
}
.nav__link--cta:hover { background: var(--clr-accent-dark); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: var(--transition);
}
.header.scrolled .nav__burger span { background: var(--clr-primary); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  overflow: hidden;
  padding-top: 68px;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-block: 5rem;
  max-width: 680px;
}
.hero__badge {
  display: inline-block;
  background: rgba(59,130,246,.2);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 50px;
  padding: .3rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero__highlight { color: var(--clr-accent); }
.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 2.5rem;
  max-width: 520px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Decorative shapes */
.hero__bg-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .07;
  background: var(--clr-accent);
}
.shape--1 { width: 600px; height: 600px; right: -100px; top: -100px; }
.shape--2 { width: 350px; height: 350px; right: 200px; bottom: -80px; opacity: .04; }
.shape--3 { width: 200px; height: 200px; left: 10%; top: 30%; opacity: .05; }

/* ===== SECTIONS ===== */
.section { padding-block: 6rem; }
.section--alt { background: var(--clr-surface); }

.section__head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section__label {
  display: inline-block;
  color: var(--clr-accent);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 1rem;
}
.section__sub {
  color: var(--clr-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.card--featured {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 1px var(--clr-accent), var(--shadow-md);
}
.card__badge {
  position: absolute;
  top: -12px; left: 1.5rem;
  background: var(--clr-accent);
  color: var(--clr-white);
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .75rem;
  border-radius: 50px;
}
.card__icon {
  width: 48px; height: 48px;
  background: var(--clr-accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--clr-accent);
}
.card__icon svg { width: 22px; height: 22px; }
.card__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: .6rem;
}
.card__text { color: var(--clr-muted); font-size: .95rem; margin-bottom: 1.25rem; }
.card__list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--clr-muted);
  font-size: .9rem;
  margin-bottom: .4rem;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: .55rem;
  width: 7px; height: 7px;
  background: var(--clr-accent);
  border-radius: 50%;
}

/* ===== SLIDER ===== */
.slider-wrapper { margin-bottom: 3rem; }
.slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: col-resize;
  user-select: none;
  border: 1px solid var(--clr-border);
}
.slider__after,
.slider__before {
  position: absolute;
  inset: 0;
}
.slider__before {
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}

/* Mockup – New website (right side) */
.slider__mockup {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 0;
}
.mock-bar {
  height: 28px;
  background: #e8ecf0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  flex-shrink: 0;
}
.mock-bar span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}
.mock-bar span:nth-child(1) { background: #fca5a5; }
.mock-bar span:nth-child(2) { background: #fde68a; }
.mock-bar span:nth-child(3) { background: #86efac; }

/* NEW */
.slider__mockup--new { background: #ffffff; }
.mock-nav--new {
  height: 44px;
  background: #1e3a5f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}
.mock-logo-new { width: 80px; height: 12px; background: #93c5fd; border-radius: 3px; }
.mock-links-new { display: flex; gap: 10px; }
.mock-links-new span { width: 36px; height: 8px; background: rgba(255,255,255,.4); border-radius: 3px; }

.mock-hero-new {
  height: 130px;
  background: linear-gradient(135deg, #1e3a5f, #3b82f6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  flex-shrink: 0;
}
.mock-headline-new { width: 60%; height: 16px; background: rgba(255,255,255,.9); border-radius: 4px; margin-bottom: 8px; }
.mock-sub-new { width: 80%; height: 8px; background: rgba(255,255,255,.5); border-radius: 3px; margin-bottom: 14px; }
.mock-btn-new { width: 90px; height: 26px; background: #f97316; border-radius: 5px; }

.mock-cards-new {
  display: flex;
  gap: 8px;
  padding: 14px;
  flex-shrink: 0;
}
.mock-card-new {
  flex: 1;
  height: 90px;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* OLD */
.slider__mockup--old { background: #d4cfc9; }
.mock-nav--old {
  height: 44px;
  background: #2a4a7f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}
.mock-logo-old { width: 60px; height: 20px; background: #c9b99a; border-radius: 2px; }
.mock-links-old { display: flex; gap: 6px; }
.mock-links-old span {
  width: 38px; height: 28px;
  background: #5a7fc0;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,.2);
}

.mock-hero-old {
  height: 90px;
  background: repeating-linear-gradient(45deg, #bfb8af, #bfb8af 2px, #ccc4ba 2px, #ccc4ba 12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  flex-shrink: 0;
}
.mock-headline-old { width: 55%; height: 14px; background: #3a3a3a; border-radius: 2px; margin-bottom: 8px; }
.mock-sub-old { width: 70%; height: 8px; background: #666; border-radius: 2px; }

.mock-content-old {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-text-old { height: 8px; background: #888; border-radius: 2px; }
.mock-text-old.short { width: 60%; }

.mock-label {
  position: absolute;
  bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}
.mock-label--new { right: 10px; background: #dcfce7; color: #15803d; }
.mock-label--old { left: 10px; background: #fee2e2; color: #b91c1c; z-index: 3; }

/* Slider handle */
.slider__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.slider__line {
  width: 3px;
  height: 100%;
  background: var(--clr-white);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.slider__grip {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: var(--clr-white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  cursor: col-resize;
}
.slider__grip svg { width: 20px; height: 20px; color: var(--clr-accent); }

/* ===== COMPARE TABLE ===== */
.compare-table { overflow-x: auto; }
.compare-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  background: var(--clr-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table th, .compare-table td {
  padding: .9rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
}
.compare-table th {
  background: var(--clr-primary);
  color: var(--clr-white);
  font-weight: 600;
  font-family: var(--font-head);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--clr-surface); }
.old-col { background: rgba(254,226,226,.15); }
.new-col { background: rgba(220,252,231,.15); }
.compare-table th.old-col { background: #b91c1c; }
.compare-table th.new-col { background: #15803d; }

.tag {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
}
.tag--bad { background: var(--clr-bad); color: var(--clr-bad-text); }
.tag--good { background: var(--clr-good); color: var(--clr-good-text); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group--full { grid-column: 1 / -1; }
.form-group--checkbox { align-items: flex-start; }

.form-group label {
  font-weight: 500;
  font-size: .9rem;
  color: var(--clr-primary);
}
.required { color: var(--clr-accent); }
.optional { color: var(--clr-muted); font-weight: 400; font-size: .8rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--clr-text);
  background: var(--clr-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-group input.error,
.form-group textarea.error { border-color: #ef4444; }
.form-group textarea { resize: vertical; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  cursor: pointer;
  font-size: .9rem;
  color: var(--clr-muted);
}
.checkbox-label input { margin-top: .2rem; accent-color: var(--clr-accent); flex-shrink: 0; }
.checkbox-label a { color: var(--clr-accent); text-decoration: underline; }

.form-note { color: var(--clr-muted); font-size: .8rem; }

.contact-info {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info__icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info__icon svg { width: 18px; height: 18px; color: var(--clr-white); }
.contact-info__item strong { display: block; font-size: .8rem; color: rgba(255,255,255,.5); margin-bottom: .2rem; font-weight: 500; }
.contact-info__item a { color: var(--clr-white); font-size: .95rem; word-break: break-all; }
.contact-info__item a:hover { color: #93c5fd; }
.contact-info__note {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--clr-primary);
  color: rgba(255,255,255,.55);
  padding-block: 2.5rem;
  font-size: .9rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer__logo { font-family: var(--font-head); font-weight: 700; color: var(--clr-white); font-size: 1rem; }
.footer__nav { display: flex; gap: 1.5rem; }
.footer__nav a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer__nav a:hover { color: var(--clr-white); }
.footer__copy { color: rgba(255,255,255,.35); }

/* ===== LEGAL PAGES ===== */
.legal-page { padding-top: 100px; padding-bottom: 4rem; }
.legal-page h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--clr-primary);
  margin-bottom: 2rem;
}
.legal-page h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--clr-primary);
  margin-top: 2rem;
  margin-bottom: .5rem;
}
.legal-page p, .legal-page li { color: var(--clr-muted); line-height: 1.8; margin-bottom: .5rem; }
.legal-page a { color: var(--clr-accent); }
.legal-page ul { padding-left: 1.25rem; list-style: disc; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { order: -1; }
}

@media (max-width: 768px) {
  .nav__list {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--clr-primary);
    flex-direction: column;
    padding: 2rem 1.25rem;
    gap: 1.5rem;
  }
  .nav__list.open { display: flex; }
  .nav__link { color: rgba(255,255,255,.8); font-size: 1.1rem; }
  .nav__link--cta { display: inline-block; text-align: center; }
  .nav__burger { display: flex; }

  .contact-form { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__brand { flex-direction: column; gap: .25rem; }

  .slider { height: 280px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { justify-content: center; }
}
