/* ============================================
   Gissatna Landing Page — style.css
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #0d0620;
  --bg-mid: #1a0a3e;
  --bg-light: #3a1a6e;
  --accent: #9b7bff;
  --accent-glow: rgba(155,123,255,0.3);
  --text: #e8e8f8;
  --text-sec: #8888b0;
  --card-bg: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.12);
  --max-w: 1100px;
  --font: 'Readex Pro', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  direction: rtl;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* --- Utility --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-sec);
  text-align: center;
  margin-bottom: 3rem;
}

/* --- Glass Card --- */
.glass {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  animation: btn-glow 3s ease-in-out infinite;
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-secondary:hover { background: rgba(155,123,255,0.1); }

/* --- Animated Background (Stars) --- */
.stars-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, var(--bg-light) 0%, var(--bg-mid) 40%, var(--bg-dark) 100%);
  overflow: hidden;
}
.stars-bg::before,
.stars-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(155,123,255,0.08);
  filter: blur(80px);
  animation: glow-drift 12s ease-in-out infinite alternate;
}
.stars-bg::before {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
}
.stars-bg::after {
  width: 400px; height: 400px;
  bottom: 20%; left: -80px;
  animation-delay: -6s;
}

.star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: star-twinkle 3s ease-in-out infinite;
}

/* --- Floating Subject Images --- */
.floating-images {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.floating-img {
  position: absolute;
  border-radius: 20px;
  opacity: 0.25;
  filter: blur(1px) saturate(0.7);
  animation: float-img 18s ease-in-out infinite;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.floating-img:nth-child(1) { width: 140px; top: 8%; left: 5%; animation-delay: 0s; animation-duration: 20s; }
.floating-img:nth-child(2) { width: 120px; top: 15%; right: 4%; animation-delay: -3s; animation-duration: 17s; border-radius: 50%; }
.floating-img:nth-child(3) { width: 110px; bottom: 25%; left: 3%; animation-delay: -7s; animation-duration: 22s; }
.floating-img:nth-child(4) { width: 130px; bottom: 18%; right: 6%; animation-delay: -5s; animation-duration: 19s; border-radius: 50%; }
.floating-img:nth-child(5) { width: 100px; top: 45%; left: 1%; animation-delay: -10s; animation-duration: 21s; }
.floating-img:nth-child(6) { width: 115px; top: 40%; right: 2%; animation-delay: -8s; animation-duration: 16s; border-radius: 50%; }
.floating-img:nth-child(7) { width: 150px; bottom: 5%; left: 50%; transform: translateX(-50%); animation-delay: -4s; animation-duration: 23s; opacity: 0.08; }

@keyframes float-img {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(2deg); }
  50% { transform: translateY(6px) rotate(-1deg); }
  75% { transform: translateY(-8px) rotate(1.5deg); }
}

/* --- Splash Moon --- */
.hero-moon {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  opacity: 0.2;
  animation: moon-float 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes moon-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.hero-content { max-width: 700px; position: relative; z-index: 1; }
.hero-logo { height: 120px; margin: 0 auto 2rem; filter: drop-shadow(0 4px 20px rgba(155,123,255,0.3)); }
.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.2rem;
  color: var(--text-sec);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust-badges {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-top: 3rem;
  font-size: 0.9rem; color: var(--text-sec);
}
.trust-badges span {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

/* --- WHY Section --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.why-card .icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(155,123,255,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.95rem; color: var(--text-sec); }

/* --- HOW Section --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.step {
  text-align: center;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--text-sec); }

/* --- FEATURES --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card .f-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 14px;
  background: rgba(155,123,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 4px; }
.feature-card p { font-size: 0.85rem; color: var(--text-sec); }

/* --- STORY Section --- */
.story-section {
  background: linear-gradient(135deg, rgba(155,123,255,0.05) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.story-section::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: url('assets/campfire-scene.png') center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  mask-image: radial-gradient(ellipse, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse, black 30%, transparent 70%);
}
.story-content {
  max-width: 750px;
  margin: 0 auto;
}
.story-content blockquote {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  border-right: 4px solid var(--accent);
  padding-right: 1.25rem;
  margin: 2rem 0;
  line-height: 1.8;
}
.story-content p { color: var(--text-sec); margin-bottom: 1rem; }

/* --- PRICING --- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2.5rem;
}
.pricing-toggle span { font-size: 0.95rem; color: var(--text-sec); }
.pricing-toggle .active { color: var(--text); font-weight: 700; }
.toggle-switch {
  width: 52px; height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  border: 2px solid var(--card-border);
  transition: background 0.3s;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  top: 2px; right: 2px;
  transition: transform 0.3s;
}
.toggle-switch.yearly::after { transform: translateX(-24px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.pricing-grid .price-card {
  display: flex;
  flex-direction: column;
}
.pricing-grid .price-card ul {
  flex: 1;
}
.pricing-grid .price-card .btn {
  margin-top: auto;
}
.price-card {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}
.price-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(155,123,255,0.15);
}
.price-card .badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.price-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.price-card .period { font-size: 0.85rem; color: var(--text-sec); margin-bottom: 1.5rem; }
.price-card ul {
  list-style: none;
  text-align: right;
  margin-bottom: 1.5rem;
}
.price-card li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-sec);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-card li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
}

/* --- FAQ --- */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--card-border);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: right;
}
.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-right: 12px;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-sec);
  font-size: 0.95rem;
  line-height: 1.8;
}
.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 1.25rem;
}

/* --- FINAL CTA --- */
.final-cta {
  text-align: center;
  background: radial-gradient(ellipse at 50% 80%, rgba(155,123,255,0.12) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/splash-bg.png') center 30%/cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
}
.final-cta h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.final-cta p { color: var(--text-sec); margin-bottom: 2rem; font-size: 1.1rem; }
.store-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.store-btn:hover { background: rgba(255,255,255,0.14); text-decoration: none; }
.store-btn .store-label { font-size: 0.7rem; color: var(--text-sec); }
.store-btn .store-name { font-size: 1rem; font-weight: 700; }

/* --- FOOTER --- */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
}
.footer-logo { height: 40px; margin: 0 auto 0.75rem; opacity: 0.7; }
.footer-tagline { color: var(--text-sec); font-size: 0.9rem; margin-bottom: 1.5rem; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-links a { color: var(--text-sec); font-size: 0.85rem; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-sec); font-size: 0.8rem; opacity: 0.6; }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Animations --- */
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(155,123,255,0.3); }
  50% { box-shadow: 0 0 40px rgba(155,123,255,0.5), 0 0 60px rgba(155,123,255,0.2); }
}
@keyframes star-twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes glow-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, -30px); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-logo { height: 90px; }
  .floating-img { opacity: 0.18; }
  .floating-img:nth-child(1) { width: 90px; }
  .floating-img:nth-child(2) { width: 80px; }
  .floating-img:nth-child(3) { width: 70px; }
  .floating-img:nth-child(4) { width: 85px; }
  .floating-img:nth-child(5),
  .floating-img:nth-child(6),
  .floating-img:nth-child(7) { display: none; }
  .hero-moon { width: 80px; }
  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.6rem; }
  .trust-badges { gap: 10px; }
  .trust-badges span { font-size: 0.8rem; padding: 5px 12px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; align-items: stretch; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }
}
