/*
Theme Name: Ltgroups Seo Tool
Theme URI: https://seotool.ltgroups.com
Author: Ltgroups
Description: Custom landing theme for Seo Tool | Ltgroups.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: ltgroups-seotool
*/

:root {
  --ink: #111827;
  --muted: #647084;
  --line: #dbe4ee;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --brand: #0f8f73;
  --blue: #2f6df6;
  --violet: #6d5dfc;
  --accent: #f6b343;
  --shadow: 0 24px 70px rgba(27, 39, 63, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}

a {
  color: inherit;
  text-decoration: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 143, 115, 0.10), transparent 31%),
    linear-gradient(225deg, rgba(47, 109, 246, 0.12), transparent 29%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fc 47%, #eef4f8 100%);
}

.site-header,
.hero,
.section,
.admin-panel,
.site-footer {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0f8f73, #2f6df6 72%, #6d5dfc);
  box-shadow: 0 16px 36px rgba(47, 109, 246, 0.25);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #526071;
  font-size: 14px;
  font-weight: 750;
}

.nav a:not(.button):hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  box-shadow: 0 18px 36px rgba(47, 109, 246, 0.24);
}

.button--ghost {
  color: #1f2b3d;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(111, 126, 148, 0.22);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: 58px;
  padding: 68px 0 54px;
}

.hero__eyebrow,
.section__label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(47, 109, 246, 0.20);
  border-radius: 999px;
  color: #174277;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 242, 255, 0.84));
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(47, 109, 246, 0.13);
}

.hero__eyebrow {
  position: relative;
  overflow: hidden;
  animation: eyebrow-float 4.8s ease-in-out infinite;
}

.hero__eyebrow::after {
  content: "";
  position: absolute;
  inset: 0;
  translate: -110% 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: eyebrow-shine 3.8s ease-in-out infinite;
}

.hero__eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #23c483;
  box-shadow: 0 0 0 6px rgba(35, 196, 131, 0.14);
}

.hero h1 {
  margin: 18px 0 16px;
  max-width: 760px;
  min-height: 1.06em;
  font-size: clamp(48px, 5.2vw, 86px);
  line-height: 1;
  letter-spacing: 0;
}

.typing-title {
  display: inline-block;
  max-width: 100%;
  color: transparent;
  background: linear-gradient(105deg, #111827 0%, #0f8f73 38%, #2f6df6 70%, #6d5dfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-wrap: balance;
}

.typing-title.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.82em;
  margin-left: 0.06em;
  translate: 0 0.08em;
  border-radius: 999px;
  background: #2f6df6;
  animation: cursor-blink 0.9s steps(2, start) infinite;
}

.hero p,
.section__head p,
.admin-panel p,
.timeline p,
.feature-card p,
.audit-score p {
  color: var(--muted);
  line-height: 1.65;
}

.hero p {
  margin: 0;
  max-width: 650px;
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
  max-width: 620px;
}

.hero__stats span {
  min-height: 74px;
  padding: 13px;
  border: 1px solid rgba(111, 126, 148, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #5c6878;
  font-size: 13px;
  font-weight: 750;
}

.hero__stats strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 24px;
}

.dashboard-preview {
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 520px;
}

.scanner-shell {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.scanner-form,
.scan-results,
.locked-panel {
  border: 1px solid rgba(111, 126, 148, 0.17);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(31, 45, 71, 0.08);
}

.scanner-form {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.scanner-form label {
  color: #132033;
  font-weight: 900;
}

.scanner-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.scanner-form input {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(111, 126, 148, 0.24);
  border-radius: 8px;
  padding: 0 14px;
  color: #132033;
  background: #ffffff;
  font: inherit;
  font-weight: 700;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.scanner-form input:focus {
  border-color: rgba(47, 109, 246, 0.58);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.10);
}

.scanner-form button {
  gap: 8px;
}

.scanner-form button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scanner-form small {
  color: var(--muted);
  font-weight: 750;
}

.scanner-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.scan-results {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.scan-results[hidden] {
  display: none;
}

.scan-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
}

.scan-summary h3 {
  margin: 10px 0 0;
  font-size: 28px;
}

.scan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.scan-meta span,
.scan-checks article,
.scan-metrics article {
  border-radius: 8px;
  border: 1px solid rgba(111, 126, 148, 0.16);
  background: #ffffff;
}

.scan-meta span {
  padding: 7px 9px;
  color: #174277;
  font-size: 12px;
  font-weight: 900;
}

.scan-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.scan-metrics article {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.scan-metrics span,
.scan-checks span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.scan-metrics strong {
  font-size: 24px;
}

.scan-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.scan-checks article {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.scan-checks strong {
  color: #132033;
}

.scan-checks .is-ok {
  border-color: rgba(15, 143, 115, 0.20);
  background: rgba(15, 143, 115, 0.06);
}

.scan-checks .is-warn {
  border-color: rgba(246, 179, 67, 0.34);
  background: rgba(246, 179, 67, 0.08);
}

.locked-panel {
  grid-column: 1 / -1;
  padding: 18px;
}

.locked-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.locked-head strong {
  font-size: 20px;
}

.locked-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.locked-grid article {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 146px;
  padding: 18px;
  border: 1px solid rgba(111, 126, 148, 0.17);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 32, 51, 0.05), rgba(47, 109, 246, 0.06));
  overflow: hidden;
}

.locked-grid article::after {
  content: "Mở khóa để xem";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: #132033;
  font-size: 11px;
  font-weight: 900;
}

.locked-grid strong {
  filter: blur(1.5px);
}

.locked-grid b {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: #174277;
  background: rgba(47, 109, 246, 0.10);
  font-size: 12px;
}

.dashboard-preview__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 252, 0.86));
}

