/* Cloudguardian site styles. Brand colours come from brand-tokens.css. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: var(--cg-night);
  --surface: #0C1620;
  --surface-raised: #0F1C27;
  --line: #12212B;
  --line-strong: #1F3A4A;
  --text: #E6EEF4;
  --heading: #FFFFFF;
  --muted: #9FB3C8;
  --accent: var(--cg-teal);
  --accent-light: var(--cg-teal-light);
  --on-accent: var(--cg-night);
  --font-display: var(--cg-font);
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(72px, 9vw, 112px);
}

/* Base */

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Links and buttons */

.navlink {
  color: var(--muted);
  text-decoration: none;
}
.navlink:hover { color: var(--heading); }

.btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--accent-light); }
.btn:disabled { cursor: progress; }

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: 10px;
}

.btn--lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 17px;
  border-radius: 12px;
}

.btn:focus-visible,
.navlink:focus-visible,
.brand:focus-visible,
.contact__alt a:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

/* Header */

.site-header { border-bottom: 1px solid var(--line); }

.site-header__inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--heading);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.primary-nav,
.navlinks {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navlinks { font-size: 15px; }

@media (max-width: 760px) {
  .navlinks { display: none; }
}

/* Very narrow phones: keep the logo and button on one line without overflowing. */
@media (max-width: 389px) {
  .site-header__inner { gap: 12px; }
  .brand { gap: 8px; }
  .brand svg { width: 28px; height: 28px; }
  .brand__name { font-size: 18px; }
  .btn--sm { padding: 0 12px; font-size: 14px; }
}

/* Hero: the brand mark sits behind the copy as a cropped backdrop. */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(88px, 12vw, 152px) var(--gutter) clamp(88px, 12vw, 160px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero__title {
  margin: 0;
  max-width: 11em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--heading);
  text-wrap: balance;
}

.hero__lede {
  margin: 0;
  max-width: 34em;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding-top: 8px;
}

.hero__link {
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 6px;
}
.hero__link:hover { text-decoration-color: var(--accent-light); }

.hero__art {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: max(-260px, calc(50% - 940px));
  width: min(780px, 62vw);
  transform: translateY(-50%);
  opacity: 0.24;
  pointer-events: none;
}

.hero__art svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Below desktop the mark moves behind the headline, top right, and fades back. */
@media (max-width: 1023px) {
  .hero__art {
    top: -40px;
    right: -38%;
    width: 110vw;
    max-width: 640px;
    transform: none;
    opacity: 0.12;
  }
}

/* Sections */

.section { border-top: 1px solid var(--line); }
.section--alt { background: var(--surface); }

.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--heading);
  text-wrap: balance;
}

.section__intro {
  margin: 0;
  max-width: 30em;
  color: var(--muted);
  text-wrap: pretty;
}

/* Services: one panel split into quadrants by hairlines. */

.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
}

@media (min-width: 700px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.service {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--bg);
}

.service__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--heading);
}

.service__text {
  margin: 0;
  max-width: 36em;
  color: var(--muted);
}

/* How we work: a real sequence, so the numerals carry it. */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 48px 40px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(88px, 10vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 12px;
}

@supports (-webkit-text-stroke: 1px) {
  .step__num {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent);
  }
}

.step__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.step__text {
  margin: 0;
  max-width: 28em;
  color: var(--muted);
}

/* Contact */

.contact {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 64px;
  align-items: start;
}

.contact__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 900px) {
  .contact__copy {
    position: sticky;
    top: 48px;
    padding-top: 8px;
  }
}

.contact__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--heading);
  text-wrap: balance;
}

.contact__lede {
  margin: 0;
  max-width: 480px;
  font-size: 18px;
  color: var(--muted);
  text-wrap: pretty;
}

.contact__alt {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}
.contact__alt a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.contact__alt a:hover { color: var(--heading); }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.field {
  box-sizing: border-box;
  width: 100%;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--heading);
  font: inherit;
  font-size: 16px;
}

input.field {
  min-height: 48px;
  padding: 0 14px;
}

textarea.field {
  padding: 12px 14px;
  resize: vertical;
}

.field:focus {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* Honeypot: kept out of view and out of the tab order. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Turnstile runs in interaction-only mode; the slot only takes space when it shows a challenge. */
.turnstile { display: none; }
.turnstile.is-visible {
  display: block;
  margin-bottom: 20px;
}

.form-status {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--text);
}
.form-status:empty { display: none; }
.form-status.is-success { color: var(--accent-light); }

/* Footer */

.site-footer { border-top: 1px solid var(--line); }

.site-footer__inner {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 15px;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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