/* ============================================================
   SEO HERO V2 — Resignal-style vertical scrolling columns
   ============================================================ */

.seo-hero-v2 {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Column grid ── */

.seo-cols-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px;
  z-index: 1;
}

.seo-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: seoColScroll var(--dur, 22s) linear infinite;
  animation-direction: normal;
  will-change: transform;
}

/* Up: from 0 → -50% */
@keyframes seoColScroll {
  from { transform: translateY(var(--from, 0%)); }
  to   { transform: translateY(var(--dir, -50%)); }
}

/* ── Panel base ── */

.seo-panel {
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  padding: 20px;
  height: 220px;
  position: relative;
}

/* ── Varied card sizes ── */
.seo-panel--tall  { height: 300px; }
.seo-panel--short { height: 160px; }
.seo-panel--med   { height: 220px; }

/* ── SERP panel (Google search result) ── */

.seo-panel--serp {
  background: #ffffff;
}

.sp-gbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.sp-glogo {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: #4285f4;
  width: 20px;
}

.sp-ginput {
  flex: 1;
  height: 8px;
  background: #f1f3f4;
  border-radius: 4px;
}

.sp-ginput--filled {
  height: auto;
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: #202124;
  font-weight: 500;
  line-height: 1;
}

.sp-result {
  margin-bottom: 8px;
}

.sp-result--top::before {
  content: 'Sponsored';
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 7px;
  color: #70757a;
  border: 1px solid #dadce0;
  border-radius: 3px;
  padding: 1px 4px;
  margin-bottom: 3px;
}

.sp-url {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  color: #202124;
  margin-bottom: 2px;
}

.sp-title {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #1a0dab;
  margin-bottom: 3px;
  line-height: 1.2;
}

.sp-snip {
  height: 5px;
  background: #e8eaed;
  border-radius: 3px;
  width: 100%;
}

.sp-snip--short { width: 65%; }

/* ── Dark panel ── */

.seo-panel--dark {
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.sp-dark-tag {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 10px;
}

.sp-dark-bar {
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  margin-bottom: 6px;
  width: 100%;
}
.sp-dark-bar--short { width: 55%; }
.sp-dark-bar--med   { width: 75%; }

/* ── Maps/GMB panel ── */

.seo-panel--maps {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.sp-maps-pin {
  font-size: 18px;
  margin-bottom: 4px;
}

.sp-maps-name {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #202124;
}

.sp-maps-stars {
  font-size: 11px;
  color: #f59e0b;
  letter-spacing: 1px;
}

.sp-maps-sub {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: #5f6368;
}

/* ── Analytics panel ── */

.seo-panel--analytics {
  background: #0a0a12;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 14px;
}

.sp-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 80px;
  margin-bottom: 10px;
}

.sp-bar {
  flex: 1;
  background: rgba(255,255,255,0.2);
  border-radius: 3px 3px 0 0;
  transition: height 1s ease;
}

.sp-bar--pink   { background: rgba(233,30,140,0.7); }
.sp-bar--purple { background: rgba(124,58,237,0.7); }

.sp-analytics-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Website mockup panel ── */

.seo-panel--website {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-browser-bar {
  height: 16px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 4px;
}
.sp-browser-bar::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  box-shadow: 10px 0 0 rgba(255,255,255,0.3), 20px 0 0 rgba(255,255,255,0.2);
}

.sp-browser-bar--light { background: rgba(0,0,0,0.08); }

.sp-web-h {
  height: 14px;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  width: 70%;
}
.sp-web-h--dark { background: rgba(0,0,0,0.15); }

.sp-web-p {
  height: 7px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}
.sp-web-p--short { width: 50%; }
.sp-web-p--dark  { background: rgba(0,0,0,0.1); }

/* ── Dark vignette overlay ── */

.seo-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 50% 50%, rgba(8,8,8,0.82) 0%, rgba(8,8,8,0.3) 70%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* ── Floating annotation pills ── */

.seo-ann {
  position: absolute;
  z-index: 4;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 50px;
  white-space: nowrap;
  pointer-events: none;
}

/* Left side */
.seo-ann--l1 { top: 22%; left: 2%;  animation: seoAnnFloat 4s   ease-in-out infinite; }
.seo-ann--l2 { top: 45%; left: 1%;  animation: seoAnnFloat 5.5s ease-in-out infinite 0.8s; }
.seo-ann--l3 { top: 68%; left: 3%;  animation: seoAnnFloat 4.8s ease-in-out infinite 1.6s; }

/* Right side */
.seo-ann--r1 { top: 28%; right: 2%; animation: seoAnnFloat 5s   ease-in-out infinite 0.4s; }
.seo-ann--r2 { top: 52%; right: 1%; animation: seoAnnFloat 4.2s ease-in-out infinite 1.2s; }
.seo-ann--r3 { top: 72%; right: 3%; animation: seoAnnFloat 6s   ease-in-out infinite 2s; }

@keyframes seoAnnFloat {
  0%, 100% { transform: translateY(0);   opacity: 0.7; }
  50%      { transform: translateY(-8px); opacity: 1; }
}

/* ── Centre card — resignal style: column, text top, button bottom-right ── */

.seo-center-card {
  position: relative;
  z-index: 5;
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 40px 28px;
  width: 52%;
  max-width: 750px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 48px 100px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.06);
  animation: seoCardPop 0.8s cubic-bezier(0.16,1,0.3,1) 0.3s both;
}

@keyframes seoCardPop {
  from { opacity: 0; transform: scale(0.94) translateY(28px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Typewriter block — full width, text top */
.seo-typewriter-block {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  min-height: 130px;
  width: 100%;
}

.seo-typed-text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.03em;
  line-height: 1.15;
  word-break: break-word;
}

.seo-cursor {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 300;
  color: #111111;
  line-height: 1.15;
  flex-shrink: 0;
  animation: seoCursorBlink 0.75s step-end infinite;
}

@keyframes seoCursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Button row — right-aligned at bottom */
.seo-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.seo-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 16px 30px;
  background: #e91e8c;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(233,30,140,0.4);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.seo-card-btn:hover {
  background: #f04ba1;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(233,30,140,0.6);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  /* Keep all 4 columns but shrink text and card */
  .seo-center-card { width: 68%; }
  .seo-typed-text { font-size: clamp(24px, 3.5vw, 40px); }
  .seo-cursor     { font-size: clamp(24px, 3.5vw, 40px); }
  .seo-card-btn   { padding: 16px 24px; font-size: 14px; }
}

@media (max-width: 768px) {
  /* 2 columns on mobile — hide col 3 & 4 */
  .seo-cols-wrap { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 6px; }
  .seo-col:nth-child(n+3) { display: none; }
  .seo-ann { display: none; }
  .seo-panel { height: 180px; }
  .seo-panel--tall  { height: 240px; }
  .seo-panel--short { height: 140px; }
  .seo-center-card {
    width: 88%;
    padding: 24px 24px 20px;
    border-radius: 16px;
  }
  .seo-typewriter-block { min-height: 80px; }
  .seo-typed-text { font-size: clamp(26px, 7vw, 36px); }
  .seo-cursor     { font-size: clamp(26px, 7vw, 36px); }
  .seo-card-btn   { padding: 14px 24px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .seo-col  { animation: none; }
  .seo-ann  { animation: none; opacity: 0.7; }
  .seo-cursor { animation: none; }
  .seo-center-card { animation: none; opacity: 1; transform: none; }
}
