/* ============================================================
   Omni-Zenkai Marketing Landing Page Stylesheet
   Design Language: Minimalist, Premium Dark-Mode Space Vibe
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --clr-bg: #070913;
  --clr-surface: #0e1222;
  --clr-surface-hover: #141a30;
  --clr-border: rgba(255, 255, 255, 0.08);
  --clr-border-hover: rgba(99, 102, 241, 0.3);

  --clr-accent: #6366f1;
  --clr-accent-light: #818cf8;
  --clr-accent-dark: #4f46e5;
  --clr-accent-glow: rgba(99, 102, 241, 0.15);

  --clr-text-primary: #f8fafc;
  --clr-text-secondary: #94a3b8;
  --clr-text-muted: #64748b;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  --dur-reveal: 0.8s;
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Modern CSS Reset ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--clr-bg);
  color: var(--clr-text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Helper container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography styles */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--clr-text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

/* Section padding */
.section-pad {
  padding: 7rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 40%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

/* ── Global Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dark));
  color: #fff;
  box-shadow: 0 4px 20px var(--clr-accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--clr-text-primary);
  border: 1px solid var(--clr-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ── Language Switcher UI ──────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--clr-border);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--clr-text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  color: var(--clr-accent-light);
  text-shadow: 0 0 8px rgba(129, 140, 248, 0.5);
}

.divider {
  color: var(--clr-text-muted);
  font-size: 0.78rem;
}

/* ── 1. Navbar Styles ──────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 72px;
  background: rgba(7, 9, 19, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.brand-logo {
  font-size: 1.5rem;
  color: var(--clr-accent-light);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-secondary);
}

.nav-link:hover {
  color: #fff;
}

/* ── 2. Hero Section ────────────────────────────────────────── */
.hero {
  padding: 10rem 0 7rem;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 50%, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--clr-text-secondary);
  margin-bottom: 2.5rem;
  max-width: 640px;
  line-height: 1.6;
}

.hero-actions {
  margin-bottom: 5rem;
}

/* ── Module Feature Grid (Interactive Hero Widget) ─────────── */
@keyframes float-up {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

@keyframes detail-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.feature-grid-wrap {
  width: 100%;
  max-width: 680px;
  margin-top: 1rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.module-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.25rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--clr-border);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.25s ease, background 0.25s ease,
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Staggered floating animation per card */
.module-card:nth-child(1) { animation: float-up 4.0s ease-in-out 0.0s infinite; }
.module-card:nth-child(2) { animation: float-up 4.0s ease-in-out 0.4s infinite; }
.module-card:nth-child(3) { animation: float-up 4.0s ease-in-out 0.8s infinite; }
.module-card:nth-child(4) { animation: float-up 4.0s ease-in-out 1.2s infinite; }
.module-card:nth-child(5) { animation: float-up 4.0s ease-in-out 1.6s infinite; }
.module-card:nth-child(6) { animation: float-up 4.0s ease-in-out 2.0s infinite; }

.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.module-card:hover {
  transform: translateY(-5px) scale(1.04);
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.06);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.18), 0 0 0 1px rgba(99, 102, 241, 0.15);
}

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

.module-card.active {
  border-color: rgba(99, 102, 241, 0.7);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25), 0 8px 24px rgba(99, 102, 241, 0.2);
  animation-play-state: paused; /* freeze float when active */
}

.module-icon {
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(99, 102, 241, 0.25));
}

.module-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-text-secondary);
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.module-card:hover .module-label,
.module-card.active .module-label {
  color: var(--clr-accent-light);
}

/* Detail panel */
.module-detail {
  display: none;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: start;
  animation: detail-fade-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.module-detail.visible {
  display: flex;
}

.module-detail-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.module-detail-text {
  font-size: 0.92rem;
  color: var(--clr-text-secondary);
  line-height: 1.6;
}


/* ── 3. How It Works Timeline ────────────────────────────────── */
.workflow {
  background: rgba(255, 255, 255, 0.01);
}

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

/* Step horizontal connectors */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 24px;
  inset-inline: 50px;
  height: 2px;
  background: var(--clr-border);
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.timeline-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--clr-accent-light);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-step:hover .timeline-number {
  border-color: var(--clr-accent-light);
  box-shadow: 0 0 15px rgba(129, 140, 248, 0.3);
  transform: scale(1.1);
}

.step-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--clr-text-secondary);
  line-height: 1.5;
}

/* ── 4. Premium Features Grid ────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--clr-border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 16px rgba(99, 102, 241, 0.05);
}

.feature-icon {
  font-size: 2.25rem;
  line-height: 1;
}

.feature-card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-card-desc {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  line-height: 1.6;
}

/* ── 5. Pricing Tiers Section ────────────────────────────────── */
.pricing {
  background: rgba(255, 255, 255, 0.015);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.price-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 3rem 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-border-hover);
}

.price-card.featured {
  border-color: var(--clr-accent);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.08) 0%, var(--clr-surface) 60%);
}

.badge-featured {
  position: absolute;
  top: 1.25rem;
  inset-inline-end: 1.5rem;
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 1.25rem;
  color: var(--clr-text-primary);
  margin-bottom: 1.25rem;
}

.price-wrapper {
  display: flex;
  align-items: baseline;
  margin-bottom: 1.25rem;
}

.price-val {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
}

.price-period {
  font-size: 0.95rem;
  color: var(--clr-text-secondary);
  margin-inline-start: 0.35rem;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--clr-text-secondary);
  margin-bottom: 2rem;
  min-height: 48px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  flex: 1;
}

.plan-features li {
  font-size: 0.88rem;
  color: var(--clr-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-features li::before {
  content: '✓';
  color: var(--clr-accent-light);
  font-weight: 800;
}

.price-card .btn {
  width: 100%;
}

/* ── 6. Authorized Distributors ──────────────────────────────── */
.distributors {
  background: var(--clr-bg);
}

.distributors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.distributor-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.distributor-card:hover {
  border-color: var(--clr-border-hover);
  transform: translateY(-3px);
}

.distributor-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  color: var(--clr-accent-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.distributor-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.distributor-region {
  font-size: 0.8rem;
  color: var(--clr-text-secondary);
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  width: 100%;
  transition: all 0.2s ease;
}

.whatsapp-btn:hover {
  background: #10b981;
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* ── 7. Footer Styles ────────────────────────────────────────── */
.footer {
  background: #04060d;
  border-top: 1px solid var(--clr-border);
  padding: 3rem 0;
  text-align: center;
}

.copyright {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}

/* ── 8. Scroll Reveal Animation Classes ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-reveal) var(--ease-reveal), transform var(--dur-reveal) var(--ease-reveal);
}

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

/* ── 9. RTL Directional Overrides ────────────────────────────── */
[dir="rtl"] {
  /* Logical properties are highly supported by modern browsers, but we also define explicit fallbacks */
  text-align: right;
}

[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle,
[dir="rtl"] .hero-container,
[dir="rtl"] .distributor-card {
  text-align: center;
}

[dir="rtl"] .timeline-container::before {
  /* Reverses horizontal timeline bar */
  left: 50px;
  right: 50px;
}

[dir="rtl"] .plan-features li::before {
  content: '✓';
  margin-inline-end: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 960px) {

  .pricing-grid,
  .distributors-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }

  .timeline-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .timeline-container::before {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .navbar-container {
    justify-content: space-between;
  }

  .nav-menu {
    display: none;
    /* simple responsive fallback for landing navigation */
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .section-pad {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 8rem;
  }
}