/* ==========================================================================
   Guangzhou Dian Wu Technology Co., Ltd. — Main Stylesheet
   Design: Vibrant Gradient
   Fonts: Inter + Manrope (Google Fonts)
   ========================================================================== */

/* --- Google Fonts -------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');

/* --- CSS Custom Properties ----------------------------------------------- */
:root {
  /* Solid colors — NO rgba for text */
  --bg:           #0F0B1A;
  --surface:      #1A1530;
  --card:         #231E3D;
  --text:         #F8FAFC;
  --secondary:    #C4B5FD;
  --muted:        #8B7EB5;
  --grad-start:   #8B5CF6;
  --grad-mid:     #EC4899;
  --grad-end:     #F59E0B;
  --accent:       #06B6D4;
  --border:       #3B2E6B;

  /* Font stacks */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Manrope', 'Inter', system-ui, sans-serif;

  /* Spacing */
  --gap:          1.5rem;
}

/* --- Reset & Base -------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--grad-mid); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* --- Utility ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Section base -------------------------------------------------------- */
.section {
  padding: 7rem 0;
  position: relative;
}

.section__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: .75rem;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* --- Gradient text utility ----------------------------------------------- */
.gradient-text {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  font-family: var(--font-heading);
  font-size: .9375rem;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform .2s, box-shadow .3s;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid));
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(139, 92, 246, .35);
}
.btn--primary:hover {
  box-shadow: 0 8px 30px rgba(139, 92, 246, .5);
  color: #FFFFFF;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--grad-start);
  color: var(--text);
}

.btn--white {
  background: #FFFFFF;
  color: #0F0B1A;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn--white:hover { color: #0F0B1A; box-shadow: 0 8px 30px rgba(0,0,0,.2); }

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background .35s, box-shadow .35s;
}
.header--scrolled {
  background: rgba(15, 11, 26, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}
.header__logo svg { width: 32px; height: 32px; }

.header__nav { display: flex; align-items: center; gap: 2rem; }

.header__nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--secondary);
  transition: color .2s;
}
.header__nav a:hover,
.header__nav a.active { color: var(--text); }

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

/* Diagonal gradient banner */
.hero__diagonal {
  position: absolute;
  top: -20%;
  right: -15%;
  width: 70%;
  height: 140%;
  background: linear-gradient(155deg, var(--grad-start), var(--grad-mid) 45%, var(--grad-end));
  transform: skewX(-12deg);
  opacity: .18;
  filter: blur(80px);
  pointer-events: none;
}

/* Floating geometric shapes */
.hero__shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: .25;
  filter: blur(40px);
  animation: floatShape 8s ease-in-out infinite;
}
.hero__shape--1 {
  width: 300px; height: 300px;
  background: var(--grad-start);
  top: 15%; left: -5%;
  animation-delay: 0s;
}
.hero__shape--2 {
  width: 200px; height: 200px;
  background: var(--grad-mid);
  top: 55%; right: 8%;
  animation-delay: -3s;
}
.hero__shape--3 {
  width: 160px; height: 160px;
  background: var(--accent);
  top: 30%; right: 35%;
  animation-delay: -5s;
}
.hero__shape--4 {
  width: 120px; height: 120px;
  background: var(--grad-end);
  top: 70%; left: 20%;
  animation-delay: -1s;
}

/* SVG geometry floating */
.hero__geo {
  position: absolute;
  pointer-events: none;
  opacity: .12;
  animation: floatGeo 12s ease-in-out infinite;
}
.hero__geo--circle {
  width: 180px; height: 180px;
  border: 3px solid var(--grad-mid);
  border-radius: 50%;
  top: 20%; right: 25%;
  animation-delay: -7s;
}
.hero__geo--triangle {
  width: 0; height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid var(--grad-start);
  top: 60%; left: 12%;
  animation-delay: -4s;
}
.hero__geo--diamond {
  width: 80px; height: 80px;
  background: var(--accent);
  transform: rotate(45deg);
  top: 35%; right: 15%;
  animation-delay: -2s;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.08); }
}
@keyframes floatGeo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%  { transform: translateY(-20px) rotate(3deg); }
  66%  { transform: translateY(10px) rotate(-3deg); }
}

.hero__content { position: relative; z-index: 2; max-width: 720px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-mid);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero__title .gradient-text { display: inline; }

.hero__desc {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { background: var(--bg); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  position: relative;
  background: var(--card);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transform: skewY(-2deg);
  transition: transform .35s, box-shadow .35s;
  overflow: hidden;
}
.service-card:hover {
  transform: skewY(-2deg) translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}

/* Gradient top border */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 3px;
  border-radius: 0 0 4px 4px;
}
.service-card--violet::before { background: linear-gradient(90deg, var(--grad-start), var(--grad-mid)); }
.service-card--pink::before  { background: linear-gradient(90deg, var(--grad-mid), var(--grad-end)); }
.service-card--amber::before { background: linear-gradient(90deg, var(--grad-end), var(--accent)); }

.service-card__inner { transform: skewY(2deg); }

.service-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
.service-card--violet .service-card__icon { background: linear-gradient(135deg, var(--grad-start), var(--grad-mid)); }
.service-card--pink  .service-card__icon { background: linear-gradient(135deg, var(--grad-mid), var(--grad-end)); }
.service-card--amber .service-card__icon { background: linear-gradient(135deg, var(--grad-end), var(--accent)); }

