/* ==========================================================================
   ChronoKairo Luxury Design System — Landing Pages & Showcases
   Identidade visual compartilhada de luxo com suporte ao Ciclo Solar (Dia/Noite)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root, .dark {
  --bg-primary: #0a0a0a;
  --bg-black: #0a0a0a;
  --bg-clinical: #0a0a0a;
  --surface-dark: #121212;
  --surface-card: #121212;
  --surface-elevated: #171717;
  --surface-white: #121212;
  --card-black: #121212;
  
  --text-primary: #fafafa;
  --text-muted: #C8CACB;
  --dark-charcoal: #fafafa;
  --slate-dark: #d4d4d4;
  --slate-muted: #C8CACB;
  --slate-gray: #a3a3a3;
  --glacier: #fafafa;
  --pure-white: #fafafa;
  
  --border-color: #262626;
  --border-subtle: #262626;
  --border-clinical: #262626;
  --border-active: #3d3d3d;
  --border-hover: rgba(255, 255, 255, 0.2);

  --btn-primary-bg: #ffffff;
  --btn-primary-text: #0a0a0a;
  --btn-outline-border: #333333;
  --btn-outline-text: #fafafa;
  
  --header-bg: rgba(10, 10, 10, 0.85);
  --header-border: #262626;
  
  --primary-teal: #fafafa;
  --primary-teal-dark: #d4d4d4;
  --primary-teal-light: #171717;
  --whatsapp-green: #ffffff;
  --whatsapp-dark: #e5e5e5;
  
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
  --card-bg-blur: rgba(18, 18, 18, 0.7);

  color-scheme: dark;
}

:root.light, .light {
  --bg-primary: #ffffff;
  --bg-black: #ffffff;
  --bg-clinical: #ffffff;
  --surface-dark: #fafafa;
  --surface-card: #fafafa;
  --surface-elevated: #f4f4f5;
  --surface-white: #ffffff;
  --card-black: #fafafa;
  
  --text-primary: #09090b;
  --text-muted: #71717a;
  --dark-charcoal: #09090b;
  --slate-dark: #27272a;
  --slate-muted: #71717a;
  --slate-gray: #52525b;
  --glacier: #09090b;
  --pure-white: #09090b;
  
  --border-color: #e4e4e7;
  --border-subtle: #e4e4e7;
  --border-clinical: #e4e4e7;
  --border-active: #d4d4d8;
  --border-hover: rgba(0, 0, 0, 0.2);

  --btn-primary-bg: #09090b;
  --btn-primary-text: #ffffff;
  --btn-outline-border: #e4e4e7;
  --btn-outline-text: #09090b;
  
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-border: #e4e4e7;
  
  --primary-teal: #09090b;
  --primary-teal-dark: #27272a;
  --primary-teal-light: #f4f4f5;
  --whatsapp-green: #09090b;
  --whatsapp-dark: #27272a;
  
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --card-bg-blur: rgba(250, 250, 250, 0.8);

  color-scheme: light;
}

/* Base resets & typography */
html, body {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Header */
header {
  background: var(--header-bg) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--header-border) !important;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.brand-logo, .brand-logo span.logo-title, .logo, .workmed-logo {
  font-family: 'Inter', sans-serif !important;
  font-weight: 300 !important;
  letter-spacing: -0.02em !important;
  color: var(--text-primary) !important;
  text-transform: none !important;
}

.nav-links a {
  color: var(--text-muted) !important;
  font-weight: 300 !important;
  font-size: 0.875rem !important;
  transition: color 0.2s ease !important;
}

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

/* Hero */
.hero {
  padding-top: clamp(96px, 12vw, 160px) !important;
  padding-bottom: clamp(72px, 8vw, 120px) !important;
}

.hero h1, .headline {
  font-family: 'Inter', sans-serif !important;
  font-weight: 300 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.12 !important;
  color: var(--text-primary) !important;
}

.hero h1 span, .headline span {
  font-weight: 200 !important;
  color: var(--text-muted) !important;
}

.hero p, .subheadline {
  font-weight: 300 !important;
  color: var(--text-muted) !important;
  line-height: 1.75 !important;
  font-size: clamp(1rem, 1.2vw, 1.15rem) !important;
  max-width: 760px;
}

/* Section titles */
.section-title, .contact-section h2, .contact-section h3 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 300 !important;
  letter-spacing: -0.025em !important;
  color: var(--text-primary) !important;
}

