/* ============================================================
   CODISE-IT | components.css
   Buttons · Badges · Cards · Forms · Nav · Footer · Misc UI
   ============================================================ */

/* Page Background */
body {
  background:
    radial-gradient(circle at 8% 0%, rgba(108,99,255,.09), transparent 28%),
    radial-gradient(circle at 96% 8%, rgba(0,194,168,.08), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #f4f8fd 60%, #f7f9fc 100%);
}

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(13,21,32,.1);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow var(--dur) var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav__inner {
  min-height: 80px; display: flex;
  align-items: center; justify-content: space-between;
  gap: var(--sp-6); position: relative;
}
.nav__brand {
  display: flex; color: rgba(196,5,58,0.64); align-items: center; gap: var(--sp-3);font-family: "Library 3 am";
  font-weight: 900; letter-spacing: -0.02em; font-size: 2.00rem; flex-shrink: 0;
}
.nav__brand-mark {
  width: 48px; height: 48px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--pri), var(--sec));
  display: grid; place-items: center;
  box-shadow: var(--shadow-pri); flex-shrink: 0; overflow: hidden;
}
.nav__brand-mark img { width: 30px; height: 30px; object-fit: contain; }
.nav__brand-text small {
  display: block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.09em; color: rgb(83 99 122); text-transform: uppercase; margin-top: 1px;
}
.nav__links { display: flex; align-items: center; gap: var(--sp-6); }
.nav__links a {
  color: #667388; font-weight: 700; font-size: 0.94rem;
  position: relative; padding-bottom: 2px;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--pri), var(--sec));
  transition: width var(--dur) var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: #cc5479; }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
.nav__hamburger {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background var(--dur) var(--ease);
}
.nav__hamburger span {
  display: block; width: 20px; height: 2px; border-radius: var(--r-full);
  background: var(--text); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-4);
  box-shadow: var(--shadow); z-index: var(--z-nav);
  flex-direction: column; gap: var(--sp-2);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 10px var(--sp-4); border-radius: var(--r-sm);
  font-weight: 700; color: var(--text); font-size: 0.95rem;
}
.nav__mobile a:hover, .nav__mobile a.active { background: var(--bg-soft); color: var(--pri); }
.nav__mobile .btn { width: 100%; margin-top: var(--sp-2); }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions .btn:first-child { display: none; }
  .nav__hamburger { display: flex; }
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: var(--sp-12); padding-bottom: var(--sp-8); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: var(--sp-8); padding-bottom: var(--sp-8);
}
.footer__brand-text { margin-top: var(--sp-4); font-size: 0.9rem; line-height: 1.7; color: var(--muted); }
.footer__heading { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: var(--sp-4); }
.footer__links { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__links a { font-size: 0.9rem; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__bar {
  border-top: 1px solid var(--line); padding-block: var(--sp-4);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-4); font-size: 0.82rem; color: var(--muted);
}
@media (max-width: 1024px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .footer__grid { grid-template-columns: 1fr; } .footer__bar { flex-direction: column; text-align: center; } }

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2); min-height: 48px; padding: 0 var(--sp-6);
  border-radius: var(--r-full); border: 1px solid transparent;
  font-weight: 800; font-size: 0.94rem; font-family: var(--font-sans);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--pri), var(--sec-2)); color: #fff; box-shadow: var(--shadow-pri); }
.btn--primary:hover { box-shadow: 0 16px 36px rgba(108,99,255,.32); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn--secondary:hover { border-color: var(--pri); color: var(--pri); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-soft); }
.btn--sm  { min-height: 38px; padding: 0 var(--sp-4); font-size: 0.82rem; }
.btn--lg  { min-height: 56px; padding: 0 var(--sp-8); font-size: 1rem; }
.btn--full { width: 100%; }

