/* ═══════════════════════════════════════
   微光工作室 — Professional Redesign
   ═══════════════════════════════════════ */

:root {
  color-scheme: dark;

  /* Colors */
  --bg:           #040a18;
  --surface:      rgba(255, 255, 255, 0.04);
  --surface-md:   rgba(255, 255, 255, 0.07);
  --surface-hover:rgba(255, 255, 255, 0.10);
  --border:       rgba(255, 255, 255, 0.10);
  --border-bright:rgba(255, 255, 255, 0.22);
  --text:         #f0f4ff;
  --muted:        #6b7fa0;
  --muted-2:      #9aabcc;
  --blue:         #4da6ff;
  --blue-dim:     rgba(77, 166, 255, 0.30);
  --purple:       #a855f7;
  --purple-dim:   rgba(168, 85, 247, 0.25);
  --gradient:     linear-gradient(135deg, #4da6ff, #a855f7);

  /* Shadows */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.32);
  --shadow:    0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.55);

  /* Radii */
  --r-sm: 0.65rem;
  --r:    1.2rem;
  --r-lg: 2rem;

  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 55% at 8%  -5%,  rgba(77,  166, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 92%  18%, rgba(168,  85, 247, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(77,  166, 255, 0.08) 0%, transparent 60%);
  line-height: 1.7;
}

/* Dot-grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 72%);
}

a  { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }
p  { color: var(--muted-2); }


/* ═══ HEADER ═══ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s, background 0.35s, backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  border-color: var(--border);
  background: rgba(4, 10, 24, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.6rem;
  background: var(--gradient);
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  box-shadow: 0 6px 20px var(--blue-dim);
  flex-shrink: 0;
}

.brand-mark-sm {
  width: 1.8rem;
  height: 1.8rem;
  font-size: 0.75rem;
}

.brand-name { color: var(--text); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-sm);
  color: var(--muted-2);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-md);
}

.nav-cta {
  margin-left: 0.4rem;
  padding: 0.45rem 1rem !important;
  border: 1px solid var(--border-bright) !important;
  border-radius: var(--r-sm) !important;
  background: var(--surface-md) !important;
  color: var(--text) !important;
  font-weight: 700 !important;
  transition: border-color 0.2s, background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  border-color: var(--blue) !important;
  background: rgba(77, 166, 255, 0.12) !important;
  color: var(--blue) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.2s;
}

.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;
}


/* ═══ SCROLL REVEAL ═══ */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: none;
}


/* ═══ LAYOUT ═══ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}

.section-heading {
  margin-bottom: 3rem;
}

.section-heading > p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 0.6rem;
}


/* ═══ EYEBROW ═══ */
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.28rem 0.85rem;
  border: 1px solid rgba(77, 166, 255, 0.28);
  border-radius: 999px;
  background: rgba(77, 166, 255, 0.08);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}


/* ═══ TYPOGRAPHY ═══ */
h1, h2 { line-height: 1.12; letter-spacing: -0.04em; }

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  font-weight: 900;
  background: linear-gradient(140deg, #ffffff 30%, #9dc8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--text);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}


/* ═══ BUTTONS ═══ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 32px rgba(77, 166, 255, 0.32);
}

.button-primary:hover {
  box-shadow: 0 14px 44px rgba(77, 166, 255, 0.50);
}

.button-ghost {
  border-color: var(--border-bright);
  background: var(--surface);
  color: var(--text);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: var(--surface-hover);
}

.button-outline {
  border-color: var(--blue);
  background: transparent;
  color: var(--blue);
}

.button-outline:hover {
  background: rgba(77, 166, 255, 0.10);
}


/* ═══ HERO ═══ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 70px);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-copy { max-width: 620px; }

.hero-text {
  max-width: 560px;
  margin-bottom: 2rem;
  font-size: 1.06rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 520px;
  margin: 0;
}

.hero-stats div {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.25s, background 0.25s;
}

.hero-stats div:hover {
  border-color: var(--border-bright);
  background: var(--surface-md);
}

.hero-stats dt {
  font-size: 1.55rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stats dd {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Hero Feature Card */
.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--border-bright);
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.14);
}

.hero-card::before {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.30), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  left: -4rem;
  top: -4rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,166,255,0.18), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.10);
  color: #c084fc;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}

.hero-card h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  margin-bottom: 1.5rem;
}

.hero-features {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.20);
  color: var(--muted-2);
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
}

.hero-features li:hover {
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.04);
}