/* Badges & Tags */
.hero-tag, .badge-case, .tagline, .section-tag, .chronokairo-badge, .brand-badge, .card-tag {
  background: var(--surface-elevated) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-muted) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  padding: 5px 14px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-bottom: 20px !important;
}

/* Cards & Containers — Modern Luxury Radius & Glass */
.metric-card,
.feature-card,
.card-feature,
.card,
.contact-section,
.client-box,
.wizard-strip,
.wizard-step-box {
  background: var(--surface-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 18px !important;
  box-shadow: var(--shadow-card) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background-color 0.4s ease !important;
}

.metric-card:hover,
.feature-card:hover,
.card-feature:hover,
.card:hover,
.wizard-step-box:hover {
  transform: translateY(-2px) !important;
  border-color: var(--border-hover) !important;
}

.metric-number, .step-number {
  font-family: 'Inter', sans-serif !important;
  font-weight: 300 !important;
  color: var(--text-primary) !important;
}

.metric-label, .step-title {
  color: var(--text-primary) !important;
  font-weight: 400 !important;
}

.metric-desc, .step-text {
  color: var(--text-muted) !important;
  font-weight: 300 !important;
}

/* Showcase Frames */
.hero-showcase, .showcase-frame {
  border-radius: 18px !important;
  border: 1px solid var(--border-color) !important;
  overflow: hidden !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
  background: var(--surface-card) !important;
}

.showcase-meta {
  background: var(--surface-card) !important;
  border-top: 1px solid var(--border-color) !important;
  color: var(--text-muted) !important;
  font-family: ui-monospace, monospace !important;
  font-size: 11px !important;
}

/* Buttons — Pill Luxury Style */
.floating-whatsapp {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-card) !important;
}

.floating-whatsapp:hover {
  background: var(--btn-primary-bg) !important;
  opacity: 0.92 !important;
}

.btn-whatsapp-nav,
.btn-whatsapp-hero,
.btn-cta,
.nav-cta,
.form-submit-btn,
.form-submit-whatsapp,
a[class*="btn-primary"] {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  border: 1px solid var(--btn-primary-bg) !important;
  border-radius: 9999px !important;
  padding: 10px 24px !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.btn-whatsapp-nav:hover,
.btn-whatsapp-hero:hover,
.btn-cta:hover,
.nav-cta:hover,
.form-submit-btn:hover,
.form-submit-whatsapp:hover,
a[class*="btn-primary"]:hover {
  transform: translateY(-1px) !important;
  opacity: 0.92 !important;
}

.btn-whatsapp-nav svg,
.btn-whatsapp-hero svg,
.form-submit-btn svg,
.form-submit-whatsapp svg,
.floating-whatsapp svg {
  fill: var(--btn-primary-text) !important;
  color: var(--btn-primary-text) !important;
}

.btn-outline,
.btn-secondary,
.btn-secondary-hero {
  border: 1px solid var(--btn-outline-border) !important;
  border-radius: 9999px !important;
  background: transparent !important;
  color: var(--btn-outline-text) !important;
  padding: 10px 24px !important;
  font-weight: 400 !important;
  font-size: 0.875rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.btn-outline:hover,
.btn-secondary:hover,
.btn-secondary-hero:hover {
  background: var(--surface-elevated) !important;
  border-color: var(--border-hover) !important;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color) !important;
  background: var(--bg-primary) !important;
  color: var(--text-muted) !important;
  padding: 48px 0 !important;
}

footer a {
  color: var(--text-muted) !important;
  transition: color 0.2s ease !important;
}

footer a:hover {
  color: var(--text-primary) !important;
}

/* Form inputs */
input, textarea, select {
  background: var(--surface-elevated) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-family: inherit !important;
  transition: border-color 0.2s ease !important;
}

input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: var(--border-hover) !important;
}

/* Floating Solar Theme Toggle */
.lp-theme-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: var(--surface-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.lp-theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--border-hover);
}

.lp-theme-toggle .sun-icon {
  display: none;
}
.lp-theme-toggle .moon-icon {
  display: block;
}

:root.light .lp-theme-toggle .sun-icon,
.light .lp-theme-toggle .sun-icon {
  display: block;
}
:root.light .lp-theme-toggle .moon-icon,
.light .lp-theme-toggle .moon-icon {
  display: none;
}

/* Back-to-site Home link pill */
.lp-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-mono: ui-monospace, monospace;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: var(--surface-card);
  transition: all 0.2s ease;
}

.lp-back-home:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
