/* ═══════════════════════════════════════════════════════════════
   SEO WIDGET PAGE — matcher dashboard-stilen
   ═══════════════════════════════════════════════════════════════ */

.seo-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 48px;
  background: var(--ink);
  color: var(--paper);
}
.seo-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.seo-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%);
}
.seo-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.seo-glow-1 {
  top: -100px; left: -100px;
  width: 500px; height: 500px;
  background: var(--green-glow);
}
.seo-glow-2 {
  bottom: -200px; right: -100px;
  width: 600px; height: 600px;
  background: rgba(59,130,246,.1);
}

.seo-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.seo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
}
.tag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
  animation: pulseDot 2s infinite;
}

.seo-hero-title {
  font-weight: 700;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.seo-hero-title .accent {
  color: var(--green);
}

.seo-hero-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy-300);
  max-width: 640px;
  margin: 0 auto 32px;
}
.seo-hero-lede strong { color: var(--paper); font-weight: 600; }

.seo-hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

.seo-hero-shot {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5), 0 0 50px var(--green-glow);
  transform: perspective(1500px) rotateX(2deg);
  transition: transform .5s ease;
  background: var(--paper);
}
.seo-hero-shot:hover { transform: perspective(1500px) rotateX(0deg); }
.seo-hero-shot img { width: 100%; display: block; }

.shot-tag {
  position: absolute;
  background: var(--ink);
  color: var(--paper);
  padding: 7px 13px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.shot-tag-tl { top: 16px; left: 16px; }
.shot-tag-br { bottom: 16px; right: 16px; }
.shot-tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.shot-tag strong { color: var(--green); font-weight: 700; }

/* ─── How it works ─── */
.how {
  padding: var(--gap-xxl) 0;
  background: var(--bg);
}
.how-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.how-steps {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.how-step {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  box-shadow: var(--shadow-sm);
}
.how-step:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.step-num {
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--bg-soft);
  margin-bottom: 18px;
  font-feature-settings: "tnum";
  -webkit-text-stroke: 1px var(--navy-300);
  text-stroke: 1px var(--navy-300);
  letter-spacing: -0.02em;
}
.how-step:hover .step-num {
  color: var(--green-100);
  -webkit-text-stroke-color: var(--green);
}
.how-step h3 {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.25;
}
.how-step p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 16px;
}
.step-detail { margin-top: auto; }
.badge {
  display: inline-block;
  padding: 5px 11px;
  background: var(--green-100);
  color: var(--green-dark);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
}
.step-code {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}
.step-code .tag { color: #FF6B9D; }
.step-code .atr { color: #FFD93D; }
.step-code .str { color: var(--green-light); }

.step-connector {
  display: flex;
  align-items: center;
  color: var(--text-faint);
  flex: 0 0 50px;
  justify-content: center;
}

/* ─── Live demo ─── */
.live-demo {
  padding: var(--gap-xxl) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.live-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.live-header .section-lede a {
  color: var(--green);
  font-weight: 500;
  border-bottom: 1px dashed var(--green);
}
.live-header .section-lede a:hover { border-bottom-style: solid; }

.live-demo-frame {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-xl);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
}
.frame-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.frame-dot.red    { background: #FF5F57; }
.frame-dot.yellow { background: #FEBC2E; }
.frame-dot.green  { background: #28C940; }
.frame-url {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  margin-left: 10px;
  max-width: 360px;
}
.frame-open {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  padding: 5px 11px;
  border: 1px solid var(--green);
  border-radius: var(--r-pill);
  transition: background .2s, color .2s;
}
.frame-open:hover { background: var(--green); color: var(--paper); }
.frame-body { background: #f3f3f0; }
.frame-body img { width: 100%; display: block; }

.demo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 800px;
  margin: 40px auto 0;
}
.ds-card {
  text-align: center;
  padding: 22px 18px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.ds-num {
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--green);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.ds-lbl {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  font-weight: 600;
}

/* ─── SEO Features Grid ─── */
.seo-features {
  padding: var(--gap-xxl) 0;
  background: var(--bg);
}
.sf-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.sf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.sf-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  box-shadow: var(--shadow-sm);
}
.sf-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.sf-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 14px;
}
.sf-card h3 {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.sf-card > p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 14px;
}
.sf-bullets {
  list-style: none;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 12.5px;
}
.sf-bullets li {
  padding: 3px 0 3px 16px;
  position: relative;
  color: var(--text);
  line-height: 1.55;
}
.sf-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.sf-bullets code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--paper);
  padding: 1px 5px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
}

/* ─── Integration ─── */
.integration {
  padding: var(--gap-xxl) 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.integration::before {
  content: '';
  position: absolute;
  top: 50%; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--green-glow), transparent 70%);
  filter: blur(80px);
  transform: translateY(-50%);
}
.integration .container { position: relative; z-index: 1; }
.integration .section-title { color: var(--paper); }
.integration .section-title .accent { color: var(--green); }
.integration .section-lede { color: var(--navy-300); }

.int-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.int-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.int-tag {
  padding: 7px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--navy-200);
}

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .seo-hero { padding: 48px 0 32px; }
  .seo-hero-cta { margin-bottom: 48px; }
  .seo-hero-shot { transform: none; border-radius: var(--r-md); }

  .how-steps { flex-direction: column; }
  .step-connector { transform: rotate(90deg); margin: 0 auto; flex: 0 0 24px; }

  .demo-stats { grid-template-columns: repeat(2, 1fr); }
  .sf-grid { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .seo-hero { padding: 32px 0 24px; }
  .shot-tag-br { display: none; }
  .demo-stats { grid-template-columns: 1fr 1fr; }
  .ds-num { font-size: 26px; }
  .frame-url { display: none; }
}
