/* === CSS Custom Properties === */
:root {
  --bg-primary: #f8fbff;
  --bg-card: #fff;
  --bg-section: #fff;
  --text-primary: #1b1b1b;
  --text-secondary: #666;
  --text-muted: #444;
  --accent: #007bff;
  --accent-dark: #0056b3;
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-btn: 0 4px 14px rgba(0, 123, 255, 0.3);
  --shadow-btn-hover: 0 6px 20px rgba(0, 123, 255, 0.4);
  --border-light: rgba(0, 0, 0, 0.06);
  --feature-bg: #f0f7ff;
  --step-bg: #007bff;
  --partner-bg: #f8fbff;
  --footer-bg: #1b1b1b;
  --footer-text: #aaa;
}

/* === Dark Mode === */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0d1117;
    --bg-card: #161b22;
    --bg-section: #161b22;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #8b949e;
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.3);
    --border-light: rgba(255, 255, 255, 0.08);
    --feature-bg: #1c2333;
    --partner-bg: #1c2333;
    --footer-bg: #010409;
    --footer-text: #8b949e;
  }
}

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

/* === Base === */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Tajawal", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

main {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* === Entry Animation === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.25s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.4s;
}
.fade-in:nth-child(4) {
  animation-delay: 0.55s;
}
.fade-in:nth-child(5) {
  animation-delay: 0.7s;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    animation: none;
  }
}

/* === Hero Card === */
.container {
  max-width: 420px;
  margin: 30px auto;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: center;
}

.image {
  background: url("../assets/images/MotorInsurance.png") center/cover no-repeat;
  height: 260px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.content {
  padding: 30px 25px;
}

h1 {
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.verified-badge {
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 4px;
}

p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 20px;
}

/* === CTA Button === */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: var(--shadow-btn);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

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

.btn:focus-visible {
  outline: 3px solid #80bdff;
  outline-offset: 2px;
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
  border-radius: 12px;
}

/* === Sections === */
.section {
  max-width: 700px;
  margin: 40px auto;
  text-align: center;
}

.section h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 30px;
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 25px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

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

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* === Steps Grid === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 25px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--step-bg);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 14px;
}

.step-card h3 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* === Partners Grid === */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.partner-logo {
  background: var(--feature-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  transition: transform 0.2s ease;
}

.partner-logo:hover {
  transform: scale(1.03);
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 20px;
  padding: 40px 30px;
  color: #fff;
}

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

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
}

.cta-section .btn {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-section .btn:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* === Site Footer === */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 24px 20px;
  margin-top: 40px;
  font-size: 14px;
}

.site-footer p {
  color: var(--footer-text);
  margin-bottom: 4px;
  font-size: 14px;
}

/* === Responsive === */
@media (max-width: 600px) {
  main {
    padding: 12px;
  }

  .container {
    border-radius: 16px;
  }

  .image {
    height: 200px;
  }

  h1 {
    font-size: 1.2rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-section {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .btn-large {
    padding: 14px 30px;
    font-size: 16px;
  }
}
