/* MatchCorner Promo Website - Material Design Theme */
/* Extracted from Flutter app theme */

:root {
  --color-primary: #2196F3;
  --color-primary-dark: #1976D2;
  --color-primary-light: #BBDEFB;
  --color-accent: #ED2531;
  --color-accent-dark: #C62828;
  --color-secondary: #FFC107;
  --color-secondary-dark: #FFA000;
  --color-bg: #F0F0F0;
  --color-bg-white: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-text-primary: #222222;
  --color-text-secondary: #666666;
  --color-text-muted: #BDBDBD;
  --color-green: #4CAF50;
  --color-orange: #FF9800;
  --color-purple: #9C27B0;
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  --font-family: 'Open Sans', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text-primary);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-bg-white);
  box-shadow: var(--shadow-md);
  padding: 16px 24px;
  z-index: 999;
}

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

.mobile-menu a {
  display: block;
  text-decoration: none;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  margin-top: 64px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 80px 24px 60px;
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  color: white;
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
  line-height: 1;
}

.btn-primary {
  background: white;
  color: var(--color-primary-dark);
}

.btn-primary:hover {
  background: #e3f2fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

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

.btn-accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(237,37,49,0.3);
}

.btn-google-play {
  background: var(--color-text-primary);
  color: white;
}

.btn-google-play:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Hero device mockup */
.hero-device {
  flex-shrink: 0;
  width: 280px;
  position: relative;
}

.device-frame {
  position: relative;
  background: #1a1a1a;
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.device-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: #333;
  border-radius: 3px;
}

.device-frame img {
  width: 100%;
  border-radius: 22px;
  display: block;
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-device {
    width: 220px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 16px 40px;
    min-height: auto;
  }
  .hero-content h1 {
    font-size: 1.75rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

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

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

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

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== FEATURES (Alternating) ========== */
.feature-row {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 64px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-icon-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.feature-icon-blue { background: #e3f2fd; }
.feature-icon-red { background: #ffebee; }
.feature-icon-yellow { background: #fff8e1; }
.feature-icon-green { background: #e8f5e9; }
.feature-icon-purple { background: #f3e5f5; }
.feature-icon-orange { background: #fff3e0; }

.feature-text {
  flex: 1;
  text-align: left;
}

.feature-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

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

@media (max-width: 768px) {
  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .feature-text {
    text-align: left;
  }
}

/* ========== SCREENSHOT CAROUSEL ========== */
.screenshot-section {
  padding: 60px 24px;
  background: var(--color-bg);
  overflow: hidden;
}

.screenshot-carousel-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.screenshot-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
  height: 380px;
}

.carousel-viewport {
  width: 220px;
  height: 380px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.carousel-slide-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-device {
  background: #1a1a1a;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 220px;
}

.carousel-device::before {
  content: '';
  display: block;
  width: 60px;
  height: 5px;
  background: #333;
  border-radius: 3px;
  margin: 0 auto 6px;
}

.carousel-device img {
  width: 100%;
  border-radius: 18px;
  display: block;
  filter: blur(8px);
  transition: filter 0.4s ease;
}

.carousel-device img.loaded {
  filter: blur(0);
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-white);
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-text-primary);
  transition: all 0.2s ease;
  flex-shrink: 0;
  z-index: 2;
}

.carousel-arrow:hover {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-text-muted);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .screenshot-carousel {
    height: 320px;
  }
  .carousel-viewport {
    width: 180px;
    height: 320px;
  }
  .carousel-device {
    max-width: 180px;
  }
}

/* ========== LIGHTBOX ========== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--border-radius-md);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: 60px 24px;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--color-text-primary);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

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

.footer-links h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ========== CONTENT PAGES (Privacy, Terms, Contact) ========== */
.page-header {
  margin-top: 64px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 60px 24px;
  text-align: center;
  color: white;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 1.05rem;
  opacity: 0.85;
}

.content-container {
  max-width: 800px;
  margin: -40px auto 60px;
  background: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px 40px;
  position: relative;
  z-index: 1;
}

.content-container h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-light);
}

.content-container h2:first-child {
  margin-top: 0;
}

.content-container h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: 24px;
  margin-bottom: 8px;
}

.content-container p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  text-align: left;
}

.content-container ul,
.content-container ol {
  text-align: left;
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-container li {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

.content-container a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.content-container a:hover {
  text-decoration: underline;
}

.effective-date {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .content-container {
    margin: -20px 12px 40px;
    padding: 28px 20px;
  }
  .page-header h1 {
    font-size: 1.7rem;
  }
}

/* ========== CONTACT FORM ========== */
.contact-card {
  max-width: 640px;
  margin: -40px auto 60px;
  background: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px 40px;
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--color-text-primary);
  transition: border-color 0.2s;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input[type="file"] {
  padding: 10px 12px;
  cursor: pointer;
}

.form-submit-btn {
  width: 100%;
  padding: 14px 28px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-md);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-submit-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33,150,243,0.3);
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px 20px;
}

.form-success.show {
  display: block;
}

.form-success .check-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e8f5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}

.form-success h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.form-success p {
  color: var(--color-text-secondary);
}

@media (max-width: 600px) {
  .contact-card {
    margin: -20px 12px 40px;
    padding: 28px 20px;
  }
}

/* ========== PRIVACY ACCEPT BUTTON ========== */
.privacy-accept-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-white);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
  padding: 16px 24px;
  z-index: 3000;
  display: none;
}

.privacy-accept-fixed.visible {
  display: block;
}

.privacy-accept-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 16px 32px;
  background: var(--color-green);
  color: white;
  border: none;
  border-radius: var(--border-radius-md);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  line-height: 1;
}

.privacy-accept-btn:hover {
  background: #388E3C;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(76,175,80,0.4);
}

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }

/* AOS override for reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
