/* Marrytek — company site
   Restrained on purpose: the parent brand should not compete with the product
   brands it lists. One accent, generous whitespace, type does the work. */

:root {
  /* Light only — the site is intentionally white in every environment, so
     there is no prefers-color-scheme: dark block. color-scheme keeps native
     UI (scrollbars, focus rings) light too. */
  color-scheme: light;

  --bg:          #FFFFFF;
  --bg-alt:      #F7F6F3;
  --ink:         #16171B;
  --ink-soft:    #55585F;
  /* Darkened from #8A8C93 to clear WCAG AA (4.5:1) — it labels small text
     (eyebrows, meta, field hints), not just decoration. */
  --ink-faint:   #6C6F77;
  --rule:        #E9E6E0;
  /* Marrytek orange. --accent-strong is a shade down so white button text
     clears WCAG AA; --accent stays vibrant for the hero word, glyphs and rules. */
  --accent:        #E5610D;
  --accent-strong: #C64E08;
  --accent-soft:   #FCEBDD;

  --shell: 1080px;
  --step:  clamp(1rem, 0.6rem + 1.4vw, 1.125rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem;
  z-index: 10;
  background: var(--ink); color: var(--bg);
  padding: 0.6rem 1rem; border-radius: 6px;
}

/* --- header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

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

.brand-spark {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: var(--accent);
  margin-top: -6px;
  margin-left: 1px;
}
.brand-spark svg {
  width: 100%;
  height: 100%;
}

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.9375rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav a:hover, .nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Hamburger — hidden on desktop, the only nav control on narrow screens. */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s;
}

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

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 14px 30px rgba(20, 18, 15, 0.08);
  }
  .site-header.nav-open .nav { display: flex; }

  .nav a {
    padding: 0.95rem clamp(1.25rem, 5vw, 2.5rem);
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a:hover, .nav a:focus-visible {
    border-bottom-color: var(--rule);
    background: var(--bg-alt);
    color: var(--accent);
  }

  /* Bars morph into an X when the menu is open. */
  .site-header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --- hero --------------------------------------------------------------- */

.hero {
  padding-block: clamp(4rem, 12vw, 8.5rem) clamp(3.5rem, 9vw, 6rem);
}

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.2rem + 4.6vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 600;
  max-width: 16ch;
}

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

.lead {
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  max-width: 54ch;
  font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.25rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: color-mix(in srgb, var(--accent-strong) 88%, #000);
}

.btn-ghost {
  border-color: var(--rule);
  color: var(--ink);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--ink-soft);
}

/* --- sections ----------------------------------------------------------- */

.section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  border-top: 1px solid var(--rule);
}

.section-alt { background: var(--bg-alt); }

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.012em;
}

.section-lead {
  margin: 0.75rem 0 0;
  max-width: 50ch;
  color: var(--ink-soft);
}

/* --- about -------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.about-lead {
  margin: 0;
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.4375rem);
  line-height: 1.45;
  letter-spacing: -0.008em;
}

.about-body { margin: 0; color: var(--ink-soft); }
.about-body p { margin: 0 0 1rem; }
.about-body p:last-child { margin-bottom: 0; }

.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  padding-top: clamp(2rem, 4vw, 2.75rem);
}

@media (min-width: 720px) {
  .values { grid-template-columns: repeat(3, 1fr); }
}

.values h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}
.values p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }

/* --- products ----------------------------------------------------------- */

.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}

@media (min-width: 760px) {
  .products { grid-template-columns: 1fr 1fr; }
}

.product {
  background: var(--bg);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}

