/* =========================================================
   EntryPoint — Electronic Visitor Management
   Stylesheet
   ========================================================= */

:root {
  --blue-900: #071d3a;
  --blue-800: #0b294f;
  --blue-700: #0752bc;
  --blue-600: #1463d9;
  --blue-500: #2582ff;
  --blue-100: #eaf5ff;
  --blue-50:  #f5faff;

  --ink: #0d1b35;
  --ink-soft: #526177;
  --paper: #ffffff;
  --paper-soft: #f5faff;
  --border: #d8e6f5;

  --success: #16a34a;
  --error: #dc2626;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(7, 29, 58, 0.08);
  --shadow-md: 0 12px 32px rgba(7, 29, 58, 0.12);
  --shadow-lg: 0 24px 60px rgba(7, 29, 58, 0.16);

  --container: 1180px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--blue-900); }
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-700);
  color: #fff;
  padding: 8px 16px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============== Focus visibility (keyboard navigation) ============== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link:focus-visible { outline-offset: 0; }

/* ============== Buttons ============== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-100);
}
.btn-ghost:hover { background: var(--blue-50); }
.btn-light { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; text-align: center; }

/* ============== Header / Nav ============== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--transition);
}
.navbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 32px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-900);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: var(--blue-50); color: var(--blue-700); }
.nav-link.active:not(.nav-cta) { background: var(--blue-100); color: var(--blue-700); }
.nav-cta {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--blue-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============== Hero ============== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 84px;
  background: linear-gradient(180deg, var(--blue-50) 0%, #ffffff 60%);
}
.hero-parallax { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.5; }
.shape-1 { width: 340px; height: 340px; top: -120px; right: -80px; background: radial-gradient(circle, var(--blue-100), transparent 70%); }
.shape-2 { width: 260px; height: 260px; bottom: -100px; left: -60px; background: radial-gradient(circle, var(--blue-100), transparent 70%); opacity: 0.35; }
.shape-3 { width: 160px; height: 160px; top: 40%; left: 46%; background: radial-gradient(circle, var(--blue-500), transparent 70%); opacity: 0.15; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 64px;
}
.hero-copy { text-align: left; }
.eyebrow {
  color: var(--blue-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.3rem);
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 540px;
}
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.hero-badges { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.hero-badges span {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.92rem; font-weight: 700; color: var(--blue-900);
}
.hero-badges span::before {
  content: "";
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  background: var(--blue-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}

.hero-media { display: flex; justify-content: center; position: relative; z-index: 1; }
.hero-media-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.6);
}
.hero-illustration { width: 100%; height: auto; display: block; }

/* ============== Trust strip ============== */
.trust-strip { background: var(--blue-900); padding: 18px 0; }
.trust-inner p {
  margin: 0;
  text-align: center;
  color: var(--blue-100);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============== Sections (generic) ============== */
.section { padding: 100px 0; }
.section-alt { background: var(--paper-soft); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }
.section-sub.light { color: var(--blue-100); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============== Icon badges (shared) ============== */
.icon-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-100);
  color: var(--blue-700);
  margin-bottom: 20px;
  flex: 0 0 auto;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.solid {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* ============== Features ============== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px 26px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0; }

/* ============== Benefits ============== */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.benefit-card {
  padding: 26px 20px;
  border-radius: var(--radius);
  background: var(--paper-soft);
  border: 1px solid var(--border);
  text-align: center;
}
.benefit-card .icon-badge { margin: 0 auto 16px; }
.benefit-card p { margin: 0; font-weight: 700; font-size: 0.92rem; color: var(--blue-900); }

/* ============== Management options ============== */
.management-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.management-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.management-card .icon-badge.solid { margin-bottom: 18px; }
.management-card h3 { font-size: 1.1rem; }
.management-card p { color: var(--ink-soft); margin-bottom: 0; }

/* ============== Visibility / dashboard split ============== */
.visibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.checklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-weight: 600;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 7px; top: 8px;
  width: 8px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.dashboard-mock {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.dashboard-bar { display: flex; gap: 6px; padding: 14px 16px; background: var(--blue-900); }
.dashboard-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.dashboard-bar span:nth-child(1) { background: #f87171; }
.dashboard-bar span:nth-child(2) { background: #fbbf24; }
.dashboard-bar span:nth-child(3) { background: #34d399; }
.dashboard-body { padding: 20px; background: var(--blue-50); }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dashboard-stat {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px; text-align: center;
}
.dashboard-stat strong { display: block; font-size: 1.3rem; color: var(--blue-900); }
.dashboard-stat span { font-size: 0.72rem; color: var(--ink-soft); }
.dashboard-panels { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 10px; }
.dashboard-map {
  position: relative;
  min-height: 120px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue-100), #dbeeff);
  border: 1px solid var(--border);
}
.dashboard-map .pin {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue-600); box-shadow: 0 0 0 5px rgba(20, 99, 217, 0.16);
}
.dashboard-map .pin:nth-child(1) { left: 28%; top: 34%; }
.dashboard-map .pin:nth-child(2) { left: 55%; top: 58%; }
.dashboard-map .pin:nth-child(3) { left: 74%; top: 26%; }
.dashboard-list { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.dashboard-list .line { height: 9px; background: var(--blue-100); border-radius: 20px; margin: 10px 0; }
.dashboard-list .line:first-child { margin-top: 0; }
.dashboard-list .line:last-child { margin-bottom: 0; }

/* ============== CTA band ============== */
.cta-band {
  background: linear-gradient(120deg, var(--blue-700), var(--blue-900));
  border-radius: var(--radius);
  padding: 44px 48px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: var(--blue-100); margin: 0; }

/* ============== Process ============== */
.process-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 10%; right: 10%; top: 28px;
  border-top: 2px dashed var(--border);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step .icon-badge.solid { margin: 0 auto 16px; }
.step h4 { margin: 0; font-size: 0.98rem; }

/* ============== Contact ============== */
.contact-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.contact-form {
  margin-top: 32px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  margin-bottom: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.form-note {
  margin: 14px 0 0;
  text-align: center;
  font-weight: 600;
  color: var(--success);
  min-height: 1.2em;
}
.form-note.error { color: var(--error); }
.form-privacy-note {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Honeypot: kept in the DOM rather than display:none, since some bots skip
   fields hidden that obviously. */
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.cf-turnstile { margin: 4px 0 18px; }

/* ============== Footer ============== */
.site-footer { background: var(--blue-900); color: var(--blue-100); padding-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { height: 28px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0 0 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--blue-100); font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-trust { display: flex; flex-direction: column; gap: 10px; }
.footer-trust span { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 600; }
.footer-trust svg { width: 18px; height: 18px; flex: 0 0 auto; }
.footer-provider {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  color: rgba(255,255,255,0.7); font-size: 0.85rem;
}
.footer-provider a { color: #fff; font-weight: 700; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ============== Back to top ============== */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--blue-700);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-800); }

/* ============== Responsive ============== */
@media (max-width: 1050px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .management-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 84px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--paper);
    padding: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 14px 16px; }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-media { order: -1; }
  .hero-media-frame { max-width: 340px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-badges { justify-content: center; }

  .section { padding: 64px 0; }
  .visibility-grid { grid-template-columns: 1fr; }
  .visibility-grid .dashboard-mock { order: -1; }
  .cta-band { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links, .footer-trust { align-items: center; }
}

@media (max-width: 650px) {
  .feature-grid, .benefit-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
