/* VINCA Landing Page - Dark Mode Glassmorphism
 * Culori sincronizate cu hosting/css/vinca.css și lib/config/theme.dart
 * Mobile-first, system fonts, fără dependențe externe
 */

/* ========== Variables CSS (identice cu vinca.css) ========== */
:root {
  --primary: #8B5CF6;
  --primary-dark: #7C3AED;
  --primary-light: #A78BFA;
  --secondary: #F472B6;
  --secondary-dark: #EC4899;
  --bg-start: #0F0015;
  --bg-end: #1A0A2E;
  --success: #22C55E;
  --white: #FFFFFF;
  --grey-400: #D1D5DB;
  --grey-500: #9CA3AF;
  --grey-600: #6B7280;
  --grey-800: #1F2937;
  --accent: #F472B6;
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ========== Safe Area (notch/status bar) ========== */
:root {
  --sat: env(safe-area-inset-top);
  --sab: env(safe-area-inset-bottom);
  --sal: env(safe-area-inset-left);
  --sar: env(safe-area-inset-right);
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-color: #0F0015;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== Container ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Glassmorphism Card ========== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.glass-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-4px);
  box-shadow:
    0 20px 60px rgba(139, 92, 246, 0.12),
    0 0 0 1px rgba(139, 92, 246, 0.1);
}

/* ========== Gradient Text ========== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Nav (sticky, glassmorphism) ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 0, 21, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding-top: var(--sat);
  padding-left: var(--sal);
  padding-right: var(--sar);
}

.nav__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo span {
  letter-spacing: 4px;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__flower {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}

.nav__logo:hover {
  text-decoration: none;
}

.nav__logo:hover .nav__flower {
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.8));
}

.nav__links {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-400);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--white);
  text-decoration: none;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.nav__cta:hover {
  opacity: 0.9;
  transform: scale(1.02);
  text-decoration: none;
}

/* ========== Section Title ========== */
.section__title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Hero ========== */
.hero {
  padding: 100px 0 60px;
  text-align: center;
}

.hero__title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__br {
  display: block;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--grey-400);
  max-width: 600px;
  margin: 0 auto 12px;
  line-height: 1.6;
}

.hero__analogy {
  font-size: 15px;
  color: var(--grey-500);
  margin-bottom: 32px;
  font-style: italic;
}

.hero__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto 12px;
}

.hero__input {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--white);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.hero__input::placeholder {
  color: var(--grey-500);
}

.hero__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.hero__btn {
  padding: 14px 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  width: 100%;
}

.hero__btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.hero__note {
  font-size: 15px;
  font-weight: 600;
  color: var(--success);
  text-align: center;
  letter-spacing: 0.5px;
}

.hero__screenshot {
  margin-top: 48px;
}

.hero__screenshot-placeholder {
  max-width: 320px;
  height: 400px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.15), rgba(244, 114, 182, 0.1));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-500);
  font-size: 14px;
}

/* ========== Beneficii ========== */
.beneficii {
  padding: 80px 0;
}

.beneficii__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.beneficii__card {
  text-align: center;
}

.beneficii__icon {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1;
}

.beneficii__card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.beneficii__card-text {
  font-size: 15px;
  color: var(--grey-400);
  line-height: 1.6;
}

/* ========== Cum funcționează ========== */
.cum-functioneaza {
  padding: 80px 0;
}

.steps {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step__number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  min-width: 48px;
  text-align: center;
}

