/* SNKLY Landing — Production styles (Arabic / RTL) */

:root {
  --snkly-navy: #0b1020;
  --snkly-navy-soft: #141b2e;
  --snkly-surface: #f5f7fb;
  --snkly-primary: #5b5cff;
  --snkly-accent: #21c7ff;
  --snkly-primary-hover: #4a4be6;
  --snkly-text: #1a2035;
  --snkly-text-muted: #5c6478;
  --snkly-border: rgba(11, 16, 32, 0.08);
  --snkly-gradient: linear-gradient(135deg, var(--snkly-primary) 0%, var(--snkly-accent) 100%);
  --snkly-shadow: 0 4px 24px rgba(11, 16, 32, 0.08);
  --snkly-shadow-lg: 0 12px 40px rgba(91, 92, 255, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  color: var(--snkly-text);
  background-color: #fff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--snkly-navy);
}

.gradient-text {
  background: var(--snkly-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 1.125rem;
  color: var(--snkly-text-muted);
}

/* Navbar */
.navbar-snkly {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--snkly-border);
  padding-block: 0.75rem;
}

.navbar-snkly .navbar-brand img {
  height: 36px;
  width: auto;
}

.navbar-snkly .nav-link {
  font-weight: 600;
  color: var(--snkly-text-muted);
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.navbar-snkly .nav-link:hover,
.navbar-snkly .nav-link.active {
  color: var(--snkly-primary);
}

/* Buttons */
.btn-snkly-primary {
  background: var(--snkly-gradient);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.625rem 1.5rem;
  border-radius: 0.625rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-snkly-primary:hover,
.btn-snkly-primary:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--snkly-shadow-lg);
  opacity: 0.95;
}

.btn-snkly-outline {
  border: 2px solid var(--snkly-border);
  color: var(--snkly-navy);
  font-weight: 700;
  padding: 0.5625rem 1.5rem;
  border-radius: 0.625rem;
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-snkly-outline:hover,
.btn-snkly-outline:focus {
  border-color: var(--snkly-primary);
  color: var(--snkly-primary);
  background: rgba(91, 92, 255, 0.04);
}

/* Hero */
.hero-section {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
  background: var(--snkly-navy);
  color: #fff;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(91, 92, 255, 0.25), transparent 70%);
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: rgba(91, 92, 255, 0.15);
  border: 1px solid rgba(91, 92, 255, 0.3);
  color: var(--snkly-accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 36rem;
  margin-inline: auto;
}

.hero-section .btn-snkly-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.hero-section .btn-snkly-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Features */
.features-section {
  padding: 5rem 0;
  background: var(--snkly-surface);
}

.feature-card {
  background: #fff;
  border: 1px solid var(--snkly-border);
  border-radius: 1rem;
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--snkly-shadow);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(91, 92, 255, 0.1);
  color: var(--snkly-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--snkly-text-muted);
  margin-bottom: 0;
}

/* CTA */
.cta-section {
  padding: 5rem 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--snkly-navy) 0%, var(--snkly-navy-soft) 100%);
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--snkly-shadow-lg);
}

.cta-card h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.75rem;
}

/* Legal pages */
.legal-page {
  padding: 3rem 0 5rem;
}

.legal-header {
  border-bottom: 1px solid var(--snkly-border);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.legal-header .badge-legal {
  background: rgba(91, 92, 255, 0.1);
  color: var(--snkly-primary);
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
}

.legal-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: 0.75rem;
}

.legal-meta {
  color: var(--snkly-text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.legal-section p,
.legal-section ul {
  color: var(--snkly-text-muted);
  margin-bottom: 0;
}

.legal-section ul {
  padding-right: 1.25rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

/* Contact */
.contact-card {
  background: var(--snkly-surface);
  border: 1px solid var(--snkly-border);
  border-radius: 1rem;
  padding: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item .icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  background: rgba(91, 92, 255, 0.1);
  color: var(--snkly-primary);
}

.contact-item a {
  color: var(--snkly-primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--snkly-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--snkly-accent);
}

.footer-brand img {
  height: 32px;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}

/* Utilities */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--snkly-text-muted);
  max-width: 32rem;
  margin-inline: auto;
}

.text-primary-snkly {
  color: var(--snkly-primary) !important;
}

/* Responsive */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 3.5rem 0 4rem;
  }

  .navbar-snkly .btn-snkly-primary {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}

/* Auth / Login */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--snkly-surface);
}

.auth-brand-panel {
  flex: 1;
  display: none;
  position: relative;
  background: var(--snkly-navy);
  color: #fff;
  padding: 3rem;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 20%, rgba(91, 92, 255, 0.35), transparent 70%);
  pointer-events: none;
}

.auth-brand-content {
  position: relative;
  z-index: 1;
  max-width: 22rem;
  margin-top: 4rem;
}

.auth-brand-content img {
  height: 40px;
  margin-bottom: 2.5rem;
}

.auth-brand-content h2 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.auth-brand-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 26rem;
  background: #fff;
  border: 1px solid var(--snkly-border);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--snkly-shadow-lg);
}

.auth-card-logo {
  display: none;
  margin-bottom: 1.5rem;
}

.auth-card-logo img {
  height: 36px;
}

.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}

.auth-card .auth-subtitle {
  color: var(--snkly-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}

.auth-form .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--snkly-navy);
  margin-bottom: 0.375rem;
}

.auth-form .form-control {
  border-radius: 0.625rem;
  border: 1px solid var(--snkly-border);
  padding: 0.625rem 0.875rem;
  font-family: inherit;
}

.auth-form .form-control:focus {
  border-color: var(--snkly-primary);
  box-shadow: 0 0 0 3px rgba(91, 92, 255, 0.15);
}

.auth-form .btn-login {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-footer-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--snkly-text-muted);
}

.auth-footer-links a {
  color: var(--snkly-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer-links a:hover {
  text-decoration: underline;
}

.auth-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--snkly-text-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.auth-back-home:hover {
  color: var(--snkly-primary);
}

.auth-alert {
  border-radius: 0.625rem;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #b02a37;
}

@media (min-width: 992px) {
  .auth-brand-panel {
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .auth-card-logo {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .auth-card-logo {
    display: block;
  }
}

/* About & modules sections */
.about-section {
  padding: 5rem 0;
}

.about-card {
  background: linear-gradient(135deg, var(--snkly-navy) 0%, var(--snkly-navy-soft) 100%);
  border-radius: 1.25rem;
  padding: 3rem 2.5rem;
  color: #fff;
}

.about-card h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

.about-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  margin-bottom: 1rem;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.modules-section {
  padding: 5rem 0;
  background: #fff;
}

.module-card {
  border: 1px solid var(--snkly-border);
  border-radius: 1rem;
  padding: 1.75rem;
  height: 100%;
  border-right: 4px solid var(--snkly-primary);
}

.module-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.module-card p {
  color: var(--snkly-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.audience-section {
  padding: 5rem 0;
  background: var(--snkly-surface);
}

.audience-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.audience-item:last-child {
  margin-bottom: 0;
}

.audience-check {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(91, 92, 255, 0.12);
  color: var(--snkly-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.audience-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.audience-item p {
  font-size: 0.9375rem;
  color: var(--snkly-text-muted);
  margin: 0;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--snkly-accent);
  font-weight: 800;
}

.stat-item span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}
