/* ============================================================
   CRM26 Landing Page — Stylesheet
   ============================================================ */

/* === Variables === */
:root {
  --brand: #51a2a2;
  --brand-dark: #3a8a8a;
  --text-primary: #0f172a;
  --text-muted: #334155;
  --text-soft: #94a3b8;
  --border: #e2e8f0;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 10px 40px rgba(15, 23, 42, 0.12);
  --shadow-btn: 0 4px 16px rgba(81, 162, 162, 0.32);
  --shadow-btn-hover: 0 10px 28px rgba(81, 162, 162, 0.38);
  --radius: 10px;
  --ease: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

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

/* === Animations === */
@keyframes drift1 {
  0% {
    transform: translate3d(-6%, -4%, 0) scale(1);
  }

  50% {
    transform: translate3d(6%, 4%, 0) scale(1.12);
  }

  100% {
    transform: translate3d(-6%, -4%, 0) scale(1);
  }
}

@keyframes drift2 {
  0% {
    transform: translate3d(4%, 3%, 0) scale(1.05);
  }

  50% {
    transform: translate3d(-5%, -3%, 0) scale(1);
  }

  100% {
    transform: translate3d(4%, 3%, 0) scale(1.05);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Page wrapper === */
.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* === Background blobs === */
.bg-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
}

.blob--1 {
  top: -22vw;
  left: -14vw;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle, rgba(81, 162, 162, 0.20) 0%, transparent 68%);
  filter: blur(40px);
  animation: drift1 34s ease-in-out infinite;
}

.blob--2 {
  top: 8vw;
  right: -20vw;
  width: 54vw;
  height: 54vw;
  background: radial-gradient(circle, rgba(120, 140, 160, 0.16) 0%, transparent 70%);
  filter: blur(46px);
  animation: drift2 44s ease-in-out infinite;
}

.blob--3 {
  bottom: -24vw;
  left: 20vw;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(81, 162, 162, 0.12) 0%, transparent 70%);
  filter: blur(52px);
  animation: drift1 52s ease-in-out infinite reverse;
}

/* === Content layer === */
.content {
  position: relative;
  z-index: 1;
}

/* === Container === */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Buttons === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 18px 32px;
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-btn);
  transition: var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
  outline: none;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.btn-primary__arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-primary__arrow {
  transform: translateX(3px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  transition: var(--ease);
  cursor: pointer;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--text-primary);
  border-color: var(--brand);
  outline: none;
}

.btn-ghost:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* === Header === */
.site-header {
  padding: 28px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.logo__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
}

.logo__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* === Hero === */
.hero {
  padding: 76px 0 0;
  text-align: center;
  animation: rise 0.9s cubic-bezier(.2, .8, .2, 1) both;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef7f7;
  color: var(--brand-dark);
  border: 1px solid rgba(81, 162, 162, 0.22);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 30px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.hero__title {
  margin: 0;
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}

.hero__title-soft {
  color: var(--text-soft);
}

.hero__tagline {
  margin: 28px auto 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-wrap: balance;
}

.hero__subtitle {
  margin: 16px auto 0;
  max-width: 555px;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero__hints {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}

.hero__hint {
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.005em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__hint::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* === Screenshot === */
.screenshot-section {
  padding: 72px 0 0;
  animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) 0.12s both;
}

.screenshot-card {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.screenshot-card__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.screenshot-card__dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.screenshot-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  display: block;
}

.screenshot-card__url {
  margin: 0 auto;
  padding: 4px 14px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-soft);
  letter-spacing: 0.01em;
  user-select: none;
}

/* === Features === */
.features-section {
  padding: 110px 0 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 56px 40px;
}

.feature__bar {
  width: 30px;
  height: 2px;
  background: var(--brand);
  margin-bottom: 20px;
}

.feature__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.feature__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* === CTA section === */
.cta-section {
  padding: 120px 0 40px;
  text-align: center;
}

.cta-section__title {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}

.cta-section__subtitle {
  margin: 22px auto 0;
  max-width: 460px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
}

.cta-section__action {
  margin-top: 36px;
}

/* === Footer === */
.site-footer {
  border-top: 1px solid #f1f5f9;
  margin-top: 60px;
  padding: 60px 0 44px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-soft);
}

/* === Scroll reveal === */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Visually hidden (screen-reader only) === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Skip link (accessibility) === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 8px 16px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 6px 0;
  z-index: 9999;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0;
}

/* === Print === */
@media print {
  .noprint {
    display: none;
  }

  .bg-blobs {
    display: none;
  }
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero {
    padding: 56px 0 0;
  }

  .screenshot-section {
    padding: 52px 0 0;
  }

  .features-section {
    padding: 80px 0 0;
  }

  .cta-section {
    padding: 80px 0 32px;
  }

  .site-footer {
    padding: 48px 0 36px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 20px 0;
  }

  .btn-primary {
    font-size: 15px;
    padding: 16px 22px;
  }

  .hero {
    padding: 44px 0 0;
  }

  .hero__actions {
    width: 100%;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* === Screenshot caption === */
.screenshot-caption {
  margin: 18px auto 0;
  max-width: 620px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* === Compare section === */
.compare-section {
  padding: 110px 0 0;
}

.compare-inner {
  border-top: 1px solid var(--border);
  padding-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px 60px;
  align-items: start;
}

.compare-title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.compare-text {
  margin: 20px 0 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #f1f5f9;
}

.compare-row__before {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-soft);
}

.compare-row__after {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  gap: 10px;
}

.compare-row__after::before {
  content: '→';
  color: var(--brand);
  flex-shrink: 0;
}

/* === Testimonials === */
.testimonials-section {
  padding: 110px 0 0;
}

.testimonials-header {
  border-top: 1px solid var(--border);
  padding-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.testimonials-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.testimonials-meta {
  font-size: 13px;
  color: var(--text-soft);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial__quote {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
}

.testimonial__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef7f7;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial__info {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.testimonial__name {
  font-size: 13.5px;
  font-weight: 600;
}

.testimonial__role {
  font-size: 12.5px;
  color: var(--text-soft);
}

/* === Steps === */
.steps-section {
  padding: 110px 0 0;
}

.steps-inner {
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

.steps-title {
  margin: 0 0 44px;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.step__num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eef7f7;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* === CTA note === */
.cta-section__note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

/* === Responsive — new sections === */
@media (max-width: 768px) {
  .compare-section,
  .testimonials-section,
  .steps-section {
    padding: 80px 0 0;
  }

  .compare-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .compare-row__after {
    color: var(--brand-dark);
  }
}