/* ==========================================================================
   SEOLift — Design System (dark / data-dense / SaaS)
   ========================================================================== */

:root {
  --bg: #05070b;
  --bg-elev: #090d14;
  --panel: #0d121b;
  --panel-2: #111823;
  --panel-3: #161f2c;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);

  --txt: #e9eef8;
  --txt-2: #b4c0d3;
  --muted: #7d8b9f;

  --mint: #2ee6a8;
  --mint-dim: rgba(46, 230, 168, 0.12);
  --violet: #8b7bff;
  --violet-dim: rgba(139, 123, 255, 0.13);
  --amber: #ffb340;
  --red: #ff5f6d;
  --cyan: #45d6f5;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Code", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Inter, system-ui, sans-serif;

  --maxw: 1180px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(46, 230, 168, 0.09), transparent 60%),
    radial-gradient(760px 420px at 88% 0%, rgba(139, 123, 255, 0.1), transparent 62%),
    var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

::selection { background: var(--mint); color: #04120c; }

/* ---------------------------------------------------------------- layout */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.row { display: flex; gap: 12px; align-items: center; }
.row-between { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.wrap-flex { flex-wrap: wrap; }

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(5, 7, 11, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 18px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--mint), #0f9d76 60%, var(--violet));
  color: #03120c;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(46, 230, 168, 0.4);
}

.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a {
  color: var(--txt-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.16s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--txt); }

.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--txt);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, background 0.16s, border-color 0.16s, box-shadow 0.16s;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.24); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--mint), #17c08c);
  border-color: transparent;
  color: #04140e;
  box-shadow: 0 10px 30px -12px rgba(46, 230, 168, 0.7);
}
.btn-primary:hover { background: linear-gradient(135deg, #4cf0b8, #1ad39a); border-color: transparent; }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--txt-2); }
.btn-ghost:hover { color: var(--txt); }

.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }

/* ---------------------------------------------------------------- typography */

h1, h2, h3, h4 { margin: 0 0 14px; letter-spacing: -0.035em; line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(36px, 5.4vw, 62px); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: 20px; letter-spacing: -0.02em; }
h4 { font-size: 16px; letter-spacing: -0.01em; }
p { margin: 0 0 14px; color: var(--txt-2); }

.lead { font-size: 18.5px; color: var(--txt-2); max-width: 62ch; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--mint);
  opacity: 0.7;
}

.grad {
  background: linear-gradient(96deg, #ffffff 10%, var(--mint) 52%, var(--violet) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }

/* ---------------------------------------------------------------- cards */

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}
.card-hover:hover { border-color: rgba(46, 230, 168, 0.35); transform: translateY(-2px); }
.card-flat { background: var(--panel); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
}

.tool-card { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.tool-card .ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--mint-dim); color: var(--mint);
  border: 1px solid rgba(46, 230, 168, 0.22);
  margin-bottom: 6px; font-size: 16px;
}
.tool-card h3 { font-size: 16.5px; margin: 0; }
.tool-card p { font-size: 13.5px; margin: 0; color: var(--muted); }
.tool-card .go { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--mint); font-family: var(--mono); }

/* ---------------------------------------------------------------- badges / pills */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 99px;
  font-size: 12px; font-weight: 600; font-family: var(--mono);
  border: 1px solid var(--line-strong); color: var(--txt-2);
  background: rgba(255, 255, 255, 0.03);
}
.pill-mint { color: var(--mint); border-color: rgba(46, 230, 168, 0.35); background: var(--mint-dim); }
.pill-violet { color: var(--violet); border-color: rgba(139, 123, 255, 0.35); background: var(--violet-dim); }
.pill-amber { color: var(--amber); border-color: rgba(255, 179, 64, 0.35); background: rgba(255, 179, 64, 0.1); }
.pill-red { color: var(--red); border-color: rgba(255, 95, 109, 0.35); background: rgba(255, 95, 109, 0.1); }
.pill-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

/* ---------------------------------------------------------------- hero */

.hero { padding: 76px 0 40px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.hero-trust div { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.hero-trust strong { display: block; font-size: 22px; color: var(--txt); font-family: var(--sans); letter-spacing: -0.03em; margin-bottom: 2px; }

.hero-visual {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--bg-elev));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hv-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2a3444; }
.hv-body { padding: 18px; }

.score-ring {
  --pct: 86;
  width: 108px; height: 108px; border-radius: 50%;
  background: conic-gradient(var(--mint) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.07) 0);
  display: grid; place-items: center;
  position: relative;
}
.score-ring::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--bg-elev);
}
.score-ring span {
  position: relative; z-index: 1; font-size: 30px; font-weight: 700; letter-spacing: -0.04em;
}

