/* -------------------------------------------------------------
 * 🎨 index.css - BeautyFlow Landing Page Premium Design System
 * Rose-Gold & Velvet Midnight Theme (Light / Dark Mode Support)
 * ------------------------------------------------------------- */

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

:root {
  --font-scale: 1;
  font-size: calc(16px * var(--font-scale));

  /* Colors (Dark Theme Default) */
  --bg-deep: hsl(260, 25%, 7%);
  --bg-card: hsla(260, 20%, 12%, 0.7);
  --primary: hsl(330, 85%, 60%);
  --primary-hover: hsl(330, 90%, 68%);
  --secondary: hsl(270, 85%, 65%);
  --text-main: hsl(270, 20%, 98%);
  --text-muted: hsl(270, 12%, 70%);
  --border-glow: hsla(330, 85%, 60%, 0.25);
  --accent-error: hsl(350, 85%, 60%);
  --accent-success: hsl(150, 80%, 45%);

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --bg-header: hsla(260, 25%, 7%, 0.75);
  --bg-header-scrolled: hsla(260, 25%, 7%, 0.92);
  --bg-footer: hsl(260, 25%, 5%);
  --border-flat: hsla(270, 20%, 98%, 0.08);
  --modal-overlay: rgba(10, 5, 15, 0.8);
}

/* Light Mode Theme Overrides */
html.light-mode {
  --bg-deep: hsl(270, 30%, 98%);
  --bg-card: hsla(0, 0%, 100%, 0.85);
  --primary: hsl(330, 80%, 52%);
  --primary-hover: hsl(330, 85%, 45%);
  --secondary: hsl(270, 75%, 55%);
  --text-main: hsl(260, 40%, 12%);
  --text-muted: hsl(260, 15%, 40%);
  --border-glow: hsla(330, 80%, 52%, 0.2);
  --bg-header: hsla(270, 30%, 98%, 0.85);
  --bg-header-scrolled: hsla(270, 30%, 98%, 0.95);
  --bg-footer: hsl(270, 20%, 94%);
  --border-flat: hsla(260, 40%, 12%, 0.1);
  --modal-overlay: rgba(240, 235, 245, 0.8);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, hsla(330, 85%, 60%, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, hsla(270, 85%, 65%, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border-glow);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.glass-effect {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-flat);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12);
}

/* HEADER NAVIGATION */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-flat);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.logo-wrapper svg {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  box-shadow: 0 4px 20px var(--border-glow);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--border-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
}

.btn-ghost:hover {
  background: var(--border-flat);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-flat);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary {
  background: var(--secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  opacity: 0.9;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-flat);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* LANGUAGE SELECTOR */
.lang-selector-container {
  position: relative;
}

.btn-lang-trigger {
  background: transparent;
  border: 1px solid var(--border-flat);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.lang-dropdown-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 130px;
  border-radius: 12px;
  list-style: none;
  padding: 8px 0;
  display: none;
  z-index: 105;
}

.lang-dropdown-list.show {
  display: block;
}

.lang-option {
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.lang-option:hover, .lang-option.selected {
  color: var(--primary);
  background: var(--border-flat);
}

/* THEME TOGGLE ICONS */
html.light-mode .icon-sun {
  display: none;
}
html.light-mode .icon-moon {
  display: block;
}
html:not(.light-mode) .icon-sun {
  display: block;
}
html:not(.light-mode) .icon-moon {
  display: none;
}

/* HERO SECTION */
.hero {
  padding: 160px 0 100px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--border-glow);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

.preview-card {
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-flat);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-flat);
}

.preview-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.preview-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 12px;
  background: var(--border-flat);
}

.preview-icon-check {
  color: var(--accent-success);
}

.preview-icon-sparkle {
  color: var(--primary);
}

.preview-text {
  flex: 1;
}

.preview-line-large {
  height: 10px;
  background: var(--text-muted);
  opacity: 0.3;
  border-radius: 5px;
  width: 60%;
  margin-bottom: 6px;
}

.preview-line-small {
  height: 8px;
  background: var(--text-muted);
  opacity: 0.2;
  border-radius: 4px;
  width: 40%;
}

.preview-badge-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--border-glow);
  color: var(--primary);
}

/* SECTIONS COMMON */
section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  border-radius: 20px;
  padding: 36px 28px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.card-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--border-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ECOSYSTEM */
.ecosystem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px;
  border-radius: 28px;
  align-items: center;
}

.ecosystem-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0 36px;
}

.eco-feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.eco-icon {
  background: var(--border-glow);
  color: var(--primary);
  padding: 8px;
  border-radius: 10px;
  display: flex;
}

.calendar-preview-card {
  background: var(--bg-deep);
  border: 1px solid var(--border-flat);
  border-radius: 20px;
  padding: 24px;
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.badge-new {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.cal-slot {
  padding: 10px 4px;
  border-radius: 8px;
  font-size: 0.75rem;
  text-align: center;
  font-weight: 600;
}

.cal-slot.active {
  background: var(--border-glow);
  color: var(--primary);
}

.cal-slot.busy {
  background: var(--border-flat);
  color: var(--text-muted);
  text-decoration: line-through;
}

/* DIFFERENTIATORS GRID */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.diff-card {
  padding: 40px;
  border-radius: 24px;
}

.diff-icon {
  color: var(--secondary);
  margin-bottom: 20px;
}

.diff-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.diff-card p {
  color: var(--text-muted);
}

/* PRICING GRID */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 12px 40px var(--border-glow);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 12px;
  text-transform: uppercase;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pricing-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  min-height: 40px;
  margin-bottom: 20px;
}

.price {
  font-size: 2.8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  margin-bottom: 24px;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
}

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px;
  border-radius: 28px;
}

.info-blocks {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  height: 46px;
  background: var(--bg-deep);
  border: 1px solid var(--border-flat);
  color: var(--text-main);
  padding: 0 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group textarea {
  height: auto !important;
  padding: 12px 16px;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23EC4899' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: flex-start;
}

/* FOOTER */
footer {
  background: var(--bg-footer);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-flat);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-flat);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* MODAL */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--modal-overlay);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  max-width: 480px;
  width: 90%;
  padding: 36px;
  border-radius: 24px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 24px;
  border-radius: 16px;
  z-index: 150;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cookie-link {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* TOAST */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-layout, .features-grid, .ecosystem-layout, .diff-grid, .pricing-grid, .contact-layout {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
}
