/* ============================================================
   TESTING — marketing site theme
   Palette derived from the logo: navy #021e47 / orange #fc8503
   ============================================================ */

:root {
  --navy: #021e47;
  --navy-700: #062a5e;
  --navy-600: #0c3a7a;
  --navy-deep: #010f26;
  --orange: #fc8503;
  --orange-600: #e57600;
  --orange-100: #fff1de;
  --bg: #f5f8fc;
  --card: #ffffff;
  --text: #0e1c30;
  --muted: #5b6b83;
  --border: #e5eaf2;
  --success: #1aa96a;
  --shadow-sm: 0 2px 8px rgba(2, 30, 71, 0.06);
  --shadow-md: 0 12px 32px rgba(2, 30, 71, 0.10);
  --shadow-lg: 0 24px 60px rgba(2, 30, 71, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
}

div:where(.swal2-container) img:where(.swal2-image) {
  max-width: 70% !important;
  margin: 2em auto 1em;
  cursor: initial;
}

/* ---------- SweetAlert2 brand override ---------- */
div:where(.swal2-popup) {
  border-radius: 22px !important;
  padding: 2rem 1.75rem 1.75rem !important;
  font-family: var(--font-en);
}
[dir='rtl'] div:where(.swal2-popup) { font-family: var(--font-ar); }
div:where(.swal2-popup) div:where(.swal2-title) {
  color: var(--navy);
  font-weight: 800;
  font-size: 21px;
  padding: 0.5em 0 0.2em;
}
div:where(.swal2-popup) div:where(.swal2-html-container) {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}
div:where(.swal2-popup) .swal2-actions { margin-top: 1.4rem; gap: 10px; }
button:where(.swal2-styled):where(.swal2-confirm) {
  background: linear-gradient(135deg, var(--orange), var(--orange-600)) !important;
  border-radius: 12px !important;
  padding: 11px 26px !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  box-shadow: 0 8px 20px rgba(252, 133, 3, 0.35) !important;
}
button:where(.swal2-styled):where(.swal2-cancel) {
  background: #fff !important;
  color: var(--navy) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 11px 26px !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  box-shadow: none !important;
}
div:where(.swal2-icon) { margin: 1.4rem auto 0.6rem; }
div:where(.swal2-popup) div:where(.swal2-toast-shown) {}
div.swal2-toast {
  border-radius: 14px !important;
  padding: 0.85rem 1.1rem !important;
  box-shadow: var(--shadow-md) !important;
}
div.swal2-toast div:where(.swal2-title) { font-size: 14px !important; padding: 0 !important; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[dir='rtl'] body,
[dir='rtl'] { font-family: var(--font-ar); }

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-600);
  background: var(--orange-100);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1, h2, h3, h4 { color: var(--navy); font-weight: 800; margin: 0; line-height: 1.2; }
.section-title { font-size: clamp(28px, 4vw, 42px); max-width: 720px; }
.section-subtitle { color: var(--muted); font-size: 17px; max-width: 620px; margin-top: 14px; line-height: 1.7; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-title,
.section-head.center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-600));
  color: #fff;
  box-shadow: 0 10px 24px rgba(252, 133, 3, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(252, 133, 3, 0.42); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--navy); background: #fff; }
.btn-ghost-light { background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 9px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--navy); }
.brand .bracket { color: var(--orange); font-family: 'JetBrains Mono', monospace; }
.brand .tagline-mini { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .5px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 14.5px; color: var(--text); opacity: .8; transition: opacity .15s, color .15s; }
.nav-links a:hover { opacity: 1; color: var(--orange-600); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  font-family: var(--font-ar) !important;
  display: flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--border); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--navy);

}
.lang-switch:hover { border-color: var(--orange); }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 19px; color: var(--navy); padding: 6px 4px;
}
.nav-links-mobile-extra { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 15% -10%, #0d3a78 0%, transparent 60%), var(--navy);
  color: #fff;
  padding: 110px 0 70px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero .eyebrow { background: rgba(252,133,3,0.16); color: var(--orange); }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.5px; }
