/* ============================================
   Bi Kahve — bikahveapp.com
   Dark purple / gold mystical theme
   ============================================ */

:root {
  --bg: #0a0612;
  --bg-2: #140a22;
  --bg-3: #1c0f30;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(212, 175, 55, 0.18);
  --gold: #D4AF37;
  --gold-2: #f6d77a;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --text: #f5ecd9;
  --text-dim: #b9aec8;
  --text-mute: #8a7fa0;
  --danger: #ff6b6b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 10px 40px rgba(212, 175, 55, 0.18);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(123, 67, 200, 0.25), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(212, 175, 55, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(123, 67, 200, 0.15), transparent 70%);
}

/* decorative stars */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(212,175,55,0.4), transparent),
    radial-gradient(1px 1px at 60% 30%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 80% 80%, rgba(212,175,55,0.3), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 20% 90%, rgba(212,175,55,0.4), transparent),
    radial-gradient(2px 2px at 70% 50%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 50% 15%, rgba(255,255,255,0.3), transparent);
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
}

p { color: var(--text-dim); }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-2); }

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10, 6, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  transition: all var(--transition);
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(10, 6, 18, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), #b8932e);
  border-radius: 50%;
  box-shadow: 0 6px 20px var(--gold-glow);
  flex-shrink: 0;
}

.logo-icon svg { width: 22px; height: 22px; }

.logo span.accent { color: var(--gold); }

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

.nav-links a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 999px;
  padding: 4px;
}

.lang-switcher a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.lang-switcher a.active,
.lang-switcher a:hover {
  background: var(--gold);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8932e);
  color: #1a0e2c;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: #1a0e2c;
  box-shadow: 0 14px 40px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
  color: var(--gold);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: #0a0612;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  color: var(--text);
  transition: all var(--transition);
  min-width: 180px;
}

.btn-store:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
  transform: translateY(-3px);
  color: var(--text);
  box-shadow: 0 14px 40px rgba(212, 175, 55, 0.2);
}

.btn-store svg { width: 28px; height: 28px; flex-shrink: 0; }

.btn-store-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn-store-text small { font-size: 10px; color: var(--text-mute); letter-spacing: 1px; text-transform: uppercase; }
.btn-store-text strong { font-size: 16px; font-weight: 600; color: var(--text); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 70%);
  filter: blur(60px);
  z-index: 0;
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 999px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: "✦";
  font-size: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fffaef 0%, #d6c98c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.coffee-cup {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(212, 175, 55, 0.25));
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.orbit::before, .orbit::after {
  content: "✦";
  position: absolute;
  color: var(--gold);
  font-size: 18px;
  text-shadow: 0 0 12px var(--gold-glow);
}

.orbit::before { top: -9px; left: 50%; }
.orbit::after { bottom: -9px; left: 50%; }

.orbit.outer { transform: scale(1.1); }
.orbit.inner { transform: scale(0.85); animation-direction: reverse; animation-duration: 15s; }

@keyframes spin {
  from { transform: rotate(0deg) scale(var(--s, 1)); }
  to { transform: rotate(360deg) scale(var(--s, 1)); }
}

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 100px 0; position: relative; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.section-head p { font-size: 1.1rem; }

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: var(--shadow);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  color: var(--gold);
  margin-bottom: 22px;
}

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

.feature-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.feature-card p { font-size: 0.96rem; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
}

.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.step:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
}

.step-num {
  width: 60px;
  height: 60px;
  margin: 0 auto 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), #b8932e);
  color: #1a0e2c;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 8px 24px var(--gold-glow);
}

.step h3 { font-size: 1.35rem; margin-bottom: 12px; }

/* ============================================
   CTA / DOWNLOAD
   ============================================ */
.cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.06), rgba(123, 67, 200, 0.08));
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 60%);
  z-index: 0;
}

.cta-inner { position: relative; z-index: 1; }

.cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.cta p { font-size: 1.15rem; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }

.store-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 64px 0 32px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  position: relative;
  z-index: 1;
}

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

.footer-col h4 {
  font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--gold);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-dim); font-size: 14px; }
.footer-col ul a:hover { color: var(--gold); }
.footer-col p { font-size: 14px; color: var(--text-dim); }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
}

.footer-bottom span.accent { color: var(--gold); }

/* ============================================
   LEGAL PAGES (Privacy / Terms)
   ============================================ */
.legal-hero {
  padding: 160px 0 60px;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.legal-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  background: linear-gradient(180deg, #fffaef 0%, #d6c98c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.legal-hero p { color: var(--text-mute); font-size: 0.95rem; letter-spacing: 1px; }

.legal-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  position: relative;
  z-index: 1;
}

.legal-content h2 {
  font-size: 1.7rem;
  margin: 50px 0 18px;
  color: var(--gold);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

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

.legal-content h3 {
  font-size: 1.25rem;
  margin: 32px 0 14px;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
}

.legal-content p { margin-bottom: 16px; color: var(--text-dim); }

.legal-content ul, .legal-content ol {
  margin: 0 0 20px 24px;
  color: var(--text-dim);
}

.legal-content li { margin-bottom: 8px; }
.legal-content li strong { color: var(--text); }

.legal-content a { text-decoration: underline; text-decoration-color: rgba(212,175,55,0.4); text-underline-offset: 3px; }

.legal-content strong { color: var(--text); }

.legal-note {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-left: 4px solid var(--gold);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.legal-note strong { color: var(--gold); }

.toc {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc h3 { font-size: 1rem; margin-bottom: 14px; color: var(--gold); font-family: 'Plus Jakarta Sans', sans-serif; text-transform: uppercase; letter-spacing: 2px; }
.toc ol { margin-left: 18px; }
.toc ol li { color: var(--text-dim); margin-bottom: 6px; font-size: 14px; }
.toc ol li a { color: var(--text-dim); }
.toc ol li a:hover { color: var(--gold); }

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ============================================
   RTL SUPPORT (Arabic)
   ============================================ */
html[dir="rtl"] body {
  font-family: 'Tajawal', 'Plus Jakarta Sans', sans-serif;
}

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
  font-family: 'Amiri', 'Cormorant Garamond', serif;
}

html[dir="rtl"] .btn-store-text { text-align: right; }

html[dir="rtl"] .nav-links a::after { left: auto; right: 0; }

html[dir="rtl"] .legal-note { border-left: none; border-right: 4px solid var(--gold); }

html[dir="rtl"] .legal-content ul,
html[dir="rtl"] .legal-content ol {
  margin: 0 24px 20px 0;
}

html[dir="rtl"] .toc ol { margin-right: 18px; margin-left: 0; }

html[dir="rtl"] .hero p.lead,
html[dir="rtl"] .section-head p { margin-left: auto; margin-right: auto; }

html[dir="rtl"] .hero-grid { grid-template-columns: 0.9fr 1.1fr; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  html[dir="rtl"] .hero-grid { grid-template-columns: 1fr; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { min-height: 380px; }
  .coffee-cup { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 6, 18, 0.98);
    backdrop-filter: blur(20px);
    padding: 30px 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transform: translateY(-200%);
    transition: transform var(--transition);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .lang-switcher { order: 3; }
  section { padding: 70px 0; }
  .hero { padding: 110px 0 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .legal-content h2 { font-size: 1.4rem; }
  .btn-store { min-width: 0; flex: 1; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .store-buttons { flex-direction: column; align-items: stretch; }
}
