/* ===========================
   GoldenCode APK Landing Page Styles
   Glassmorphism · Dark Tech Aesthetics
   =========================== */

:root {
  --gold: #FFD700;
  --gold-light: #FFFACD;
  --gold-dark: #B8860B;
  --bg-primary: #0A0A0B;
  --bg-secondary: #0F0F12;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --text-primary: #F8F9FA;
  --text-secondary: #A0A0AB;
  --text-muted: #66666E;
  --border: rgba(255, 215, 0, 0.1);
  --border-hover: rgba(255, 215, 0, 0.3);
  --radius: 24px;
  --font: 'Cairo', 'Tajawal', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, #1a1a1d 0%, #050505 100%);
}

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

.small-container {
  max-width: 800px;
}

.gold { color: var(--gold); }

.gold-gradient {
  background: linear-gradient(135deg, #FFD700 0%, #FFFACD 50%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.animate-fade-in { animation: fadeInUp 0.8s ease both; }
.animate-fade-in-delay-1 { animation: fadeInUp 0.8s ease 0.3s both; }

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 900;
}

.logo-icon { color: var(--gold); font-family: monospace; }

.btn-support {
  text-decoration: none;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s;
}

.btn-support:hover {
  background: var(--gold);
  color: #000;
}

/* Hero Section */
#hero {
  padding: 160px 0 100px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.app-badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

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

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

.download-actions {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  padding: 15px 30px;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-primary {
  background: var(--gold);
  color: #000;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

.download-btn .icon { font-size: 1.8rem; }
.download-btn .btn-text { display: flex; flex-direction: column; text-align: right; }
.download-btn .top { font-size: 1.1rem; }
.download-btn .bottom { font-size: 0.8rem; opacity: 0.7; font-weight: 400; }

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.qr-box {
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  width: 100px;
  height: 100px;
}

.qr-box img { width: 100%; height: 100%; }

.app-stats {
  display: flex;
  gap: 40px;
}

.stat { display: flex; flex-direction: column; }
.stat .num { font-size: 1.5rem; font-weight: 900; color: var(--gold); }
.stat .label { font-size: 0.8rem; color: var(--text-muted); }

/* Mockup */
.hero-mockup {
  position: relative;
}

.mockup-container {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  position: relative;
  animation: float 6s infinite ease-in-out;
}

.app-img {
  width: 100%;
  height: auto;
  border-radius: 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  border: 4px solid #1a1a1a;
  display: block;
}

.mockup-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1), transparent 70%);
  z-index: -1;
  animation: glow 4s infinite ease-in-out;
}

/* Glow Backgrounds */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.15;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: var(--gold);
  top: 10%;
  right: -100px;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: var(--gold-dark);
  bottom: 10%;
  left: -100px;
}

/* Features */
#features {
  padding: 100px 0;
  background: var(--bg-secondary);
}

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

.section-tag {
  display: inline-block;
  background: rgba(255,215,0,0.1);
  color: var(--gold);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 15px;
}

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

.feature-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: 0.3s;
}

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

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

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

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

/* Install Steps */
#install {
  padding: 100px 0;
}

.glass-box {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 60px;
}

.install-steps {
  list-style: none;
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.install-steps li {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.02);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: 0.3s;
}

.install-steps li:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}

/* Footer */
footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .download-actions { justify-content: center; }
  .app-stats { justify-content: center; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .glass-box { padding: 30px; }
  .install-steps li { flex-direction: column; text-align: center; }
}
