/* ── Securatrade shared styles ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --blue:      #2F6BFF;
  --blue-dark: #1a50d4;
  --blue-light:#EEF3FF;
  --green:     #19A76F;
  --green-light:#E8F7F1;
  --dark:      #0F172A;
  --muted:     #64748B;
  --border:    #E2E8F0;
  --bg:        #F8FAFC;
  --white:     #FFFFFF;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.25rem; font-weight: 800; color: var(--dark);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--blue); }
.nav-logo-mark {
  width: 32px; height: 32px; background: var(--blue);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 18px; height: 18px; fill: #fff; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--dark); background: var(--bg); }
.nav-links a.active { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; padding: 8px; border-radius: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px;
  margin: 5px 0; transition: all 0.2s;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600;
  transition: all 0.18s; white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 2px 8px rgba(47,107,255,0.3);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(47,107,255,0.4); }
.btn-secondary { background: var(--white); color: var(--dark); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.btn-ghost { background: none; color: var(--muted); }
.btn-ghost:hover { color: var(--dark); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 2px 8px rgba(25,167,111,0.3); }
.btn-green:hover { background: #15906a; transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; border-radius: 8px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-p { padding: 28px; }
.card-p-lg { padding: 40px; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 99px;
  font-size: 0.78rem; font-weight: 600;
}
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-orange { background: #FFF7ED; color: #C2410C; }
.badge-red { background: #FEF2F2; color: #DC2626; }
.badge-gray { background: #F1F5F9; color: var(--muted); }

/* ── Section titles ── */
.section-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.2; color: var(--dark);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem; color: var(--muted); max-width: 560px; line-height: 1.7;
}
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ── Forms ── */
.field { margin-bottom: 20px; }
.label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--dark); margin-bottom: 6px;
}
.label-hint { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem; font-family: inherit; color: var(--dark);
  background: var(--white); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,0.12);
}
.input::placeholder, .textarea::placeholder { color: #94A3B8; }
.textarea { min-height: 100px; resize: vertical; }
.input-prefix {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--white); overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-prefix:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,0.12); }
.input-prefix-symbol {
  padding: 12px 14px; background: var(--bg);
  border-right: 1.5px solid var(--border);
  font-weight: 600; color: var(--muted); font-size: 0.95rem;
}
.input-prefix .input { border: none; box-shadow: none; border-radius: 0; }
.input-prefix .input:focus { box-shadow: none; }

/* ── Trust strip ── */
.trust-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap; padding: 28px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; font-weight: 600; color: var(--muted);
}
.trust-item svg { color: var(--green); flex-shrink: 0; }

/* ── Stat cards ── */
.stat-card { text-align: center; }
.stat-num {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em;
  color: var(--dark); line-height: 1;
}
.stat-num .stat-prefix { font-size: 1.4rem; }
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 6px; font-weight: 500; }

/* ── Step flow ── */
.step {
  display: flex; gap: 20px; align-items: flex-start;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
}
.step-content { flex: 1; }
.step-title { font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.step-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ── Scenario cards ── */
.scenario-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 28px;
  box-shadow: var(--shadow);
}
.scenario-quote {
  font-size: 1rem; color: var(--dark); line-height: 1.7;
  font-style: italic; margin-bottom: 16px;
}
.scenario-meta { display: flex; align-items: center; gap: 12px; }
.scenario-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff; flex-shrink: 0;
}
.scenario-name { font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.scenario-role { font-size: 0.8rem; color: var(--muted); }

/* ── Pricing cards ── */
.pricing-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 2px solid var(--border); padding: 32px;
  position: relative; transition: all 0.2s;
}
.pricing-card.featured {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,107,255,0.08);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  padding: 4px 16px; border-radius: 99px;
  font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}
.pricing-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.pricing-desc { font-size: 0.88rem; color: var(--muted); margin-bottom: 24px; }
.pricing-amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.04em; }
.pricing-amount span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pricing-features { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.pricing-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--dark);
}
.pricing-feature svg { color: var(--green); flex-shrink: 0; }

