/* IMPORT FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&display=swap');

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

/* ==================== ROOT VARIABLES ==================== */
:root {
  --primary-red: #D32F2F;
  --primary-red-hover: #C62828;
  --accent-gold: #F59E0B;
  --text-dark: #212121;
  --text-medium: #616161;
  --text-light: #9E9E9E;
  --bg-white: #FFFFFF;
  --bg-grey: #F5F5F5;
  --bg-dark: #1A1A1A;
  --border-light: #E0E0E0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', serif;
  --ease-smooth: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==================== BODY ==================== */
body {
  background: var(--bg-white);
  font-family: var(--font-family);
  min-height: 100vh;
  color: var(--text-dark);
}

/* ==================== CONTAINER ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== HERO ==================== */
.hero {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  padding: 120px 24px 140px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background: rgba(211, 47, 47, 0.08);
  color: var(--primary-red);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: var(--font-display);
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 40px;
}

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

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-family);
}

.btn-primary {
  background: var(--primary-red);
  color: white;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: white;
  color: var(--text-dark);
  border: 2px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-dark);
  text-decoration: none;
}

/* ==================== HERO MOCKUP ==================== */
.hero-mockup {
  position: relative;
  height: 520px;
  display: flex;
  align-items: flex-end;
  perspective: 2000px;
  perspective-origin: 50% 50%;
}

.hero-laptop {
  width: 88%;
  margin-left: -5%;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.8s var(--ease-smooth);
  z-index: 1;
  filter: drop-shadow(0 28px 55px rgba(0, 0, 0, 0.38));
  transform: 
    perspective(1400px)
    rotateY(18deg) 
    rotateX(12deg) 
    rotateZ(-2deg);
}

.hero-laptop:hover {
  transform: 
    perspective(1400px)
    rotateY(8deg) 
    rotateX(6deg)
    rotateZ(-1deg) 
    scale(1.03);
}

.laptop-screen {
  background: linear-gradient(145deg, #3A3A3C 0%, #1C1C1E 100%);
  padding: 10px 10px 8px;
  border-radius: 12px 12px 4px 4px;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    0 32px 64px rgba(0, 0, 0, 0.65);
  position: relative;
}

.laptop-screen::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, rgba(80, 80, 80, 0.8) 0%, rgba(40, 40, 40, 0.6) 100%);
  border-radius: 50%;
  box-shadow: 
    0 0 2px rgba(255, 255, 255, 0.3),
    inset 0 1px 1px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.laptop-display {
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.laptop-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.laptop-base {
  height: 12px;
  background: linear-gradient(180deg, 
    #8A8A8E 0%, 
    #5E5E62 30%, 
    #48484A 70%, 
    #3A3A3C 100%);
  border-radius: 0 0 10px 10px;
  margin-top: -2px;
  position: relative;
  box-shadow: 
    0 5px 10px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ==================== HERO PHONE ==================== */
.hero-phone {
  position: absolute;
  width: 190px;
  right: 4%;
  bottom: 8%;
  z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
  transform-style: preserve-3d;
  transition: all 0.8s var(--ease-smooth);
  transform: 
    perspective(1200px)
    rotateY(12deg) 
    rotateX(10deg) 
    rotateZ(2deg);
}

.hero-phone:hover {
  transform: 
    perspective(1200px)
    rotateY(6deg) 
    rotateX(5deg)
    rotateZ(1deg) 
    scale(1.08);
}

.phone-body {
  background: linear-gradient(145deg, 
    #4A4A4E 0%, 
    #2C2C2E 50%, 
    #1C1C1E 100%);
  border-radius: 40px;
  padding: 5px;
  box-shadow: 
    0 38px 76px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 25px;
  background: #000;
  border-radius: 21px;
  z-index: 10;
}

.phone-screen {
  background: #000;
  border-radius: 35px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 96px 24px;
}

.section-grey {
  background: var(--bg-grey);
}

.section-white {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-medium);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==================== FEATURES ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-item {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-red);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.feature-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.feature-item p {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ==================== PROBLEM SOLVED ==================== */
.problem-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.problem-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 32px;
  line-height: 1.3;
}

.problem-content p {
  font-size: 1.125rem;
  color: var(--text-medium);
  line-height: 1.9;
  margin-bottom: 24px;
}

.problem-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 64px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary-red);
  line-height: 1;
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.stat-label {
  font-size: 1.0625rem;
  color: var(--text-medium);
  font-weight: 500;
}

/* ==================== TEASER GRID (PREMIUM SECTION) ==================== */
.preview-teaser {
  background: var(--bg-grey);
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== TEASER CARD (MOCKUP STYLE) ==================== */
.teaser-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 40px 32px 28px;
  transition: all 0.3s ease;
  perspective: 2000px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: block;
}

.teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-red);
  text-decoration: none;
  color: inherit;
}

/* ==================== DEVICE STAGE ==================== */
.device-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 390px;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #FAFAFA 0%, #F5F5F5 100%);
  border-radius: 12px;
  padding: 40px 20px 25px;
  perspective: 1800px;
  perspective-origin: 50% 40%;
}

.teaser-card:nth-child(even) .device-stage {
  justify-content: flex-end;
}

