/* xaohit v2 - One Person Company */

:root {
  --bg: #08080c;
  --bg-elevated: #0e0e14;
  --bg-card: rgba(255,255,255,0.03);
  --bg-glass: rgba(14,14,20,0.7);
  --text: #f0f0f5;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  --accent: #d4af37;
  --accent-dim: #8a7340;
  --accent-glow: rgba(212,175,55,0.15);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --success: #4ade80;
  --warning: #fbbf24;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px var(--accent-glow);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Background ambient glow ===== */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: all 0.3s ease;
}

.nav.scrolled {
  padding: 0.75rem 2.5rem;
  background: rgba(8,8,12,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, #e8c96a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

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

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 100px;
  background: rgba(212,175,55,0.05);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #d4af37 0%, #f0d78c 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, #c4a35a 0%, #d4af37 100%);
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(212,175,55,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,175,55,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-hover);
}

.btn-secondary:hover {
  border-color: var(--accent-dim);
  background: rgba(212,175,55,0.05);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 4rem;
  justify-content: center;
}

.stat {
  text-align: center;
  position: relative;
}

.stat::after {
  content: '';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--border);
}

.stat:last-child::after { display: none; }

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, #e8c96a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Sections ===== */
section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 60px rgba(212,175,55,0.05);
}

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

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 600;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tags span {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--border);
}

/* ===== Proof ===== */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.proof-item:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
}

.proof-status {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  font-weight: 600;
}

.proof-status.done {
  background: rgba(74,222,128,0.1);
  color: var(--success);
  border: 1px solid rgba(74,222,128,0.2);
}

.proof-status.doing {
  background: rgba(251,191,36,0.1);
  color: var(--warning);
  border: 1px solid rgba(251,191,36,0.2);
}

.proof-status.dark {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.proof-content h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.proof-content p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ===== About ===== */
.about {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.about-text {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.about-text p strong {
  color: var(--text);
  font-weight: 600;
}

.about-traits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.trait {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.trait-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.trait-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

/* ===== Contact ===== */
.contact {
  text-align: center;
}

.contact-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-link:hover {
  border-color: var(--accent-dim);
  background: rgba(212,175,55,0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.contact-icon {
  font-size: 1.1rem;
}

.contact-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 3.5rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
}

.footer-built {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.05em;
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .about-traits { grid-template-columns: 1fr; }
  .hero-stats { gap: 2rem; }
  .stat::after { display: none; }
}

@media (max-width: 640px) {
  .nav { padding: 0.75rem 1.25rem; }
  .nav.scrolled { padding: 0.75rem 1.25rem; }
  .nav-links { gap: 1.5rem; }
  .hero { padding: 6rem 1.25rem 3rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 260px; justify-content: center; }
  section { padding: 4rem 1.25rem; }
  .about { padding: 2.5rem 1.5rem; }
  .contact-links { flex-direction: column; align-items: center; }
  .contact-link { width: 100%; max-width: 280px; justify-content: center; }
}
