@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  --bg: #08141f;
  --bg-soft: #0d1e2c;
  --surface: rgba(11, 29, 43, 0.78);
  --surface-solid: #102334;
  --dark-card: rgba(10, 24, 36, 0.84);
  --card: rgba(255, 255, 255, 0.05);
  --card-strong: rgba(255, 255, 255, 0.09);
  --text: #f6f7fb;
  --muted: #a9b8c7;
  --border: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.1);
  --primary: #ff7a1a;
  --primary-dark: #e46408;
  --accent: #43c1a8;
  --danger: #ff6b6b;
  --success: #26c281;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --font: 'Tajawal', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(circle at top right, rgba(255, 122, 26, 0.16), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(67, 193, 168, 0.12), transparent 24%),
    linear-gradient(180deg, #07111a 0%, #08141f 55%, #0b1723 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  transition: 0.25s ease;
}

.navbar.scrolled {
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 26, 0.72);
  border-bottom: 1px solid var(--line);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 14px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff9d54);
  color: #1b130d;
  box-shadow: 0 14px 26px rgba(255, 122, 26, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.92rem;
}

.btn-lg {
  padding: 15px 26px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.hero {
  position: relative;
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 280px;
  height: 280px;
  top: 4%;
  right: -80px;
  background: rgba(255, 122, 26, 0.12);
}

.hero-orb-2 {
  width: 220px;
  height: 220px;
  bottom: 10%;
  left: -70px;
  background: rgba(67, 193, 168, 0.11);
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.22);
  color: #ffba87;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  max-width: 650px;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin-top: 18px;
  max-width: 560px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.stat-pill {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.stat-pill strong {
  display: block;
  font-size: 1.4rem;
  color: #fff3e7;
}

.stat-pill span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-showcase {
  position: relative;
}

.showcase-card {
  padding: 22px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03)),
    linear-gradient(145deg, rgba(13, 30, 44, 0.96), rgba(7, 17, 26, 0.96));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.showcase-top,
.showcase-item,
.showcase-footer {
  display: flex;
  align-items: center;
}

.showcase-top {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  font-size: 0.8rem;
  color: #8eb4c7;
  margin-bottom: 4px;
}

.status-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(67, 193, 168, 0.14);
  color: #91ead8;
  font-weight: 700;
  font-size: 0.86rem;
}

.showcase-search {
  margin-bottom: 12px;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  color: #8ea2b3;
}

.showcase-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.showcase-tabs span {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 0.88rem;
}

.showcase-tabs .active {
  background: var(--primary);
  color: #24160b;
}

.showcase-item {
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.showcase-item:last-of-type {
  border-bottom: 0;
}

.showcase-item div:last-of-type,
.showcase-item strong,
.showcase-item p,
.showcase-item span:last-child {
  display: block;
}

.showcase-item > div:nth-child(2) {
  flex: 1;
}

.showcase-emoji {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.showcase-item strong {
  margin-bottom: 3px;
}

.showcase-item p {
  font-size: 0.88rem;
}

.showcase-item span:last-child {
  color: #ffd1ad;
  font-weight: 800;
}

.showcase-footer {
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.14), rgba(255, 122, 26, 0.05));
  color: #fff4e8;
}

.section {
  padding: 84px 0;
}

.section-soft {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02), transparent);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 12px;
}

.features-grid,
.plans-grid,
.testimonials-grid,
.steps-grid {
  display: grid;
  gap: 20px;
}

.features-grid,
.testimonials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plans-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-card,
.step-card,
.testimonial-card,
.plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  content-visibility: auto;
}

.feature-card h3,
.step-card h3 {
  margin-bottom: 10px;
}

.feature-icon,
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(255,122,26,0.18), rgba(67,193,168,0.18));
}

.step-num {
  border-radius: 50%;
  font-weight: 900;
}

.plan-card {
  position: relative;
}