.meter {
  height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden;
}
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--mint); }

/* ---------------------------------------------------------------- form / tool UI */

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--txt-2);
  margin-bottom: 7px; font-family: var(--mono); letter-spacing: 0.02em;
}
.input, .select, .textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--txt);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(46, 230, 168, 0.6);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.13);
}
.textarea { min-height: 150px; resize: vertical; font-size: 14px; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #566477; }

.inline-form { display: flex; gap: 10px; }
.inline-form .input { flex: 1; }

.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.tool-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }

.result-box {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  min-height: 120px;
}
.result-box .empty { color: var(--muted); font-size: 13.5px; text-align: center; padding: 26px 0; }

.kv { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); font-size: 13px; text-align: right; word-break: break-all; }

.code-out {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
  background: #04060a; border: 1px solid var(--line);
  border-radius: 10px; padding: 14px; color: #b8e6d5;
  white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto;
}

.check-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.check-item:last-child { border-bottom: 0; }
.check-ico {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 2px;
}
.s-pass { background: var(--mint-dim); color: var(--mint); border: 1px solid rgba(46, 230, 168, 0.3); }
.s-warn { background: rgba(255, 179, 64, 0.12); color: var(--amber); border: 1px solid rgba(255, 179, 64, 0.3); }
.s-fail { background: rgba(255, 95, 109, 0.12); color: var(--red); border: 1px solid rgba(255, 95, 109, 0.3); }
.check-body { flex: 1; min-width: 0; }
.check-body strong { font-size: 14px; font-weight: 600; }
.check-body .detail { font-size: 13px; color: var(--txt-2); margin: 2px 0 0; }
.check-body .fix { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; padding-left: 10px; border-left: 2px solid var(--line-strong); }

.serp-preview {
  background: #fff; border-radius: 12px; padding: 18px; color: #1a0dab;
}
.serp-url { font-size: 12px; color: #4d5156; margin-bottom: 4px; }
.serp-title { font-size: 20px; line-height: 1.3; margin-bottom: 4px; color: #1a0dab; }
.serp-desc { font-size: 14px; color: #4d5156; line-height: 1.58; }
.serp-preview .cut { background: rgba(255, 95, 109, 0.14); }

/* ---------------------------------------------------------------- pricing */

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.price {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.price.featured {
  border-color: rgba(46, 230, 168, 0.5);
  background: linear-gradient(180deg, rgba(46, 230, 168, 0.08), var(--panel) 42%);
  box-shadow: 0 0 0 1px rgba(46, 230, 168, 0.18), 0 24px 60px -30px rgba(46, 230, 168, 0.5);
}
.price .tag {
  position: absolute; top: -11px; left: 26px;
  background: var(--mint); color: #04140e; font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 99px; letter-spacing: 0.06em;
}
.price h3 { font-size: 17px; margin-bottom: 4px; }
.price .amount { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 4px; }
.price .amount b { font-size: 38px; letter-spacing: -0.04em; line-height: 1; }
.price .amount span { color: var(--muted); font-size: 13px; }
.price ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; }
.price li { font-size: 13.5px; color: var(--txt-2); display: flex; gap: 9px; }
.price li::before { content: "✓"; color: var(--mint); font-weight: 700; flex: 0 0 auto; }
.price .btn { margin-top: auto; width: 100%; }

/* ---------------------------------------------------------------- table */

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.table td { color: var(--txt-2); }
.table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.table .num { font-family: var(--mono); }
.tick { color: var(--mint); font-weight: 700; }
.cross { color: #4a5568; }

/* ---------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 34px;
  margin-top: 60px;
  background: var(--bg-elev);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 12px; }
.footer a { display: block; font-size: 13.5px; color: var(--txt-2); padding: 4px 0; }
.footer a:hover { color: var(--mint); }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}

/* ---------------------------------------------------------------- misc */

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-strip {
  display: flex; flex-wrap: wrap; gap: 34px; align-items: center;
  opacity: 0.55; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.faq details {
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-family: var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; font-size: 14px; color: var(--txt-2); }

.divider { height: 1px; background: var(--line); margin: 40px 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--panel-3); border: 1px solid var(--line-strong); color: var(--txt);
  padding: 11px 18px; border-radius: 10px; font-size: 13.5px; z-index: 200;
  opacity: 0; pointer-events: none; transition: all 0.22s; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--mint);
  animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { background: linear-gradient(90deg, #101722 25%, #17202c 50%, #101722 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .hero-grid, .tool-shell { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .hero { padding: 44px 0 24px; }
  .nav-cta .btn-ghost { display: none; }
  .wrap { padding: 0 18px; }
}