/* Live badge în colțul dreapta sus al device-stage (ca pe /invitatii-online/modele) */
.device-stage .live-badge-corner {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  color: var(--text-medium);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ==================== LAPTOP IN TEASER ==================== */
.teaser-card .laptop {
  width: 82%;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.8s var(--ease-smooth);
  z-index: 1;
  filter: drop-shadow(0 28px 55px rgba(0, 0, 0, 0.38));
  transform-origin: center top;
}

.teaser-card:nth-child(odd) .laptop {
  margin-left: -5%;
  transform: 
    perspective(1400px)
    rotateY(18deg) 
    rotateX(12deg) 
    rotateZ(-2deg);
}

.teaser-card:nth-child(even) .laptop {
  margin-right: -5%;
  margin-left: auto;
  transform: 
    perspective(1400px)
    rotateY(-18deg) 
    rotateX(12deg) 
    rotateZ(2deg);
}

.teaser-card:hover .laptop {
  transform: 
    perspective(1400px)
    rotateY(0deg) 
    rotateX(0deg)
    rotateZ(0deg) 
    scale(1.04);
}

/* ==================== PHONE IN TEASER ==================== */
.teaser-card .phone {
  width: 138px;
  position: absolute;
  bottom: 5px;
  transform-style: preserve-3d;
  transition: all 0.8s var(--ease-smooth);
  z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
  transform-origin: center center;
}

.teaser-card:nth-child(odd) .phone {
  right: 2%;
  transform: 
    perspective(1200px)
    rotateY(12deg) 
    rotateX(10deg) 
    rotateZ(2deg);
}

.teaser-card:nth-child(even) .phone {
  left: 2%;
  transform: 
    perspective(1200px)
    rotateY(-12deg) 
    rotateX(10deg) 
    rotateZ(-2deg);
}

.teaser-card:hover .phone {
  transform: 
    perspective(1200px)
    rotateY(0deg) 
    rotateX(0deg)
    rotateZ(0deg) 
    scale(1.08);
}

.teaser-card:nth-child(odd):hover .phone {
  right: 3%;
}

.teaser-card:nth-child(even):hover .phone {
  left: 3%;
}

/* Image scroll animation */
.laptop-display img,
.phone-screen img {
  transition: transform 3s ease-out;
  will-change: transform;
}

.teaser-card .laptop-display img {
  width: 100%;
  height: 250%;
  object-fit: cover;
  object-position: top center;
}

.teaser-card:hover .laptop-display img {
  transform: translateY(-70%);
}

.teaser-card .phone-screen img {
  width: 100%;
  height: 250%;
  object-fit: cover;
  object-position: top center;
}

.teaser-card:hover .phone-screen img {
  transform: translateY(-70%);
}

/* ==================== CARD INFO ==================== */
.teaser-info {
  padding: 4px 0 0;
  text-align: center;
}

.teaser-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.teaser-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(211, 47, 47, 0.08);
  border-radius: 12px;
  color: var(--primary-red);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.teaser-stats {
  font-size: 0.8125rem;
  color: var(--text-medium);
  margin: 8px 0 6px;
  line-height: 1.3;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-medium);
}

.live-badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: live-badge-pulse 1.5s ease-in-out infinite;
}

.live-badge-icon {
  flex-shrink: 0;
  opacity: 0.8;
}

.live-badge-count {
  font-weight: 600;
}

@keyframes live-badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.cta-center {
  text-align: center;
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.125rem;
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
  background: var(--bg-white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  margin-top: 64px;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-hover));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(211, 47, 47, 0.3);
}

.step h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.step p {
  font-size: 1.0625rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ==================== FAQ ==================== */
.faq {
  background: var(--bg-grey);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-red);
  transition: transform 0.3s ease;
  font-weight: 300;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: 20px;
}

.faq-answer p {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.8;
}

/* ==================== CTA FINAL ==================== */
.cta-final {
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-hover));
  color: white;
  text-align: center;
  padding: 96px 24px;
}

.cta-final h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 24px;
  font-family: var(--font-display);
}

.cta-final p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.btn-white {
  background: white;
  color: var(--primary-red);
  font-size: 1.125rem;
  padding: 18px 48px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  color: var(--primary-red);
  text-decoration: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  
  .hero-mockup {
    height: 450px;
  }
  
  .hero-laptop {
    width: 95%;
  }
  
  .hero-phone {
    width: 180px;
    right: 2%;
    bottom: 5%;
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .teaser-grid {
    grid-template-columns: 1fr;
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .problem-stats {
    grid-template-columns: 1fr;
  }
  
  .cta-final {
    padding: 60px 20px;
  }
}

/* ==================== SCROLL ANIMATIONS ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== SMOOTH SCROLL ==================== */
/* Image scroll în HERO mockup */

/* ==================== SCROLL ÎN HERO (DEZACTIVAT) ==================== 
.hero-laptop .laptop-display img {
  width: 100%;
  height: 250%;
  object-fit: cover;
  object-position: top center;
  transition: transform 3s ease-out;
  will-change: transform;
}

.hero-phone .phone-screen img {
  width: 100%;
  height: 250%;
  object-fit: cover;
  object-position: top center;
  transition: transform 3s ease-out;
  will-change: transform;
}

.hero:hover .hero-laptop .laptop-display img {
  transform: translateY(-70%);
}

.hero:hover .hero-phone .phone-screen img {
  transform: translateY(-70%);
}
*/

@media (max-width: 768px) {
  .hero-laptop {
    width: 80%;
    margin-left: 0;
  }

  .hero-mockup {
    height: 350px;
  }

  .hero-phone {
    width: 180px;
    right: 5%;
    bottom: -15%;
  }
}