/* Netsonic redesign: tokens, reset, typography, shared layout.
   Palette is the official brand palette from "Netsonic final logo.pdf" (the logo artwork's own colours):
   navy #15223c, red #e61834, yellow #fecb39, blue #6fc9da.
   The brand blue is light (1.9:1 on white), so it is only used as a surface, shape or stripe colour;
   blue text and focus outlines use --teal-ink. The *-ink variants exist for text on light backgrounds. */

:root {
  /* Neutrals */
  --white: #ffffff;
  --mist: #f3f6fa;
  --mist-2: #e8eef6;
  --ink: #15223c;
  --ink-2: #33415c;
  --ink-3: #55627c;
  --line: #dde3ec;
  --line-strong: #b8c2d3;

  /* Dark surfaces (brand navy and lifted shades of it) */
  --navy: #15223c;
  --navy-2: #1d2c4a;
  --navy-3: #263759;
  --navy-line: #34466a;
  --on-navy: #f2f5fb;
  --on-navy-2: #a8b6d0;

  /* Brand colours */
  --amber: #fecb39;
  --amber-soft: #fff6d9;
  --amber-ink: #876000;
  --red: #e61834;
  --red-soft: #ffe3e6;
  --red-ink: #c8102e;
  --teal: #6fc9da;
  --teal-bright: #a3e0ea;
  --teal-soft: #e2f5f9;
  --teal-ink: #136d7d;
  --focus: var(--teal-ink);
  --ok: #12a26b;

  --stripe: linear-gradient(90deg, var(--amber) 0 33.34%, var(--red) 33.34% 66.67%, var(--teal) 66.67% 100%);
  --sun: linear-gradient(115deg, var(--amber) 0%, #f7833a 48%, var(--red) 100%);

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --text-lg: clamp(1.12rem, 1.04rem + 0.4vw, 1.3rem);
  --text-xl: clamp(1.45rem, 1.2rem + 1.1vw, 2.05rem);
  --text-2xl: clamp(2rem, 1.35rem + 2.7vw, 3.5rem);
  --text-hero: clamp(2.8rem, 1.5rem + 5.2vw, 6.2rem);

  /* Space */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --max: 1280px;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 26px;

  --shadow-1: 0 1px 2px rgb(21 34 60 / 0.06), 0 4px 14px rgb(21 34 60 / 0.06);
  --shadow-2: 0 2px 6px rgb(21 34 60 / 0.08), 0 24px 56px -16px rgb(21 34 60 / 0.3);
  --shadow-pop: 6px 6px 0 var(--ink);

  --duration-fast: 160ms;
  --duration: 320ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--amber); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible,
.mobile-nav :focus-visible,
.site-footer :focus-visible { outline-color: var(--amber); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.visually-hidden,
.screen-reader-text { /* WordPress's name for the same thing */
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section--mist { background: var(--mist); }
.section--flush-top { padding-top: 0; }

.on-dark { background: var(--navy); color: var(--on-navy); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font: 700 var(--text-xs) / 1 var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 6px;
  border-radius: 3px;
  background: var(--stripe);
}
.on-dark .eyebrow { color: var(--on-navy-2); }

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head h2 { font-size: var(--text-2xl); max-width: 18ch; }
.section-head p { color: var(--ink-2); font-size: var(--text-lg); max-width: 46ch; }
.on-dark .section-head p { color: var(--on-navy-2); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .section-head .eyebrow { grid-column: 1 / -1; }
}

/* Highlighted words: a brand-colour marker block behind the text */
.mark {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}
.mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.06em;
  right: -0.08em;
  bottom: 0.08em;
  height: 0.42em;
  background: var(--mark, var(--amber));
  border-radius: 3px;
  transform-origin: left;
  animation: mark-in 900ms var(--ease-out) 400ms both;
}
@keyframes mark-in { from { transform: scaleX(0); } }

/* Buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-border: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.35rem;
  border-radius: 12px;
  border: 2px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 var(--text-sm) / 1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast);
}
.btn svg { width: 16px; height: 16px; transition: transform var(--duration) var(--ease-out); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--shadow-color, var(--amber)); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 transparent; }

.btn--primary { --btn-bg: var(--red); --btn-border: var(--red); --shadow-color: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--ink); --shadow-color: var(--teal); }
.btn--amber { --btn-bg: var(--amber); --btn-fg: var(--ink); --btn-border: var(--amber); --shadow-color: var(--white); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-border: var(--white); --shadow-color: var(--amber); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform var(--duration) var(--ease-out); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* Breadcrumbs (product and contact pages) */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--ink-3);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }

/* Shared CTA row (homepage hero and product hero) */
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.1rem; }

/* Brand triangles (echo the logo mark). Purely decorative. */
.tri {
  position: absolute;
  width: var(--size, 120px);
  aspect-ratio: 1 / 0.87;
  background: var(--tri, var(--amber));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

/* Reveal on scroll (enhancement only; content is visible without JS) */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
