/* WAIOS - www.waiosdigital.com
   Colours are sampled from the logo. Text colours meet WCAG AA on their backgrounds. */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #050d1c;
  --navy-900: #08162d;          /* logo wordmark */
  --navy-800: #0f2240;
  --ink: #08162d;
  --ink-soft: #46526b;          /* 7.6:1 on white */
  --ink-muted: #5f6a82;         /* 5.4:1 on white */
  --line: #e2e8f2;
  --line-strong: #cdd7e6;
  --surface: #ffffff;
  --surface-alt: #f5f8fd;

  --blue-800: #012486;          /* logo deep fold */
  --blue-700: #0052d6;
  --blue-600: #0066f8;          /* logo primary blue, 4.9:1 with white text */
  --blue-500: #0095fd;
  --sky-400: #06b5fd;
  --cyan-300: #28e7fd;

  --gradient-brand: linear-gradient(120deg, #0047e0 0%, #0095fd 55%, #28e7fd 100%);
  --gradient-text: linear-gradient(100deg, #0040d8 0%, #0088e8 100%);

  --font-heading: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 72px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(8, 22, 45, 0.06), 0 2px 8px rgba(8, 22, 45, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(8, 22, 45, 0.18), 0 4px 12px -4px rgba(8, 22, 45, 0.08);
  --shadow-blue: 0 10px 28px -10px rgba(0, 102, 248, 0.6);
  --focus-ring: #0088e8;
}

/* ---------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--blue-700);
  text-underline-offset: 3px;
}

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

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: none;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

.btn:active {
  transform: none;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--blue-700);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: #aebcd2;
  box-shadow: var(--shadow-sm);
}

.btn-light {
  background: #fff;
  color: var(--navy-900);
}

.btn-light:hover {
  background: #e8f3ff;
}

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(8, 22, 45, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 8px;
}

.brand img {
  width: auto;
  height: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9688rem;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-list a:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  margin-left: -11px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-bar {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  top: 0;
  left: 0;
  margin-left: 0;
}

.nav-toggle-bar::before {
  transform: translateY(-7px);
}

.nav-toggle-bar::after {
  transform: translateY(7px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  background: var(--ink);
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  background: var(--ink);
  transform: rotate(-45deg);
}

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

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px -24px rgba(8, 22, 45, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-list a {
    padding: 12px 8px;
    border-radius: 10px;
    font-size: 1.0625rem;
  }
}

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

.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 112px) clamp(64px, 10vw, 128px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(48rem 30rem at 0% -10%, rgba(0, 102, 248, 0.1), transparent 70%),
    radial-gradient(40rem 28rem at 100% 100%, rgba(40, 231, 253, 0.14), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(8, 22, 45, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 22, 45, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-inner {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 7px 14px 7px 12px;
  border: 1px solid #d6e6ff;
  border-radius: 999px;
  background: #eef5ff;
  color: #0047b8;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 4px rgba(0, 149, 253, 0.16);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}

.hero-glow {
  position: absolute;
  inset: 8% 6%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(0, 149, 253, 0.32), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(40, 231, 253, 0.3), transparent);
  filter: blur(36px);
}

.hero-symbol {
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(0, 72, 200, 0.22));
}

@media (prefers-reduced-motion: no-preference) {
  .hero-symbol {
    animation: float 7s ease-in-out infinite;
  }

  .hero-glow {
    animation: pulse 7s ease-in-out infinite;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

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

.section {
  padding-block: clamp(72px, 9vw, 120px);
}

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

.section-header {
  max-width: 44rem;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-eyebrow {
  margin-bottom: 14px;
  color: var(--blue-700);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.875rem);
}

.section-lead {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

/* ---------------------------------------------------------------- cards */

.cards {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.card {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #cfe0fb;
  box-shadow: var(--shadow-md);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 102, 248, 0.7);
}

.card-title {
  font-size: 1.3125rem;
  letter-spacing: -0.015em;
}

.card-text {
  margin-top: 10px;
  color: var(--ink-soft);
}

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

.products-card {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(36rem 24rem at 100% 0%, rgba(0, 149, 253, 0.32), transparent 70%),
    radial-gradient(30rem 22rem at 0% 100%, rgba(1, 36, 134, 0.75), transparent 70%),
    var(--navy-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.products-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}

@media (min-width: 900px) {
  .products-card {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #9eeeff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-300);
  box-shadow: 0 0 0 4px rgba(40, 231, 253, 0.2);
}

.products-title {
  max-width: 30rem;
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
}

.products-text {
  max-width: 30rem;
  margin: 18px 0 32px;
  color: #c3cfe4;
  font-size: 1.125rem;
}

.products-visual {
  max-width: 380px;
  width: 100%;
  margin-inline: auto;
  opacity: 0.95;
  filter: drop-shadow(0 20px 48px rgba(0, 149, 253, 0.35));
}

@media (max-width: 899px) {
  .products-visual {
    display: none;
  }
}

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

.contact-inner {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 960px) {
  .contact-inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
    align-items: center;
  }
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: #aebcd2;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(0, 102, 248, 0.16);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #d92d20;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: -6px;
  color: var(--ink-muted);
  font-size: 0.875rem;
  text-align: center;
}

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-status.is-info {
  background: #eef5ff;
  color: #0047b8;
}

.form-status.is-success {
  background: #e7f6ee;
  color: #0b6b3f;
}

.form-status.is-error {
  background: #fef1f0;
  color: #b42318;
}

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

.site-footer {
  padding-block: 56px 32px;
  background: var(--navy-950);
  color: #aab6cc;
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 32px;
}

.footer-brand img {
  width: auto;
  height: 30px;
  margin-bottom: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-nav a {
  color: #dbe4f3;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  font-size: 0.875rem;
}

/* Divider aligned with the content, not the container's padding. */
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------------------------- simple pages (404, thank you, form errors) */

.simple-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(40rem 26rem at 0% 0%, rgba(0, 102, 248, 0.08), transparent 70%),
    radial-gradient(36rem 26rem at 100% 100%, rgba(40, 231, 253, 0.12), transparent 70%),
    var(--surface);
}

.simple-header {
  padding: 24px var(--gutter);
}

.simple-header img {
  width: auto;
  height: 30px;
}

.simple-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px var(--gutter) 96px;
  text-align: center;
}

.simple-code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 16vw, 8.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.simple-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
}

.simple-text {
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.simple-symbol {
  width: 120px;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------- motion preferences */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
