/* =====================================================================
   AI Tool Wayne — dealsviachina.de
   Brand: deep blue #1a3a5c / red #c0392b / gold #e6b800 on dark navy
   ===================================================================== */
:root {
  --bg: #0b1626;
  --bg-soft: #0f1e33;
  --surface: #14263c;
  --surface-2: #1a3a5c;
  --line: rgba(148, 183, 220, 0.14);
  --text: #e8eef6;
  --text-dim: #9db2c9;
  --brand-blue: #1a3a5c;
  --brand-red: #c0392b;
  --brand-red-hi: #e04a39;
  --brand-gold: #e6b800;
  --green: #2ecc71;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(2, 8, 20, 0.45);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(26, 58, 92, 0.55), transparent 60%),
    radial-gradient(900px 420px at -10% 0%, rgba(192, 57, 43, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 22, 38, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.2px; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-blue), #0e2237);
  border: 1px solid rgba(230, 184, 0, 0.55);
  display: grid; place-items: center;
  color: var(--brand-gold); font-size: 0.95rem; font-weight: 900;
}
.logo em { color: var(--brand-gold); font-style: normal; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; font-weight: 500; transition: color .18s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-gold); }
.nav-cta {
  background: var(--brand-red); color: #fff !important;
  padding: 9px 18px; border-radius: 9px; font-weight: 600; font-size: 0.92rem;
  transition: background .18s, transform .18s;
}
.nav-cta:hover { background: var(--brand-red-hi); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 1.2rem; padding: 6px 12px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr); gap: 40px; align-items: center;
}
.hero-left { text-align: left; }
.hero-left .eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.5px; max-width: 900px; margin: 0; }
.hero h1 .accent { color: var(--brand-gold); }
.hero h1 .accent-red { color: var(--brand-red-hi); }
.hero p.sub { color: var(--text-dim); font-size: 1.12rem; max-width: 640px; margin: 18px 0 30px; }
.hero-search { display: flex; max-width: 620px; gap: 10px; }
.hero-search input {
  flex: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 20px; color: var(--text);
  font-size: 1rem; outline: none; transition: border-color .18s;
}
.hero-search input:focus { border-color: var(--brand-gold); }
.hero-search button {
  background: var(--brand-red); color: #fff; border: none; border-radius: 12px;
  padding: 15px 26px; font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: background .18s;
}
.hero-search button:hover { background: var(--brand-red-hi); }
.hero-stats { display: flex; justify-content: center; gap: 46px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .stat { text-align: center; }
.hero-stats .num { font-size: 1.7rem; font-weight: 800; color: var(--brand-gold); }
.hero-stats .lbl { color: var(--text-dim); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.8px; }

/* ---------- Logo cloud (home hero right) ---------- */
.hero-right { position: relative; min-height: 460px; }
.logo-cloud { position: relative; width: 100%; height: 100%; min-height: 460px; }
.cloud-label {
  position: absolute; top: 0; left: 0; right: 0; text-align: center;
  color: var(--text-dim); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700;
}
.logo-float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--surface), rgba(20, 38, 60, 0.92));
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px;
  box-shadow: var(--shadow); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s;
  animation: float 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.35s);
}
.logo-float:hover { transform: scale(1.08) rotate(0deg) !important; z-index: 10; border-color: rgba(230, 184, 0, 0.6); box-shadow: 0 10px 34px rgba(2,8,20,0.6); }
.lf-icon { width: 22px; text-align: center; font-size: 1.05rem; line-height: 1; }
.hero-people { position: absolute; bottom: -10px; right: 0; width: 180px; opacity: 0.55; }