/* ── BADGES ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 8px 16px; border-radius: var(--r-full);
  background: linear-gradient(135deg, rgba(108,99,255,.10), rgba(0,194,168,.08));
  border: 1px solid rgba(108,99,255,.16);
  color: var(--pri); font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.badge--sec { background: linear-gradient(135deg, rgba(0,194,168,.10), rgba(0,160,255,.08)); border-color: rgba(0,194,168,.2); color: var(--sec); }
.tag { display: inline-flex; padding: 4px 12px; border-radius: var(--r-full); font-size: 0.75rem; font-weight: 700; }
.tag--pri  { background: rgba(108,99,255,.10); color: var(--pri); }
.tag--sec  { background: rgba(0,194,168,.10);  color: #007c69; }
.tag--info { background: rgba(0,160,255,.10);  color: #005fa8; }
.pill-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-full); font-size: 0.78rem; font-weight: 800; }
.pill-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-status--green { background: rgba(0,194,168,.1); color: #007c69; }
.pill-status--blue  { background: rgba(0,160,255,.1); color: #005fa8; }


/* ── CARDS ────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(108,99,255,.14); }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(108,99,255,.12), rgba(0,194,168,.10));
  border: 1px solid rgba(108,99,255,.14);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: var(--sp-4);
}
.card h3  { margin-bottom: var(--sp-2); font-size: 1.05rem; letter-spacing: -0.02em; }
.card a.card__link:hover { color: var(--pri); }
.card p   { font-size: 0.9rem; margin: 0; }
.map-card .map-info { padding: var(--sp-8); }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-4); font-size: 0.82rem; font-weight: 700; color: rgb(255 255 255); }
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--sp-8); box-shadow: var(--shadow-lg); }
.highlight-panel { background: linear-gradient(145deg, var(--surface), var(--surface-2)); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--sp-8); box-shadow: var(--shadow-lg); }
.kpi-card { text-align: center; padding: var(--sp-5) var(--sp-4); background: rgba(255,255,255,.76); border: 1px solid var(--line-soft); border-radius: var(--r); }
.kpi-card strong { display: block; font-size: 2rem; font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--pri), var(--sec)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.kpi-card span { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 4px; font-weight: 600; }
.kpi-band { padding: var(--sp-6); background: linear-gradient(135deg, rgba(108,99,255,.07), rgba(0,194,168,.07)); border: 1px solid rgba(108,99,255,.10); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.stat-card { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line-soft); border-radius: var(--r); padding: var(--sp-4); box-shadow: var(--shadow-xs); }
.stat-card small { display: block; color: var(--muted); font-size: 0.75rem; margin-bottom: 6px; font-weight: 600; }
.stat-card strong { font-size: 1.7rem; line-height: 1; font-weight: 900; }

/* ── CHECK LISTS ─────────────────────────────────────────────── */
.check-list { display: grid; gap: var(--sp-3); }
.check-item { display: flex; gap: var(--sp-3); align-items: flex-start; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.check-item:last-child { border-bottom: none; padding-bottom: 0; }
.check-dot { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--sec), var(--sec-2)); color: #fff; font-weight: 900; font-size: 0.7rem; margin-top: 2px; }
.check-item strong { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.check-item span { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ── SECTION HEADER ──────────────────────────────────────────── */
.section-header { margin-bottom: var(--sp-10); }
.section-header.center { text-align: center; }
.section-header .badge { margin-bottom: var(--sp-3); }
.section-header h2 { margin-bottom: var(--sp-3); }
.section-header-dark { color: var(--bg); }
.section-header p { font-size: 1.05rem; max-width: 62ch; line-height: 1.75; }
.section-header.center p { margin-inline: auto; }

/* ── FORMS ───────────────────────────────────────────────────── */
.form-group { display: grid; gap: var(--sp-2); }
.form-group label { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.form-control { width: 100%; padding: 13px var(--sp-4); border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-family: var(--font-sans); font-size: 0.94rem; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.form-control::placeholder { color: var(--muted); opacity: 0.6; }
.form-control:focus { border-color: rgba(108,99,255,.45); box-shadow: 0 0 0 4px rgba(108,99,255,.10); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-note { font-size: 0.78rem; color: var(--muted); text-align: center; line-height: 1.6; margin-top: var(--sp-3); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ── HERO ────────────────────────────────────────────────────── */
.hero-badge { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 8px 16px; border-radius: var(--r-full); background: rgba(108,99,255,.08); border: 1px solid rgba(108,99,255,.18); color: var(--pri); font-size: 0.8rem; font-weight: 700; margin-bottom: var(--sp-4); }
.hero-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pri); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(1.5)} }
.hero__title { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 0.94; letter-spacing: -0.06em; margin-bottom: var(--sp-4); max-width: 12ch; }
.hero__sub { font-size: 1.08rem; color: var(--muted); max-width: 58ch; line-height: 1.75; margin-bottom: var(--sp-6); }
.hero__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.trust-row { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-6); font-size: 0.82rem; color: var(--muted); }
.trust-avatars { display: flex; }
.trust-av { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); background: linear-gradient(135deg, var(--pri), var(--sec)); display: grid; place-items: center; color: #fff; font-size: 0.65rem; font-weight: 900; margin-left: -7px; }
.trust-av:first-child { margin-left: 0; }

/* ── DASHBOARD ───────────────────────────────────────────────── */
.dashboard { background: linear-gradient(145deg, var(--surface), var(--surface-2)); border: 1px solid var(--line-soft); border-radius: var(--r-xl); padding: var(--sp-6); box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.dashboard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-5); }
.dashboard__title { font-weight: 900; font-size: 1rem; }
.dashboard__sub { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.dashboard__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); margin-bottom: var(--sp-5); }
.dashboard__bars { display: grid; gap: var(--sp-3); }
.bar-row__labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.bar-track { height: 10px; border-radius: var(--r-full); background: var(--bg-soft); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pri), var(--sec)); width: 0; transition: width 1.6s cubic-bezier(.16,1,.3,1); }
@media (max-width: 640px) { .dashboard__stats { grid-template-columns: repeat(2, 1fr); } }