.step__content {
  border-left: 2px solid var(--glass-border);
  padding-left: 20px;
  padding-bottom: 4px;
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step__text {
  font-size: 15px;
  color: var(--grey-400);
  line-height: 1.6;
}

/* ========== Funcționalități ========== */
.functionalitati {
  padding: 80px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature__card {
  padding: 20px;
  border-radius: var(--radius-md);
}

.feature__icon {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1;
}

.feature__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature__text {
  font-size: 14px;
  color: var(--grey-400);
  line-height: 1.5;
}

/* ========== Prețuri ========== */
.preturi {
  padding: 80px 0;
}

.preturi__card {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.preturi__free {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.preturi__price {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--white);
}

.preturi__price-note {
  font-size: 14px;
  color: var(--primary-light);
  margin-bottom: 24px;
  font-weight: 500;
}

.preturi__list {
  list-style: none;
  margin-bottom: 28px;
  text-align: left;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.preturi__item {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--grey-400);
  margin-bottom: 10px;
  line-height: 1.5;
}

.preturi__item::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 16px;
}

/* ========== CTA Button ========== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-cta:hover {
  opacity: 0.9;
  transform: scale(1.02);
  text-decoration: none;
}

/* ========== FAQ ========== */
.faq {
  padding: 80px 0;
}

.faq__list {
  max-width: 700px;
  margin: 0 auto;
}

.faq__item {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq__question {
  padding: 16px 44px 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

/* Ascunde marker-ul nativ Safari */
.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--grey-400);
  transition: transform 0.3s;
}

.faq__item[open] .faq__question::after {
  content: "\2212";
  transform: translateY(-50%) rotate(0deg);
}

.faq__answer {
  padding: 0 20px 16px;
  color: var(--grey-400);
  font-size: 15px;
  line-height: 1.6;
}

/* ========== CTA Final ========== */
.cta-final {
  padding: 80px 0;
  text-align: center;
}

.cta-final__title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-final__text {
  font-size: 16px;
  color: var(--grey-400);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== Footer ========== */
.footer {
  text-align: center;
  padding: 40px 16px calc(32px + var(--sab));
  padding-left: var(--sal);
  padding-right: var(--sar);
  border-top: 1px solid var(--glass-border);
  margin-top: 0;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer__brand span {
  letter-spacing: 4px;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__flower {
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.4));
}

.footer__tagline {
  font-size: 13px;
  color: var(--grey-500);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer__link {
  font-size: 13px;
  color: var(--grey-500);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.footer__copy {
  font-size: 12px;
  color: var(--grey-600);
}

/* ========== Ambient Background ========== */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.bg-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8B5CF6 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.bg-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #F472B6 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.bg-orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #6366F1 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ========== Animații fade-in pe scroll ========== */
.section-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive: Tablet (768px+) ========== */
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }

  .nav__container {
    padding: 0 40px;
  }

  .nav__links {
    display: flex;
  }

  .hero__title {
    font-size: 42px;
  }

  .hero__form {
    flex-direction: row;
    max-width: 480px;
  }

  .hero__input {
    flex: 1;
  }

  .hero__btn {
    width: auto;
    white-space: nowrap;
  }

  .section__title {
    font-size: 30px;
  }

  .beneficii__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .cta-final__title {
    font-size: 32px;
  }
}

/* ========== Responsive: Desktop (1024px+) ========== */
@media (min-width: 1024px) {
  .hero {
    padding: 120px 0 80px;
  }

  .hero__title {
    font-size: 48px;
  }


  .hero__subtitle {
    font-size: 20px;
  }

  .section__title {
    font-size: 32px;
    margin-bottom: 48px;
  }

  .beneficii {
    padding: 100px 0;
  }

  .cum-functioneaza {
    padding: 100px 0;
  }

  .functionalitati {
    padding: 100px 0;
  }

  .preturi {
    padding: 100px 0;
  }

  .faq {
    padding: 100px 0;
  }

  .cta-final {
    padding: 100px 0;
  }

  .beneficii__card {
    padding: 32px;
  }

  .feature__card {
    padding: 24px;
  }

  .step__title {
    font-size: 20px;
  }

  .cta-final__title {
    font-size: 36px;
  }
}

/* ========== Responsive: Small screens (360px-) ========== */
@media (max-width: 360px) {
  .hero__title {
    font-size: 26px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .preturi__free {
    font-size: 24px;
  }

  .preturi__card {
    padding: 28px 20px;
  }

  .step__number {
    font-size: 40px;
    min-width: 40px;
  }

  .footer__links {
    flex-direction: column;
    gap: 12px;
  }
}
