/* ═══════════════════════════════════════════
   DirectAI — Motion Design & Animations
   ═══════════════════════════════════════════ */

/* ── Hero Section ── */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: translateX(-50%) scale(0.95); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

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

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* ── Hero Image ── */
.hero-image-wrap {
  margin-top: 60px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  animation: heroImageReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes heroImageReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-image-wrap img {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: 0 0 80px rgba(0, 255, 136, 0.04), 0 20px 60px rgba(0,0,0,0.5);
  max-width: 900px;
  margin: 0 auto;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
}

.hero-image-wrap:hover img {
  transform: translateY(-5px) scale(1.005);
  box-shadow: 0 0 100px rgba(0, 255, 136, 0.06), 0 30px 80px rgba(0,0,0,0.6);
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--green), var(--cyan));
  opacity: 0.08;
  z-index: -1;
  filter: blur(40px);
  transition: opacity 0.5s;
}

.hero-image-wrap:hover::before { opacity: 0.15; }

/* ── Live Activity Ticker ── */
.ticker-wrap {
  margin-top: 30px;
  opacity: 0;
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.ticker-bar {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

.ticker-dot.amber { background: var(--amber); }

.ticker-sep {
  width: 1px;
  height: 12px;
  background: var(--border);
}

/* ── Terminal ── */
.terminal-section {
  padding: 20px 0 100px;
}

.terminal {
  max-width: 860px;
  margin: 0 auto;
  background: #0a0f06;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 255, 136, 0.04), 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.terminal:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 100px rgba(0, 255, 136, 0.06), 0 25px 70px rgba(0,0,0,0.5);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(0, 255, 136, 0.02);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: transform 0.3s;
}

.terminal:hover .terminal-dot { transform: scale(1.15); }
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 24px;
  font-size: 0.8rem;
  line-height: 1.9;
}

.terminal-line {
  opacity: 0;
  transform: translateX(-5px);
}

.terminal-line.animate {
  animation: typeLine 0.3s ease forwards;
}

@keyframes typeLine {
  to { opacity: 1; transform: translateX(0); }
}

.t-prompt { color: var(--green); }
.t-key { color: var(--cyan); }
.t-value { color: #ffd700; }
.t-ok { color: var(--green); }
.t-warn { color: var(--amber); }
.t-dim { color: var(--text-muted); }
.t-text { color: var(--text-dim); }
.t-red { color: var(--red); }

/* ── Stats ── */
.stats {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-card);
  padding: 36px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.stat-item:hover { background: var(--bg-card-hover); }

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover::after { width: 60%; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-number.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.stat-label.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Floating Status Badge ── */
.floating-status {
  position: absolute;
  right: 20px;
  top: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: floatBadge 3s ease-in-out infinite;
}

.floating-status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

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

/* ── Split Hero Layout ── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.hero-split .hero-content {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}

.hero-split .hero-visual {
  opacity: 0;
  transform: translateX(30px);
  animation: slideInRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes slideInRight {
  to { opacity: 1; transform: translateX(0); }
}

/* ── Number Counter ── */
.counter-value {
  display: inline-block;
}

/* ── Glow Ring Effect ── */
.glow-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid var(--green);
  opacity: 0.1;
  animation: glowRing 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowRing {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.1); opacity: 0.2; }
}

/* ── Shimmer Effect ── */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.05), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ── Stagger Children ── */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.reveal-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.reveal-visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.reveal-visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.reveal-visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.reveal-visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.reveal-visible > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-children.reveal-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.scroll-indicator span {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--border-hover);
  border-radius: 10px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--green);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 16px; opacity: 0.3; }
}

/* ── Testimonial Cards ── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(20px);
}

.testimonial-card.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
  color: var(--amber);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 16px;
}

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

.testimonial-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--green);
  font-weight: 700;
}

.testimonial-name {
  font-size: 0.78rem;
  font-weight: 500;
}

.testimonial-role {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ── Trust Bar ── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 30px 0;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-bar.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.trust-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.5;
}

/* ── Feature Showcase ── */
.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.feature-showcase.reverse {
  direction: rtl;
}

.feature-showcase.reverse > * {
  direction: ltr;
}

.feature-showcase-text h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-showcase-text p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.feature-showcase-list {
  margin-bottom: 24px;
}

.feature-showcase-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 6px 0;
}

.feature-showcase-list li svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.feature-showcase-visual {
  position: relative;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.feature-showcase-visual::-webkit-scrollbar {
  height: 4px;
}

.feature-showcase-visual::-webkit-scrollbar-track {
  background: transparent;
}

.feature-showcase-visual::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.feature-showcase-visual svg {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
  flex-shrink: 0;
}

.feature-showcase-visual.reveal-visible {
  opacity: 1;
  transform: translateX(0);
}

.feature-showcase-visual img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.04), 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-showcase-visual:hover img {
  transform: scale(1.02);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-split .hero-content {
    order: 1;
    animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  }
  .hero-split .hero-visual {
    order: 0;
    animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  }
  .feature-showcase {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .feature-showcase.reverse {
    direction: ltr;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