.hero h1 .accent { color: var(--orange); display: block; }
.hero p.lede { color: #c3d1e6; font-size: 17.5px; line-height: 1.75; margin: 22px 0 34px; max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; display: flex; align-items: center; gap: 14px; color: #7f93b3; font-size: 13px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.hero-stat { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 16px; }
.hero-stat .value { font-size: 26px; font-weight: 800; color: var(--orange); }
.hero-stat .label { font-size: 12px; color: #9fb3d1; margin-top: 4px; line-height: 1.4; }

/* Signature element: animated mini kanban mockup in the hero */
.hero-visual { position: relative; }
.mini-board {
  background: #0a2f5c;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.mini-board-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.mini-dot { width: 10px; height: 10px; border-radius: 50%; }
.mini-dot.r { background: #ff6161; } .mini-dot.y { background: #ffc542; } .mini-dot.g { background: #35d07f; }
.mini-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-col { background: rgba(255,255,255,0.04); border-radius: 10px; padding: 10px; min-height: 220px; }
.mini-col-title { font-size: 10.5px; font-weight: 700; color: #9fb3d1; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.mini-card {
  background: #fff; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px;
  font-size: 11.5px; color: var(--navy); font-weight: 700; box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.mini-card .sev { display:inline-block; width:7px; height:7px; border-radius:50%; margin-inline-end:6px; }
.sev-high { background:#ff6161; } .sev-med { background:#ffc542; } .sev-low { background:#35d07f; }
.mini-card.flying {
  position: absolute;
  animation: flyCard 6s ease-in-out infinite;
}
@keyframes flyCard {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  40%  { transform: translate(122px, 6px) scale(1.03); opacity: 1; }
  50%  { transform: translate(122px, 6px) scale(1.03); opacity: 1; }
  90%  { transform: translate(244px, 2px) scale(1); opacity: 1; }
  100% { transform: translate(244px, 2px) scale(1); opacity: 1; }
}
[dir='rtl'] .mini-card.flying { animation-name: flyCardRtl; }
@keyframes flyCardRtl {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(-122px, 6px) scale(1.03); }
  50%  { transform: translate(-122px, 6px) scale(1.03); }
  90%  { transform: translate(-244px, 2px) scale(1); }
  100% { transform: translate(-244px, 2px) scale(1); }
}
.streak-badge {
  position: absolute; bottom: -22px; inset-inline-start: -22px;
  background: #fff; color: var(--navy); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700;
}
.streak-badge .num { font-size: 26px; color: var(--orange); font-weight: 800; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 20px; }
.step-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 20px; box-shadow: var(--shadow-sm); position: relative;
}
.step-num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--orange);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px; font-size: 14px;
}
.step-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0; }
.step-connector { display: none; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 20px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--orange-100); color: var(--orange-600);
  display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 18px;
}
.feature-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0; }

