/* ========================================
   BookInDZ Landing Page — Design System
   ======================================== */

:root {
  --primary-green: #006633;
  --primary-green-light: #008844;
  --primary-green-dark: #004d26;
  --accent-red: #D32F2F;
  --accent-red-light: #E53935;
  --accent-red-dark: #B71C1C;
  --light-green: #A5D6A7;
  --lightest-green: #E8F5E9;
  --white: #FFFFFF;
  --off-white: #FAFBFC;
  --text-dark: #000000;
  --text-heading: #1A1A2E;
  --text-body: #4E4B66;
  --text-placeholder: #A0A3BD;
  --border: #E4E4E7;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

h1, h2, h3, h4 {
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.text-green { color: var(--primary-green); }
.text-red { color: var(--accent-red); }
.text-white-highlight { color: var(--light-green); }

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary-green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-green-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-red {
  background: var(--accent-red);
  color: var(--white);
}
.btn-red:hover {
  background: var(--accent-red-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ========== NAVBAR ========== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
}

.logo-book { color: var(--primary-green); }
.logo-dz { color: var(--accent-red); }

.logo-text-fallback {
  font-size: 1.4rem;
  font-weight: 800;
  align-items: center;
  gap: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-green);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-nav-download {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Language Dropdown */
.lang-dropdown {
  position: static;
}

.navbar-inner {
  position: relative;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.lang-dropdown-btn:hover {
  border-color: var(--primary-green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-dropdown.open .lang-dropdown-btn {
  border-color: var(--primary-green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.lang-chevron {
  font-size: 0.5rem;
  transition: transform var(--transition);
  opacity: 0.4;
  margin-left: 2px;
}

.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
  opacity: 0.7;
}

.lang-dropdown-list {
  position: fixed;
  min-width: 160px;
  background: var(--white);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.lang-dropdown.open .lang-dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.lang-option .lang-flag {
  font-size: 1.25rem;
}

.lang-option:hover {
  background: #F0F4F8;
}

.lang-option.active {
  color: var(--primary-green);
}

/* Mobile language switcher */
.mobile-lang-switcher {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 4px 0;
}

.mobile-lang-switcher .lang-option {
  padding: 12px 8px;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.mobile-menu.open {
  max-height: 400px;
  padding: 24px;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-heading);
  padding: 8px 0;
  display: block;
}

.mobile-link:hover {
  color: var(--primary-green);
}

.mobile-download {
  text-align: center;
  margin-top: 8px;
  justify-content: center;
}

/* ========== HERO ========== */

.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--lightest-green) 0%, var(--white) 50%, #FFF5F5 100%);
}

.hero-bg-shape {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 102, 51, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-logo {
  width: 180px;
  height: auto;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-body);
  margin-bottom: 36px;
  max-width: 500px;
}

/* Store Buttons */
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text-dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.9;
}

.store-btn i {
  font-size: 1.6rem;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn-text small {
  font-size: 0.65rem;
  opacity: 0.85;
  line-height: 1;
}

.store-btn-text strong {
  font-size: 1rem;
  line-height: 1.2;
}

.store-btn-white {
  background: var(--white);
  color: var(--text-dark);
}
.store-btn-white:hover {
  background: #f0f0f0;
}

.store-btn-sm {
  padding: 8px 16px;
}
.store-btn-sm i {
  font-size: 1.2rem;
}
.store-btn-sm .store-btn-text small {
  font-size: 0.6rem;
}
.store-btn-sm .store-btn-text strong {
  font-size: 0.85rem;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  width: 260px;
  height: 520px;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl), inset 0 0 0 2px #333;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--lightest-green);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--primary-green);
  font-weight: 600;
  font-size: 0.95rem;
}

.placeholder-content i {
  font-size: 2.5rem;
  opacity: 0.5;
}

.placeholder-content span {
  opacity: 0.6;
}

.phone-screen:not(.placeholder-screen) .placeholder-content {
  display: none;
}

.placeholder-screen .placeholder-content {
  display: flex;
}

.hero-phone {
  width: 280px;
  height: 560px;
}

/* ========== FEATURES ========== */

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.6rem;
}

.icon-green {
  background: var(--lightest-green);
  color: var(--primary-green);
}

.icon-red {
  background: #FFEBEE;
  color: var(--accent-red);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========== APP PREVIEW / CAROUSEL ========== */

.app-preview {
  background: var(--off-white);
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-track-container {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  gap: 32px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
}

.carousel-track.grabbing {
  cursor: grabbing;
  transition: none;
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 22px);
  text-align: center;
}

.carousel-slide .phone-mockup {
  width: 220px;
  height: 440px;
  margin: 0 auto;
}

.slide-caption {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.carousel-arrow:hover {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-dot.active {
  background: var(--primary-green);
  transform: scale(1.2);
}

/* ========== WHY CHOOSE US (USP) ========== */

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.usp-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.usp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--light-green);
}

.usp-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.4rem;
}

.usp-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.usp-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== HOW IT WORKS ========== */

.how-section {
  background: var(--off-white);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  text-align: center;
  padding: 24px 20px;
  flex: 1;
  max-width: 220px;
  position: relative;
}

.step-number {
  position: absolute;
  top: 0;
  right: 16px;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--lightest-green);
  line-height: 1;
  z-index: 0;
}

.step-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  line-height: 1.5;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin-top: 60px;
  position: relative;
  flex-shrink: 0;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--primary-green);
  border-right: 2px solid var(--primary-green);
  transform: rotate(45deg);
}

/* ========== DOWNLOAD CTA ========== */

.download-cta {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 50%, var(--primary-green-dark) 100%);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.download-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.download-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 16px;
}

.download-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 480px;
}