/* Same glyph as the constellation node, so card and diagram read as one set. */
.product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.product-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product:hover .product-icon {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.product h3 {
  margin: 0;
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Compound selector on purpose: the generic `.product p` rule below is more
   specific than a lone `.product-kicker`, so without this the kicker silently
   fell back to grey body text instead of the orange label it's meant to be.
   Strong shade because this is small text (needs 4.5:1, not the 3:1 the large
   hero accent gets away with). */
.product .product-kicker {
  margin: 0.25rem 0 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.product p { margin: 0; color: var(--ink-soft); font-size: 0.9688rem; }

.product-meta {
  margin-top: 1.25rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8438rem !important;
  color: var(--ink-faint) !important;
}

/* Card action. Live products link out to their own site; the ones not yet
   deployed use the muted variant and point at the enquiry form rather than a
   dead subdomain. */
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-strong);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}
.product-link-arrow { transition: transform 0.2s; }
.product-link:hover,
.product-link:focus-visible { gap: 0.6rem; }
.product-link:hover .product-link-arrow,
.product-link:focus-visible .product-link-arrow { transform: translateX(2px); }

.product-link--soon {
  color: var(--ink-faint);
  font-weight: 400;
}
.product-link--soon:hover,
.product-link--soon:focus-visible { color: var(--accent-strong); }

.products-note {
  margin: clamp(1.75rem, 3vw, 2.25rem) 0 0;
  max-width: 52ch;
  color: var(--ink-faint);
  font-size: 0.9375rem;
}

/* --- contact ------------------------------------------------------------ */

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: clamp(2rem, 4vw, 3rem) 0 0;
}

@media (min-width: 720px) {
  .contact { grid-template-columns: repeat(3, 1fr); }
}

