/* =========================================================
   TS DIGITAL MARKETING INC. — Global Stylesheet
   Clean, modern, fully responsive (mobile + desktop)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --ink:        #0f1222;
  --ink-soft:   #3a3f57;
  --muted:      #6b7183;
  --line:       #e7e9f0;
  --bg:         #ffffff;
  --bg-soft:    #f6f7fb;
  --brand:      #4f46e5;
  --brand-2:    #06b6d4;
  --brand-ink:  #3730a3;
  --accent:     #ff5c8a;
  --white:      #ffffff;

  --grad: linear-gradient(120deg, #4f46e5 0%, #06b6d4 100%);
  --grad-soft: linear-gradient(120deg, #eef0ff 0%, #e7fbff 100%);

  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 18px 50px -20px rgba(24, 27, 62, .28);
  --shadow-sm:  0 8px 24px -12px rgba(24, 27, 62, .25);

  --maxw: 1160px;
  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial,
          "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Poppins", "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--ink-soft); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { box-shadow: 0 14px 34px -12px rgba(79, 70, 229, .6); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.btn--light:hover { background: rgba(255,255,255,.26); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand .mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand small { display: block; font-family: var(--font); font-weight: 500; font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle span + span { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--grad-soft);
}
.hero .blob { position: absolute; z-index: -1; filter: blur(10px); opacity: .55; }
.hero .blob-1 { width: 420px; height: 420px; right: -120px; top: -80px;
  background: radial-gradient(circle at 30% 30%, #7c76ff, transparent 62%); }
.hero .blob-2 { width: 360px; height: 360px; left: -100px; bottom: -120px;
  background: radial-gradient(circle at 50% 50%, #34e0e8, transparent 62%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--ink); }
.hero-stats .lbl { font-size: 13px; color: var(--muted); }

/* Hero visual card */
.hero-art { position: relative; }
.hero-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; border: 1px solid var(--line);
}
.hero-card .bar { height: 10px; border-radius: 999px; background: var(--bg-soft); margin: 10px 0; overflow: hidden; }
.hero-card .bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.hero-card .kpi { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.hero-card .kpi b { font-family: var(--font-display); font-size: 1.05rem; }
.hero-card .kpi span { font-size: 12px; color: var(--muted); }
.hero-chip {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px;
}
.hero-chip .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--grad); font-size: 15px; }
.hero-chip.c1 { top: -22px; left: -26px; }
.hero-chip.c2 { bottom: -22px; right: -20px; }

/* ---------- Logos / trust strip ---------- */
.trust { padding: 40px 0; border-block: 1px solid var(--line); }
.trust p { text-align: center; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px; opacity: .7; }
.trust-row span { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--brand); margin-bottom: 18px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; }

/* ---------- Approach / feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .panel {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 40px; position: relative; overflow: hidden;
}
.split .panel::after {
  content: ""; position: absolute; width: 300px; height: 300px; right: -80px; bottom: -100px;
  background: radial-gradient(circle, rgba(79,70,229,.55), transparent 60%);
}
.steps { display: grid; gap: 22px; margin-top: 8px; }
.step { display: flex; gap: 16px; }
.step .n { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.step h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 3px; }
.step p { color: rgba(255,255,255,.72); font-size: 14px; }
.checklist { display: grid; gap: 16px; margin-top: 22px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.checklist .tick { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 999px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 13px; }

/* ---------- Stats band ---------- */
.band { background: var(--ink); color: #fff; }
.band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.band .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band .lbl { font-size: 14px; color: rgba(255,255,255,.7); }

/* ---------- CTA ---------- */
.cta-box {
  background: var(--grad); color: #fff; border-radius: 26px; padding: 60px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-box h2 { color: #fff; margin-bottom: 14px; }
.cta-box p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 26px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-list { display: grid; gap: 22px; margin-top: 26px; }
.info-item { display: flex; gap: 15px; align-items: flex-start; }
.info-item .ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; background: var(--grad-soft); color: var(--brand); display: grid; place-items: center; }
.info-item h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 2px; }
.info-item a, .info-item span { color: var(--ink-soft); font-size: 15px; }
.info-item a:hover { color: var(--brand); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-soft); transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form-status { font-size: 14px; margin-top: 12px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0d1c; color: rgba(255,255,255,.72); padding: 66px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand small { color: rgba(255,255,255,.5); }
.site-footer p { color: rgba(255,255,255,.6); font-size: 14px; max-width: 34ch; }
.footer-col h5 { font-family: var(--font-display); color: #fff; font-size: 14px; letter-spacing: .04em; margin-bottom: 16px; text-transform: uppercase; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- Legal / policy page ---------- */
.legal { padding: 70px 0 90px; }
.legal-wrap { max-width: 820px; margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal ul li { margin-bottom: 8px; }
.legal .callout {
  background: var(--grad-soft); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 20px 24px; margin: 24px 0;
}
.legal .callout h3 { margin-top: 0; color: var(--brand-ink); }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 26px; margin-bottom: 40px; }
.toc h4 { font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; color: var(--muted); }
.toc a { color: var(--brand); font-size: 15px; display: block; margin-bottom: 7px; }
.toc a:hover { text-decoration: underline; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { max-width: 420px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .band .container { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 22px 20px; box-shadow: var(--shadow-sm);
  }
  .site-header.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 26px; }
  .split .panel { padding: 30px 26px; }
  .hero-chip.c1 { left: 0; }
  .hero-chip.c2 { right: 0; }
}

@media (max-width: 520px) {
  .band .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-stats { gap: 24px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}
