/* ===== AUTX CRM Landing — style.css ===== */
/* Palette:
   --bg:       #0D1B2A
   --accent:   #E8720C
   --accent-h: #FF8A2E
   --muted:    #546E7A
   --text:     #F0F4F8
   --card-bg:  #132238
   --dark-text: #1A2332
*/

:root {
  --bg: #0D1B2A;
  --accent: #E8720C;
  --accent-hover: #FF8A2E;
  --muted: #546E7A;
  --text: #F0F4F8;
  --card-bg: #132238;
  --dark-text: #1A2332;
  --radius: 12px;
  --transition: .25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  margin-bottom: 12px;
}
.section-title h2 span {
  color: var(--accent);
}
.section-title p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(232, 114, 12, .35);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(232, 114, 12, .5);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== Sticky Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 27, 42, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(84, 110, 122, .2);
  transition: background var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.header__logo img {
  height: 36px;
  width: auto;
}
.header__logo span {
  color: var(--accent);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header__nav a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.header__nav a:hover {
  color: var(--text);
}

.header__cta {
  padding: 10px 24px;
  font-size: .9rem;
}

.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: 6px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: rgba(13, 27, 42, .97);
  backdrop-filter: blur(16px);
  padding: 24px 20px 32px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  border-bottom: 1px solid rgba(84, 110, 122, .2);
}
.mobile-nav.active {
  display: flex;
}
.mobile-nav a {
  color: var(--text);
  font-size: 1.1rem;
  padding: 8px 0;
}
.mobile-nav .btn {
  margin-top: 8px;
  width: 100%;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 114, 12, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 114, 12, .06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 114, 12, .15), transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content h1 {
  margin-bottom: 20px;
}
.hero__content h1 span {
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__mascot {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero__mascot::before {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(232, 114, 12, .25) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(13, 27, 42, .95) 30%, transparent 70%);
  z-index: 0;
}
.hero__mascot::after {
  content: '';
  position: absolute;
  inset: -60px;
  background:
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg 8deg,
      rgba(232, 114, 12, .04) 8deg 9deg,
      transparent 9deg 18deg
    );
  mask-image: radial-gradient(circle, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle, black 20%, transparent 65%);
  z-index: 0;
  animation: spin-slow 60s linear infinite;
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
.hero__mascot img {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  filter: drop-shadow(0 0 60px rgba(232, 114, 12, .3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}
.hero__stat-item strong {
  display: block;
  font-size: 1.6rem;
  color: var(--accent);
}
.hero__stat-item span {
  font-size: .85rem;
  color: var(--muted);
}

/* ===== SECTION spacing ===== */
section {
  padding: 80px 0;
}

/* ===== PAINS ===== */
.pains {
  background: linear-gradient(180deg, var(--bg) 0%, #0a1520 100%);
}

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

.pain-card {
  background: var(--card-bg);
  border: 1px solid rgba(84, 110, 122, .2);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.pain-card:hover::before {
  transform: scaleX(1);
}
.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 114, 12, .3);
}

.pain-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(232, 114, 12, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.pain-card__icon svg {
  width: 24px;
  height: 24px;
}

.pain-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.pain-card p {
  color: var(--muted);
  font-size: .95rem;
}

/* ===== FEATURES ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid rgba(84, 110, 122, .15);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: rgba(232, 114, 12, .3);
  transform: translateY(-2px);
}

.feature-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(232, 114, 12, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.feature-card p {
  color: var(--muted);
  font-size: .9rem;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: linear-gradient(180deg, #0a1520 0%, var(--bg) 100%);
}

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

.step {
  text-align: center;
  position: relative;
  padding: 32px 20px;
}
.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(232, 114, 12, .35);
}
.step h3 {
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  font-size: .95rem;
}

/* connector lines */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 60px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: var(--accent);
  opacity: .4;
}

.how-it-works__cta {
  text-align: center;
}

/* ===== REVIEWS ===== */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid rgba(84, 110, 122, .15);
  border-radius: var(--radius);
  padding: 28px;
}

.review-card__stars {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.review-card__text {
  font-style: italic;
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.7;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.review-card__name strong {
  display: block;
  font-size: .95rem;
}
.review-card__name span {
  color: var(--muted);
  font-size: .85rem;
}

.reviews__counter {
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
}
.reviews__counter strong {
  color: var(--accent);
  font-size: 1.4rem;
}

/* ===== PRICING ===== */
.pricing {
  background: linear-gradient(180deg, var(--bg) 0%, #0a1520 100%);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--card-bg);
  border: 1px solid rgba(84, 110, 122, .15);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}
.price-card--popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(232, 114, 12, .15);
}
.price-card--popular .price-card__badge {
  display: inline-block;
}

.price-card__badge {
  display: none;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
}

.price-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-card__price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.price-card__price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}

.price-card__desc {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 24px;
}

.price-card__features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}
.price-card__features li {
  padding: 6px 0;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-card__features li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: rgba(232, 114, 12, .15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23E8720C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.price-card .btn {
  width: 100%;
}

/* ===== FAQ ===== */
.faq__list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(84, 110, 122, .2);
}

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
  font-family: inherit;
}
.faq-item__question:hover {
  color: var(--accent);
}
.faq-item__question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: transform var(--transition);
}
.faq-item.active .faq-item__question svg {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.active .faq-item__answer {
  max-height: 300px;
  padding-bottom: 20px;
}
.faq-item__answer p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}

/* ===== FINAL CTA ===== */
.final-cta {
  background: linear-gradient(180deg, #0a1520 0%, var(--bg) 100%);
}

.final-cta__box {
  background: var(--card-bg);
  border: 1px solid rgba(232, 114, 12, .2);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.final-cta__box::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 114, 12, .12), transparent 70%);
  pointer-events: none;
}

