/* ============================================ */
/* STYLE: Design Tokens & Variables             */
/* ============================================ */
:root {
  --verde-oliva: #556B2F;
  --verde-oliva-light: #6B8A3E;
  --verde-oliva-dark: #3D4F22;
  --crema: #F5F5BD;
  --crema-soft: #FAFAE0;
  --madera: #A58263;
  --madera-light: #C4A07A;
  --madera-dark: #7A5D42;
  --dorado: #CBA165;

  --bg-primary: #0D1117;
  --bg-secondary: #161B22;
  --bg-surface: #1C2128;
  --text-primary: #F0EDE6;
  --text-secondary: #A8A08E;
  --text-muted: #6B6552;

  --glass-bg: rgba(28, 33, 40, 0.75);
  --glass-border: rgba(203, 161, 101, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================ */
/* STYLE: Utility Classes                       */
/* ============================================ */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

.text-gold {
  color: var(--dorado);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================ */
/* STYLE: Buttons                               */
/* ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--verde-oliva), var(--verde-oliva-light));
  color: var(--crema);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 15px rgba(85, 107, 47, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(85, 107, 47, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ============================================ */
/* STYLE: Hero Section                          */
/* ============================================ */
#hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  background: rgba(85, 107, 47, 0.15);
  border: 1px solid rgba(85, 107, 47, 0.3);
  color: var(--verde-oliva-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  color: var(--crema);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-subtitle strong {
  color: var(--dorado);
}

/* Hero Decorative Circles */
.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.deco-circle--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--verde-oliva), transparent 70%);
  top: -200px;
  right: -150px;
}

.deco-circle--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--dorado), transparent 70%);
  bottom: -100px;
  left: -100px;
}

.deco-circle--3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--madera), transparent 70%);
  top: 50%;
  left: 60%;
}

/* ============================================ */
/* STYLE: Valentina Section                     */
/* ============================================ */
#valentina-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

/* Valentina Hub (Floating Button + Waves) */
#valentina-hub {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

#valentina-btn {
  position: relative;
  z-index: 3;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  border: 3px solid var(--dorado);
  background: var(--bg-surface);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  box-shadow:
    0 0 0 4px rgba(203, 161, 101, 0.1),
    0 8px 30px rgba(0, 0, 0, 0.4);
  padding: 0;
}

#valentina-btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 0 6px rgba(203, 161, 101, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.5);
}

#valentina-btn:active {
  transform: scale(0.98);
}

#valentina-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

/* Sound Waves (Ripple Effect) */
#valentina-waves {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.wave {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  border: 2px solid var(--dorado);
  opacity: 0;
  pointer-events: none;
}

/* Waves only animate when .active class is present */
#valentina-hub.active .wave--1 {
  animation: ripple 2s ease-out infinite;
  animation-delay: 0s;
}

#valentina-hub.active .wave--2 {
  animation: ripple 2s ease-out infinite;
  animation-delay: 0.5s;
}

#valentina-hub.active .wave--3 {
  animation: ripple 2s ease-out infinite;
  animation-delay: 1s;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.6;
    border-color: var(--dorado);
  }

  100% {
    transform: scale(2.8);
    opacity: 0;
    border-color: var(--dorado);
  }
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: rgba(85, 107, 47, 0.1);
  border: 1px solid rgba(85, 107, 47, 0.25);
  font-size: 0.9rem;
  color: var(--verde-oliva-light);
  animation: fadeInUp 0.4s ease-out;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--verde-oliva-light);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* ============================================ */
/* STYLE: Loading Section                       */
/* ============================================ */
#loading-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.loading-container {
  text-align: center;
  padding: 3rem;
  max-width: 420px;
  width: 100%;
  animation: fadeInUp 0.5s ease-out;
}

.loading-container h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--crema);
}

.loading-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Spinner */
.loading-spinner {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 2rem;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  border: 3px solid transparent;
  border-top-color: var(--dorado);
  animation: spin 1.2s linear infinite;
}

.spinner-ring--2 {
  inset: 6px;
  border-top-color: var(--verde-oliva-light);
  animation-duration: 1.8s;
  animation-direction: reverse;
}

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

/* Loading Bar */
.loading-bar {
  width: 100%;
  height: 3px;
  background: var(--bg-primary);
  border-radius: 3px;
  overflow: hidden;
}

.loading-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--verde-oliva), var(--dorado));
  border-radius: 3px;
  animation: loading-progress 4s ease-in-out infinite;
}

@keyframes loading-progress {
  0% {
    width: 0%;
  }

  50% {
    width: 70%;
  }

  100% {
    width: 100%;
  }
}

/* ============================================ */
/* STYLE: Designer Section                      */
/* ============================================ */
#designer-section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.5s ease-out;
}

#designer-canvas {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.designer-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: grayscale(0.5);
}