.dashboard-preview__top div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.dashboard-preview__top small {
  color: var(--muted);
  font-weight: 750;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #23c483;
  box-shadow: 0 0 0 6px rgba(35, 196, 131, 0.14);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
  padding: 20px;
}

.audit-score,
.keyword-card,
.metric-stack {
  border: 1px solid rgba(111, 126, 148, 0.17);
  border-radius: 8px;
  background: #ffffff;
}

.audit-score {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.audit-score strong,
.keyword-card strong,
.feature-card strong,
.timeline strong,
.admin-panel h2 {
  color: #132033;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.signal-row span {
  padding: 7px 9px;
  border-radius: 999px;
  color: #175b4d;
  background: rgba(15, 143, 115, 0.10);
  font-size: 12px;
  font-weight: 850;
}

.score-ring {
  width: 116px;
  aspect-ratio: 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 56%),
    conic-gradient(var(--brand) 0 calc(var(--score) * 1%), #e0e8f1 0 100%);
  transition: background 900ms ease;
}

.score-ring span {
  color: #0a775f;
  font-size: 34px;
  font-weight: 950;
}

.keyword-card {
  padding: 16px;
}

.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-head span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #0a775f;
  background: rgba(15, 143, 115, 0.10);
  font-size: 12px;
  font-weight: 900;
}

.keyword-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keyword-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #edf2f7;
  color: #5c6878;
  font-size: 14px;
}

.keyword-card b {
  color: var(--blue);
  transition: color 260ms ease;
}

.metric-stack {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.metric {
  display: grid;
  gap: 8px;
}

.metric span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: #e6edf4;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--blue), var(--violet));
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.activity-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 8px;
  min-height: 92px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbff, #eef5fb);
}

.activity-chart i {
  display: block;
  min-height: 18px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #2f6df6, #0f8f73);
  box-shadow: 0 10px 22px rgba(47, 109, 246, 0.18);
  transition: height 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.section {
  padding: 44px 0;
}

.section__head {
  display: grid;
  gap: 12px;
  max-width: 980px;
  margin-bottom: 24px;
}

.section__head--compact {
  max-width: 690px;
}

.section h2,
.admin-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section__head p,
.admin-panel p {
  margin: 0;
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.priority-card {
  display: grid;
  gap: 14px;
  min-height: 158px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(111, 126, 148, 0.17);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(243, 248, 255, 0.84));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.priority-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 143, 115, 0.25);
  box-shadow: 0 18px 44px rgba(31, 45, 71, 0.10);
}

.priority-card strong {
  font-size: 18px;
}

.priority-card b {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: #174277;
  background: rgba(47, 109, 246, 0.10);
  font-size: 12px;
}

.feature-card {
  min-height: 148px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(111, 126, 148, 0.17);
  background: rgba(255, 255, 255, 0.80);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 109, 246, 0.24);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(31, 45, 71, 0.10);
}

.feature-card strong {
  display: block;
  margin: 16px 0 0;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #0a775f;
  background: linear-gradient(135deg, rgba(15, 143, 115, 0.12), rgba(47, 109, 246, 0.10));
  box-shadow: inset 0 0 0 1px rgba(47, 109, 246, 0.10);
  transition: transform 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.icon svg,
.step-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card:hover .icon,
.priority-card:hover .icon {
  transform: translateY(-3px) scale(1.04);
  color: #2f6df6;
  box-shadow: inset 0 0 0 1px rgba(47, 109, 246, 0.18), 0 12px 28px rgba(47, 109, 246, 0.14);
}

.workflow {
  padding-top: 30px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.timeline div {
  position: relative;
  min-height: 134px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(111, 126, 148, 0.17);
  background: #ffffff;
}

.timeline .step-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #132033, #2f6df6);
  box-shadow: 0 14px 30px rgba(47, 109, 246, 0.18);
  animation: icon-float 5s ease-in-out infinite;
}

.timeline p {
  margin: 8px 0 0;
}

.admin-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 24px;
  margin-bottom: 22px;
  padding: 26px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 32, 51, 0.96), rgba(20, 86, 101, 0.95)),
    #132033;
  box-shadow: var(--shadow);
}

.admin-panel .section__label {
  color: #c9fff0;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.admin-panel h2 {
  margin-top: 12px;
  color: #ffffff;
}

.admin-panel p {
  max-width: 680px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .feature-grid,
  .priority-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-panel {
    display: grid;
  }

  .scanner-shell,
  .scan-metrics,
  .scan-checks,
  .locked-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .section,
  .admin-panel,
  .site-footer {
    width: min(100% - 24px, 1400px);
  }

  .hero {
    gap: 26px;
    padding-bottom: 26px;
  }

  .hero__stats,
  .dashboard-grid,
  .audit-score,
  .feature-grid,
  .priority-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .audit-score {
    text-align: left;
  }

  .hero__actions .button,
  .admin-panel .button {
    width: 100%;
  }

  .dashboard-preview__top,
  .scanner-form div,
  .scanner-shell,
  .scan-summary,
  .scan-metrics,
  .scan-checks,
  .locked-grid,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@keyframes eyebrow-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes eyebrow-shine {
  0%, 30% { translate: -110% 0; }
  70%, 100% { translate: 110% 0; }
}

@keyframes cursor-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
