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

:root {
  --brand: #f58220;
  --brand-dark: #dd6f10;
  --brand-soft: #fff4e9;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --footer: #111827;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-sm: 0 8px 22px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 16px 34px rgba(17, 24, 39, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--surface-soft);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Blazor runtime error bar: hidden by default, shown by framework on real errors. */
#blazor-error-ui {
  background: #fff3cd;
  color: #1f2937;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem;
  position: fixed;
  width: 100%;
  z-index: 2000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.section-center {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* NAV */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 76px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.lp-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: #374151;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--brand-dark);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--brand);
  color: #fff;
}

.btn-top-cta {
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
}

.btn-top-cta:hover { background: var(--brand-dark); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #374151;
  cursor: pointer;
}

.menu-toggle .material-icons {
  font-size: 21px;
}

.nav-cta-mobile {
  display: none;
}

/* HERO */
.hero {
  background: linear-gradient(180deg, #fff 0%, #fff8f2 100%);
  padding: 36px 0 26px;
  border-bottom: 1px solid #f1f5f9;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff4de;
  color: #a16207;
  font-size: 12px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 16px 0 6px;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.05;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 40px);
  color: var(--brand);
}

.hero-copy p {
  margin: 18px 0 20px;
  color: #4b5563;
  line-height: 1.75;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.btn-primary,
.btn-secondary,
.btn-light,
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: .2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-secondary {
  background: #fff;
  color: #374151;
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  background: #f9fafb;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  background: #fff;
  border: 1px solid var(--line);
  color: #4b5563;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.hero-media {
  background: linear-gradient(135deg, #fff4e8, #fff);
  border: 1px solid #fde2c8;
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow-md);
}

.hero-media img {
  width: 100%;
  border-radius: 16px;
}

/* SHARED SECTION */
section { padding: 46px 0; }

.section-heading {
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 800;
}

/* PROBLEMS */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.problem-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
}

.problem-card .material-icons {
  color: var(--brand);
  font-size: 26px;
}

.problem-card h4 {
  margin: 8px 0 6px;
  font-size: 16px;
}

.problem-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* RFID STRIP */
.rfid-strip {
  background: linear-gradient(100deg, #f97316 0%, #ff9f3e 60%, #ffc36a 100%);
  color: #fff;
}

.strip-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}

.strip-copy h3 {
  margin: 0 0 12px;
  font-size: 30px;
}

.strip-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.strip-copy li {
  position: relative;
  padding-left: 18px;
  font-weight: 600;
}

.strip-copy li::before {
  content: '•';
  position: absolute;
  left: 0;
}

.strip-copy p {
  margin: 14px 0 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.strip-media img {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* KPI */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.kpi-card strong {
  display: block;
  color: var(--brand);
  font-size: 40px;
  line-height: 1;
}

.kpi-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
}

/* STEPS */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.step-no {
  color: var(--brand);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.step-card h4 {
  margin: 0 0 4px;
  font-size: 16px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.step-card img {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* INDUSTRIES */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.industry-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.industry-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: 10px;
  color: #f59e0b;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
}

.industry-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.industry-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* SOFTWARE */
.software {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.software-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.software-copy h3 {
  margin: 0 0 14px;
  font-size: 36px;
}

.software-copy ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #4b5563;
  line-height: 1.8;
}

.software-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

/* CLIENTS */
.client-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.client-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
}

.client-logo img {
  max-width: 100%;
  max-height: 30px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.client-logo-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  letter-spacing: .2px;
  line-height: 1.2;
  text-align: center;
}

.client-logo.logo-fallback .client-logo-name {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  letter-spacing: .3px;
}

/* CTA */
.contact-cta {
  background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
  color: #fff;
  padding: 28px 0;
}

.contact-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.contact-cta-grid h3 {
  margin: 0 0 6px;
  font-size: 30px;
}

.contact-cta-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.cta-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.demo-intro { align-self: start; }

.demo-benefits {
  margin: 14px 0 0;
  padding-left: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
}

.demo-form-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.demo-form-card h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 20px;
}

.demo-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.demo-field label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.demo-field input,
.demo-field select,
.demo-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  font-family: inherit;
  font-size: 14px;
}

.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.demo-field-full {
  grid-column: 1 / -1;
}

.demo-submit {
  margin-top: 10px;
  width: 100%;
  border-color: transparent;
}

.form-error-v2 {
  margin-bottom: 10px;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(254, 202, 202, 0.65);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.form-success-v2 {
  text-align: left;
  color: #fff;
}

.form-success-v2 h4 {
  margin-bottom: 8px;
}

.form-success-v2 p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
}

.btn-light {
  background: #fff;
  color: #c2410c;
}

.btn-light:hover { background: #f8fafc; }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* CONTACT */
.contact-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.contact-card h4 {
  margin: 0 0 10px;
  font-size: 20px;
}

.contact-card p {
  margin: 0 0 8px;
  color: #4b5563;
  line-height: 1.6;
}

.contact-map {
  padding: 0;
  overflow: hidden;
}

.contact-map #map {
  min-height: 100%;
  height: 100%;
}

/* FOOTER */
.lp-footer {
  background: var(--footer);
  color: #cbd5e1;
  padding: 36px 0;
}

.footer-grid-v2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}

.footer-brand-v2 img {
  height: 44px;
  margin-bottom: 12px;
}

.footer-grid-v2 h5 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
}

.footer-grid-v2 p {
  margin: 0 0 8px;
  line-height: 1.7;
}

.footer-company {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .2px;
}

