/* ===========================================
   灯塔舍 LiteHaus — Lighthouse Editorial
   Aesthetic: Dark luxury + editorial magazine
   =========================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg:           #0A0E1A;
  --bg-elevated:  #111728;
  --bg-surface:   #161C30;
  --gold:         #D4A853;
  --gold-dim:     rgba(212, 168, 83, 0.15);
  --gold-glow:    rgba(212, 168, 83, 0.35);
  --teal:         #4ECDC4;
  --teal-dim:     rgba(78, 205, 196, 0.12);
  --cream:        #F5F0E8;
  --cream-muted:  #9A938A;
  --cream-dim:    rgba(245, 240, 232, 0.06);
  --border:       rgba(245, 240, 232, 0.08);
  --border-light: rgba(245, 240, 232, 0.15);

  --font-display: 'Playfair Display', 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --font-body:    'DM Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
::selection {
  background: var(--gold);
  color: var(--bg);
}

/* ---------- Noise overlay ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  mix-blend-mode: screen;
}

.cursor-glow.active { opacity: 0.12; }

/* ---------- Section tag ---------- */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  position: relative;
  padding-left: 48px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 36px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: none;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gold);
  color: var(--bg);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}

.btn--primary:hover::before { transform: translateY(0); }
.btn--primary span,
.btn--primary { position: relative; z-index: 1; }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border-light);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--outline-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 28px;
  font-size: 0.85rem;
}

.btn--outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--lg {
  padding: 20px 48px;
  font-size: 1rem;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.6s var(--ease);
}

.nav.scrolled {
  padding: 14px 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
}

.nav__logo-en {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--cream-muted);
  margin-left: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream-muted);
  padding: 8px 18px;
  border-radius: 0;
  transition: color 0.3s var(--ease);
}

.nav__links a:hover { color: var(--cream); }

.nav__cta {
  background: var(--gold) !important;
  color: var(--bg) !important;
  font-weight: 600 !important;
  margin-left: 12px;
}

.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__menu-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: all 0.4s var(--ease);
}

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 40px 80px;
}

/* Light beams */
.hero__beams {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.beam {
  position: absolute;
  width: 2px;
  height: 120%;
  background: linear-gradient(to bottom, transparent, var(--gold-glow), transparent);
  opacity: 0.4;
  transform-origin: top center;
}

.beam--1 {
  left: 15%;
  top: -10%;
  transform: rotate(-4deg);
  animation: beam-drift 8s ease-in-out infinite;
}

.beam--2 {
  left: 50%;
  top: -10%;
  transform: translateX(-50%) rotate(0deg);
  opacity: 0.6;
  animation: beam-drift 10s ease-in-out infinite 2s;
}

.beam--3 {
  left: 85%;
  top: -10%;
  transform: rotate(4deg);
  animation: beam-drift 8s ease-in-out infinite 4s;
}

@keyframes beam-drift {
  0%, 100% { opacity: 0.15; transform: rotate(var(--base-rot, 0deg)) scaleX(1); }
  50%      { opacity: 0.5;  transform: rotate(var(--base-rot, 0deg)) scaleX(3); }
}

.hero__content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 40px;
  animation: fade-up 1s var(--ease) both;
}

.hero__tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.6); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.hero__title-line {
  display: block;
  animation: fade-up 1s var(--ease) both 0.1s;
}

.hero__title-line--accent {
  color: var(--gold);
  font-style: italic;
  animation-delay: 0.25s;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--cream-muted);
  max-width: 500px;
  margin: 0 auto 48px;
  line-height: 1.9;
  animation: fade-up 1s var(--ease) both 0.4s;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fade-up 1s var(--ease) both 0.55s;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fade-up 1s var(--ease) both 0.7s;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

.hero__scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero__edge {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  z-index: 2;
}

.hero__edge-text {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--cream-muted);
  opacity: 0.4;
  white-space: nowrap;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====== MARQUEE BAR ====== */
.marquee-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg-elevated);
}

.marquee-bar__track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.marquee-bar__track span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--cream-muted);
  text-transform: uppercase;
}

.marquee-bar__sep {
  color: var(--gold);
  font-size: 0.5rem;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ====== PHILOSOPHY ====== */
.philosophy {
  padding: 140px 40px;
}

.philosophy__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

.philosophy__heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.philosophy__heading em {
  color: var(--gold);
  font-style: italic;
}

.philosophy__text {
  font-size: 1rem;
  color: var(--cream-muted);
  line-height: 1.9;
  margin-bottom: 24px;
}

.philosophy__stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.philosophy__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.philosophy__stat-label {
  font-size: 0.8rem;
  color: var(--cream-muted);
  letter-spacing: 0.05em;
}

/* ====== SERVICES ====== */
.services {
  padding: 140px 40px;
  background: var(--bg-elevated);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
}

.services__header {
  max-width: 1200px;
  margin: 0 auto 80px;
}

.services__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
}

.services__duo {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}

.svc {
  background: var(--bg);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
  transition: background 0.6s var(--ease);
}

.svc:hover {
  background: var(--bg-surface);
}

.svc__number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: var(--cream-dim);
  line-height: 1;
  margin-bottom: 32px;
}

