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

:root {
  /* Color Palette */
  --bg-primary: #08080c;
  --bg-secondary: #111116;
  --bg-tertiary: #161622;
  --text-primary: #f5f5fa;
  --text-secondary: #9ea0a9;
  --text-muted: #5e606a;
  
  /* Accents */
  --accent-primary: #ff2e63;
  --accent-secondary: #ff6b4a;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --accent-gradient-hover: linear-gradient(135deg, #ff4777 0%, #ff7e61 100%);
  --accent-glow: rgba(255, 46, 99, 0.35);
  --accent-glow-secondary: rgba(255, 107, 74, 0.2);
  
  /* Glassmorphism & Borders */
  --glass-bg: rgba(17, 17, 22, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --card-border: rgba(255, 255, 255, 0.05);
  
  /* Layout Metrics */
  --max-width: 1200px;
  --header-height: 80px;
  
  /* Border Radii */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-elastic: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* --- Base & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

ul {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

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

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

/* --- Navigation Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: 70px;
  background: rgba(8, 8, 12, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px var(--accent-glow);
}

.logo-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  z-index: 1001;
}

/* --- Buttons & UI Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-elastic);
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--accent-glow), 0 0 15px var(--accent-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 46, 99, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(255, 46, 99, 0.3);
  margin-bottom: 16px;
}

/* Store Badge Download Buttons */
.download-badges {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 18px;
  transition: var(--transition-smooth);
}

.download-btn:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-3px);
}

.download-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.download-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-desc {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.download-title {
  font-size: 0.95rem;
  font-weight: 700;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(255, 46, 99, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(255, 107, 74, 0.05) 0%, transparent 50%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

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

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
  font-weight: 900;
}

.hero-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Phone Frame Mockup */
.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
  border-radius: 40px;
  background: #111;
  padding: 10px;
  border: 4px solid #222;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8),
              0 0 30px rgba(255, 46, 99, 0.2);
  animation: float 6s ease-in-out infinite;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  position: relative;
}

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

/* Decorative elements */
.circle-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

/* --- Features Section --- */
.section-title-wrap {
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 800;
}

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

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 46, 99, 0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(255, 46, 99, 0.05);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: rgba(255, 46, 99, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 46, 99, 0.2);
  color: var(--accent-primary);
}

.feature-icon-wrap svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.feature-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Interactive Showcase --- */
.showcase {
  background: var(--bg-secondary);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.showcase-slider-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  box-shadow: var(--glass-shadow);
}

.showcase-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px;
}

.showcase-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.showcase-text {
  text-align: left;
}

.showcase-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.showcase-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
}

.showcase-img-container {
  display: flex;
  justify-content: center;
}

.showcase-phone {
  width: 240px;
  height: 480px;
  border-radius: 32px;
  background: #111;
  padding: 8px;
  border: 3px solid #222;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  overflow: hidden;
}

.showcase-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

/* Slider Navigation Buttons */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
}

.slider-arrow:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 0 15px var(--accent-glow);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-bottom: 24px;
  background: var(--bg-primary);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background: var(--accent-primary);
  width: 24px;
  border-radius: 5px;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* --- Guide Section --- */
.guide-preview-section {
  position: relative;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
  transition: var(--transition-smooth);
}

.step-card:hover {
  border-color: rgba(255, 107, 74, 0.2);
  transform: translateY(-5px);
}

.step-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, rgba(255, 46, 99, 0.15) 0%, rgba(255, 107, 74, 0.15) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.cta-guide-btn {
  margin-top: 48px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #161622 0%, #0c0c12 100%);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 46, 99, 0.05) 0%, transparent 60%);
  filter: blur(50px);
  z-index: 1;
}

.cta-container {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 900;
}

.cta-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 40px;
}

.cta-badges {
  justify-content: center;
}

/* --- Footer --- */
.footer {
  background: #050508;
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--card-border);
  color: var(--text-secondary);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
}

.footer-desc {
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

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

.footer-link {
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

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

.copyright {
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--accent-gradient);
  transform: translateY(-3px);
  color: #fff;
}

/* --- SUBPAGE STYLING (Guide, Terms, Privacy) --- */
.subpage-hero {
  padding: 160px 0 60px 0;
  background: linear-gradient(180deg, rgba(22, 22, 34, 0.5) 0%, transparent 100%);
  border-bottom: 1px solid var(--card-border);
  position: relative;
}

.subpage-hero-title {
  font-size: 3rem;
  margin-bottom: 16px;
  font-weight: 900;
}

.subpage-hero-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.subpage-content {
  padding: 80px 0;
}

.rich-text {
  max-width: 800px;
  margin: 0 auto;
}

.rich-text h2 {
  font-size: 1.8rem;
  margin-top: 48px;
  margin-bottom: 20px;
  color: #fff;
  border-left: 4px solid var(--accent-primary);
  padding-left: 16px;
}

.rich-text h3 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #fff;
}

.rich-text p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.rich-text ul, .rich-text ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.rich-text li {
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 1.02rem;
  position: relative;
}

.rich-text ul li::before {
  content: '•';
  color: var(--accent-primary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Specific styling for guide page step detail cards */
.guide-detail-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 48px;
  box-shadow: var(--glass-shadow);
}

.guide-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.guide-detail-num {
  font-size: 4rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.guide-detail-title {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 16px;
}

.guide-detail-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.guide-detail-img {
  display: flex;
  justify-content: center;
}

.guide-detail-phone {
  width: 220px;
  height: 440px;
  border-radius: 28px;
  background: #111;
  padding: 6px;
  border: 2px solid #222;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.guide-detail-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

/* Back Link Button */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 32px;
  font-family: 'Montserrat', sans-serif;
}

.back-link:hover {
  transform: translateX(-4px);
  color: var(--accent-secondary);
}

/* --- Keyframe Animations --- */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .guide-steps {
    grid-template-columns: 1fr 1fr;
  }
  .showcase-content-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .showcase-text {
    text-align: center;
  }
  .guide-detail-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .guide-detail-text {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 70px 0;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    padding-top: 120px;
    text-align: center;
    min-height: auto;
  }
  .hero-content {
    max-width: 100%;
    margin-bottom: 50px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .download-badges {
    justify-content: center;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .guide-steps {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Navigation Menu */
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(8, 8, 12, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 60px 40px;
    gap: 32px;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    align-items: flex-start;
    border-top: 1px solid var(--glass-border);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .showcase-slide {
    padding: 24px;
  }
  .guide-detail-card {
    padding: 24px;
  }
}
