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

:root {
  --black: #0A0A0A;
  --black-light: #121212;
  --black-card: #1A1A1A;
  --gold: #D4AF37;
  --gold-light: #FFD700;
  --gold-dark: #B8860B;
  --silver: #C0C0C0;
  --white: #FFFFFF;
  --gradient-gold: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  --gradient-text: linear-gradient(135deg, var(--silver), var(--gold-light), var(--gold));
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(212, 175, 55, 0.15);
  --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background effects */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(212, 175, 55, 0.08);
  top: -200px;
  right: -200px;
  animation: float 8s ease-in-out infinite;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(212, 175, 55, 0.05);
  bottom: -150px;
  left: -150px;
  animation: float 10s ease-in-out infinite reverse;
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float linear infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 20px); }
}

@keyframes particle-float {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  height: 48px;
  width: auto;
}

.header-brand {
  display: inline-flex;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.menu-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.menu-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--silver);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--gold);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--silver);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(192, 192, 192, 0.5);
}

.hero-install-hint {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(212, 175, 55, 0.7);
  max-width: 420px;
}

.notice {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  max-width: 480px;
}

.notice-warning {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
}

.store-btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.android-apk-btn {
  border-color: rgba(212, 175, 55, 0.35);
}

.android-apk-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
}

.android-apk-btn .store-icon {
  color: var(--gold-light);
}

button.store-btn {
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.notice-success {
  background: rgba(61, 220, 132, 0.1);
  border: 1px solid rgba(61, 220, 132, 0.3);
  color: #3DDC84;
}

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

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-width: 200px;
}

.store-btn:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.store-btn.android-btn:hover {
  background: rgba(61, 220, 132, 0.08);
  border-color: rgba(61, 220, 132, 0.4);
}

.store-btn.ios-btn:hover {
  background: rgba(212, 175, 55, 0.08);
}

.store-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.android-btn .store-icon {
  color: #3DDC84;
}

.ios-btn .store-icon {
  color: var(--gold-light);
}

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

.store-label {
  font-size: 11px;
  color: var(--silver);
  font-weight: 400;
}

.store-name {
  font-size: 18px;
  font-weight: 700;
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  position: relative;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: var(--black-card);
  border-radius: 40px;
  border: 3px solid rgba(212, 175, 55, 0.3);
  padding: 12px;
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.1),
    0 25px 80px rgba(0, 0, 0, 0.6),
    var(--shadow-gold);
  animation: phone-float 6s ease-in-out infinite;
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: var(--black);
  border-radius: 0 0 16px 16px;
  margin: 0 auto 8px;
}

.phone-screen {
  width: 100%;
  height: calc(100% - 36px);
  background: var(--black);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.phone-logo {
  width: 180px;
  height: auto;
  animation: logo-pulse 3s ease-in-out infinite;
}

.phone-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(212, 175, 55, 0.05) 45%,
    rgba(212, 175, 55, 0.1) 50%,
    rgba(212, 175, 55, 0.05) 55%,
    transparent 60%
  );
  animation: shimmer 4s ease-in-out infinite;
}

.phone-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: blur(40px);
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes logo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Features */
.features {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 60px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.feature-card {
  padding: 36px 28px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gold-light);
}

.feature-card p {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.7;
}

/* CTA */
.cta {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.cta-inner {
  text-align: center;
  padding: 80px 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  backdrop-filter: blur(20px);
}

.cta-logo {
  width: 120px;
  height: auto;
  margin-bottom: 32px;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-inner > p {
  color: var(--silver);
  font-size: 18px;
  margin-bottom: 40px;
}

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

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 40px;
  border-top: 1px solid var(--glass-border);
}

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

.footer-logo {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-tagline {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  font-weight: 500;
}

.footer-links {
  margin-bottom: 24px;
}

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

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

.divider {
  color: rgba(192, 192, 192, 0.3);
  margin: 0 12px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(192, 192, 192, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle,
  .hero-install-hint,
  .notice {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    width: 220px;
    height: 440px;
  }

  .phone-logo {
    width: 140px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  }

  .nav.nav-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav a:last-child {
    border-bottom: none;
  }
}

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

  .cta-inner {
    padding: 48px 24px;
  }
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Install guide */
.install-guide {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.guide-card {
  padding: 32px 28px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

.guide-card h3 {
  color: var(--gold-light);
  font-size: 22px;
  margin-bottom: 20px;
}

.guide-card ol {
  padding-left: 20px;
  color: var(--silver);
  line-height: 1.9;
  font-size: 15px;
}

.guide-card strong {
  color: var(--white);
}

/* Install modal */
.install-modal[hidden] {
  display: none;
}

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.install-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.install-modal-content {
  position: relative;
  background: var(--black-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 36px 28px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-gold);
}

.install-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--silver);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.install-modal-logo {
  width: 72px;
  display: block;
  margin: 0 auto 16px;
}

.install-modal-content h3 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--gold-light);
}

.install-steps {
  padding-left: 20px;
  color: var(--silver);
  line-height: 1.9;
  font-size: 14px;
  margin-bottom: 16px;
}

.install-steps strong {
  color: var(--white);
}

.install-tip {
  font-size: 13px;
  color: rgba(212, 175, 55, 0.8);
  background: rgba(212, 175, 55, 0.08);
  padding: 12px 14px;
  border-radius: 10px;
  line-height: 1.6;
}

.install-open-app {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 14px;
  background: var(--gradient-gold);
  color: var(--black);
  text-decoration: none;
  border-radius: 24px;
  font-weight: 700;
  font-size: 15px;
}
