/* ============================================================
   Ops365 (parent company) central site — standalone, no build step.
   Same design language/tokens as the sibling marketing-site/ and
   invoicehub/marketing-site/, so all three feel like one family —
   this page's job is routing a visitor to the right product, not
   re-selling either one in depth.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --ink: #0e1116;
  --ink-muted: #5b6472;
  --border: #e7e9ed;

  --primary: #2f6fed;
  --primary-dark: #1f4fb8;
  --purple: #7c3aed;
  --green: #12b76a;
  --orange: #f2a900;

  --gradient-primary: linear-gradient(135deg, #2f6fed 0%, #7c3aed 100%);
  --gradient-warm: linear-gradient(135deg, #f2a900 0%, #ef5a50 100%);
  --gradient-cool: linear-gradient(135deg, #12b76a 0%, #14b8a6 100%);
  --gradient-text: linear-gradient(135deg, #2f6fed 0%, #7c3aed 55%, #ef5a50 100%);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(14, 17, 22, 0.06);
  --shadow-md: 0 12px 40px rgba(14, 17, 22, 0.10);
  --shadow-lg: 0 24px 70px rgba(14, 17, 22, 0.16);

  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0f;
    --bg-alt: #131519;
    --ink: #f2f4f7;
    --ink-muted: #a2acba;
    --border: #22262d;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  }
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(47, 111, 237, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(47, 111, 237, 0.6); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-large { padding: 16px 30px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid var(--border);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
}
.main-nav a:not(.btn):hover { opacity: 1; }
.nav-toggle { display: none; background: none; border: none; width: 36px; height: 28px; flex-direction: column; justify-content: space-between; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* Language switcher — pure CSS (:hover/:focus-within) dropdown, same
   pattern as the sibling marketing-site's Products dropdown, so it keeps
   working with no JS (just not translating anything). Options are
   <button data-lang> elements; i18n.js wires the click handlers. */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  cursor: pointer;
}
.nav-dropdown-caret {
  display: block;
  opacity: 0.55;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle { opacity: 1; }
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret { opacity: 0.85; transform: translateY(1px); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -6px);
  margin-top: 14px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 20;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dropdown-menu button {
  display: flex;
  padding: 8px 10px;
  border-radius: calc(var(--radius-sm) - 4px);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.nav-dropdown-menu button:hover { background: var(--bg-alt); }
.lang-switcher .lang-current { font-weight: 600; }
.lang-switcher .lang-option.active {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 90px;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform;
}
.blob-1 { width: 480px; height: 480px; background: var(--gradient-primary); top: -160px; left: -120px; }
.blob-2 { width: 380px; height: 380px; background: var(--gradient-warm); top: 40px; right: -140px; opacity: 0.35; }
.blob-3 { width: 320px; height: 320px; background: var(--gradient-cool); bottom: -180px; left: 40%; opacity: 0.3; }

.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 750;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-note {
  margin: 28px 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero-note svg { width: 16px; height: 16px; stroke: var(--primary); flex-shrink: 0; }

/* ---------- Section shared ---------- */
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 750;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 12px;
}
.section-sub {
  text-align: center;
  color: var(--ink-muted);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ---------- Products ---------- */
.products { padding: 100px 0; }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 56px;
  align-items: stretch;
}
.product-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* Fixed aspect-ratio + object-fit:cover — normalizes both cards to the
   same visual height regardless of each source screenshot's own natural
   dimensions (they never quite match), and means a future screenshot swap
   never needs a hand-tuned pixel crop to line up with its sibling card
   again. object-position: top keeps whatever's most informative (a page's
   header/toolbar/first charts) in frame rather than centering blindly. */
.product-card-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--border); }
.product-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; transition: transform 0.4s ease; }
.product-card:hover .product-card-image img { transform: scale(1.03); }
.product-card-body { padding: 30px 32px 34px; flex: 1; display: flex; flex-direction: column; }
.product-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.product-card h3 { font-size: 1.5rem; margin: 0 0 10px; letter-spacing: -0.01em; }
.product-card p { color: var(--ink-muted); font-size: 1rem; margin: 0 0 20px; flex: 1; }
.product-card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.product-card:hover .product-card-link { gap: 10px; }
.product-card-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }

.product-card-more {
  background: transparent;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  color: var(--ink-muted);
}
.product-card-more strong { color: var(--ink); font-size: 1.15rem; margin-bottom: 8px; display: block; }
.product-card-more p { margin: 0; font-size: 0.95rem; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ---------- Story / About ---------- */
.story { padding: 100px 0; background: var(--bg-alt); }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story-copy .eyebrow { margin-bottom: 18px; }
.story-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.4rem); font-weight: 750; letter-spacing: -0.01em; margin: 0 0 20px; }
.story-copy p { color: var(--ink-muted); font-size: 1.05rem; margin: 0 0 18px; }
.story-copy p:last-child { margin-bottom: 0; }
.story-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px 10px 10px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.story-badge-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gradient-warm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.story-badge-icon svg { width: 16px; height: 16px; stroke: #fff; }
.story-badge span { font-size: 0.88rem; font-weight: 600; }

.story-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.story-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.story-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 750;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.story-stat span { color: var(--ink-muted); font-size: 0.9rem; }

@media (max-width: 900px) {
  .story-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 110px 0;
  text-align: center;
  background: var(--gradient-primary);
  color: #fff;
}
.final-cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 14px; font-weight: 750; }
.final-cta p { font-size: 1.1rem; opacity: 0.92; max-width: 520px; margin: 0 auto 32px; }
.final-cta .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: 0 12px 30px -8px rgba(0,0,0,0.3); }
.final-cta .btn-primary:hover { background: #fff; }
.final-cta .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.final-cta .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  line-height: 1;
  box-shadow: var(--shadow-md);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, box-shadow 0.2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { box-shadow: var(--shadow-lg); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; max-width: 340px; }
.footer-brand img { height: 30px; }
.footer-brand p { margin: 0; color: var(--ink-muted); font-size: 0.85rem; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { color: var(--ink); text-decoration: none; font-size: 0.92rem; opacity: 0.85; }
.site-footer nav a:hover { opacity: 1; }
.footer-copy { width: 100%; text-align: center; color: var(--ink-muted); font-size: 0.82rem; margin-top: 8px; }
.footer-location { width: 100%; text-align: center; color: var(--ink-muted); font-size: 0.82rem; margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.footer-location svg { width: 14px; height: 14px; stroke: var(--ink-muted); flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 64px 0 0 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 20px; transform: translateX(100%); transition: transform 0.3s ease; border-top: 1px solid var(--border); }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .hero { padding: 90px 0 60px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; text-align: center; max-width: none; }
  .story-stats { grid-template-columns: 1fr; }

  /* No hover on touch, so the dropdown is just always expanded here — a
     small indented sublist under the toggle label. */
  .nav-dropdown { flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
  .nav-dropdown-toggle { cursor: default; opacity: 1; }
  .nav-dropdown-caret { display: none; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0;
    padding: 0 0 0 16px;
    border: none;
    box-shadow: none;
    min-width: 0;
    border-left: 2px solid var(--border);
  }
}
