/* ============================================
   Vay Dahar — Landing Page Styles
   Colors & typography from the mobile app
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

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

:root {
  --bg: #F5F0E8;
  --surface: #FAF7F2;
  --accent: #2D3B2D;
  --accent-light: #3E5240;
  --text: #2C2C2C;
  --text-secondary: #6B6356;
  --text-tertiary: #9C9488;
  --border: #EBE6DC;
  --border-dark: #E5DFD5;
  --success: #4A7C59;
  --placeholder: #DCD6CC;
  --shadow: rgba(45, 59, 45, 0.08);
  --shadow-md: rgba(45, 59, 45, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --section-padding: 100px 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 16px auto 0;
  text-align: center;
}

/* --- 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);
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
  opacity: 1;
}

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

.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}

.lang-switcher a {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  transition: all 0.2s;
}

.lang-switcher a.active {
  background: var(--accent);
  color: var(--surface);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(45, 59, 45, 0.85) 0%, rgba(45, 59, 45, 0.6) 50%, rgba(74, 124, 89, 0.4) 100%),
    url('../images/hero.jpg') center / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

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

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--accent);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.store-btn svg {
  width: 24px;
  height: 24px;
}

.store-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.store-btn.dark {
  background: var(--accent);
  color: #fff;
}

.hero-phone {
  flex-shrink: 0;
  position: relative;
}

.phone-mockup {
  width: 280px;
  height: 580px;
  background: var(--surface);
  border-radius: 40px;
  border: 8px solid var(--text);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--text);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 30%, var(--surface) 30%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 20px;
}

.phone-screen-placeholder .mock-logo {
  color: var(--surface);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.phone-screen-placeholder .mock-card {
  width: 100%;
  height: 100px;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px var(--shadow);
}

/* --- Features --- */
.features {
  padding: var(--section-padding);
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-md);
  border-color: var(--accent);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--surface);
  stroke: var(--surface);
  fill: none;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Highlights (Why section) --- */
.highlights {
  padding: var(--section-padding);
  background: var(--accent);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.highlights::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.highlights::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.highlights-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.highlights-header h2 {
  color: #fff;
}

.highlights-header .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.highlight-item {
  text-align: center;
  padding: 32px 24px;
}

.highlight-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 12px;
}

.highlight-item h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.highlight-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* --- Preview --- */
.preview {
  padding: var(--section-padding);
}

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

.preview-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.preview-tab {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.preview-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.preview-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-md);
}

.preview-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--placeholder);
  position: relative;
  overflow: hidden;
}

.preview-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card-image .card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

.preview-card-body {
  padding: 20px;
}

.preview-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.preview-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.preview-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.preview-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-cta {
  text-align: center;
  margin-top: 48px;
}

/* --- Culture teaser --- */
.culture {
  padding: var(--section-padding);
  background: var(--surface);
}

.culture .container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.culture-content {
  flex: 1;
}

.culture-content .section-subtitle {
  text-align: left;
  margin: 16px 0 32px;
}

.culture-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.culture-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.05rem;
}

.culture-list .list-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.culture-list .list-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--surface);
  fill: none;
}

.culture-list .list-text strong {
  display: block;
  margin-bottom: 2px;
}

.culture-list .list-text span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.culture-visual {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.culture-img {
  border-radius: var(--radius-lg);
  background: var(--placeholder);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.culture-img:first-child {
  margin-top: 40px;
}

.culture-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Download CTA --- */
.download {
  padding: 120px 0;
  text-align: center;
}

.download-card {
  background: var(--accent);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74, 124, 89, 0.4), transparent 70%);
  pointer-events: none;
}

.download-card h2 {
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}

.download-card .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  position: relative;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.download-buttons .store-btn {
  background: #fff;
  color: var(--accent);
}

.download-buttons .store-btn:hover {
  background: var(--bg);
}

.download-qr {
  margin-top: 40px;
  position: relative;
}

.download-qr p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-top: 12px;
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: var(--radius);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

/* --- Footer --- */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
  opacity: 1;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.footer-socials a:hover {
  background: var(--accent-light);
  opacity: 1;
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 1;
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  opacity: 1;
  background: var(--accent);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--accent);
}

/* --- Mobile menu overlay --- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  background: var(--bg);
  z-index: 99;
  padding: 32px 24px;
  flex-direction: column;
  gap: 0;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-menu .lang-switcher {
  margin-top: 24px;
  justify-content: center;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-grid .preview-card:last-child {
    display: none;
  }

  .culture .container {
    flex-direction: column;
    gap: 48px;
  }

  .culture-content .section-subtitle {
    text-align: center;
  }

  .culture-content {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-right .lang-switcher {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-phone {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .highlight-item {
    padding: 20px;
  }

  .highlight-number {
    font-size: 2.2rem;
  }

  .preview-tabs {
    flex-wrap: wrap;
  }

  .preview-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .preview-grid .preview-card:last-child {
    display: block;
  }

  .culture-visual {
    max-width: 360px;
    margin: 0 auto;
  }

  .download-card {
    padding: 48px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .store-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-buttons .store-btn {
    width: 260px;
  }
}