.download-buttons-white {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.download-visual .phone-mockup {
  width: 240px;
  height: 480px;
}

.phone-white {
  background: #f5f5f5;
  box-shadow: var(--shadow-xl), inset 0 0 0 2px #ddd;
}

.phone-white::before {
  background: #f5f5f5;
}

/* ========== CONTACT ========== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
}

.required {
  color: var(--accent-red);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-heading);
  transition: all var(--transition);
  background: var(--white);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-placeholder);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(0, 102, 51, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.error-msg {
  font-size: 0.8rem;
  color: var(--accent-red);
  min-height: 18px;
}

.btn-submit {
  padding: 16px 32px;
  font-size: 1rem;
  align-self: flex-start;
}

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: var(--lightest-green);
  color: var(--primary-green);
  border: 1px solid var(--light-green);
}

.form-status.error-status {
  display: block;
  background: #FFEBEE;
  color: var(--accent-red);
  border: 1px solid #FFCDD2;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lightest-green);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.info-item a {
  color: var(--primary-green);
  font-weight: 500;
}

.info-item a:hover {
  text-decoration: underline;
}

.info-item p {
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-body);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

/* ========== FOOTER ========== */

.footer {
  background: var(--primary-green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 32px;
  width: auto;
}

.footer-logo .logo-text {
  font-size: 1.3rem;
  font-weight: 800;
}

.footer-logo .logo-book { color: var(--light-green); }
.footer-logo .logo-dz { color: #EF9A9A; }

.footer-tagline {
  font-size: 0.95rem;
  opacity: 0.8;
  max-width: 280px;
  line-height: 1.5;
}

.footer-links-col h4,
.footer-download-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  font-size: 0.9rem;
  opacity: 0.75;
  transition: all var(--transition);
}

.footer-links-col a:hover {
  opacity: 1;
  color: var(--white);
  padding-left: 4px;
}

.footer-store-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--white);
  color: var(--primary-green);
  border-color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

.heart {
  color: var(--accent-red);
}

/* ========== ANIMATIONS ========== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-slide {
    flex: 0 0 calc(50% - 16px);
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links,
  .btn-nav-download,
  .navbar-inner > .lang-dropdown {
    display: none;
  }

  .hamburger { display: flex; }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-logo {
    margin: 0 auto 24px;
    width: 150px;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

  .download-buttons {
    justify-content: center;
  }

  .hero-phone {
    width: 220px;
    height: 440px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .carousel-slide {
    flex: 0 0 calc(100% - 0px);
  }

  .carousel-slide .phone-mockup {
    width: 200px;
    height: 400px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }

  .step-connector::after {
    right: -4px;
    top: auto;
    bottom: -4px;
    transform: rotate(135deg);
  }

  .download-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-text p {
    margin: 0 auto 32px;
  }

  .download-buttons-white {
    justify-content: center;
  }

  .download-visual {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .store-btn {
    padding: 10px 18px;
  }

  .store-btn i { font-size: 1.3rem; }

  .store-btn-text strong { font-size: 0.85rem; }

  .hero-phone {
    width: 200px;
    height: 400px;
  }

  .usp-grid {
    grid-template-columns: 1fr;
  }

  .step { max-width: 100%; }
}
