/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0f172a;
  background: #F8FAFC;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ===== Tokens ===== */
:root {
  --navy: #0B1120;
  --navy-2: #0d1428;
  --navy-3: #111a35;
  --blue: #2563EB;
  --blue-hover: #1d4ed8;
  --blue-soft: rgba(37, 99, 235, 0.12);
  --teal: #016F6F;
  --teal-hover: #015858;
  --light: #F8FAFC;
  --light-2: #eef2f7;
  --line-dark: rgba(255,255,255,0.08);
  --line-light: rgba(15,23,42,0.08);
  --text-dark: #0f172a;
  --text-mute-dark: #64748b;
  --text-mute-light: rgba(255,255,255,0.65);
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 6px 24px rgba(15,23,42,0.06);
  --shadow-strong: 0 18px 60px rgba(11,17,32,0.45);
}

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

/* ===== Sections ===== */
.section { padding: 112px 0; position: relative; }
.section-tight { padding: 96px 0; }
.dark { background: var(--navy); color: #fff; }
.light { background: var(--light); color: var(--text-dark); }

.section-head { max-width: 760px; margin: 0 0 56px; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 14px 0 18px;
}
.section-lead {
  font-size: 1.125rem;
  color: var(--text-mute-dark);
  max-width: 620px;
}
.dark .section-lead { color: var(--text-mute-light); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-label.teal { color: var(--teal); border-color: rgba(1,111,111,0.18); }
.section-icon { width: 16px; height: 16px; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 12px;
}
.eyebrow-teal { color: var(--teal); }

.section-cta { margin-top: 56px; text-align: center; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,17,32,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
  color: #fff;
}
.nav.scrolled {
  background: rgba(11,17,32,0.92);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: 0.14em;
  color: #fff;
}
.brand-mark { width: 26px; height: 26px; color: var(--blue); }
.brand-word { font-size: 0.95rem; }

.nav-links {
  display: flex; gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  transition: color 160ms ease;
  position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--blue);
  transition: width 200ms ease;
}
.nav-links a:hover::after { width: 100%; }

.nav .btn-pill,
.nav .nav-cta {
  margin-left: 8px;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  background: #2563EB;
  color: #fff;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}
.nav .nav-cta:hover {
  background: #1d4ed8;
  color: #fff;
}

/* Footer CTA */
.footer-cta {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  margin: 12px 0 0;
}
.footer-cta a {
  color: #3B82F6;
  font-weight: 600;
  text-decoration: none;
}
.footer-cta a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px; width: 22px;
  background: #fff;
  margin: 0 auto;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-pill { padding: 11px 20px; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 20px rgba(37,99,235,0.35); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: var(--blue); color: #fff; background: var(--blue-soft); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 6px 20px rgba(1,111,111,0.25); }
.btn-teal:hover { background: var(--teal-hover); }
.btn-teal-outline { background: transparent; color: var(--teal); border-color: rgba(1,111,111,0.3); }
.btn-teal-outline:hover { background: rgba(1,111,111,0.08); border-color: var(--teal); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 160px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  opacity: 0.85;
}
.hero-bg svg { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 100%, rgba(37,99,235,0.18), transparent 60%),
              linear-gradient(180deg, rgba(11,17,32,0.6) 0%, var(--navy) 100%);
}
.hero-content { max-width: 880px; }
.hero-headline {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 18px 0 24px;
  background: linear-gradient(180deg, #fff 0%, #cbd5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,0.78);
  max-width: 700px;
  margin: 0 0 36px;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
  display: flex;
  flex-direction: column;
}
.card.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}
.card.glass:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,0.5);
  background: linear-gradient(180deg, rgba(37,99,235,0.08) 0%, rgba(255,255,255,0.02) 100%);
}
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 22px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 {
  font-size: 1.25rem; font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.card p {
  color: rgba(255,255,255,0.7);
  margin: 0 0 22px;
  flex: 1;
}
.card-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 200ms ease;
}
.card-link:hover { gap: 10px; }

/* ===== Transition divider ===== */
.transition-divider {
  height: 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--light) 100%);
  position: relative;
  margin-top: -1px;
}
.transition-divider::before {
  content: '';
  display: block;
  height: 80px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--light) 100%);
}