.feature-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--blue-dim);
}


/* ═══ SERVICES ═══ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}

/* Gradient top accent on hover */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: var(--border-bright);
  background: var(--surface-md);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-card:hover::before { opacity: 1; }

.service-number {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.65;
  transition: opacity 0.3s;
}

.service-card:hover .service-number { opacity: 1; }

.service-card p {
  font-size: 0.92rem;
  line-height: 1.78;
  flex: 1;
}

.service-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 1.5rem;
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ═══ WHO WE HELP ═══ */
.split-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.audience-list {
  display: grid;
  gap: 0.8rem;
}

.audience-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.audience-card:hover {
  border-color: var(--border-bright);
  background: var(--surface-md);
  transform: translateX(4px);
}

.audience-badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  background: var(--gradient);
  color: #fff;
  font-weight: 900;
  font-size: 0.78rem;
  box-shadow: 0 4px 14px var(--blue-dim);
}

.audience-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.audience-card p  { font-size: 0.88rem; line-height: 1.65; margin: 0; }


/* ═══ PROCESS ═══ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  position: relative;
  margin-top: 0.5rem;
}

/* Connecting line */
.process-grid::before {
  content: "";
  position: absolute;
  top: 2.65rem;
  left: calc(12.5% + 0.6rem);
  right: calc(12.5% + 0.6rem);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--border) 15%,
    var(--border) 85%,
    transparent 100%
  );
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.25s, background 0.25s;
}

.process-step:hover {
  border-color: var(--border-bright);
  background: var(--surface-md);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(77, 166, 255, 0.28);
}

.process-step h3 { font-size: 0.98rem; margin-bottom: 0.55rem; }
.process-step p  { font-size: 0.87rem; line-height: 1.72; margin: 0; }


/* ═══ QUOTE ═══ */
.quote-section {
  padding-top: 0;
  padding-bottom: 0;
}

blockquote {
  position: relative;
  margin: 0;
  padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem);
  border: 1px solid rgba(77, 166, 255, 0.18);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg,
    rgba(77,  166, 255, 0.08) 0%,
    rgba(168,  85, 247, 0.06) 60%,
    transparent 100%
  );
  overflow: hidden;
  font-size: clamp(1.3rem, 2.8vw, 2.3rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: var(--text);
}

blockquote::before {
  content: '\201C';
  position: absolute;
  top: -2.5rem;
  left: 1rem;
  font-size: 14rem;
  line-height: 1;
  font-weight: 900;
  color: var(--blue);
  opacity: 0.06;
  pointer-events: none;
  font-family: Georgia, serif;
}


/* ═══ CONTACT ═══ */
.contact-section { padding-bottom: 6rem; }

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--border-bright);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg,
    rgba(77,  166, 255, 0.10) 0%,
    rgba(168,  85, 247, 0.07) 55%,
    rgba(4,   10,  24, 0.40) 100%
  );
  box-shadow: var(--shadow-lg);
}

.contact-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.contact-content h2 { margin-bottom: 0.85rem; }
.contact-content > p { font-size: 1rem; line-height: 1.8; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Decorative rings */
.contact-deco {
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  width: 28rem;
  height: 28rem;
  pointer-events: none;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
}

.deco-ring-1 {
  inset: 0;
  border: 1px solid rgba(77, 166, 255, 0.14);
}

.deco-ring-2 {
  inset: 5rem;
  border: 1px solid rgba(168, 85, 247, 0.12);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 70%);
}


/* ═══ FOOTER ═══ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2.75rem;
  border-top: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
}

.footer-top {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--blue);
  transition: opacity 0.2s;
}

.footer-top:hover { opacity: 0.7; }


/* ═══ RESPONSIVE — TABLET ═══ */
@media (max-width: 960px) {
  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; }

  .service-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid::before { display: none; }
}


/* ═══ RESPONSIVE — MOBILE ═══ */
@media (max-width: 680px) {
  .header-inner { padding: 0.9rem 1rem; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: rgba(4, 10, 24, 0.97);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    border-radius: var(--r-sm);
    padding: 0.85rem 1rem;
  }

  .nav-cta { margin-left: 0 !important; }

  .section { padding: 3.5rem 1rem; }

  .hero { padding-top: 2.5rem; }

  h1 { font-size: clamp(2.4rem, 10vw, 3.4rem); }

  .hero-stats,
  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button { width: 100%; }

  .split-section { grid-template-columns: 1fr; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
