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

:root {
  --c-primary: #fe2c55;
  --c-primary-dark: #e02548;
  --c-primary-glow: rgba(254,44,85,0.25);
  --c-bg: #0a0a0f;
  --c-surface: #1a1a24;
  --c-surface-2: #252532;
  --c-surface-3: #2f2f40;
  --c-text: #ffffff;
  --c-text-muted: #8a8a9a;
  --c-text-dim: #5a5a6a;
  --c-border: rgba(255,255,255,0.08);
  --c-border-hover: rgba(255,255,255,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(254,44,85,0.15);
  --font-sans: 'Noto Sans SC', 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ================================
   Aurora Background
   ================================ */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(254,44,85,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,120,50,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(100,60,200,0.06) 0%, transparent 50%),
    var(--c-bg);
}

[data-theme="ocean"] .bg-aurora {
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(0,150,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0,200,200,0.08) 0%, transparent 50%),
    var(--c-bg);
}

[data-theme="forest"] .bg-aurora {
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(0,200,100,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(100,200,100,0.06) 0%, transparent 50%),
    var(--c-bg);
}

/* ================================
   Layout
   ================================ */
.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 100px 0; }
.section--highlights { padding: 60px 0; }

/* ================================
   Header
   ================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand__mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--c-primary) 0%, #ff6b35 100%);
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--c-primary-glow);
  transition: var(--transition);
}

.brand:hover .brand__mark {
  transform: scale(1.05) rotate(-2deg);
}

.brand__text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand__dy { color: var(--c-primary); }

.header__tagline {
  margin-left: auto;
  color: var(--c-text-muted);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 28px;
  transition: var(--transition);
  flex-shrink: 0;
}

.header-contact:hover {
  background: var(--c-surface-2);
  border-color: var(--c-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.header-contact__icon {
  width: 22px;
  height: 22px;
  color: var(--c-primary);
  flex-shrink: 0;
}

.header-contact__label {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.header-contact__guide {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
}

.header-contact:hover .header-contact__guide {
  opacity: 1;
  transform: translateX(0);
}

.header-contact__guide-ring {
  width: 6px;
  height: 6px;
  background: var(--c-primary);
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}

.header-contact__guide-arrow {
  width: 16px;
  height: 16px;
  color: var(--c-primary);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ================================
   Hero
   ================================ */
.hero {
  min-height: 65vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 100px 0 80px;
}

.hero__inner { max-width: 860px; margin: 0 auto; }

.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(254,44,85,0.15) 0%, rgba(254,44,85,0.08) 100%);
  border: 1px solid rgba(254,44,85,0.25);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-primary);
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.hero__badge:empty { display: none; }

.hero__title {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--c-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ================================
   Section Header
   ================================ */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head__title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-head__line {
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary), #ff6b35);
  margin: 0 auto;
  border-radius: 2px;
}

.section-head__desc {
  color: var(--c-text-muted);
  max-width: 500px;
  margin: 16px auto 0;
  font-size: 16px;
}

/* ================================
   Highlights
   ================================ */
.highlight-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.highlight-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.highlight-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-primary-glow) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.highlight-item:hover {
  transform: translateY(-6px);
  border-color: rgba(254,44,85,0.3);
  box-shadow: var(--shadow-glow);
}

.highlight-item:hover::before { opacity: 1; }

.highlight-item__text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--c-primary);
  position: relative;
}

.highlight-item__desc {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.7;
  position: relative;
}

/* ================================
   Services
   ================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), #ff6b35);
  opacity: 0;
  transition: var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, var(--c-primary-glow), transparent 70%);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(254,44,85,0.35);
  box-shadow: var(--shadow-lg);
}

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

.service-card__tag {
  display: inline-block;
  padding: 5px 14px;
  background: linear-gradient(135deg, rgba(254,44,85,0.15) 0%, rgba(254,44,85,0.08) 100%);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-primary);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.service-card__title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.service-card__desc {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.75;
}

/* ================================
   Service Detail
   ================================ */
.service-detail {
  padding: 60px 0 100px;
  min-height: 80vh;
}

.service-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 40px;
  transition: var(--transition);
}

.service-detail__back:hover {
  background: var(--c-surface-2);
  border-color: var(--c-border-hover);
  transform: translateX(-4px);
}

.service-detail__back svg {
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.service-detail__back:hover svg { transform: translateX(-2px); }

.service-detail__content {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 56px;
  max-width: 800px;
}

.service-detail__content h2 {
  font-size: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.service-detail__content .service-card__tag {
  margin-bottom: 32px;
}

.service-detail__content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 20px;
  color: var(--c-text);
}

.service-detail__content p {
  color: var(--c-text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.service-detail__content ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.service-detail__content li {
  position: relative;
  padding-left: 24px;
  line-height: 2.2;
  color: var(--c-text-muted);
}

.service-detail__content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--c-primary);
  border-radius: 50%;
}

/* ================================
   Contact
   ================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--c-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.contact-card__role {
  font-size: 13px;
  color: var(--c-text-dim);
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-card__wx {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 10px;
  letter-spacing: 3px;
  font-family: 'SF Mono', 'Monaco', monospace;
}

.contact-card__note {
  font-size: 14px;
  color: var(--c-text-muted);
}

/* ================================
   Footer
   ================================ */
.footer {
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid var(--c-border);
  margin-top: 80px;
}

.footer__text {
  color: var(--c-text-dim);
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* ================================
   Side Ads
   ================================ */
body.side-ads-on { padding-left: 0; padding-right: 0; }

.side-ad {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 180px;
}

.side-ad--left { left: 20px; }
.side-ad--right { right: 20px; }

.side-ad__card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.side-ad__img {
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.side-ad__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.side-ad__body {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.side-ad__link {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--c-primary), #ff6b35);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
}

.side-ad__link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px var(--c-primary-glow);
}

.side-ad__placeholder {
  font-size: 12px;
  color: var(--c-text-dim);
  font-style: italic;
}

/* ================================
   Animations
   ================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero__inner > * { animation: fadeInUp 0.7s ease backwards; }
.hero__badge { animation-delay: 0.1s; }
.hero__title { animation-delay: 0.15s; }
.hero__subtitle { animation-delay: 0.2s; }

/* ================================
   Responsive
   ================================ */
@media (max-width: 1024px) {
  .highlight-row { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .shell { padding: 0 20px; }
  .header__inner { flex-wrap: wrap; height: auto; padding: 16px 20px; gap: 12px; }
  .header__tagline { display: none; }
  .section { padding: 72px 0; }
  .section--highlights { padding: 48px 0; }
  .hero { min-height: 55vh; padding: 72px 0 56px; }
  .hero__title { font-size: 32px; }
  .hero__subtitle { font-size: 16px; }
  .section-head__title { font-size: 28px; }
  .highlight-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .highlight-item { padding: 24px 16px; }
  .highlight-item__text { font-size: 17px; }
  .service-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-card { padding: 28px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail__content { padding: 32px 24px; }
  .service-detail__content h2 { font-size: 26px; }
  .side-ad { display: none; }
}

@media (max-width: 480px) {
  .highlight-row { grid-template-columns: 1fr; }
  .header-contact__label { display: none; }
}