/* ── Footer ── */
.footer {
  background: var(--dark); color: #94A3B8;
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand-logo {
  font-size: 1.2rem; font-weight: 800; color: #fff;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.footer-brand-logo span { color: var(--blue); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.88rem; margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem;
}
.footer-bottom a { transition: color 0.15s; }
.footer-bottom a:hover { color: #fff; }

/* ── Dashboard layout ── */
.app-wrap { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; background: var(--white); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo {
  padding: 20px 20px 8px;
  font-size: 1.15rem; font-weight: 800; color: var(--dark);
  letter-spacing: -0.02em; border-bottom: 1px solid var(--border);
  padding-bottom: 16px; margin-bottom: 8px;
}
.sidebar-logo span { color: var(--blue); }
.sidebar-section { padding: 8px 12px; margin-bottom: 4px; }
.sidebar-section-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); padding: 4px 8px; margin-bottom: 4px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  transition: all 0.15s; margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--bg); color: var(--dark); }
.sidebar-link.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-link .badge { margin-left: auto; }
.app-main { flex: 1; overflow-x: hidden; }
.app-header {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.app-header-title { font-weight: 700; font-size: 1rem; }
.app-content { padding: 32px; }

/* ── Job status ── */
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0;
}
.status-pending { background: #F59E0B; }
.status-active  { background: var(--green); }
.status-review  { background: var(--blue); }
.status-complete{ background: #94A3B8; }
.status-dispute { background: #EF4444; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  padding: 10px 16px; border-bottom: 1px solid var(--border);
}
td { padding: 14px 16px; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* ── Progress bar ── */
.progress-bar { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--blue); border-radius: 99px; transition: width 0.4s; }
.progress-fill.green { background: var(--green); }

/* ── Wizard (mobile create job) ── */
.wizard-header { margin-bottom: 28px; }
.wizard-steps {
  display: flex; gap: 6px; margin-bottom: 16px;
}
.wizard-step-dot {
  flex: 1; height: 4px; border-radius: 99px;
  background: var(--border); transition: background 0.3s;
}
.wizard-step-dot.done { background: var(--green); }
.wizard-step-dot.active { background: var(--blue); }
.wizard-step-label { font-size: 0.82rem; color: var(--muted); }
.wizard-step-label strong { color: var(--dark); }

/* ── Summary panel ── */
.summary-panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  position: sticky; top: 80px;
}
.summary-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 0.88rem;
}
.summary-row:not(:last-child) { border-bottom: 1px solid var(--bg); }
.summary-row .label { color: var(--muted); font-weight: 500; }
.summary-row .val { font-weight: 600; color: var(--dark); }
.summary-total {
  margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.summary-total-label { font-weight: 700; }
.summary-total-val { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--blue); }

/* ── Payment options ── */
.pay-option {
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; cursor: pointer; transition: all 0.18s; margin-bottom: 16px;
  position: relative;
}
.pay-option:hover { border-color: var(--blue); }
.pay-option.selected { border-color: var(--blue); background: var(--blue-light); box-shadow: 0 0 0 4px rgba(47,107,255,0.08); }
.pay-option-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pay-option-name { font-weight: 700; font-size: 1rem; }
.pay-option-amount { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--blue); }
.pay-option-desc { font-size: 0.85rem; color: var(--muted); }
.pay-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.pay-option.selected .pay-radio { border-color: var(--blue); background: var(--blue); }
.pay-option.selected .pay-radio::after {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: #fff;
}

/* ── Milestone bar ── */
.milestone-list { display: flex; flex-direction: column; gap: 0; }
.milestone-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.milestone-item:last-child { border-bottom: none; }
.milestone-dot-wrap { display: flex; flex-direction: column; align-items: center; }
.milestone-dot {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.milestone-dot.done { background: var(--green); color: #fff; }
.milestone-dot.active { background: var(--blue); color: #fff; }
.milestone-dot.pending { background: var(--border); color: var(--muted); }
.milestone-content { flex: 1; padding-top: 2px; }
.milestone-name { font-weight: 600; font-size: 0.9rem; }
.milestone-amount { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-up { animation: fadeUp 0.5s ease both; }
.fade-in { animation: fadeIn 0.4s ease both; }
[data-delay="1"] { animation-delay: 0.1s; }
[data-delay="2"] { animation-delay: 0.2s; }
[data-delay="3"] { animation-delay: 0.3s; }
[data-delay="4"] { animation-delay: 0.4s; }
[data-delay="5"] { animation-delay: 0.5s; }

/* ── Hero mock UI ── */
.hero-mock {
  background: var(--white); border-radius: 20px; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-mock-header {
  background: var(--bg); padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-mock-body { padding: 20px; }
.mock-job-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--bg); border-radius: 10px;
  margin-bottom: 8px; border: 1px solid var(--border);
}
.mock-job-title { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.mock-job-sub { font-size: 0.75rem; color: var(--muted); }
.mock-amount { font-size: 0.95rem; font-weight: 700; color: var(--dark); }
.mock-stat-row { display: flex; gap: 8px; margin-bottom: 12px; }
.mock-stat {
  flex: 1; background: var(--bg); border-radius: 10px;
  padding: 12px; border: 1px solid var(--border);
  text-align: center;
}
.mock-stat-val { font-size: 1.1rem; font-weight: 800; color: var(--dark); }
.mock-stat-label { font-size: 0.7rem; color: var(--muted); }
.mock-progress-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.mock-release-btn {
  width: 100%; background: var(--blue); color: #fff;
  border-radius: 8px; padding: 10px; text-align: center;
  font-size: 0.82rem; font-weight: 700; margin-top: 12px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 12px 16px;
  }
  .nav-toggle { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.open { display: flex; position: fixed; left: 0; top: 0; bottom: 0; z-index: 200; box-shadow: var(--shadow-lg); }
  .app-content { padding: 20px 16px; }
  .section-title { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .trust-strip { gap: 20px; }
  .btn-lg { padding: 13px 20px; font-size: 0.95rem; }
}
