/* CSS Variables & Design System */
:root {
  /* Colors */
  --color-primary: #8B5CF6;
  /* Violet 500 */
  --color-primary-dark: #7C3AED;
  /* Violet 600 */
  --color-secondary: #D946EF;
  /* Fuchsia 500 */
  --color-bg: #0F0F12;
  --color-surface: #18181B;
  --color-text-main: #FFFFFF;
  --color-text-muted: #A1A1AA;
  --color-accent: #F59E0B;
  /* Amber 500 */

  /* Gradients */
  --gradient-main: linear-gradient(135deg, #6B46C1 0%, #D946EF 100%);
  --gradient-dark: linear-gradient(to bottom, #0F0F12, #18181B);
  --gradient-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  --gradient-button: linear-gradient(135deg, #222 0%, #333 100%);

  /* Spacing */
  --spacing-container: 1200px;
  --spacing-section: 100px;

  /* Radii */
  --radius-lg: 24px;
  --radius-md: 16px;

  /* Fonts */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Aurora Background */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: #0F0F12;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: #6B46C1;
  animation-delay: 0s;
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: #D946EF;
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 40%;
  width: 40vw;
  height: 40vw;
  background: #4F46E5;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(20px, 20px) scale(1.1);
  }
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 10px 20px -10px rgba(139, 92, 246, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 30px -10px rgba(139, 92, 246, 0.6);
}

.btn-store {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  min-width: 180px;
}

.btn-store:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.store-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-text small {
  font-size: 10px;
  opacity: 0.8;
}

.store-text span {
  font-size: 16px;
  font-weight: 700;
}

.glass-card {
  background: var(--gradient-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s;
  direction: ltr;
  /* Force LTR to keep Logo Left / Nav Right */
}

header.scrolled {
  background: rgba(15, 15, 18, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.lang-switch {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-switch option {
  background: #18181B;
  /* Dark background for options */
  color: white;
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 100px;
  position: relative;
  overflow: visible;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 64px;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.hero p {
  font-size: 20px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* 3D Tilt Mockup Container & Animations */
.mockup-container {
  perspective: 1000px;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  position: relative;
  /* Context for floating docs */
}

.phone-mockup {
  width: 320px;
  border-radius: 40px;
  border: 8px solid #1a1a1a;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  background: #000;
  position: relative;
  z-index: 10;
  /* Above docs */
}

.phone-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating Elements Animation */
.floating-doc {
  position: absolute;
  width: 100px;
  height: 140px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  z-index: 1;
  /* Below phone */
  animation: floatDoc 6s ease-in-out infinite;
}

.doc-1 {
  top: 10%;
  left: 20%;
  transform: rotate(-10deg);
  animation-delay: 0s;
}

.doc-2 {
  top: 40%;
  right: 20%;
  transform: rotate(15deg);
  animation-delay: -2s;
}

.doc-3 {
  bottom: 0%;
  left: 25%;
  transform: rotate(5deg) scale(0.8);
  animation-delay: -4s;
}

.doc-icon {
  font-size: 24px;
}

.doc-lines span {
  display: block;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 6px;
}

.doc-lines span:nth-child(1) {
  width: 80%;
}

.doc-lines span:nth-child(2) {
  width: 60%;
}

@keyframes floatDoc {

  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }

  50% {
    transform: translateY(-20px) rotate(var(--r, 0deg));
  }
}

.doc-1 {
  --r: -10deg;
}

.doc-2 {
  --r: 15deg;
}

.doc-3 {
  --r: 5deg;
}


/* Trust Section */
.trust-section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.trust-section .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.trust-icon {
  color: var(--color-primary);
}


/* Features / How it works */
.how-it-works {
  padding: var(--spacing-section) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.step-card {
  padding: 40px;
  text-align: center;
  transition: transform 0.3s;
}

.step-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.step-icon {
  width: 64px;
  height: 64px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--color-primary);
  font-size: 24px;
}

/* Integrations */
.integrations {
  padding: var(--spacing-section) 0;
  text-align: center;
}

.integration-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.integration-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
}

.logo-circle:hover {
  transform: scale(1.1);
  border-color: var(--color-primary);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

/* Pricing */
.pricing {
  padding: var(--spacing-section) 0;
}

.pricing-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-main);
}

.price {
  font-size: 48px;
  font-weight: 800;
  margin: 24px 0;
  color: var(--color-text-main);
}

.price span {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.features-list {
  list-style: none;
  margin: 32px 0;
  text-align: left;
}

.features-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-icon {
  color: var(--color-secondary);
}

/* Full Features Grid */
.full-features {
  padding: var(--spacing-section) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  /* Responsive */
  gap: 24px;
  margin-top: 40px;
}

.feature-item {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.2s, background 0.2s;
  position: relative;
  /* For badges if needed */
}

.feature-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.feature-item h4 {
  font-size: 18px;
  font-weight: 600;
}

.badge-soon {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(245, 158, 11, 0.2);
  /* Amber tint */
  color: var(--color-accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
  vertical-align: middle;
}

.feature-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* FAQ */
.faq {
  padding: var(--spacing-section) 0;
  margin-bottom: var(--spacing-section);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--color-text-muted);
}

.faq-answer p {
  padding-bottom: 24px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.plus-icon {
  transition: transform 0.3s;
}

.faq-item.active .plus-icon {
  transform: rotate(45deg);
}

/* Footer */
footer {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.3);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero-content {
    padding: 0 16px;
  }

  .nav-content {
    /* flex-direction: column; */
    /* Keep row for now */
    gap: 16px;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .phone-mockup {
    width: 280px;
  }

  /* Show floating docs on mobile but smaller */
  .floating-doc {
    display: flex;
    width: 70px;
    height: 100px;
    padding: 8px;
    gap: 6px;
  }

  .doc-icon {
    font-size: 18px;
  }

  .doc-lines span {
    margin-bottom: 4px;
    height: 4px;
  }

  /* Adjust positions to bring them closer */
  .doc-1 {
    left: 5%;
    top: 5%;
  }

  .doc-2 {
    right: 5%;
    top: 40%;
  }

  .doc-3 {
    left: 10%;
    bottom: -10%;
  }
}

/* Custom Language Dropdown */
.lang-dropdown {
  position: relative;
  z-index: 200;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.globe-icon {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.lang-menu {
  position: absolute;
  top: 120%;
  right: 0;
  width: 160px;
  background: rgba(15, 15, 18, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lang-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-item {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-item:hover {
  background: rgba(139, 92, 246, 0.1);
  color: white;
}

.lang-item.selected {
  background: rgba(139, 92, 246, 0.2);
  color: var(--color-primary);
  font-weight: 600;
}

/* RTL Adjustments for Menu */
html[dir="rtl"] .lang-menu {
  /* Keep default right anchoring because Header is forced LTR */
  text-align: right;
}

html[dir="rtl"] .lang-item {
  text-align: right;
}