/* ── Animations ──────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grids */
.services-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.services-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.services-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }
.services-grid [data-animate]:nth-child(5) { transition-delay: 0.32s; }
.services-grid [data-animate]:nth-child(6) { transition-delay: 0.40s; }

/* Chat mockup staggered appearance */
.chat-demo-msg {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.chat-demo-msg.msg-visible {
  opacity: 1;
  transform: translateY(0);
}
.chat-demo-msg:nth-child(2) { transition-delay: 0.3s; }
.chat-demo-msg:nth-child(3) { transition-delay: 0.6s; }
.chat-demo-msg:nth-child(4) { transition-delay: 0.9s; }

/* Focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: #FFFFFF;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.nav.scrolled .logo {
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  transition: color 0.3s;
}
.nav.scrolled .nav-links a {
  color: var(--text);
}
.nav-links a:hover {
  color: var(--accent);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #FFFFFF !important;
  border-radius: var(--radius-btn);
  transition: background 0.2s;
}
.btn-nav:hover {
  background: var(--accent-hover);
  color: #FFFFFF !important;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  padding: 14px 32px;
  font-size: 15px;
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
}

.btn-ghost {
  padding: 14px 28px;
  font-size: 15px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
.btn-ghost:hover {
  background: var(--text);
  color: #FFFFFF;
}

.btn-white {
  padding: 14px 32px;
  font-size: 15px;
  background: #FFFFFF;
  color: var(--text);
}
.btn-white:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.btn-outline-white {
  padding: 14px 32px;
  font-size: 15px;
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

/* ── Hero (jumbotron with background image) ─────────────── */
.hero {
  margin-top: 0;
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 43, 58, 0.82) 0%, rgba(28, 43, 58, 0.6) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}

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

/* Hero phone demo box */
.hero-demo-box {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.hero-demo-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.hero-demo-phone {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hero-demo-hint {
  font-size: 15px;
  color: var(--dark-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-demo-ring {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 15px;
  cursor: default;
  animation: crs-pulse 2s ease-in-out infinite;
}

@keyframes crs-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(217, 119, 6, 0); }
}

.hero-demo-ring svg {
  width: 20px;
  height: 20px;
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--dark);
  padding: 48px 0;
}

.stats-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 14px;
  color: var(--dark-text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ── Services Section ────────────────────────────────────── */
.services-section {
  background: var(--dark);
  padding: 100px 0;
}

.services-header {
  margin-bottom: 56px;
}

.services-header h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--dark-text);
}

.services-header p {
  font-size: 16px;
  color: var(--dark-text-muted);
  margin-top: 8px;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: background 0.3s, border-color 0.3s;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(217, 119, 6, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--dark-text-muted);
  line-height: 1.6;
}

/* ── Why CRS Section ─────────────────────────────────────── */
.why-section {
  background: var(--bg-alt);
  padding: 100px 0;
}

.why-inner {
  max-width: 640px;
}

.why-text h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.why-item strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.why-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Chat mockup */
.chat-mockup {
  background: #FFFFFF;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.chat-mockup-header {
  padding: 14px 20px;
  background: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  flex-shrink: 0;
}

.chat-mockup-name {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

.chat-mockup-status {
  font-size: 12px;
  color: var(--dark-text-muted);
  margin-left: auto;
}

.chat-mockup-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
}

.chat-demo-msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.chat-demo-msg.msg-user {
  background: var(--accent);
  color: #FFFFFF;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-demo-msg.msg-bot {
  background: #F0F1F3;
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* ── AI Chat Showcase ────────────────────────────────────── */
.ai-section {
  background: var(--bg);
  padding: 80px 0;
  text-align: center;
}

.ai-inner {
  max-width: 640px;
  margin: 0 auto;
}

.ai-section h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.ai-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.ai-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text);
}

.ai-feature svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background: var(--accent);
  padding: 80px 0;
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cta-section .cta-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--dark-border);
}

.footer-brand .logo {
  font-size: 22px;
  color: #FFFFFF;
  margin-bottom: 12px;
  display: inline-block;
}

.footer-brand p {
  font-size: 14px;
  color: var(--dark-text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin-top: 16px;
}

.footer-brand .footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  font-family: var(--font-heading);
}
.footer-brand .footer-phone svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  color: var(--dark-text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
  line-height: 1.5;
}

.footer-col a:hover {
  color: #FFFFFF;
}

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

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-copy a:hover {
  color: #FFFFFF;
}

/* ── Hamburger ───────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav.scrolled .nav-hamburger span {
  background: var(--text);
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Responsive: 1024px ──────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-headline { font-size: 42px; }
  .hero-inner { gap: 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .why-inner { gap: 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ── Responsive: 768px ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { font-size: 16px; color: var(--text); }

  .hero { padding: 120px 0 40px; min-height: 0; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-headline { font-size: 34px; }
  .hero-bg img { object-position: 60% center; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: center;
  }
  .stat-number { font-size: 28px; }

  .services-section,
  .why-section,
  .ai-section,
  .cta-section { padding: 72px 0; }

  .services-header h2,
  .why-text h2,
  .ai-section h2,
  .cta-section h2 { font-size: 32px; }

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

  .why-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-demo-phone { font-size: 28px; }
}
