/* TangoEra UI Theme 1004-U1 (Ink-Wash & White Crane Nocturne Dark Editorial) */
/* Ground Truth Specification: results/设计定调-tangoeraUI-1004.md */

:root {
  /* Core Palette */
  --bg-dark-editorial: #0A0B0E;
  --bg-primary: #0E1015;
  --bg-secondary: #14171F;
  --bg-card: #1A1E27;
  --bg-card-hover: #222733;
  --bg-glass: rgba(20, 23, 31, 0.80);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-editorial: rgba(212, 175, 55, 0.22);
  --border-active: rgba(212, 175, 55, 0.55);
  
  --text-primary: #F2F4F8;
  --text-body: #C4C8D2;
  --text-muted: #888E9E;
  --text-accent-gold: #D4AF37;
  --text-gold-light: #EAD07C;

  /* Legacy variable mappings for 100% full compatibility */
  --bg: var(--bg-primary);
  --primary: var(--bg-primary);
  --primary-soft: var(--bg-secondary);
  --border: var(--border-subtle);
  --text: var(--text-primary);
  --body-text: var(--text-body);
  --text-secondary: var(--text-muted);
  --muted: var(--text-muted);
  --white: #FFFFFF;
  --accent: #D4AF37;
  --accent-hover: #EAD07C;
  --accent-light: #EAD07C;
  --accent-nocturne: #D4AF37;
  --accent2: #D4AF37;
  --gold: #D4AF37;
  --gold-muted: #9E8852;
  --grid: rgba(255, 255, 255, 0.06);
  --success: #6EAD87;
  --warning: #D4AF37;
  --danger: #C86B6B;
  --gradient: linear-gradient(135deg, #14171F 0%, #0E1015 100%);
}

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

html {
  background-color: var(--bg-dark-editorial);
  color: var(--text-body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: radial-gradient(circle at 50% 0%, #151821 0%, var(--bg-dark-editorial) 75%);
  background-attachment: fixed;
  color: var(--text-body);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Headings with Editorial Grace */
h1, h2, h3, h4, h5, h6, .editorial-heading {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin-bottom: 0.8rem;
}

h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-body);
}

a {
  color: var(--text-accent-gold);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--text-gold-light);
}

/* Buttons & CTA System */
.cta-button, .hero-primary-cta, button[type="submit"], input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #D4AF37 0%, #B89228 100%);
  color: #0A0B0E !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.cta-button:hover, .hero-primary-cta:hover, button[type="submit"]:hover {
  background: linear-gradient(135deg, #EAD07C 0%, #D4AF37 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero-primary-cta {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  padding: 18px 42px;
  border-radius: 10px;
  line-height: 1.25;
}

.cta-button.secondary, .hero-secondary-cta {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
}

.cta-button.secondary:hover, .hero-secondary-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.link-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 2px;
  background: none;
  border: none;
  color: var(--text-accent-gold);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.link-cta:hover {
  color: var(--text-gold-light);
}

/* Sticky Bottom CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 16, 21, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-editorial);
  padding: 14px 24px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
}

.sticky-cta .price-tag { color: var(--text-primary); font-size: 1.15rem; font-weight: 600; }
.sticky-cta .cta-button { padding: 12px 28px; font-size: 1rem; }

/* Cards & Layout Grid */
.pain-cards-grid, .grid, .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.pain-card, .card, .feature-card, .methodology-card, .teaser-card, .sample-card, .qmenu-col, .quiz-card, .problem-card, .stat-item, .pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.pain-card::before, .card::before, .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-editorial), transparent);
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.pain-card:hover, .card:hover, .methodology-card:hover, .teaser-card:hover, .sample-card:hover, .qmenu-col:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-editorial);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.pain-card:hover::before, .card:hover::before {
  opacity: 1;
}

.pain-card .pain-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.pain-card h4 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 0.4rem; }
.pain-card p { font-size: 0.9rem; line-height: 1.55; color: var(--text-body); margin-bottom: 0.8rem; }

/* Editorial Badge */
.editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-editorial);
  color: var(--text-accent-gold);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 24px;
}

/* Form Elements */
input, select, textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
}

.email-form input { flex: 1; }

/* Persona Tabs */
.persona-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.persona-tab {
  padding: 10px 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
}

.persona-tab.active, .persona-tab:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--border-editorial);
  color: var(--text-accent-gold);
}

/* Comparison Table */
.comparison-section { padding: 64px 20px; background: var(--bg-primary); }
.comparison-table { max-width: 1000px; margin: 0 auto; overflow-x: auto; }
.comparison-table table { width: 100%; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.comparison-table th { background: var(--bg-secondary); color: var(--text-primary); font-weight: 600; white-space: nowrap; }
.comparison-table tr:hover { background: var(--bg-card-hover); }

/* Responsive Adjustments */
@media (max-width: 768px) {
  section { padding: 48px 0; }
  .sticky-cta { flex-direction: column; gap: 10px; padding: 12px 16px; }
  .hero-primary-cta { width: 100%; text-align: center; }
  .email-form { flex-direction: column; width: 100%; }
}