.final-cta__box h2 {
  margin-bottom: 12px;
}
.final-cta__box > p {
  color: var(--muted);
  margin-bottom: 32px;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
}
.form-group input {
  padding: 12px 16px;
  border: 1px solid rgba(84, 110, 122, .3);
  border-radius: 8px;
  background: rgba(13, 27, 42, .8);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.form-group input:focus {
  border-color: var(--accent);
}
.form-group input::placeholder {
  color: rgba(84, 110, 122, .6);
}
.form-group .error-message {
  display: none;
  color: #e74c3c;
  font-size: .8rem;
}
.form-group.has-error input {
  border-color: #e74c3c;
}
.form-group.has-error .error-message {
  display: block;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
}
.form-consent input[type="checkbox"] {
  accent-color: var(--accent);
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.form-consent a {
  color: var(--accent);
  text-decoration: underline;
}
.form-consent .error-message {
  display: none;
  color: #e74c3c;
  font-size: .8rem;
}
.form-consent.has-error .error-message {
  display: block;
}

.demo-form .btn {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  font-size: 1.05rem;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: var(--card-bg);
  border: 1px solid rgba(232, 114, 12, .3);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  animation: modalIn .3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}
.modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(232, 114, 12, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
}
.modal__icon svg {
  width: 32px;
  height: 32px;
}
.modal h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.modal p {
  color: var(--muted);
  margin-bottom: 24px;
}
.modal .btn {
  min-width: 160px;
}

/* ===== FOOTER ===== */
.footer {
  background: #070f18;
  border-top: 1px solid rgba(84, 110, 122, .15);
  padding: 40px 0 24px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.footer__brand img {
  height: 32px;
}
.footer__brand span {
  color: var(--accent);
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__links a {
  color: var(--muted);
  font-size: .9rem;
}
.footer__links a:hover {
  color: var(--text);
}

.footer__contacts {
  font-size: .9rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__bottom {
  border-top: 1px solid rgba(84, 110, 122, .1);
  padding-top: 16px;
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content h1 {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__buttons {
    justify-content: center;
  }
  .hero__stats {
    justify-content: center;
  }
  .hero__mascot {
    order: -1;
  }
  .hero__mascot img {
    max-width: 280px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  .header__nav {
    display: none;
  }
  .header__cta.desktop-only {
    display: none;
  }
  .header__burger {
    display: block;
  }
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .hero__stats {
    gap: 24px;
    flex-wrap: wrap;
  }
  .features__grid {
    grid-template-columns: 1fr;
  }
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .final-cta__box {
    padding: 40px 24px;
  }
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero__buttons .btn {
    width: 100%;
  }
  .pains__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
