/* ==========================================================================
   VITTORIS LUXURY EDITORIAL DESIGN SYSTEM (Pure CSS)
   Engineered for High-Ticket B2B AI Infrastructure
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Dark Mode Default */
  --bg-body: #070707;
  --bg-surface: #0e0e0e;
  --bg-card: #131313;
  --bg-glass: rgba(18, 18, 18, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(199, 168, 109, 0.3);
  --border-gold-glow: rgba(199, 168, 109, 0.6);
  
  --gold-primary: #C7A86D;
  --gold-light: #E5C788;
  --gold-gradient: linear-gradient(135deg, #C7A86D 0%, #E5C788 50%, #B39355 100%);
  --gold-soft-bg: rgba(199, 168, 109, 0.1);
  
  --text-main: #FFFFFF;
  --text-muted: #A3A3A3;
  --text-dim: #666666;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --shadow-lux: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 0 25px rgba(199, 168, 109, 0.2);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode */
html.light-mode {
  --bg-body: #F9F9F8;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-card: rgba(0, 0, 0, 0.12);
  --border-gold: rgba(184, 147, 74, 0.4);
  --border-gold-glow: rgba(184, 147, 74, 0.8);
  
  --gold-primary: #B8934A;
  --gold-light: #947230;
  --gold-gradient: linear-gradient(135deg, #B8934A 0%, #D4AF37 50%, #9E7B35 100%);
  --gold-soft-bg: rgba(184, 147, 74, 0.12);
  
  --text-main: #111111;
  --text-muted: #555555;
  --text-dim: #888888;
  
  --shadow-lux: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 0 25px rgba(184, 147, 74, 0.15);
}

/* Eye-Protection Mode */
html.eye-protection-mode {
  --bg-body: #191512;
  --bg-surface: #221D18;
  --bg-card: #27211B;
  --bg-glass: rgba(36, 29, 24, 0.9);
  --border-subtle: rgba(212, 163, 89, 0.12);
  --border-card: rgba(212, 163, 89, 0.18);
  --border-gold: rgba(212, 163, 89, 0.35);
  --border-gold-glow: rgba(212, 163, 89, 0.7);
  
  --gold-primary: #D4A359;
  --gold-light: #E8BE78;
  --gold-gradient: linear-gradient(135deg, #D4A359 0%, #E8BE78 50%, #B8853B 100%);
  --gold-soft-bg: rgba(212, 163, 89, 0.15);
  
  --text-main: #F4EBE2;
  --text-muted: #BDB0A2;
  --text-dim: #807365;
  
  --shadow-lux: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 25px rgba(212, 163, 89, 0.2);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

::selection {
  background: var(--gold-primary);
  color: #000;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
}

/* Ambient Background Light */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(199, 168, 109, 0.08) 0%, rgba(0,0,0,0) 70%);
  filter: blur(80px);
}

.glow-orb-2 {
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(199, 168, 109, 0.05) 0%, rgba(0,0,0,0) 70%);
  filter: blur(100px);
}

/* Mouse Follower Dot */
.cursor-follower {
  position: fixed;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(199, 168, 109, 0.06) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 2rem;
  transition: var(--transition);
}

.site-header.scrolled {
  padding: 0.85rem 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-emblem {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-main);
}

.brand-tag {
  color: var(--gold-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  transition: var(--transition);
}

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

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  background: var(--gold-gradient);
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(199, 168, 109, 0.35);
  transition: var(--transition);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(199, 168, 109, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--border-gold);
  background: var(--gold-soft-bg);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  transition: var(--transition);
}

.btn-outline:hover {
  background: rgba(199, 168, 109, 0.2);
  border-color: var(--gold-light);
  color: #fff;
}

/* Container & Sections */
.main-wrapper {
  position: relative;
  z-index: 2;
  padding-top: 5rem;
}

.section-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

/* Badges */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--gold-soft-bg);
  border: 1px solid var(--border-gold);
  border-radius: 9999px;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

/* Hero Section */
.hero-section {
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 6rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 1050px;
  margin: 0 auto 1.5rem;
  color: var(--text-main);
}

.hero-title em {
  font-style: italic;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Metrics Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: var(--transition);
}

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

.metric-value {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Luxury Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.5rem;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--border-gold-glow);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lux);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-primary);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.tag-pill {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: var(--gold-soft-bg);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}

/* Interactive ROI Simulator */
.roi-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 2rem;
  padding: 3.5rem;
  box-shadow: var(--shadow-lux);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.slider-group {
  margin-bottom: 2rem;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.slider-val {
  font-family: var(--font-mono);
  color: var(--gold-light);
  font-weight: 600;
}

.lux-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-subtle);
  outline: none;
  -webkit-appearance: none;
}

.lux-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(199, 168, 109, 0.5);
}

.roi-results-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.roi-stat-main {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin: 0.75rem 0 0.5rem;
}

/* Modal Overlay & Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 1.75rem;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.modal-close-btn {
  font-size: 1.5rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close-btn:hover {
  color: #fff;
  background: var(--border-subtle);
}

.modal-body {
  padding: 2rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(199, 168, 109, 0.2);
}

/* Slot Selection Pills */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.slot-pill {
  padding: 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.slot-pill:hover {
  border-color: var(--border-gold);
}

.slot-pill.selected {
  background: var(--gold-soft-bg);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.slot-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.slot-time {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .roi-container { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
