/* ============================================
   DYNAMO FREIGHT — SHARED STYLES
   Brand System: Freight Grey + Dynamo Green
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

::selection { background: rgba(126,217,87,0.3); color: #fff; }

body {
  background: #1a1a1a;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #7ED957; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #6bc048; }

/* ---- Animations ---- */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes typeIn {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

/* Green gradient text */
.text-gradient {
  background: linear-gradient(135deg, #7ED957 0%, #5BC236 50%, #7ED957 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

/* Card with hover glow */
.glow-card {
  position: relative;
  background: #2B2B2B;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(126,217,87,0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
.glow-card:hover {
  border-color: rgba(126,217,87,0.2);
  transform: translateY(-2px);
}
.glow-card:hover::before { opacity: 1; }

/* Section line divider */
.section-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126,217,87,0.3), transparent);
}

/* Nav blur */
.nav-blur {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* CTA button */
.cta-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1));
  opacity: 0;
  transition: opacity 0.3s;
}
.cta-primary:hover::after { opacity: 1; }
.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(126,217,87,0.25);
}

.cta-outline {
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  transition: all 0.3s;
}
.cta-outline:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

/* Hero grid background */
.hero-grid {
  background-image:
    linear-gradient(rgba(126,217,87,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,217,87,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Marquee */
.marquee-track { animation: marquee 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

/* Quote mark */
.quote-mark {
  font-size: 6rem;
  line-height: 1;
  color: rgba(126,217,87,0.15);
  font-family: Georgia, serif;
}

/* Step number */
.step-num {
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', monospace;
}

/* Vertical icon container */
.v-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- TERMINAL ---- */
.terminal {
  background: #0d0d0d;
  border: 1px solid rgba(126,217,87,0.15);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 0 60px rgba(126,217,87,0.05), 0 20px 60px rgba(0,0,0,0.5);
}
.terminal-header {
  background: #161616;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-body {
  padding: 24px;
  font-size: 13px;
  line-height: 1.8;
  min-height: 300px;
  color: rgba(255,255,255,0.7);
}
.terminal-line {
  opacity: 0;
  animation: fadeInUp 0.3s ease forwards;
}
.terminal-prompt { color: #7ED957; }
.terminal-cmd { color: #fff; }
.terminal-label { color: rgba(255,255,255,0.35); }
.terminal-value { color: #fff; }
.terminal-status-on { color: #7ED957; }
.terminal-status-off { color: #FF6969; }
.terminal-comment { color: rgba(255,255,255,0.2); font-style: italic; }
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #7ED957;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}
.terminal-divider {
  color: rgba(255,255,255,0.15);
}

/* ---- Counter animation ---- */
.counter-value {
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ---- Timeline ---- */
.timeline-item {
  position: relative;
  padding-left: 40px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 24px;
  bottom: -24px;
  width: 2px;
  background: rgba(126,217,87,0.15);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #7ED957;
  background: #1a1a1a;
}

/* ---- Form styles ---- */
.form-input {
  width: 100%;
  background: #2B2B2B;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-family: 'Inter', system-ui, sans-serif;
  transition: border-color 0.3s;
  outline: none;
}
.form-input:focus {
  border-color: #7ED957;
}
.form-input::placeholder {
  color: rgba(255,255,255,0.25);
}
textarea.form-input {
  resize: vertical;
  min-height: 120px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Testimonial ---- */
.testimonial-card {
  position: relative;
  background: #2B2B2B;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px;
}
.testimonial-card .quote-icon {
  color: rgba(126,217,87,0.2);
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  position: absolute;
  top: 16px;
  left: 24px;
}

/* ---- Page header ---- */
.page-header {
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126,217,87,0.3), transparent);
}

/* ---- Comparison table ---- */
.compare-them {
  color: rgba(255,255,255,0.3);
}
.compare-us {
  color: #7ED957;
}

/* ---- Dynamo wave (canvas scroll progress) ---- */
#dynamo-wave {
  image-rendering: auto;
}

/* ---- Particle canvas ---- */
#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- Card 3D tilt ---- */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

/* ---- Lightning flash (easter egg) ---- */
@keyframes lightning {
  0% { opacity: 0; }
  5% { opacity: 0.8; }
  10% { opacity: 0; }
  15% { opacity: 0.6; }
  20% { opacity: 0; }
  100% { opacity: 0; }
}
#lightning-flash {
  position: fixed;
  inset: 0;
  background: rgba(126,217,87,0.15);
  z-index: 99990;
  pointer-events: none;
  opacity: 0;
}
#lightning-flash.flash {
  animation: lightning 0.5s ease-out;
}

/* ---- Marquee trust bar ---- */
.trust-bar {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(43,43,43,0.3);
}
.trust-bar .marquee-inner {
  display: inline-flex;
  animation: marquee 40s linear infinite;
}
.trust-bar:hover .marquee-inner {
  animation-play-state: paused;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  font-size: 13px;
  color: rgba(255,255,255,0.2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- CTA glow pulse ---- */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(126,217,87,0.15), 0 0 40px rgba(126,217,87,0.05); }
  50% { box-shadow: 0 0 30px rgba(126,217,87,0.3), 0 0 60px rgba(126,217,87,0.1); }
}
.cta-glow {
  animation: glowPulse 2.5s ease-in-out infinite;
}
.cta-glow:hover {
  animation: none;
  box-shadow: 0 8px 30px rgba(126,217,87,0.35);
}

/* ---- Stat card ---- */
.stat-card {
  position: relative;
  background: #2B2B2B;
  border: 1px solid rgba(126,217,87,0.1);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7ED957, transparent);
}
.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: 'Inter', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-card .stat-label {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

/* ---- Dynamo column glow (comparison tables) ---- */
.compare-col-dynamo {
  background: rgba(126,217,87,0.04);
  border-left: 1px solid rgba(126,217,87,0.1);
  border-right: 1px solid rgba(126,217,87,0.1);
}
.compare-col-dynamo-head {
  background: rgba(126,217,87,0.08);
  border-left: 1px solid rgba(126,217,87,0.15);
  border-right: 1px solid rgba(126,217,87,0.15);
  border-top: 2px solid #7ED957;
}

/* ---- Response guarantee badge ---- */
.guarantee-badge {
  position: relative;
  background: linear-gradient(135deg, rgba(126,217,87,0.08), rgba(126,217,87,0.02));
  border: 1px solid rgba(126,217,87,0.15);
  border-radius: 12px;
  padding: 20px 24px;
}
.guarantee-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126,217,87,0.4), transparent);
}

/* ---- Requirement card ---- */
.req-card {
  background: #2B2B2B;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s;
}
.req-card:hover {
  border-color: rgba(126,217,87,0.15);
  transform: translateY(-1px);
}

/* ---- Separator dot in trust bar ---- */
.trust-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(126,217,87,0.35);
  flex-shrink: 0;
}