/* Designer Output (when content is injected) */
#designer-output img {
  max-width: 100%;
  border-radius: var(--radius);
  animation: fadeIn 0.6s ease-out;
}

#designer-output .design-text {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.7;
  padding: 1.5rem;
}

/* Design Detail Cards */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.detail-card {
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.detail-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.6rem;
}

.detail-card h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dorado);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.detail-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================ */
/* STYLE: Lead Form (Stitch Design)             */
/* ============================================ */
#lead-section {
  padding: 0;
  animation: fadeInUp 0.5s ease-out;
}

.lead-fullscreen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  font-family: 'Manrope', sans-serif;
}

.lead-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.lead-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

/* Top Bar */
.lead-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 3rem 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.lead-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border: none;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.lead-back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lead-ai-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lead-ai-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--verde-oliva-light);
  box-shadow: 0 0 8px rgba(84, 106, 47, 0.8);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.lead-skip-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
}

.lead-skip-btn:hover {
  color: white;
}

/* Card */
.lead-card-wrapper {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem 1rem 6rem;
}

@media (min-width: 640px) {
  .lead-card-wrapper {
    justify-content: center;
    padding-bottom: 6rem;
  }
}

.lead-card {
  width: 100%;
  max-width: 400px;
  background: #FAFAF8;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out;
}

.lead-card-hero {
  position: relative;
  height: 128px;
  width: 100%;
  overflow: hidden;
}

.lead-card-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.lead-card-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #FAFAF8, transparent);
}

.lead-card-title {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-family: 'Manrope', sans-serif;
}

.lead-card-body {
  padding: 0.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lead-card-desc {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Stitch Form Inputs */
.stitch-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.stitch-input-group label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--verde-oliva);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 0.25rem;
}

.stitch-input-wrap {
  position: relative;
}

.stitch-input-icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  font-size: 20px !important;
  color: #9ca3af;
  pointer-events: none;
}

.stitch-input-wrap input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  color: #1a1a1a;
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  transition: all 0.2s;
}

.stitch-input-wrap input::placeholder {
  color: #9ca3af;
}

.stitch-input-wrap input:focus {
  outline: none;
  border-color: var(--verde-oliva);
  box-shadow: 0 0 0 2px rgba(84, 106, 47, 0.15);
}

/* Phone Row */
.stitch-phone-row {
  display: flex;
  gap: 0.5rem;
}

.stitch-country-select {
  position: relative;
  width: 5.5rem;
  flex-shrink: 0;
}

.stitch-country-select select {
  width: 100%;
  height: 100%;
  padding: 0.75rem 1.5rem 0.75rem 0.75rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  color: #1a1a1a;
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s;
}

.stitch-country-select select:focus {
  outline: none;
  border-color: var(--verde-oliva);
  box-shadow: 0 0 0 2px rgba(84, 106, 47, 0.15);
}

.stitch-select-arrow {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  font-size: 16px !important;
  color: #6b7280;
  pointer-events: none;
}

.stitch-phone-input {
  flex: 1;
}

/* Submit Button */
.stitch-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--verde-oliva);
  color: #fafbf9;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(84, 106, 47, 0.25);
  transition: all 0.2s;
}

.stitch-submit-btn:hover {
  background: #465926;
}

.stitch-submit-btn:active {
  transform: scale(0.98);
}

.lead-privacy {
  text-align: center;
  font-size: 0.625rem;
  color: #9ca3af;
}

/* Bottom Navigation */
.lead-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.5rem 1.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e5e7eb;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  transition: color 0.2s;
}

.nav-item span:last-child {
  font-size: 0.625rem;
  font-weight: 500;
}

.nav-item:hover {
  color: var(--verde-oliva);
}

.nav-item .material-symbols-outlined {
  font-size: 24px;
}

/* Main Valentina Nav Button */
.nav-item--main {
  margin-top: -1.5rem;
}

.nav-valentina-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--verde-oliva);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(84, 106, 47, 0.4);
  border: 4px solid white;
  transition: transform 0.2s;
}

.nav-valentina-circle:hover {
  transform: scale(1.05);
}

.nav-valentina-circle .material-symbols-outlined {
  font-size: 28px;
}

.nav-item-label-active {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--verde-oliva);
}

/* ============================================ */
/* STYLE: Footer                                */
/* ============================================ */
#app-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 2rem;
}

/* ============================================ */
/* STYLE: Animations                            */
/* ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

/* ============================================ */
/* STYLE: Responsive                            */
/* ============================================ */
@media (max-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .lead-container {
    padding: 1.5rem;
  }

  #designer-canvas {
    min-height: 280px;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  #valentina-btn {
    width: 100px;
    height: 100px;
  }

  .wave {
    width: 100px;
    height: 100px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }
}