/* ── CHIP STRIP ──────────────────────────────────────────────── */
.chip-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); margin-top: var(--sp-6); }
.chip { min-height: 74px; display: grid; place-items: center; padding: var(--sp-2); text-align: center; background: rgba(255,255,255,.7); border: 1px solid var(--line-soft); border-radius: var(--r); box-shadow: var(--shadow-xs); color:#0e2c48; font-weight: 800; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; line-height: 1.4; }
@media (max-width: 1024px) { .chip-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .chip-strip { grid-template-columns: repeat(2, 1fr); } }

/* ── TICKER ──────────────────────────────────────────────────── */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 12px 0; overflow: hidden; white-space: nowrap; }
.ticker__inner { display: inline-flex; gap: var(--sp-10); animation: ticker-scroll 22s linear infinite; }
@keyframes ticker-scroll { 0%{transform:translateX(0)}100%{transform:translateX(-50%)} }
.ticker__item { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.ticker__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pri); flex-shrink: 0; }

/* ── PROCESS ──────────────────────────────────────────────────── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); position: relative; }
.process-grid::before { content: ''; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 1px; background: linear-gradient(90deg, transparent, var(--pri), var(--sec), transparent); z-index: 0; }
.step-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--sp-5); text-align: center; position: relative; z-index: 1; box-shadow: var(--shadow-xs); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-card__num { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--pri), var(--sec)); color: #fff; font-size: 1rem; font-weight: 900; display: grid; place-items: center; margin: 0 auto var(--sp-4); box-shadow: var(--shadow-pri); }
.step-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.step-card p  { font-size: 0.8rem; color: var(--muted); line-height: 1.65; margin: 0; }
@media (max-width: 768px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .process-grid { grid-template-columns: 1fr; } }

/* ── CTA BAND ────────────────────────────────────────────────── */
.cta-band { background: linear-gradient(135deg, rgba(108,99,255,.08), rgba(0,194,168,.06)); border: 1px solid rgba(108,99,255,.14); border-radius: var(--r-xl); padding: var(--sp-10) var(--sp-8); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); max-width: 20ch; line-height: 1.30; margin: 0; }
.cta-band p  { font-size: 0.9rem; margin-top: var(--sp-2); max-width: 46ch; }
.cta-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; flex-shrink: 0; }

/* ── REVEAL ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms cubic-bezier(.16,1,.3,1), transform 700ms cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }
.reveal--delay-4 { transition-delay: 320ms; }

/* ── TRUST BAR ───────────────────────────────────────────────── */
.trust-bar { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--sp-5) 0; display: flex; align-items: center; justify-content: center; gap: var(--sp-10); flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: var(--sp-2); font-size: 0.8rem; font-weight: 700; color: var(--muted); }

.pricing-section.section--flush-top { padding-top: 96px; }

/* ============================================================
   Responsive Enhancement Pack
   ============================================================ */
html, body { overflow-x: clip; }
.nav__brand-text { min-width: 0; }
.nav__brand-text small { white-space: nowrap; }

@media (max-width: 1200px) {
  .nav__inner { gap: var(--sp-4); }
  .nav__links { gap: var(--sp-4); }
  .nav__actions .btn { padding-inline: var(--sp-4); }
}

@media (max-width: 768px) {
  .nav__inner { min-height: 72px; }
  .nav__brand { max-width: calc(100% - 60px); }
  .nav__brand-mark { width: 42px; height: 42px; }
  .nav__brand-mark img { width: 88px; height: 35px; }
  .nav__brand-text { font-size: 0.95rem; }
  .nav__brand-text small { font-size: 0.58rem; letter-spacing: 0.06em; }
  .btn--lg { min-height: 50px; padding-inline: var(--sp-5); font-size: 0.94rem; }
  .hero__title { max-width: none; }
  .hero__sub { font-size: 1rem; }
  .hero__actions { gap: var(--sp-2); }
  .trust-row { flex-direction: column; align-items: flex-start; }
  .section-header h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .cta-band { padding: var(--sp-7) var(--sp-5); }
  .cta-band h2 { max-width: none; }
  .cta-actions { width: 100%; }
}

@media (max-width: 640px) {
  .btn--lg, .hero__actions .btn, .cta-actions .btn { width: 100%; }
  .nav__mobile { padding: var(--sp-3); }
  .nav__mobile a { padding-inline: var(--sp-3); }
  .hero-badge { font-size: 0.72rem; padding: 8px 12px; }
  .hero__title { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .hero__sub { line-height: 1.7; }
  .card, .panel, .highlight-panel, .dashboard { padding: var(--sp-5); }
  .cta-band { text-align: center; justify-content: center; }
  .cta-actions { justify-content: center; }
  .trust-bar { gap: var(--sp-5); }
  .ticker__inner { gap: var(--sp-8); animation-duration: 28s; }
  .ticker__item { font-size: 0.76rem; }
}

@media (max-width: 480px) {
  .chip-strip { grid-template-columns: 1fr; }
  .dashboard__stats { grid-template-columns: 1fr; }
  .trust-row { font-size: 0.78rem; }
  .footer__grid { gap: var(--sp-6); }
}
