/* ============================================
   BEYOND WORDS — LANDING PAGE STYLES
   Mobile-first
   ============================================ */

/* HERO */
.hero {
  padding-top: 90px;
  padding-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

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

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.1;
}

.blob-1 {
  width: 360px; height: 360px;
  background: var(--accent);
  top: -80px; left: -120px;
  animation: blobMove 8s ease-in-out infinite;
}

.blob-2 {
  width: 260px; height: 260px;
  background: var(--accent2);
  bottom: 0; right: -80px;
  animation: blobMove 10s ease-in-out infinite reverse;
}

.blob-3 {
  width: 180px; height: 180px;
  background: #ffd166;
  top: 50%; left: 40%;
  animation: blobMove 12s ease-in-out infinite 2s;
}

@keyframes blobMove {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(20px,-20px) scale(1.05); }
  66%  { transform: translate(-15px,15px) scale(0.95); }
}

.hero-content {
  flex: 1;
  width: 100%;
  max-width: 540px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border2);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 11vw, 6rem);
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.title-accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text2);
  margin-bottom: 24px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  justify-content: center;
}

.hero-tags span {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text2);
}

.hero-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text3);
}

/* CAMERA CARD VISUAL */
.hero-visual {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease 0.2s both;
}

.camera-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 60px rgba(79,138,255,0.1);
}

.camera-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.camera-dots { display: flex; gap: 6px; }

.camera-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border2);
}

.camera-dots span:nth-child(1) { background: #ff5f57; }
.camera-dots span:nth-child(2) { background: #febc2e; }
.camera-dots span:nth-child(3) { background: #28c840; }

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(79,138,255,0.15);
  border: 1px solid rgba(79,138,255,0.3);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.live-dot {
  width: 6px; height: 6px;
  background: var(--accent3);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.camera-feed {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanDown 3s ease-in-out infinite;
}

@keyframes scanDown {
  0%   { top: 0;    opacity: 0; }
  10%  {            opacity: 1; }
  90%  {            opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hand-demo { position: relative; z-index: 2; }

.hand-emoji {
  font-size: 5rem;
  filter: drop-shadow(0 0 24px rgba(79,138,255,0.5));
  animation: handFloat 3s ease-in-out infinite;
}

@keyframes handFloat {
  0%, 100% { transform: translateY(0)    rotate(-5deg); }
  50%       { transform: translateY(-10px) rotate(5deg); }
}

.corner {
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.8;
}

.corner.tl { top: -50px;  left: -50px;  border-width: 2px 0 0 2px; }
.corner.tr { top: -50px;  right: -50px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: -16px; left: -50px;  border-width: 0 0 2px 2px; }
.corner.br { bottom: -16px; right: -50px; border-width: 0 2px 2px 0; }

.landmark-dots span {
  position: absolute;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
  animation: dotPulse 2s ease-in-out infinite;
}

.landmark-dots span:nth-child(even) { animation-delay: 0.5s; }
.landmark-dots span:nth-child(3n)   { background: #ffd166; animation-delay: 1s; }

@keyframes dotPulse {
  0%, 100% { transform: scale(1);   opacity: 0.7; }
  50%       { transform: scale(1.5); opacity: 1; }
}

.detection-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg3);
  border-top: 1px solid var(--border);
}

.result-icon { font-size: 1.8rem; }
.result-text { flex: 1; }
.result-label { font-size: 0.65rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; }
.result-main  { font-size: 1rem; font-weight: 700; font-family: var(--font-display); }
.result-en    { color: var(--en); font-size: 0.85rem; font-weight: 500; }

.result-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.result-wave span {
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

.result-wave span:nth-child(1) { height: 7px;  animation-delay: 0s; }
.result-wave span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.result-wave span:nth-child(3) { height: 11px; animation-delay: 0.2s; }
.result-wave span:nth-child(4) { height: 18px; animation-delay: 0.3s; }
.result-wave span:nth-child(5) { height: 9px;  animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.4); }
}

/* FEATURES */
.features { padding-top: 60px; }

.features-header, .how-header {
  text-align: center;
  margin-bottom: 36px;
}

.features-header h2, .how-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 900;
  margin-bottom: 8px;
}

.features-header p, .how-header p {
  color: var(--text2);
  font-size: 0.95rem;
}

/* Mobile: single column */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: all 0.3s;
}

.feat-card:active {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.feat-card.feat-primary {
  background: linear-gradient(135deg, rgba(79,138,255,0.15), rgba(123,107,255,0.1));
  border-color: rgba(79,138,255,0.3);
}

.feat-card.feat-accent {
  background: linear-gradient(135deg, rgba(255,209,102,0.1), rgba(255,107,107,0.08));
  border-color: rgba(255,209,102,0.25);
}

.feat-icon { font-size: 1.8rem; margin-bottom: 12px; }

.feat-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.feat-card p {
  color: var(--text2);
  font-size: 0.86rem;
  line-height: 1.65;
}

/* HOW IT WORKS */
.how-steps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.step p { color: var(--text2); font-size: 0.86rem; line-height: 1.65; }

.step-divider {
  font-size: 1.5rem;
  color: var(--text3);
  text-align: center;
  transform: rotate(90deg);
}

.how-cta {
  text-align: center;
  margin-top: 36px;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 40px 20px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--text2);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.footer p { font-size: 0.86rem; margin-bottom: 6px; }
.footer-note { color: var(--text3); font-size: 0.78rem; }

/* ── TABLET ── */
@media (min-width: 600px) {
  .hero { padding-top: 110px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: center; }
  .step { max-width: 260px; flex: 1; }
  .step-divider { transform: none; }
  .camera-feed { height: 240px; }
}

/* ── DESKTOP ── */
@media (min-width: 960px) {
  .hero {
    flex-direction: row;
    text-align: left;
    padding-top: 120px;
    padding-left: 40px;
    padding-right: 40px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    align-items: center;
  }

  .hero-tags { justify-content: flex-start; }
  .hero-visual { max-width: 460px; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .camera-feed { height: 280px; }
  .hand-emoji { font-size: 6rem; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}
