/* =============================================
   MARTIAN DIGITAL — Home Page Styles
   Palette: Neon Blue · Black · White · Pastel Green
   ============================================= */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-orb-1 {
  position: absolute;
  width: 600px; height: 600px;
  top: -150px; right: -200px;
  animation: orb-drift 12s ease-in-out infinite;
}
.hero-orb-2 {
  position: absolute;
  width: 450px; height: 450px;
  bottom: -100px; left: -120px;
  animation: orb-drift 15s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  animation: fadeUp 0.6s ease both;
  margin-bottom: 20px;
}

.hero-brand-headline {
  margin-bottom: 20px;
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero-logo-banner {
  height: clamp(44px, 5vw, 68px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(0,212,255,0.25));
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--white);
  animation: fadeUp 0.7s ease 0.2s both;
}

.word-rotate-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.word-rotate {
  display: inline-flex;
  flex-direction: column;
  animation: wordSpin 6s steps(1) infinite;
}
.word-rotate span:nth-child(1) { color: var(--neon-blue); }
.word-rotate span:nth-child(2) { color: var(--pastel-green); }
.word-rotate span:nth-child(3) { color: var(--white); }

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 36px;
  animation: fadeUp 0.7s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 50px;
  animation: fadeUp 0.7s ease 0.4s both;
}

.hero-stats {
  display: flex;
  gap: 36px; flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.5s both;
}
.stat-item { text-align: left; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800; line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: .78rem; color: var(--text-muted);
  font-family: var(--font-accent);
  letter-spacing: .06em; text-transform: uppercase;
}

/* ── Hero Visual Showcase (Lineart Motion Graphic Card) ── */
.hero-visual-col {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease 0.4s both;
}

.hero-motion-graphic-card {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transition: var(--transition);
  overflow: visible;
}
.hero-motion-graphic-card:hover {
  border-color: var(--border-blue);
  box-shadow: var(--glow-blue);
}

.motion-radar-glow {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(0,212,255,0.12);
  filter: blur(50px);
  animation: pulseGlow 4s ease-in-out infinite;
  pointer-events: none;
}

.motion-graphic-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  overflow: visible;
}


/* Floating feature pills around logo card */
.floating-pill {
  position: absolute;
  padding: 10px 16px;
  border-radius: 100px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 3;
  transition: var(--transition);
  white-space: nowrap;
}
.floating-pill:hover {
  border-color: var(--neon-blue);
  transform: scale(1.05);
}

.pill-icon { font-size: 1.1rem; }
.pill-text { display: flex; flex-direction: column; text-align: left; }
.pill-text strong { font-size: 0.78rem; font-weight: 700; color: var(--white); }
.pill-text span { font-size: 0.68rem; color: var(--text-muted); font-family: var(--font-accent); }

.pill-top-left     { top: -16px; left: -16px; animation: float 6s ease-in-out infinite; }
.pill-top-right    { top: -16px; right: -16px; animation: float 7s ease-in-out infinite 1s; }
.pill-bottom-left  { bottom: -16px; left: -16px; animation: float 8s ease-in-out infinite 2s; }
.pill-bottom-right { bottom: -16px; right: -16px; animation: float 6.5s ease-in-out infinite 1.5s; }

/* Responsive Grid */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-subtitle {
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual-col {
    margin-top: 20px;
  }
}

@media (max-width: 544px) {
  .floating-pill {
    padding: 6px 12px;
  }
  .pill-text span { display: none; }
  .pill-top-left { left: 0; }
  .pill-top-right { right: 0; }
  .pill-bottom-left { left: 0; }
  .pill-bottom-right { right: 0; }
}


/* ── Lineart SVG ── */
.lineart-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.la-line {
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  animation: drawLine 3s ease forwards;
}
.la-line-2 { animation-delay: .5s; }
.la-line-3 { animation-delay: 1s; }
.la-line-4 { animation-delay: 1.5s; }
.la-line-5 { animation-delay: 2s; }
.la-node { animation: nodeGlow 3s ease-in-out infinite; }

/* ── Marquee ── */
.marquee-section {
  padding: 20px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
  background: var(--bg-secondary);
}
.marquee-track {
  display: flex; gap: 60px;
  animation: marquee 25s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 12px;
  white-space: nowrap;
  font-family: var(--font-accent);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); transition: color 0.3s;
}
.marquee-item:hover { color: var(--neon-blue); }
.marquee-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pastel-green); flex-shrink: 0;
}

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

.service-card {
  padding: 36px 32px;
  cursor: pointer;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: var(--neon-blue);
  opacity: 0; transition: opacity 0.4s ease; z-index: 0;
}
.service-card:hover::before { opacity: 0.04; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; position: relative; z-index: 1;
}
.service-icon svg { width: 28px; height: 28px; }