/* ---------- Board showcase ---------- */
.board-showcase { background: var(--navy); border-radius: 28px; padding: 60px 40px; color: #fff; margin-top: 10px; }
.board-showcase .section-head .section-title { color: #fff; }
.board-showcase .section-head .section-subtitle { color: #a9bcd8; }
.showcase-swiper { margin-top: 30px; padding-bottom: 10px; }
.showcase-slide {
  background: #0a2f5c; border-radius: 16px; padding: 22px; border: 1px solid rgba(255,255,255,0.1);
}
.showcase-slide img { border-radius: 10px; }
.showcase-caption { margin-top: 14px; font-size: 13.5px; color: #c3d1e6; font-weight: 600; }

/* ---------- Calculator ---------- */
.calc-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-top: 20px; border: 1px solid var(--border);
}
.calc-inputs { padding: 40px; }
.calc-slider { margin-bottom: 26px; }
.calc-slider label { display: flex; justify-content: space-between; font-weight: 700; font-size: 13.5px; color: var(--navy); margin-bottom: 10px; }
.calc-slider label .val { color: var(--orange-600); font-weight: 800; }
.calc-slider input[type=range] {
  width: 100%; -webkit-appearance: none; height: 6px; border-radius: 999px; background: var(--border); outline: none;
}
.calc-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 4px 10px rgba(252,133,3,0.5); cursor: pointer; border: 3px solid #fff;
}
.calc-results { background: var(--navy); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.calc-result-block { margin-bottom: 26px; }
.calc-result-block .r-label { font-size: 13px; color: #9fb3d1; font-weight: 600; margin-bottom: 6px; }
.calc-result-block .r-value { font-size: 40px; font-weight: 800; color: var(--orange); }
.calc-footer { font-size: 13.5px; color: #c3d1e6; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; line-height: 1.6; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative;
}
.price-card.popular { border-color: var(--orange); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.price-badge {
  position: absolute; top: -14px; inset-inline-start: 28px; background: var(--orange); color: #fff;
  font-size: 11.5px; font-weight: 800; padding: 6px 14px; border-radius: 999px; box-shadow: 0 8px 18px rgba(252,133,3,0.4);
}
.price-card h4 { font-size: 20px; }
.price-tagline { color: var(--muted); font-size: 13.5px; margin: 8px 0 22px; min-height: 40px; }
.price-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; }
.price-amount .num { font-size: 40px; font-weight: 800; color: var(--navy); }
.price-amount .period { color: var(--muted); font-size: 13px; }
.price-features { flex: 1; margin-bottom: 26px; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text); padding: 7px 0; }
.price-features li i { color: var(--success); margin-top: 3px; }

/* ---------- Reviews ---------- */
.reviews-swiper { margin-top: 20px; padding-bottom: 46px; }
.review-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); height: 100%;
}
.review-stars { color: var(--orange); font-size: 13px; margin-bottom: 14px; }
.review-quote { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 20px; }
.review-person { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--orange);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.review-name { font-weight: 700; font-size: 14px; color: var(--navy); }
.review-role { font-size: 12.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 20px; max-width: 800px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; background: var(--card); overflow: hidden; }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; padding: 20px 24px;
  cursor: pointer; font-weight: 700; font-size: 15px; color: var(--navy);
}
.faq-question i { color: var(--orange); transition: transform .25s ease; }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- Security ---------- */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 20px; }
.security-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.security-card i { font-size: 26px; color: var(--orange); margin-bottom: 16px; }
.security-card h4 { font-size: 16px; margin-bottom: 10px; }
.security-card p { color: var(--muted); font-size: 13.5px; line-height: 1.65; margin: 0; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.contact-info { background: var(--navy); border-radius: var(--radius); padding: 36px; color: #fff; }
.contact-info h3 { color: #fff; font-size: 22px; margin-bottom: 14px; }
.contact-info p { color: #c3d1e6; font-size: 14px; line-height: 1.7; }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 13px; color: var(--navy); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px;
  font-size: 14px; font-family: inherit; background: #fbfcfe; transition: border-color .15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c3d1e6; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h5 { color: #fff; font-size: 13px; letter-spacing: .4px; margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; font-size: 13.5px; }
.footer-grid a:hover { color: var(--orange); }
.footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }



/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .features-grid, .pricing-grid, .security-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc-card { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .navbar .container { height: 64px; }
  .brand { font-size: 17px; gap: 8px; }
  .tagline-mini { display: none; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-sm { padding: 8px 11px; font-size: 10px; margin: 0 10px;}
  .lang-switch { padding: 6px 9px; font-size: 11.5px; }

  .nav-secondary { display: none; }
  .nav-links-mobile-extra { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
  .nav-links-mobile-extra .lang-switch { justify-content: center; margin: 10px 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 6px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 2px; border-bottom: 1px solid var(--border); opacity: 1; }
  .nav-links a:last-child { border-bottom: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-grid > div:first-child { display: flex; flex-direction: column; align-items: center; }
  .footer-grid .brand { justify-content: center; }
  .footer-socials { justify-content: center; }
  .footer-grid li { display: flex; justify-content: center; align-items: center; gap: 6px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .features-grid, .pricing-grid, .security-grid, .steps { grid-template-columns: 1fr; }
  .price-card.popular { transform: none; }
  .hero-stats { grid-template-columns: 1fr; }
}
