/* ============================================================
   TruvelTang — zhihao.buzz
   Dark theme · violet / magenta accent
   ============================================================ */

:root {
  --bg: #0B0E14;
  --bg-2: #10141D;
  --surface: #161B27;
  --surface-2: #1C2231;
  --line: #262E40;
  --line-soft: #1D2330;
  --text: #E8EAED;
  --muted: #9AA3B2;
  --faint: #6B7484;
  --accent: #A855F7;
  --accent-bright: #C084FC;
  --accent-2: #EC4899;
  --accent-deep: #7C3AED;
  --on-accent: #FFFFFF;
  --good: #34D399;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55);
  --maxw: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent-2);
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  color: var(--muted);
}

::selection {
  background: var(--accent);
  color: #FFFFFF;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-deep), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 14px 30px -10px var(--accent-deep);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: var(--on-accent);
  box-shadow: 0 18px 40px -12px var(--accent-2);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  transform: translateY(-2px);
}

/* ---------- Overlay navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 76px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-nav.is-scrolled {
  background: #0B0E14;
  border-bottom: 1px solid var(--line);
}

.site-nav .nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-2));
  color: #FFFFFF;
  font-weight: 800;
  font-size: 18px;
}

.brand span {
  letter-spacing: 0.02em;
}

.brand em {
  font-style: normal;
  color: var(--accent-bright);
}

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  z-index: 1002;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: #0B0E14;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-overlay .nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.nav-overlay .nav-links a {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700;
  color: var(--text);
  position: relative;
  letter-spacing: -0.01em;
}

.nav-overlay .nav-links a:hover {
  color: var(--accent-bright);
}

.nav-overlay .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
}

.nav-overlay .nav-links a:hover::after {
  width: 100%;
}

.nav-overlay .overlay-meta {
  position: absolute;
  bottom: 48px;
  text-align: center;
  font-size: 14px;
  color: var(--faint);
}

/* ---------- Hero (full-bleed band) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  background:
    radial-gradient(1100px 600px at 78% 22%, #2A1650 0%, transparent 60%),
    radial-gradient(900px 520px at 12% 84%, #3A1140 0%, transparent 55%),
    linear-gradient(160deg, #0B0E14 0%, #10141D 55%, #0B0E14 100%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  margin-bottom: 24px;
}

.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent-bright), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero p.lead {
  font-size: 19px;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-panel .panel-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 18px;
}

.hero-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-panel ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--text);
}

.hero-panel ul li .ico {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-2));
  color: #FFFFFF;
  font-weight: 700;
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  font-size: 15px;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticker-track span b {
  color: var(--accent-bright);
  font-weight: 700;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Method (numbered list) ---------- */
.method-section {
  padding: 110px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent-2);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  margin-bottom: 18px;
}

.section-head p {
  font-size: 18px;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  counter-reset: method;
}

.method-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 34px 34px 96px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.method-item:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.method-item .num {
  position: absolute;
  top: 28px;
  left: 30px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent-bright), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.method-item h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.method-item p {
  font-size: 15.5px;
}

/* ---------- Services (alternating rows) ---------- */
.services-section {
  padding: 110px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--line-soft);
}

.service-row:last-child {
  border-bottom: none;
}

.service-row:nth-child(even) .service-visual {
  order: -1;
}

.service-visual {
  background: linear-gradient(150deg, #1C1140 0%, #24122F 60%, #161B27 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.service-visual .big-glyph {
  font-size: 96px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent-bright), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.service-copy .service-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
}

.service-copy h3 {
  font-size: 30px;
  margin: 12px 0 16px;
}

.service-copy p {
  font-size: 16.5px;
  margin-bottom: 20px;
}

.service-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
}

.service-points li::before {
  content: "→";
  color: var(--accent-2);
  font-weight: 700;
}

/* ---------- Stats ---------- */
.stats-section {
  padding: 90px 0;
  background:
    radial-gradient(900px 400px at 50% 0%, #2A1650 0%, transparent 60%),
    var(--bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.stat-card .stat-num {
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent-bright), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-card .stat-label {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- About (split) ---------- */
.about-section {
  padding: 110px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
}

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(600px 400px at 30% 30%, #3A1160 0%, transparent 60%),
    radial-gradient(500px 380px at 80% 80%, #40113A 0%, transparent 55%),
    linear-gradient(150deg, #10141D, #161B27);
  border: 1px solid var(--line);
  min-height: 380px;
  display: grid;
  place-items: center;
  padding: 40px;
}

.about-visual .mono {
  font-family: "Courier New", monospace;
  font-size: 15px;
  color: var(--accent-bright);
  white-space: pre-wrap;
  line-height: 1.9;
}

.about-copy h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  margin-bottom: 20px;
}

.about-copy p {
  font-size: 16.5px;
  margin-bottom: 18px;
}

.about-facts {
  list-style: none;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}

.about-facts li::before {
  content: "✓";
  color: var(--good);
  font-weight: 800;
}

/* ---------- Compare table ---------- */
.compare-section {
  padding: 110px 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  overflow: hidden;
  border-radius: var(--radius);
}

.compare-table thead th {
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  padding: 20px 24px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th.hl {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-2));
  color: #FFFFFF;
}

.compare-table tbody td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
}

.compare-table tbody td:first-child {
  color: var(--text);
  font-weight: 600;
}

.compare-table tbody tr:nth-child(even) {
  background: var(--bg-2);
}

.compare-table .yes {
  color: var(--good);
  font-weight: 700;
}

.compare-table .no {
  color: var(--faint);
}

/* ---------- Industries ---------- */
.industries-section {
  padding: 110px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.industry-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.industry-chip:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.industry-chip .chip-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent-bright);
  font-weight: 800;
  font-size: 17px;
}

/* ---------- FAQ ---------- */
.faq-section {
  padding: 110px 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.faq-q .faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent-bright);
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a p {
  padding: 0 26px 24px;
  font-size: 15.5px;
}

/* ---------- Contact ---------- */
.contact-section {
  padding: 110px 0;
  background:
    radial-gradient(900px 460px at 50% 100%, #2A1650 0%, transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line-soft);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  margin-bottom: 20px;
}

.contact-info > p {
  font-size: 16.5px;
  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-detail a, .contact-detail .contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.contact-detail .c-ico {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-2));
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.25s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 13px;
  color: var(--faint);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #07090E;
  border-top: 1px solid var(--line-soft);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.site-footer .footer-mark {
  position: absolute;
  right: -40px;
  bottom: -30px;
  font-size: 180px;
  font-weight: 800;
  line-height: 1;
  color: #0D1120;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.footer-brand p {
  font-size: 15px;
  max-width: 320px;
  margin-top: 16px;
}

.footer-col h4 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  color: var(--muted);
  font-size: 15px;
}

.footer-col ul a:hover {
  color: var(--accent-bright);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--faint);
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--accent-bright);
}

/* ---------- Reveal animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-panel {
    max-width: 520px;
  }

  .method-list {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-row:nth-child(even) .service-visual {
    order: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-wrap {
    grid-template-columns: 1fr;
  }

  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .industry-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 110px;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