.service-card__icon svg { width: 28px; height: 28px; color: #fff; }

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.service-card__desc {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { background: var(--surface); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__text { font-size: 1.05rem; color: var(--muted); line-height: 1.8; }
.about__text strong { color: var(--text); }

.about__quote {
  background: linear-gradient(135deg, var(--card), #2A2250);
  border: 1px solid var(--border);
  border-left: 4px solid var(--grad-mid);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
}
.about__quote-icon {
  font-size: 3rem;
  line-height: 1;
  color: var(--grad-start);
  margin-bottom: .75rem;
}
.about__quote-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about__quote-author {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
}
.about__quote-role {
  font-size: .8125rem;
  color: var(--muted);
}

/* ==========================================================================
   METRICS
   ========================================================================== */
.metrics { background: var(--bg); }

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric__value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: .5rem;
}
.metric__label {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--muted);
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process { background: var(--surface); }

.process__steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

/* Connecting line */
.process__steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-mid), var(--grad-end), var(--accent));
  z-index: 1;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 200px;
}

.process-step__number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.process-step:nth-child(1) .process-step__number { background: linear-gradient(135deg, var(--grad-start), #7C3AED); }
.process-step:nth-child(2) .process-step__number { background: linear-gradient(135deg, #A855F7, var(--grad-mid)); }
.process-step:nth-child(3) .process-step__number { background: linear-gradient(135deg, var(--grad-mid), #F97316); }
.process-step:nth-child(4) .process-step__number { background: linear-gradient(135deg, #F97316, var(--grad-end)); }
.process-step:nth-child(5) .process-step__number { background: linear-gradient(135deg, var(--grad-end), var(--accent)); }

.process-step__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.process-step__desc {
  font-size: .8125rem;
  color: var(--muted);
}

/* ==========================================================================
   TAGS / PILLS
   ========================================================================== */
.tags { background: var(--bg); }

.tags__wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.tag {
  display: inline-block;
  padding: .5rem 1.25rem;
  border-radius: 9999px;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  border: 2px solid transparent;
  transition: transform .2s, box-shadow .3s;
}
.tag:hover { transform: translateY(-2px); }

.tag--1  { background: linear-gradient(135deg, var(--grad-start), #7C3AED); box-shadow: 0 4px 15px rgba(139,92,246,.3); }
.tag--2  { background: linear-gradient(135deg, #A855F7, var(--grad-mid)); box-shadow: 0 4px 15px rgba(236,72,153,.3); }
.tag--3  { background: linear-gradient(135deg, var(--grad-mid), #F97316); box-shadow: 0 4px 15px rgba(236,72,153,.3); }
.tag--4  { background: linear-gradient(135deg, #F97316, var(--grad-end)); box-shadow: 0 4px 15px rgba(245,158,11,.3); }
.tag--5  { background: linear-gradient(135deg, var(--grad-end), var(--accent)); box-shadow: 0 4px 15px rgba(245,158,11,.3); }
.tag--6  { background: linear-gradient(135deg, var(--accent), var(--grad-start)); box-shadow: 0 4px 15px rgba(6,182,212,.3); }
.tag--7  { background: linear-gradient(135deg, var(--grad-start), var(--grad-end)); box-shadow: 0 4px 15px rgba(139,92,246,.3); }
.tag--8  { background: linear-gradient(135deg, var(--grad-mid), var(--accent)); box-shadow: 0 4px 15px rgba(236,72,153,.3); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid) 40%, var(--grad-end));
  text-align: center;
  padding: 6rem 0;
}

.cta__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.cta__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #0A0618;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: .75rem;
}

.footer__brand-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 1.25rem;
}

.footer__social { display: flex; gap: .75rem; }

.footer__social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  transition: background .2s, color .2s;
}
.footer__social a:hover { background: var(--grad-start); color: #fff; }

.footer__heading {
  font-family: var(--font-heading);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.footer__links { list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.footer__links a {
  font-size: .875rem;
  color: var(--muted);
  transition: color .2s;
}
.footer__links a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: .75rem;
}

.footer__accent {
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-mid), var(--grad-end));
  margin: 1.5rem 0;
}

/* ==========================================================================
   LEGAL PAGES (Privacy & Terms)
   ========================================================================== */
.legal {
  min-height: 100vh;
  padding-top: 7rem;
  padding-bottom: 5rem;
  background: var(--bg);
}

.legal__header {
  text-align: center;
  margin-bottom: 4rem;
}

.legal__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: .75rem;
}

.legal__date {
  font-size: .875rem;
  color: var(--muted);
}

.legal__body {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
}

.legal__body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 .75rem;
  color: var(--text);
}
.legal__body h2:first-child { margin-top: 0; }

.legal__body p,
.legal__body li {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.75;
}

.legal__body p + p { margin-top: 1rem; }

.legal__body ul,
.legal__body ol {
  margin: .75rem 0;
  padding-left: 1.5rem;
}

.legal__body li { margin-bottom: .5rem; }

.legal__body strong { color: var(--secondary); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 4.5rem 0; }

  .header__nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: right .35s;
    box-shadow: -10px 0 40px rgba(0,0,0,.5);
  }
  .header__nav--open { right: 0; }

  .header__toggle { display: flex; z-index: 1100; }

  .services__grid { grid-template-columns: 1fr; }
  .service-card { transform: none; }
  .service-card:hover { transform: translateY(-8px); }
  .service-card__inner { transform: none; }

  .process__steps {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  .process__steps::before {
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }

  .metrics__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .hero { text-align: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }

  .legal__body { padding: 2rem 1.25rem; border-radius: 12px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.25rem; }
  .hero__actions { flex-direction: column; }
  .metrics__grid { grid-template-columns: 1fr; }
  .tags__wrap { gap: .5rem; }
  .tag { padding: .4rem .9rem; font-size: .8125rem; }
}