/* Unified icon style — neon blue or pastel green */
.si-blue   { background: rgba(0,212,255,0.1);   border: 1px solid rgba(0,212,255,0.3); }
.si-purple { background: rgba(168,245,208,0.1); border: 1px solid rgba(168,245,208,0.25); }
.si-cyan   { background: rgba(0,212,255,0.08);  border: 1px solid rgba(0,212,255,0.25); }
.si-pink   { background: rgba(168,245,208,0.08);border: 1px solid rgba(168,245,208,0.2); }
.si-green  { background: rgba(168,245,208,0.1); border: 1px solid rgba(168,245,208,0.3); }
.si-orange { background: rgba(0,212,255,0.07);  border: 1px solid rgba(0,212,255,0.2); }

.service-card h3 {
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 12px; position:relative; z-index:1; color:var(--white);
}
.service-card p {
  font-size: .9rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 24px;
  position:relative; z-index:1;
}
.service-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600;
  color: var(--neon-blue);
  font-family: var(--font-accent);
  position:relative; z-index:1; transition:var(--transition);
}
.service-card:hover .service-arrow { gap: 14px; }

/* ── Process Section ── */
.process-section { background: var(--bg-secondary); }

.process-steps {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; position: relative; margin-top: 60px;
}
.process-steps::before {
  content: ''; position: absolute;
  top: 36px; left: 10%; width: 80%; height: 1px;
  background: rgba(0,212,255,0.2); opacity: 1;
}

.process-step {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; padding: 0 20px;
}
.step-number {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  margin-bottom: 24px; position:relative; z-index:1;
  transition: var(--transition);
}
.process-step:hover .step-number {
  border-color: var(--neon-blue);
  box-shadow: var(--glow-blue);
  color: var(--neon-blue);
}
.step-number span { color: var(--neon-blue); }
.process-step h4 { font-size:1.05rem; font-weight:700; margin-bottom:10px; }
.process-step p  { font-size:.85rem; color:var(--text-secondary); line-height:1.65; }

/* ── Work Grid ── */
.work-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 24px; margin-top: 60px;
}
.work-item {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; aspect-ratio: 16/10; cursor: pointer;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
}
.work-item-inner {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: 28px;
  background: linear-gradient(0deg, rgba(7,7,7,0.92) 0%, transparent 60%);
  transition: var(--transition);
}
.work-item:hover .work-item-inner {
  background: linear-gradient(0deg, rgba(7,7,7,0.97) 0%, rgba(7,7,7,0.4) 100%);
}
.work-item:hover {
  border-color: var(--border-blue);
  box-shadow: var(--glow-blue);
}
.work-mock {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.work-item-info { position: relative; z-index: 1; }
.work-cat {
  font-family: var(--font-accent); font-size: .7rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--neon-blue); margin-bottom: 6px;
}
.work-item h3 { font-size: 1.3rem; font-weight: 700; }

/* ── Testimonials ── */
.testimonials-section { overflow: hidden; }
.testimonials-track {
  display: flex; gap: 24px; margin-top: 60px;
  animation: scrollRight 30s linear infinite;
  width: max-content;
}
.testimonials-track:hover { animation-play-state: paused; }
.testimonial-card { min-width: 380px; padding: 32px; }
.stars { display: flex; gap: 4px; margin-bottom: 20px; }
.star  { color: var(--neon-blue); font-size: 1rem; }
.testimonial-card blockquote {
  font-size: .95rem; color: var(--text-secondary);
  line-height: 1.75; margin-bottom: 24px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--neon-blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; color: var(--black); flex-shrink: 0;
}
.author-info strong { display: block; font-size: .9rem; font-weight: 600; }
.author-info span   { font-size: .78rem; color: var(--text-muted); }

/* ── CTA Banner ── */
.cta-banner {
  padding: 72px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  text-align: center; position: relative; overflow: hidden;
  backdrop-filter: blur(20px);
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,212,255,0.03);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 800; margin-bottom: 16px;
}
.cta-banner p { color: var(--text-secondary); margin-bottom: 36px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Redesigned What You Get Section ── */
.wyg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.wyg-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.wyg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition);
}

.wyg-card-blue::before  { background: var(--neon-blue); }
.wyg-card-green::before { background: var(--pastel-green); }

.wyg-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-blue);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.wyg-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.wyg-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wyg-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}

.wyg-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Interactive Card Widgets */
.wyg-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wyg-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-family: var(--font-accent);
  color: var(--text-secondary);
}
.wyg-check-item span.check-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,212,255,0.12);
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  flex-shrink: 0;
}

.wyg-tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wyg-tag {
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(168,245,208,0.08);
  border: 1px solid var(--border-green);
  color: var(--pastel-green);
  font-size: 0.75rem;
  font-family: var(--font-accent);
  font-weight: 600;
}

.wyg-metrics-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.wyg-metric-box {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
}
.wyg-metric-val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--neon-blue);
}
.wyg-metric-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-accent);
}

@media (max-width: 768px) {
  .wyg-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Responsive ── */
@media (max-width:1024px){
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .process-steps { grid-template-columns: repeat(2,1fr); gap:40px; }
  .process-steps::before { display:none; }
}
@media (max-width:768px){
  .services-grid { grid-template-columns:1fr; }
  .work-grid     { grid-template-columns:1fr; }
  .cta-banner    { padding:48px 24px; }
  .hero-stats    { gap:32px; }
}