/* ===== Software / Product cards ===== */
.product-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.product-card.muted {
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  opacity: 0.85;
}
.product-card-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  align-items: stretch;
}
.product-card.muted .product-card-inner {
  grid-template-columns: 1fr;
}
.product-info {
  padding: 56px 48px;
  display: flex; flex-direction: column;
}
.product-wordmark {
  display: flex; align-items: center; gap: 14px;
  color: var(--teal);
  margin-bottom: 24px;
}
.product-mark { width: 32px; height: 32px; }
.wordmark-text { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-dark); }
.wm-accent { color: var(--teal); }
.product-tag {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 14px;
}
.product-tag.muted { color: var(--text-mute-dark); }
.product-card.muted .product-wordmark { color: var(--text-mute-dark); }
.product-card.muted .wordmark-text { color: var(--text-mute-dark); }
.product-desc {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin: 0 0 24px;
  line-height: 1.55;
}
.product-desc strong { color: var(--teal); font-weight: 600; }
.feature-list {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: grid; gap: 8px;
}
.feature-list li {
  position: relative; padding-left: 24px;
  color: var(--text-mute-dark);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 12px; height: 2px;
  background: var(--teal);
}
.product-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.product-visual {
  background: linear-gradient(135deg, #016F6F 0%, #014e4e 100%);
  display: grid; place-items: center;
  padding: 56px 40px;
  position: relative;
  overflow: hidden;
}
.product-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0%, transparent 40%);
}
.receipt-mockup {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}
.receipt-header {
  background: #f1f5f9;
  padding: 12px 16px;
  display: flex; gap: 6px;
  border-bottom: 1px solid var(--line-light);
}
.receipt-header .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.dot-r { background: #ef4444; }
.dot-y { background: #f59e0b; }
.dot-g { background: #10b981; }
.receipt-body { padding: 22px 20px 20px; }
.rline {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  margin-bottom: 12px;
}
.rline-title {
  height: 14px; width: 60%; background: #0f172a;
}
.rline.w70 { width: 70%; }
.rline.w50 { width: 50%; }
.rline-status {
  margin-top: 18px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(1,111,111,0.08);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
}
.rline-status svg { width: 18px; height: 18px; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 24px;
}
.about-text p {
  font-size: 1.05rem;
  color: #334155;
  margin: 0 0 18px;
}
.trust-line {
  margin-top: 24px !important;
  font-weight: 600;
  color: var(--teal) !important;
  letter-spacing: 0.02em;
}
.about-meta {
  display: grid;
  gap: 24px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-mute-dark);
}
.meta-value, .meta-link { font-weight: 600; color: var(--text-dark); }
.meta-link { color: var(--teal); }

/* ===== Support ===== */
.support-section { background: linear-gradient(180deg, #F8FAFC 0%, #eef2f7 100%); }
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.support-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.support-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--teal);
}
.support-card p {
  color: #334155;
  margin: 0 0 18px;
}
.support-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}
.support-list li { color: #334155; font-size: 0.95rem; }
.support-list a {
  color: var(--teal);
  font-weight: 600;
  border-bottom: 1px solid rgba(1,111,111,0.25);
  transition: border-color 160ms ease;
}
.support-list a:hover { border-color: var(--teal); }
.support-card .btn { align-self: flex-start; margin-top: auto; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
}
.contact-details {
  list-style: none; padding: 0; margin: 32px 0;
  display: grid; gap: 18px;
}
.contact-details li {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}
.cd-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}
.contact-details a, .contact-details span {
  color: #fff;
  font-weight: 500;
}
.contact-details a:hover { color: var(--blue); }

.contact-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid; gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
}
.form-row input, .form-row textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font: inherit;
  transition: border-color 160ms ease, background 160ms ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(37,99,235,0.06);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-status { margin: 6px 0 0; font-size: 0.9rem; color: rgba(255,255,255,0.7); min-height: 1.2em; }
.form-status.ok { color: #22c55e; }
.form-status.err { color: #f87171; }

/* ===== Footer ===== */
.footer { padding: 48px 0; border-top: 1px solid var(--line-dark); }
.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 36px;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: 0.14em; }
.footer-brand .brand-mark { color: var(--blue); }
.footer-copy { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin: 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 160ms ease;
}
.footer-links a:hover { color: var(--blue); }
.footer-tag {
  width: 100%;
  text-align: center;
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .product-card-inner { grid-template-columns: 1fr; }
  .product-visual { padding: 40px 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .section-tight { padding: 64px 0; }
  .hero { min-height: 80vh; padding: 140px 0 80px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { gap: 12px; padding: 12px 18px; }
  .nav .btn-pill { padding: 9px 16px; font-size: 0.82rem; }
  .card-grid { grid-template-columns: 1fr; }
  .product-info { padding: 36px 28px; }
  .contact-form { padding: 24px; }
  .contact-details li { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(11,17,32,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-dark);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 18px;
    margin: 0;
  }
}
