/* Caspivision: light, quiet, typography first. No scripts. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f5f8f9;
  --ink: #0a1418;
  --ink-2: #55656a;
  --line: #e3eaec;
  --brand: #02b4d6;
  --brand-ink: #007a96;
  --brand-ink-hover: #006379;
  --container: 1160px;
  --gutter: 16px;
  --radius: 28px;
  --font-head: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (min-width: 760px) {
  :root {
    --gutter: 32px;
  }
}

*,
*::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(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--brand-ink);
}

:focus-visible {
  outline: 3px solid var(--brand-ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(10, 20, 24, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--soft);
}

.main-nav .lang {
  color: var(--ink);
}

.hide-sm {
  display: none !important;
}

@media (min-width: 700px) {
  html {
    scroll-padding-top: 72px;
  }

  .hide-sm {
    display: inline-flex !important;
  }

  .brand img {
    height: 30px;
  }

  .header-inner {
    min-height: 72px;
  }
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--brand-ink);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background: var(--brand-ink-hover);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.link span {
  transition: transform 0.2s ease;
}

.link:hover span {
  transform: translateX(3px);
}

/* Soft colour glow, the one decoration on the page */
.aurora {
  position: absolute;
  left: 50%;
  bottom: -260px;
  z-index: -1;
  width: min(1400px, 160%);
  height: 560px;
  transform: translateX(-50%);
  background:
    radial-gradient(38% 55% at 30% 55%, rgba(2, 180, 214, 0.42), transparent 70%),
    radial-gradient(34% 50% at 68% 45%, rgba(43, 212, 168, 0.34), transparent 70%),
    radial-gradient(30% 46% at 50% 75%, rgba(76, 130, 255, 0.26), transparent 70%);
  filter: blur(48px);
  pointer-events: none;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(88px, 12vw, 168px) clamp(120px, 14vw, 200px);
  text-align: center;
}

.hero-inner {
  display: grid;
  justify-items: center;
}

.kicker {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--brand-ink);
}

.hero h1 {
  margin-top: 20px;
  max-width: 17ch;
  font-size: clamp(2.7rem, 1.2rem + 6vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero .sub {
  margin-top: 28px;
  max-width: 40ch;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 40px;
}

/* Sections */
.section {
  padding-block: clamp(80px, 10vw, 144px);
}

.section-soft {
  background: var(--soft);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.section h2 {
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem);
  letter-spacing: -0.035em;
}

.section-head p {
  margin-top: 18px;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ink-2);
}

/* Products */
.products {
  display: grid;
  gap: 24px;
}

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

.product {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--soft);
  overflow: hidden;
}

.cover {
  display: grid;
  align-content: end;
  gap: 14px;
  min-height: clamp(280px, 30vw, 380px);
  padding: clamp(28px, 4vw, 44px);
}

.cover-geo {
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(2, 180, 214, 0.22), transparent 60%),
    radial-gradient(70% 80% at 0% 100%, rgba(76, 130, 255, 0.16), transparent 60%),
    #eef6f8;
}

.cover-nav {
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(43, 212, 168, 0.24), transparent 60%),
    radial-gradient(70% 80% at 0% 100%, rgba(2, 180, 214, 0.16), transparent 60%),
    #eef7f4;
}

.cover-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.cover-big {
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 1.4rem + 2.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.cover-geo .cover-big {
  background-image: linear-gradient(100deg, #004f63 0%, #007a96 45%, #02a7c8 100%);
}

.cover-nav .cover-big {
  background-image: linear-gradient(100deg, #0b5a49 0%, #0c8a6c 45%, #0a9bb5 100%);
}

.cover-facts {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-2);
}

.product-body {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(28px, 4vw, 44px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  flex: 1;
}

.product-body h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  letter-spacing: -0.02em;
}

.product-body p {
  color: var(--ink-2);
}

.product-body .link {
  margin-top: 4px;
  justify-self: start;
}

/* Approach */
.split {
  display: grid;
  gap: 24px;
  align-items: start;
}

.big-p {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.pillars {
  list-style: none;
  counter-reset: pillar;
  display: grid;
  gap: 0;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.pillars li {
  counter-increment: pillar;
  display: grid;
  gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.pillars li::before {
  content: "0" counter(pillar);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.pillars h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.pillars p {
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
  }

  .pillars li {
    padding: 32px 32px 36px 0;
    border-bottom: 0;
  }

  .pillars li + li {
    padding-left: 32px;
    border-left: 1px solid var(--line);
  }
}

/* Contact */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(96px, 12vw, 176px);
  text-align: center;
}

.aurora-low {
  bottom: -340px;
  opacity: 0.75;
}

.contact-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.contact h2 {
  font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.4rem);
  letter-spacing: -0.04em;
}

.contact p {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ink-2);
}

.mail {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 0.9rem + 2.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(0, 122, 150, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.mail:hover {
  color: var(--brand-ink);
  text-decoration-color: currentColor;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-copy img {
  width: 20px;
  height: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -10px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--ink-2);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

/* 404 */
.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px var(--gutter);
}

.notfound img {
  width: 72px;
  height: auto;
  margin: 0 auto 28px;
}

.notfound h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  letter-spacing: -0.035em;
}

.notfound p {
  margin-top: 14px;
  color: var(--ink-2);
}

.notfound .btn {
  margin-top: 28px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