.plan-card.featured {
  background: linear-gradient(180deg, rgba(255,122,26,0.14), rgba(255,255,255,0.05));
  border-color: rgba(255,122,26,0.3);
}

.plan-badge-popular {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.14);
  color: #ffd3ae;
  font-size: 0.82rem;
  font-weight: 800;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.plan-price {
  margin-bottom: 18px;
}

.plan-price strong {
  display: block;
  font-size: 2.4rem;
}

.plan-price span {
  color: var(--muted);
}

.plan-features {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  padding: 10px 0;
  color: #d5deea;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.plan-features li:last-child {
  border-bottom: 0;
}

.testimonial-stars {
  color: #ffcb67;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #ffb172);
  color: #1c130d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.testimonial-author span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 3px;
}

.cta-section {
  padding: 38px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(67,193,168,0.16), transparent 30%),
    linear-gradient(135deg, rgba(255,122,26,0.16), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 12px;
}

.footer {
  padding: 44px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(5, 12, 18, 0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.footer-grid h4 {
  margin-bottom: 12px;
}

.footer-grid a,
.footer-grid span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
}

.auth-page,
.auth-wrapper {
  min-height: 100vh;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card,
.auth-panel,
.auth-form-card {
  background: rgba(10, 24, 36, 0.84);
  border: 1px solid var(--line);
  border-radius: 28px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.auth-card {
  width: min(460px, 100%);
  padding: 34px 28px;
}

.auth-wrapper {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
}

.auth-panel {
  margin: 28px;
  padding: 42px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 26, 0.18), transparent 30%),
    linear-gradient(180deg, #0d2131, #08141f);
}

.auth-right {
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-form-card {
  width: min(520px, 100%);
  padding: 34px 28px;
}

.auth-highlights {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.auth-highlight {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-control {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font: inherit;
  outline: 0;
  transition: 0.2s ease;
}

.form-control:focus {
  border-color: rgba(255, 122, 26, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
}

.form-control::placeholder {
  color: #8ca1b3;
}

.alert {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.alert-danger {
  background: rgba(255, 107, 107, 0.12);
  color: #ffb1b1;
  border: 1px solid rgba(255, 107, 107, 0.18);
}

.alert-success {
  background: rgba(38, 194, 129, 0.12);
  color: #9ff0c8;
  border: 1px solid rgba(38, 194, 129, 0.18);
}

.alert-info {
  background: rgba(67, 193, 168, 0.12);
  color: #a8ede1;
  border: 1px solid rgba(67, 193, 168, 0.18);
}

.text-muted {
  color: var(--muted);
}

.text-primary {
  color: #ffba87;
}

.plan-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.plan-option input {
  display: none;
}

.plan-option-box {
  padding: 14px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  text-align: center;
  cursor: pointer;
}

.plan-option input:checked + .plan-option-box {
  border-color: rgba(255,122,26,0.5);
  background: rgba(255,122,26,0.12);
}

.plan-price-value {
  color: #ffd3ae;
  font-weight: 900;
}

.divider {
  height: 1px;
  margin: 24px 0;
  background: rgba(255,255,255,0.08);
}

.divider-text {
  text-align: center;
  color: var(--muted);
  margin: 20px 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mt-1 {
  margin-top: 8px;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-2 {
  animation-delay: 0.18s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .features-grid,
  .testimonials-grid,
  .steps-grid,
  .footer-grid,
  .auth-wrapper {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-grid {
    min-height: auto;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: rgba(8, 20, 31, 0.95);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.show {
    display: flex;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .auth-panel {
    margin: 16px 16px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .hero-actions .btn,
  .btn-full,
  .plan-selector,
  .form-grid-2 {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-stats {
    flex-direction: column;
  }

  .section,
  .footer {
    padding-top: 60px;
    padding-bottom: 24px;
  }

  .cta-section,
  .auth-card,
  .auth-form-card {
    padding: 24px 18px;
  }

  .showcase-card {
    padding: 18px;
  }
}