.footer-info {
  margin: 0 0 8px;
  line-height: 1.7;
}

.footer-label {
  color: #94a3b8;
  font-weight: 700;
}

.footer-value {
  color: #e2e8f0;
}

.footer-group-title {
  margin: 10px 0 4px;
  color: #f8fafc;
  font-weight: 700;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  margin: 0 0 8px;
  text-decoration: none;
}

.social-link-icon {
  font-size: 18px;
  color: #f59e0b;
}

.social-link:hover {
  color: #fff;
}

.footer-link {
  display: block;
  color: #93c5fd;
  text-decoration: none;
  line-height: 1.8;
  word-break: break-word;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-sites-row {
  grid-column: 1 / -1;
  margin-bottom: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.footer-sites-title {
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 800;
}

.footer-sites-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.footer-site-card {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
  transition: transform .2s ease, border-color .2s ease;
}

.footer-site-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.75);
}

.footer-site-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.footer-site-name {
  display: block;
  color: #f8fafc;
  font-weight: 700;
  font-size: 14px;
  margin: 8px 10px 2px;
}

.footer-site-url {
  display: block;
  color: #93c5fd;
  font-size: 12px;
  margin: 0 10px 10px;
  word-break: break-word;
}

/* ANIMATIONS */
.fade-up, .fly-in-left, .fly-in-right, .zoom-in {
  opacity: 0;
  transition: all .8s ease;
}

.fade-up { transform: translateY(28px); }
.fly-in-left { transform: translateX(-28px); }
.fly-in-right { transform: translateX(28px); }
.zoom-in { transform: scale(0.96); }
.visible { opacity: 1 !important; transform: none !important; }

/* TABLET */
@media (max-width: 1100px) {
  .hero-grid,
  .software-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .industry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-grid-v2 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-sites-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-map {
    grid-column: 1 / -1;
    min-height: 240px;
  }
}

/* MOBILE */
@media (max-width: 820px) {
  .lp-nav {
    height: auto;
    padding: 10px 14px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow-sm);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active,
  .nav-links a:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
  }

  .nav-cta-mobile {
    display: inline-flex;
    justify-content: center;
    margin-top: 6px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
  }

  .btn-top-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .problem-grid,
  .kpi-grid,
  .step-grid,
  .industry-grid,
  .client-row,
  .footer-grid-v2 {
    grid-template-columns: 1fr 1fr;
  }

  .strip-grid,
  .contact-cta-grid,
  .contact-grid-v2 {
    grid-template-columns: 1fr;
  }

  .demo-form-grid {
    grid-template-columns: 1fr;
  }

  .section-center {
    width: min(1200px, calc(100% - 24px));
  }

  .footer-sites-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy p,
  .contact-cta-grid p {
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  section { padding: 34px 0; }

  .hero-copy h1 { font-size: 34px; }
  .hero-copy h2 { font-size: 28px; }

  .problem-grid,
  .kpi-grid,
  .step-grid,
  .industry-grid,
  .client-row,
  .footer-grid-v2 {
    grid-template-columns: 1fr;
  }

  .hero-tags span,
  .btn-primary,
  .btn-secondary,
  .btn-light,
  .btn-outline-light {
    width: 100%;
  }

  .footer-sites-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    grid-template-columns: 1fr;
  }

  .step-card img {
    width: 100%;
    height: 130px;
  }
}

/* ADMIN */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: #0f172a; color: #fff; padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.admin-sidebar .brand { font-weight: 800; font-size: 1.1rem; padding: 0 .5rem 1.5rem; border-bottom: 1px solid #1e293b; margin-bottom: 1rem; }
.admin-sidebar .brand span { color: var(--brand); }
.sidebar-link { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: 10px; color: #94a3b8; font-weight: 500; cursor: pointer; transition: all .2s; border: none; background: transparent; width: 100%; text-align: left; font-size: .95rem; }
.sidebar-link:hover, .sidebar-link.active { background: rgba(245, 130, 32, 0.15); color: var(--brand); }
.admin-main { background: #f8fafc; padding: 2rem; overflow-y: auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.5rem; font-weight: 800; }
.badge-count { background: var(--brand); color: #fff; border-radius: 50px; padding: .15rem .6rem; font-size: .75rem; font-weight: 700; margin-left: .5rem; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.data-table th { background: #f1f5f9; padding: .875rem 1rem; text-align: left; font-size: .85rem; font-weight: 700; color: #64748b; }
.data-table td { padding: .875rem 1rem; border-top: 1px solid #e2e8f0; font-size: .9rem; vertical-align: middle; }
.data-table tr:hover td { background: #fafafa; }
.status-badge { padding: .25rem .75rem; border-radius: 50px; font-size: .78rem; font-weight: 600; }
.status-new { background: #dbeafe; color: #1d4ed8; }
.status-contacted { background: #fef3c7; color: #92400e; }
.status-scheduled { background: #d1fae5; color: #065f46; }
.status-closed { background: #f1f5f9; color: #64748b; }
.content-editor { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 1.5rem; }
.content-editor h3 { font-weight: 700; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid #e2e8f0; }
.content-field { margin-bottom: 1rem; }
.content-field label { display: block; font-size: .85rem; font-weight: 600; color: #64748b; margin-bottom: .4rem; }
.content-field input, .content-field textarea { width: 100%; padding: .7rem .9rem; border: 1.5px solid #e2e8f0; border-radius: 10px; font-family: inherit; font-size: .95rem; transition: border .2s; }
.content-field input:focus, .content-field textarea:focus { outline: none; border-color: var(--brand); }
