/* Invoxa CRM — marketing site
   Direction: ink + ice surface + emerald trust accent (not purple / cream-serif) */

:root {
  --ink: #0c1218;
  --ink-soft: #1a2430;
  --surface: #f2f5f8;
  --surface-2: #e4ebf1;
  --paper: #fafbfc;
  --muted: #5a6b7a;
  --line: #c9d4de;
  --accent: #0d9f6e;
  --accent-deep: #087a55;
  --accent-glow: rgba(13, 159, 110, 0.18);
  --warn: #c45c26;
  --max: 1120px;
  --radius: 14px;
  --font-display: "Syne", "Avenir Next", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 18px 50px rgba(12, 18, 24, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250, 251, 252, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .container.nav,
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav__links a[aria-current="page"],
.nav__links a:hover {
  color: var(--accent-deep);
}

.nav__cta {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn--primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

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

.btn--ink:hover {
  background: var(--ink-soft);
  color: #fff;
}

.btn--block {
  width: 100%;
}

/* —— Hero (one composition) —— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
  color: #f4f7fa;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(13, 159, 110, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(168, 197, 212, 0.18), transparent 50%),
    linear-gradient(160deg, #081018 0%, #12202c 48%, #0a3d32 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero__inner {
  position: relative;
  max-width: 38rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  color: #fff;
}

.hero__brand span {
  color: #7de8b8;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: rgba(242, 245, 248, 0.82);
  font-size: 1.1rem;
  max-width: 34ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn--primary {
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse-ring 2.8s var(--ease) infinite;
}

@keyframes pulse-ring {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 0 10px transparent;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section--alt {
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
}

.section--ink {
  background: var(--ink);
  color: #e8eef3;
}

.section--ink .muted {
  color: rgba(232, 238, 243, 0.7);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 0.65rem;
}

.section--ink .section__eyebrow {
  color: #7de8b8;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  max-width: 18ch;
}

.section__intro {
  margin: 0 0 2.5rem;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.05rem;
}

.muted {
  color: var(--muted);
}

/* Value strip — not cards */
.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value-strip article {
  padding: 1.75rem 1.35rem;
  border-right: 1px solid var(--line);
}

.value-strip article:last-child {
  border-right: none;
}

.value-strip h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.value-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Feature list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-grid li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.feature-grid h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

/* Mode split */
.mode-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.mode-split h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.mode-split ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.mode-split li + li {
  margin-top: 0.35rem;
}

.divider-v {
  width: 1px;
  background: var(--line);
  justify-self: center;
  align-self: stretch;
}

/* Platforms */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.platform svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Pricing teaser / page */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.plan:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.plan--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #f0faf6 0%, var(--paper) 55%);
}

.plan__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.plan__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1;
}

.plan__price small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.plan__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.plan ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, var(--accent-glow), transparent 55%),
    linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
  line-height: 1.1;
  max-width: 16ch;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-deep);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.5;
}

/* Content prose */
.prose {
  max-width: 68ch;
}

.prose h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 2.5rem 0 0.75rem;
  font-size: 1.55rem;
}

.prose h3 {
  font-family: var(--font-display);
  margin: 1.75rem 0 0.5rem;
  font-size: 1.2rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

.doc-toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.doc-toc h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.doc-toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.doc-toc a {
  text-decoration: none;
  font-weight: 600;
}

/* Download OS rows */
.download-list {
  display: grid;
  gap: 1rem;
}

.download-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.download-item h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.download-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.note {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  margin: 1.5rem 0;
  color: var(--ink-soft);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent-deep);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0.75rem 0 0.25rem;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4rem 0;
}

.cta-band h2 {
  margin-inline: auto;
  max-width: 18ch;
}

.cta-band p {
  margin: 0.75rem auto 1.5rem;
  color: rgba(232, 238, 243, 0.75);
  max-width: 40ch;
}

.cta-band .hero__actions {
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(232, 238, 243, 0.78);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer h2 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7de8b8;
  margin: 0 0 0.85rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  color: rgba(232, 238, 243, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: rgba(232, 238, 243, 0.55);
  font-size: 0.88rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--surface);
}

/* Responsive */
@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav__panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nav__panel.is-open {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .value-strip {
    grid-template-columns: 1fr;
  }

  .value-strip article {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .value-strip article:last-child {
    border-bottom: none;
  }

  .feature-grid,
  .mode-split {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    padding-top: 4rem;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero .btn--primary {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* —— Production utilities —— */
.btn--on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--on-dark:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn--disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn.is-soon {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
  pointer-events: none;
  cursor: default;
}

.mt-2 {
  margin-top: 2rem;
}

.page-404 {
  min-height: 70vh;
  display: grid;
  align-content: center;
}

.footer-compact .footer-bottom {
  border: 0;
  padding-top: 0;
}

.table-caption {
  caption-side: bottom;
  padding-top: 0.75rem;
  text-align: left;
}

.nav__panel.is-open {
  display: flex;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 781px) {
  .nav__panel {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    border: 0;
    background: transparent;
  }
}