.contact dt {
  font-size: 0.8125rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.contact dd {
  margin: 0;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
  line-height: 1.5;
}

.contact a {
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.15s;
}
.contact a:hover, .contact a:focus-visible { color: var(--accent); }

/* --- footer ------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem;
  font-size: 0.875rem;
  color: var(--ink-faint);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: center;
  justify-content: space-between;
}

.footer-contact { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--ink); }

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

/* ========================================================================
   Hero constellation
   One company powering several products: an orange core, four product tiles
   on spokes, pulses travelling outward. Slow and low-contrast so it settles
   rather than looping loudly. All decoration on top of markup that reads fine
   without it.
   ======================================================================== */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero-copy { min-width: 0; }

.hero-visual {
  justify-self: center;
  width: 100%;
  max-width: 440px;
}

.constellation {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Concentric rings — barely there, a slow-drifting field behind the tiles. */
.constellation .rings circle {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1;
  transform-origin: 210px 210px;
  animation: ring-drift 90s linear infinite;
}
.constellation .rings circle:nth-child(2) { animation-duration: 130s; animation-direction: reverse; }
.constellation .rings circle:nth-child(3) { animation-duration: 170s; }

@keyframes ring-drift { to { transform: rotate(360deg); } }

/* Small satellites drift along the rings — the group rotates about the svg
   centre (same transform-origin the rings use). */
.constellation .orbit {
  transform-box: view-box;
  transform-origin: 210px 210px;
  animation: ring-drift 44s linear infinite;
}
.constellation .orbit--b { animation-duration: 70s; animation-direction: reverse; }
.constellation .sat { fill: var(--accent); opacity: 0.55; }
.constellation .sat--sm { fill: var(--ink-faint); opacity: 0.4; }

/* Breathing glow behind the core. */
.constellation .core-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: core-breathe 3.4s ease-in-out infinite;
}
@keyframes core-breathe {
  0%, 100% { transform: scale(0.9);  opacity: 0.55; }
  50%      { transform: scale(1.18); opacity: 0.9;  }
}

/* Product nodes bob gently, each on its own phase, once they have settled in. */
.constellation .node--float {
  transform-box: view-box;
  animation: node-float 6s ease-in-out infinite;
  animation-delay: 1.4s;
}
/* Attribute selectors, not :nth-of-type — the product <g>s are not the first
   <g> children of the svg, so nth-of-type would miss them. Different phases
   keep the four from bobbing in unison. */
.constellation .node--float[aria-label="eHome"] { animation-duration: 7s;   animation-delay: 1.9s; }
.constellation .node--float[aria-label="Axiom"] { animation-duration: 6.5s; animation-delay: 1.6s; }
.constellation .node--float[aria-label="Ark"]   { animation-duration: 7.5s; animation-delay: 2.1s; }
@keyframes node-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Spokes draw themselves in once, then stay. */
.constellation .links line {
  stroke: var(--rule);
  stroke-width: 1.25;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-in 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.constellation .links line:nth-child(1) { animation-delay: 0.15s; }
.constellation .links line:nth-child(2) { animation-delay: 0.26s; }
.constellation .links line:nth-child(3) { animation-delay: 0.37s; }
.constellation .links line:nth-child(4) { animation-delay: 0.48s; }

@keyframes draw-in { to { stroke-dashoffset: 0; } }

/* Pulses ride each spoke outward from the core. The spokes are cardinal, so
   every pulse is a single-axis translate — no per-node maths. */
.constellation .pulse {
  fill: var(--accent);
  opacity: 0;
  animation: 2.9s ease-out infinite;
  animation-delay: 1.1s;
}
.constellation .pulse--up    { animation-name: pulse-up; }
.constellation .pulse--right { animation-name: pulse-right; animation-delay: 1.35s; }
.constellation .pulse--down  { animation-name: pulse-down;  animation-delay: 1.6s; }
.constellation .pulse--left  { animation-name: pulse-left;  animation-delay: 1.85s; }

@keyframes pulse-up    { 0%{transform:translateY(0);opacity:0} 20%{opacity:1} 80%{opacity:1} 100%{transform:translateY(-118px);opacity:0} }
@keyframes pulse-right { 0%{transform:translateX(0);opacity:0} 20%{opacity:1} 80%{opacity:1} 100%{transform:translateX(118px);opacity:0} }
@keyframes pulse-down  { 0%{transform:translateY(0);opacity:0} 20%{opacity:1} 80%{opacity:1} 100%{transform:translateY(118px);opacity:0} }
@keyframes pulse-left  { 0%{transform:translateX(0);opacity:0} 20%{opacity:1} 80%{opacity:1} 100%{transform:translateX(-118px);opacity:0} }

/* Product tiles */
.constellation .tile {
  fill: var(--bg);
  stroke: var(--rule);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  filter: drop-shadow(0 4px 12px rgba(20, 18, 15, 0.06));
  animation: tile-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: stroke 0.25s, fill 0.25s;
}
.constellation .glyph {
  color: var(--ink-soft);        /* currentColor for the stroked symbol */
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  animation: tile-in 0.6s ease forwards;
  transition: color 0.25s;
}
.constellation .node[aria-label="Unisales"] .tile,
.constellation .node[aria-label="Unisales"] .glyph { animation-delay: 0.5s; }
.constellation .node[aria-label="eHome"] .tile,
.constellation .node[aria-label="eHome"] .glyph { animation-delay: 0.62s; }
.constellation .node[aria-label="Axiom"] .tile,
.constellation .node[aria-label="Axiom"] .glyph { animation-delay: 0.74s; }
.constellation .node[aria-label="Ark"] .tile,
.constellation .node[aria-label="Ark"] .glyph { animation-delay: 0.86s; }

@keyframes tile-in {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}

.constellation .node text {
  fill: var(--ink-faint);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-anchor: middle;
  opacity: 0;
  animation: fade-in 0.6s ease forwards;
  animation-delay: 1s;
  transition: fill 0.25s;
}

@keyframes fade-in { to { opacity: 1; } }

/* Core: gradient orange tile with a white diamond mark. */
.constellation .node--core .tile {
  fill: url(#mt-core);
  stroke: none;
  animation-delay: 0.15s;
  filter: drop-shadow(0 8px 22px color-mix(in srgb, var(--accent) 50%, transparent));
}
.constellation .core-mark {
  fill: #fff;
  transform-box: view-box;
  opacity: 0;
  animation: fade-in 0.6s ease forwards;
  animation-delay: 0.35s;
}
.constellation .node--core text {
  fill: var(--ink);
  font-size: 14px;
  font-weight: 600;
  animation-delay: 0.45s;
}

/* Hover / keyboard focus lights a product tile. */
.constellation .node[tabindex] { cursor: default; }
.constellation .node[tabindex]:hover .tile,
.constellation .node[tabindex]:focus-visible .tile {
  stroke: var(--accent);
  fill: var(--accent-soft);
}
.constellation .node[tabindex]:hover .glyph,
.constellation .node[tabindex]:focus-visible .glyph { color: var(--accent); }
.constellation .node[tabindex]:hover text,
.constellation .node[tabindex]:focus-visible text { fill: var(--accent); }
.constellation .node:focus { outline: none; }
.constellation .node:focus-visible .tile { stroke-width: 2.5; }

/* ========================================================================
   Scroll reveal
   ======================================================================== */

/* Scoped to .js so a no-JS visitor is never left with invisible content —
   the observer that removes this is the only thing that can. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ========================================================================
   Product card interaction
   ======================================================================== */

.product {
  position: relative;
  transition: background 0.25s;
}

/* Accent rule that grows along the top edge on hover. */
.product::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.product:hover::before { transform: scaleX(1); }
.product:hover { background: var(--accent-soft); }

.product h3 { transition: color 0.25s; }
.product:hover h3 { color: var(--accent); }

/* ========================================================================
   Motion opt-out — everything above settles into its finished state.
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
  .constellation .rings circle,
  .constellation .links line,
  .constellation .tile,
  .constellation .glyph,
  .constellation .core-mark,
  .constellation .core-glow,
  .constellation .node--float,
  .constellation .node text {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
    transform: none;
  }
  .constellation .core-glow { opacity: 0.7; }
  /* Moving specks read as clutter without motion — drop the pulses and the
     orbiting satellites (the latter animate via SMIL, so hide the group). */
  .constellation .pulses,
  .constellation .orbit { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .product::before { transition: none; }
}

/* ========================================================================
   Legal pages (terms, privacy)
   ======================================================================== */

.legal {
  padding-block: clamp(3rem, 8vw, 5rem) clamp(3.5rem, 9vw, 6rem);
}

.legal-head { max-width: 62ch; }

.legal h1 {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.018em;
}

.legal-updated {
  margin: 0.75rem 0 0;
  color: var(--ink-faint);
  font-size: 0.9375rem;
}

.legal-body {
  max-width: 68ch;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.legal-body h2 {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0.75rem;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.008em;
}

.legal-body h2:first-child { margin-top: 0; }

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

.legal-body p { margin: 0 0 1rem; }

.legal-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.legal-body li { margin-bottom: 0.5rem; }

.legal-body a { color: var(--accent-strong); }

.legal-note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--ink-faint);
  font-size: 0.9063rem;
}

.back-link {
  display: inline-block;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.back-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ========================================================================
   AI solutions section — a highlighted panel: capability cards, a four-step
   process, and a call to action. The one visually "loud" block on the page,
   set off by a warm tinted panel.
   ======================================================================== */

.ai-panel {
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: 24px;
  background: linear-gradient(158deg, var(--accent-soft), var(--bg) 62%);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--rule));
}

.ai-head { max-width: 62ch; }

.ai-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600;
}