.svc__icon {
  width: 56px;
  height: 56px;
  color: var(--gold);
  margin-bottom: 28px;
}

.svc__icon svg {
  width: 100%;
  height: 100%;
}

.svc__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.svc__title span {
  font-size: 1.1rem;
  color: var(--cream-muted);
  font-weight: 400;
  font-style: normal;
  display: block;
  margin-top: 4px;
}

.svc__desc {
  font-size: 0.95rem;
  color: var(--cream-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.svc__list {
  margin-bottom: 36px;
}

.svc__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--cream);
}

.svc__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.svc__bg-text {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: var(--font-display);
  font-size: 12rem;
  font-weight: 900;
  color: var(--cream-dim);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.svc--assess:hover .svc__bg-text { color: rgba(212, 168, 83, 0.04); }
.svc--ai:hover .svc__bg-text     { color: rgba(78, 205, 196, 0.04); }

/* ====== METHOD ====== */
.method {
  padding: 140px 40px;
}

.method__header {
  max-width: 1200px;
  margin: 0 auto 80px;
}

.method__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
}

.steps {
  max-width: 900px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.step + .step { margin-top: 0; }

.step__marker {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  text-align: center;
}

.step__marker span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.step__line {
  width: 1px;
  height: 120px;
  background: var(--border-light);
  margin: 12px auto 0;
}

.step:last-child .step__line { display: none; }

.step__content {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.step:last-child .step__content { border-bottom: none; padding-bottom: 0; }

.step__content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step__content p {
  font-size: 0.95rem;
  color: var(--cream-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* ====== CONTACT ====== */
.contact {
  padding: 140px 40px;
  background: var(--bg-elevated);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
}

.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}

.contact__desc {
  font-size: 1rem;
  color: var(--cream-muted);
  margin-bottom: 48px;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__item {
  padding: 24px;
  border: 1px solid var(--border);
  transition: border-color 0.4s var(--ease);
}

.contact__item:hover {
  border-color: var(--gold-dim);
}

.contact__item-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact__item a {
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.3s;
}

.contact__item a:hover { color: var(--gold); }

.contact__item p {
  font-size: 0.95rem;
  color: var(--cream-muted);
  line-height: 1.7;
}

/* CTA Panel */
.cta-panel {
  position: relative;
  padding: 64px 56px;
  border: 1px solid var(--border-light);
  text-align: center;
  overflow: hidden;
}

.cta-panel__deco {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cta-panel__deco svg {
  width: 300px;
  height: 300px;
  color: var(--gold);
  opacity: 0.15;
  animation: rotate-slow 60s linear infinite;
}

@keyframes rotate-slow {
  to { transform: rotate(360deg); }
}

.cta-panel h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.cta-panel p {
  font-size: 1rem;
  color: var(--cream-muted);
  margin-bottom: 36px;
  line-height: 1.8;
  position: relative;
}

/* ====== FOOTER ====== */
.footer {
  padding: 80px 40px 40px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer__brand {
  max-width: 300px;
}

.footer__brand .nav__logo { margin-bottom: 20px; }

.footer__brand p {
  font-size: 0.85rem;
  color: var(--cream-muted);
  line-height: 1.8;
}

.footer__links {
  display: flex;
  gap: 60px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--cream-muted);
  transition: color 0.3s;
}

.footer__col a:hover { color: var(--cream); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__bottom span {
  font-size: 0.75rem;
  color: var(--cream-muted);
  opacity: 0.6;
  letter-spacing: 0.03em;
}

.footer__icp {
  text-align: center;
  padding-top: 24px;
}

.footer__icp a {
  font-size: 0.75rem;
  color: var(--cream-muted);
  opacity: 0.5;
  letter-spacing: 0.03em;
  transition: color 0.3s, opacity 0.3s;
}

.footer__icp a:hover {
  color: var(--cream);
  opacity: 0.8;
}

/* ====== Scroll Animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .philosophy__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-glow { display: none; }
  .btn { cursor: pointer; }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-elevated);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right 0.5s var(--ease);
    border-left: 1px solid var(--border);
  }

  .nav__links.open { right: 0; }

  .nav__links a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav__cta {
    margin-left: 0 !important;
    text-align: center;
    margin-top: 12px;
  }

  .nav__menu-btn { display: flex; }

  .hero { padding: 100px 24px 60px; }
  .hero__edge { display: none; }

  .philosophy, .services, .method, .contact {
    padding: 80px 24px;
  }

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

  .svc {
    padding: 48px 32px;
  }

  .svc__bg-text {
    font-size: 8rem;
  }

  .philosophy__stats {
    gap: 24px;
  }

  .footer__top {
    flex-direction: column;
    gap: 40px;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .nav__inner {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .step {
    flex-direction: column;
    gap: 16px;
  }

  .step__marker {
    display: flex;
    align-items: center;
    gap: 16px;
    width: auto;
  }

  .step__line {
    width: 40px;
    height: 1px;
    margin: 0 0 0 12px;
  }

  .step__content {
    padding-bottom: 40px;
  }

  .philosophy__heading,
  .services__heading,
  .method__heading,
  .contact__heading {
    font-size: 1.8rem;
  }

  .cta-panel {
    padding: 48px 28px;
  }
}
