/* ==========================================================================
   IMChat Landing Page - Modern Dark Glassmorphic Design System
   ========================================================================== */

:root {
  --bg-dark: #0B0E17;
  --bg-card: #141927;
  --bg-card-hover: #1C2438;
  --primary-blue: #3B82F6;
  --primary-purple: #8B5CF6;
  --accent-pink: #EC4899;
  --text-white: #FFFFFF;
  --text-muted: #94A3B8;
  --border-glow: rgba(255, 255, 255, 0.1);
  --border-active: rgba(59, 130, 246, 0.4);
  --glass-bg: rgba(20, 25, 39, 0.7);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

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

/* --------------------------------------------------------------------------
   Announcement Bar
   -------------------------------------------------------------------------- */
.announcement-bar {
  background: linear-gradient(90deg, #3B82F6, #8B5CF6, #EC4899);
  color: var(--text-white);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.announcement-bar.hidden {
  display: none;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
}

.announcement-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.close-announcement {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.close-announcement:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Deep Link Banner (Voice Room & Post Shares)
   -------------------------------------------------------------------------- */
.deeplink-bar {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(139, 92, 246, 0.95));
  backdrop-filter: blur(12px);
  color: var(--text-white);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.deeplink-bar.hidden {
  display: none;
}

.deeplink-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.deeplink-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.deeplink-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.deeplink-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  font-family: var(--font-heading);
}

.deeplink-text p {
  font-size: 13px;
  opacity: 0.9;
}

.deeplink-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deeplink-btn-open {
  background: #ffffff;
  color: #1E40AF;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, background-color 0.2s;
}

.deeplink-btn-open:hover {
  transform: translateY(-2px);
  background: #F0F7FF;
}

.deeplink-btn-download {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-white);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.2s;
}

.deeplink-btn-download:hover {
  background: rgba(0, 0, 0, 0.5);
}

.close-deeplink {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  margin-left: 4px;
  opacity: 0.8;
}

.close-deeplink:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glow);
  padding: 16px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-white);
}

.nav-download-btn {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple)) !important;
  color: white !important;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 100px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-glow-1 {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  top: 100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 6px 16px;
  border-radius: 30px;
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #FFFFFF 30%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 580px;
}

/* Download Buttons */
.download-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-white);
  border: 1px solid var(--border-glow);
  background: var(--bg-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 200px;
}

.download-btn:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.playstore-btn {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
  border-color: rgba(59, 130, 246, 0.3);
}

.appstore-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.apk-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
  border-color: rgba(16, 185, 129, 0.3);
}

.btn-icon {
  font-size: 28px;
}

.playstore-btn .btn-icon { color: #60A5FA; }
.appstore-btn .btn-icon { color: #FFFFFF; }
.apk-btn .btn-icon { color: #34D399; }

.btn-text {
  display: flex;
  flex-direction: column;
}

.btn-subtitle {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}

/* Phone Mockup */
.hero-mockup-wrapper {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 570px;
  background: #000;
  border-radius: 44px;
  border: 10px solid #1E293B;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.3);
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #1E293B;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
}

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

/* --------------------------------------------------------------------------
   Screenshots Section
   -------------------------------------------------------------------------- */
.screenshots-section, .features-section {
  padding: 90px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
}

.screenshots-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 10px 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-blue) var(--bg-card);
}

.screenshots-carousel::-webkit-scrollbar {
  height: 8px;
}

.screenshots-carousel::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 4px;
}

.screenshot-card {
  flex: 0 0 240px;
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}

.screenshot-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-blue);
}

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

/* --------------------------------------------------------------------------
   Features Section Grid
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 32px 24px;
  transition: all 0.3s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  max-width: 1150px;
  margin: 60px auto 100px;
  padding: 0 24px;
}

.cta-container {
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border: 1px solid var(--border-active);
  border-radius: 32px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-desc {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 32px;
}

.cta-primary-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  color: white;
  padding: 16px 36px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-primary-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.6);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #07090F;
  border-top: 1px solid var(--border-glow);
  padding: 60px 24px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-logo img {
  width: 36px;
  height: 36px;
}

.footer-logo span {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 32px;
  }
  .download-buttons-group {
    justify-content: center;
  }
  .hero-mockup-wrapper {
    margin-top: 40px;
  }
  .hero-title {
    font-size: 42px;
  }
}