.ai-title {
  margin: 0;
  font-size: clamp(1.6rem, 1.1rem + 2.1vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.ai-lead {
  margin: 1rem 0 0;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  color: var(--ink-soft);
}

/* Capability cards */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 620px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .ai-grid { grid-template-columns: repeat(4, 1fr); } }

.ai-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.ai-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--rule));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 12%, transparent);
}

.ai-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background 0.25s, color 0.25s;
}
.ai-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ai-card:hover .ai-icon { background: var(--accent); color: #fff; }

.ai-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.ai-card p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }

/* Process steps */
.ai-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: clamp(2rem, 4vw, 2.5rem) 0 0;
  list-style: none;
  border-top: 1px solid color-mix(in srgb, var(--accent) 15%, var(--rule));
  counter-reset: none;
}

@media (min-width: 620px) { .ai-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .ai-steps { grid-template-columns: repeat(4, 1fr); } }

.ai-steps li { margin: 0; }

.ai-step-no {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 55%, transparent);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.ai-steps h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}
.ai-steps p { margin: 0; color: var(--ink-soft); font-size: 0.9063rem; }

/* Call to action */
.ai-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid color-mix(in srgb, var(--accent) 15%, var(--rule));
}
.ai-cta p {
  margin: 0;
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.1875rem);
  font-weight: 500;
  color: var(--ink);
}

/* ========================================================================
   Contact: details beside a consultation form
   ======================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
}

/* Inside the narrow info column the details stack vertically. */
.contact-grid .contact {
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0;
}

/* Form */
.contact-form { display: grid; gap: 1rem; }