/* Position the floating logo pills */
.logo-float:nth-child(2)  { top: 30px;  left: 8%;   transform: rotate(-6deg); }
.logo-float:nth-child(3)  { top: 26px;  left: 48%;  transform: rotate(5deg); }
.logo-float:nth-child(4)  { top: 84px;  left: 2%;   transform: rotate(4deg); }
.logo-float:nth-child(5)  { top: 78px;  left: 52%;  transform: rotate(-4deg); }
.logo-float:nth-child(6)  { top: 130px; left: 24%;  transform: rotate(-2deg); }
.logo-float:nth-child(7)  { top: 128px; left: 64%;  transform: rotate(6deg); }
.logo-float:nth-child(8)  { top: 182px; left: 6%;   transform: rotate(3deg); }
.logo-float:nth-child(9)  { top: 184px; left: 50%;  transform: rotate(-5deg); }
.logo-float:nth-child(10) { top: 232px; left: 20%;  transform: rotate(5deg); }
.logo-float:nth-child(11) { top: 236px; left: 64%;  transform: rotate(-3deg); }
.logo-float:nth-child(12) { top: 286px; left: 0%;   transform: rotate(-4deg); }
.logo-float:nth-child(13) { top: 284px; left: 46%;  transform: rotate(4deg); }
.logo-float:nth-child(14) { top: 334px; left: 18%;  transform: rotate(2deg); }
.logo-float:nth-child(15) { top: 332px; left: 62%;  transform: rotate(-6deg); }
.logo-float:nth-child(16) { top: 384px; left: 6%;   transform: rotate(5deg); }
.logo-float:nth-child(17) { top: 382px; left: 48%;  transform: rotate(-2deg); }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.3px; }
.section-head h2 .bar { color: var(--brand-red-hi); }
.section-head .more { color: var(--brand-gold); font-size: 0.95rem; font-weight: 600; }
.section-head .more:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, border-color .2s, box-shadow .2s; position: relative;
}
.card:hover { transform: translateY(-4px); border-color: rgba(230, 184, 0, 0.45); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; gap: 12px; }
.card-icon {
  width: 44px; height: 44px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--surface-2), #12283f);
  border: 1px solid var(--line); display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; color: var(--brand-gold);
}
.card-name { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.card-cat { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; }
.card-tagline { color: var(--text-dim); font-size: 0.92rem; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stars { color: var(--brand-gold); font-size: 0.85rem; letter-spacing: 1px; }
.stars .score { color: var(--text); font-weight: 700; margin-left: 4px; letter-spacing: 0; }
.pill {
  font-size: 0.74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-dim);
}
.pill.free { color: var(--green); border-color: rgba(46, 204, 113, 0.4); background: rgba(46, 204, 113, 0.08); }
.pill.freemium { color: #6db3f2; border-color: rgba(109, 179, 242, 0.35); background: rgba(109, 179, 242, 0.08); }
.pill.paid { color: #e58f8f; border-color: rgba(229, 143, 143, 0.35); background: rgba(229, 143, 143, 0.08); }
.pill.varies { color: var(--text-dim); }
.card-actions { display: flex; gap: 10px; margin-top: 4px; }
.btn-visit {
  flex: 1; text-align: center; background: var(--brand-red); color: #fff;
  border-radius: 10px; padding: 11px 12px; font-weight: 700; font-size: 0.92rem;
  transition: background .18s;
}
.btn-visit:hover { background: var(--brand-red-hi); }
.badge {
  position: absolute; top: -10px; right: 14px; font-size: 0.7rem; font-weight: 800;
  padding: 4px 11px; border-radius: 999px; letter-spacing: 0.5px; text-transform: uppercase;
}
.badge.choice { background: linear-gradient(135deg, var(--brand-gold), #c79a00); color: #1b1500; }
.badge.new { background: var(--brand-red); color: #fff; }
.card .disc { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.cat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 16px; text-align: center; transition: border-color .18s, transform .18s;
}
.cat-tile:hover { border-color: rgba(230, 184, 0, 0.5); transform: translateY(-3px); }
.cat-tile .n { font-weight: 800; font-size: 1.3rem; color: var(--brand-gold); }
.cat-tile .t { font-size: 0.85rem; color: var(--text-dim); margin-top: 2px; }

/* ---------- Filters (tools page) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.filter-bar input[type="search"] {
  flex: 1 1 260px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 16px; color: var(--text); font-size: 0.95rem; outline: none;
}
.filter-bar input[type="search"]:focus { border-color: var(--brand-gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); color: var(--text-dim);
  border-radius: 999px; padding: 8px 15px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all .16s; user-select: none;
}
.chip:hover { color: var(--text); border-color: rgba(230, 184, 0, 0.4); }
.chip.on { background: rgba(230, 184, 0, 0.14); border-color: var(--brand-gold); color: var(--brand-gold); }
.result-count { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 18px; }
.empty { text-align: center; color: var(--text-dim); padding: 60px 0; }

/* ---------- Deals ---------- */
.deal {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 14px;
}
.deal .d-icon {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  background: rgba(230, 184, 0, 0.12); border: 1px dashed rgba(230, 184, 0, 0.5);
  display: grid; place-items: center; font-size: 1.3rem;
}
.deal .d-body { flex: 1; min-width: 220px; }
.deal .d-title { font-weight: 700; font-size: 1.05rem; }
.deal .d-note { color: var(--text-dim); font-size: 0.9rem; }
.deal .d-code {
  display: inline-block; border: 1px dashed var(--brand-gold); color: var(--brand-gold);
  padding: 6px 14px; border-radius: 8px; font-weight: 800; letter-spacing: 1px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; cursor: pointer;
  background: rgba(230, 184, 0, 0.06); font-size: 0.9rem;
}
.deal .d-cta {
  background: var(--brand-red); color: #fff; border-radius: 10px;
  padding: 11px 22px; font-weight: 700; font-size: 0.92rem; white-space: nowrap;
  transition: background .18s;
}
.deal .d-cta:hover { background: var(--brand-red-hi); }

/* ---------- Reviews ---------- */
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; margin-bottom: 24px;
}
.review .r-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.review .r-icon {
  width: 52px; height: 52px; border-radius: 13px; flex: none;
  background: linear-gradient(135deg, var(--surface-2), #12283f);
  border: 1px solid var(--line); display: grid; place-items: center;
  font-weight: 800; color: var(--brand-gold); font-size: 1.15rem;
}
.review h3 { font-size: 1.35rem; }
.review .r-meta { color: var(--text-dim); font-size: 0.88rem; }
.review p { color: var(--text-dim); margin-bottom: 12px; font-size: 0.97rem; }
.review .pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.review .pc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px;
}
.review .pc h4 { font-size: 0.9rem; margin-bottom: 8px; letter-spacing: 0.5px; text-transform: uppercase; }
.review .pc.pros h4 { color: var(--green); }
.review .pc.cons h4 { color: #e58f8f; }
.review .pc ul { list-style: none; }
.review .pc li { color: var(--text-dim); font-size: 0.9rem; padding: 3px 0 3px 20px; position: relative; }
.review .pc.pros li::before { content: "+"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.review .pc.cons li::before { content: "–"; position: absolute; left: 0; color: #e58f8f; font-weight: 800; }
.verdict {
  border-left: 3px solid var(--brand-gold); background: rgba(230, 184, 0, 0.06);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 16px 0;
  color: var(--text); font-size: 0.97rem;
}
.review .card-actions { max-width: 320px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(192, 57, 43, 0.22), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 18px; padding: 46px 36px; text-align: center;
}
.newsletter h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 10px; }
.newsletter p { color: var(--text-dim); max-width: 520px; margin: 0 auto 24px; }
.newsletter form { display: flex; max-width: 460px; margin: 0 auto; gap: 10px; }
.newsletter input {
  flex: 1; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 16px; color: var(--text); outline: none;
}
.newsletter input:focus { border-color: var(--brand-gold); }
.newsletter button {
  background: var(--brand-gold); color: #1b1500; border: none; border-radius: 10px;
  padding: 13px 24px; font-weight: 800; cursor: pointer; font-size: 0.95rem;
}
.newsletter button:hover { filter: brightness(1.08); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 56px 0 26px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.4px; }
.page-hero p { color: var(--text-dim); max-width: 640px; margin-top: 12px; }

/* ---------- About / prose ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin: 30px 0 12px; }
.prose p, .prose li { color: var(--text-dim); margin-bottom: 10px; }
.prose ul { padding-left: 22px; }
.prose strong { color: var(--text); }
.disclosure-note {
  background: rgba(230, 184, 0, 0.07); border: 1px solid rgba(230, 184, 0, 0.35);
  border-radius: 10px; padding: 14px 18px; font-size: 0.9rem; color: var(--text-dim);
  margin: 18px 0;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 44px 0 34px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--text-dim); font-size: 0.92rem; padding: 4px 0; }
.footer-grid a:hover { color: var(--brand-gold); }
.footer-grid p { color: var(--text-dim); font-size: 0.92rem; max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-dim); font-size: 0.84rem; }
.footer-bottom a { color: var(--brand-gold); }

/* ---------- Redirect page ---------- */
.go-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.go-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 48px 40px; max-width: 480px; }
.go-card .spinner {
  width: 44px; height: 44px; margin: 0 auto 20px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--brand-gold);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.go-card h1 { font-size: 1.3rem; margin-bottom: 8px; }
.go-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 6px; }
.go-card .go-btn { display: inline-block; margin-top: 18px; background: var(--brand-red); color: #fff; padding: 12px 26px; border-radius: 10px; font-weight: 700; }
.go-card small { color: var(--text-dim); display: block; margin-top: 16px; font-size: 0.78rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--surface-2); border: 1px solid var(--brand-gold); color: var(--text);
  padding: 12px 22px; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
  transition: transform .25s; z-index: 200; box-shadow: var(--shadow);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 4px; padding: 18px 5%;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .review .pros-cons { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-left { text-align: center; }
  .hero-left .eyebrow { margin-left: auto; margin-right: auto; }
  .hero p.sub { margin-left: auto; margin-right: auto; }
  .hero-search { margin-left: auto; margin-right: auto; }
  .hero-right { order: -1; min-height: auto; }
  .logo-cloud { min-height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 0; }
  .cloud-label { position: static; flex-basis: 100%; margin-bottom: 6px; }
  .logo-float { position: relative !important; top: auto !important; left: auto !important; right: auto !important; transform: none !important; animation: none !important; padding: 8px 13px; font-size: 0.83rem; }
  .hero-people { display: none; }
  .hero-stats { gap: 28px; margin-top: 40px; }
  .deal .d-code { margin-top: 6px; }
}