.field { display: grid; gap: 0.4rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 520px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field label {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-weight: 500;
}
.field label span { color: var(--accent-strong); }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9688rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 6.5rem; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.contact-form .btn-primary {
  justify-self: start;
  margin-top: 0.25rem;
  cursor: pointer;
}

/* Honeypot. Hidden from people without display:none, which some bots detect
   and skip; it stays in the layout but off-screen. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status:empty { display: none; }
.form-status {
  margin: 0.25rem 0 0;
  font-size: 0.9063rem;
  font-weight: 500;
  color: var(--accent-strong);
}
.form-status--ok { color: #0B7A43; }
.form-status--error { color: #B3261E; }

.contact-form .btn-primary[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.form-note {
  margin: 0.25rem 0 0;
  font-size: 0.8438rem;
  color: var(--ink-faint);
  line-height: 1.6;
}
.form-note a { color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.form-note a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ========================================================================
   New Sections & Enhancements (SEO, Trust, Case Studies, Blog, FAQ)
   ======================================================================== */

/* SVG Containment Guards */
svg { max-width: 100%; box-sizing: border-box; }
.sprite { display: none !important; width: 0 !important; height: 0 !important; position: absolute; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 8px;
  font-weight: 500;
  border-bottom: none !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover {
  background: var(--accent-strong) !important;
  transform: translateY(-1px);
}

.hero-trust-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-trust-bullets span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Metrics & Trust Bar */
.metrics-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  text-align: center;
}
.metric-card {
  background: var(--bg);
  padding: 1.25rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--rule);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: transform 0.2s;
}
.metric-card:hover { transform: translateY(-2px); }
.metric-num {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.metric-label {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.trust-bar {
  margin-top: 2rem;
  text-align: center;
}
.trust-title {
  font-size: 0.7813rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.85rem;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1rem;
}
.trust-logo-tag {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Product Cards Highlight & Actions */
.product--highlight {
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--rule)) !important;
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--accent-soft) 20%, var(--bg)) 100%);
}
.product-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.product-demo-btn {
  font-size: 0.8438rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 6px;
  transition: all 0.15s;
}
.product-demo-btn:hover {
  background: var(--accent);
  color: #fff;
}
.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

/* Case Studies Section */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}
.case-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}
.case-card:hover { transform: translateY(-3px); }
.case-badge {
  display: inline-block;
  align-self: start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}
.case-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 600;
}
.case-metrics {
  display: flex;
  gap: 1.25rem;
  margin-block: 0.75rem;
  padding-block: 0.65rem;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
}
.case-metric-item {
  display: flex;
  flex-direction: column;
}
.case-metric-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}
.case-metric-desc {
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.case-card p {
  margin: 0;
  font-size: 0.9063rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stars {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  margin-bottom: 0.75rem;
}
.star-icon {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: inline-block !important;
  fill: #F59E0B !important;
  stroke: none !important;
  flex-shrink: 0;
}
.testimonial-quote {
  font-size: 0.9063rem;
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
  margin: 0 0 1rem;
}
.testimonial-author strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
}
.testimonial-author span {
  font-size: 0.7813rem;
  color: var(--ink-faint);
}

/* Blog / Insights Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}
.blog-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.blog-meta {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.blog-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.6rem;
  line-height: 1.35;
  font-weight: 600;
}
.blog-card p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 1rem;
}
.blog-link {
  font-size: 0.8438rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
.blog-link:hover { color: var(--accent-strong); }

/* FAQ Accordion */
.faq-accordion {
  max-width: 780px;
  margin: clamp(1.75rem, 3.5vw, 2.5rem) auto 0;
  display: grid;
  gap: 0.75rem;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}
.faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--rule));
}
.faq-question {
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9063rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Value Offer Box beside Contact Form */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.value-offer-card {
  background: color-mix(in srgb, var(--accent-soft) 30%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--rule));
  padding: 1.5rem;
  border-radius: 12px;
}
.value-offer-card h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.offer-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.offer-bullets li {
  display: flex;
  align-items: start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.bullet-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-phone-highlight {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-strong) !important;
}

.form-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1875rem;
  font-weight: 600;
}
.form-header p {
  margin: 0 0 1rem;
  font-size: 0.8438rem;
  color: var(--ink-soft);
}
.btn-block {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.9688rem;
  font-weight: 600;
}

/* Footer Improvements */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 2fr;
  }
}
.footer-brand-col .brand {
  font-size: 1.1875rem;
}
.footer-tagline {
  margin-top: 0.6rem;
  font-size: 0.8438rem;
  color: var(--ink-soft);
  max-width: 28ch;
}
.footer-links-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
}
.footer-nav-group h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-nav-group a {
  display: block;
  font-size: 0.8438rem;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav-group a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}


