/* Cloud Service: design 4 (design 3 with a full-bleed hero grid) */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin.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;
}

/* ---------- Theme tokens ---------- */

:root {
  --primary: #335EEA;
  --primary-hover: #2849C7;
  --primary-deep: #1F3BB3;

  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --surface: #FFFFFF;
  --hero-bg: #F4F7FE;
  --heading: #0F172A;
  --text: #475569;
  --muted: #64748B;
  --border: #E2E8F0;
  --link: #335EEA;
  --pill: #EBF0FD;
  --tint: #F1F5FE;
  --grid-line: rgba(51, 94, 234, 0.07);
  --field-bg: #FFFFFF;
  --field-border: #CBD5E1;
  --shadow: 0 16px 40px -20px rgba(15, 23, 42, 0.18);
  --mark-opacity: 0.2;

  --illo-soft: #EEF2F8;
  --illo-grey: #CBD5E1;
  --illo-line: #94A3B8;
  --illo-paper: #FFFFFF;
  --illo-paper-2: #F1F5F9;
  --illo-tint: #DCE5FD;
  --illo-dark: #0F172A;

  --footer-bg: #0F172A;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 112px);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg: #0F172A;
  --bg-soft: #111B31;
  --surface: #141F38;
  --hero-bg: #131E36;
  --heading: #F8FAFC;
  --text: #CBD5E1;
  --muted: #94A3B8;
  --border: rgba(148, 163, 184, 0.16);
  --link: #84A2F9;
  --pill: rgba(51, 94, 234, 0.16);
  --tint: rgba(51, 94, 234, 0.12);
  --grid-line: rgba(132, 162, 249, 0.06);
  --field-bg: #0F172A;
  --field-border: #334155;
  --shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.6);
  --mark-opacity: 0.28;

  --illo-soft: #1A2540;
  --illo-grey: #94A3B8;
  --illo-line: #64748B;
  --illo-paper: #E2E8F0;
  --illo-paper-2: #CBD5E1;
  --illo-tint: #23356E;
  --illo-dark: #334155;

  --footer-bg: #0B1222;
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  color-scheme: light;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

::selection { background: var(--primary); color: #FFFFFF; }

h1, h2, h3 { margin: 0; color: var(--heading); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
a { color: inherit; }
.defs { position: absolute; }

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

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

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

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-caps { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8125rem; }
.btn svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--field-border); }
.btn-ghost:hover { border-color: var(--link); color: var(--link); }
.btn-lg { min-height: 50px; padding: 0.875rem 1.5rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--heading);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease;
}
.text-link svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}
.text-link:hover { color: var(--link); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */

/* transparent over the hero grid at the top of the page, solid once scrolled */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--border);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--heading);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark {
  width: 34px; height: 34px;
  fill: none;
  stroke: url(#mark-gradient);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo-light { color: #FFFFFF; }

.nav-main { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--link); }

.nav-actions { display: flex; align-items: center; gap: 0.625rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--heading);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.icon-btn:hover { border-color: var(--link); color: var(--link); }
.icon-btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */

/* the grid runs edge to edge and up under the header */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1 - 1px); /* header height plus its 1px border */
  padding-block: calc(var(--header-h) + clamp(48px, 7vw, 96px)) clamp(56px, 7vw, 104px);
  border-bottom: 1px solid var(--border);
  background-color: var(--hero-bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}

.hero-panel { position: relative; }
.hero-mark {
  position: absolute;
  right: clamp(-160px, -8vw, -40px);
  top: 50%;
  width: min(560px, 52%);
  height: auto;
  transform: translateY(-50%);
  fill: none;
  stroke: url(#mark-gradient);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: var(--mark-opacity);
  pointer-events: none;
}
.hero-copy { position: relative; max-width: 600px; }
.hero-label { color: var(--link); font-size: 1rem; font-weight: 500; }
.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 1.45rem + 2.7vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero-text { max-width: 34em; margin-top: 1.25rem; color: var(--text); font-size: 1.125rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-rule { width: 220px; margin: 2.25rem 0 1.5rem; border: 0; border-top: 1px solid var(--field-border); }

.hero-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}
.hero-contact-label { display: block; color: var(--heading); font-weight: 500; line-height: 1.4; }
.hero-contact-link { display: block; color: var(--link); line-height: 1.4; }
.hero-contact:hover .hero-contact-link { text-decoration: underline; text-underline-offset: 0.2em; }

.round-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--pill);
}
.round-icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--link); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.round-icon-sm { width: 36px; height: 36px; }
.round-icon-sm svg { width: 16px; height: 16px; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 620px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2, .form-card h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.0625rem; text-wrap: balance; }
.section-head-left { margin-inline: 0; text-align: left; margin-bottom: 2rem; }

/* tilted capsule behind an icon */
.pill-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 96px; height: 96px;
}
.pill-icon::before {
  content: "";
  position: absolute;
  top: 22px; bottom: 22px; left: -4px; right: -4px;
  border-radius: 999px;
  background: var(--pill);
  transform: rotate(45deg);
}
.pill-icon svg {
  position: relative;
  width: 28px; height: 28px;
  fill: none; stroke: var(--link); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* services */

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 72px;
}
.service { display: grid; grid-template-columns: 96px 1fr; gap: 1.5rem; align-items: start; }
.service h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.service p { margin: 0.75rem 0 1rem; color: var(--muted); }

.services-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: clamp(48px, 6vw, 72px);
  color: var(--muted);
}
.services-note a { color: var(--link); font-weight: 600; text-decoration: none; }
.services-note a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* process band */

.band {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
  background: var(--primary);
  color: #FFFFFF;
}
.band-mark {
  position: absolute;
  right: -150px;
  top: -190px;
  width: 520px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.1;
  pointer-events: none;
}
.band .container { position: relative; }
.section-head-light h2 { color: #FFFFFF; }
.section-head-light p { color: rgba(255, 255, 255, 0.9); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  text-align: center;
}
.steps li { padding-inline: 0.5rem; }
.step-num {
  display: block;
  color: #FFFFFF;
  font-size: clamp(2.5rem, 2rem + 1.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin-top: 0.75rem; color: #FFFFFF; font-size: 1.125rem; font-weight: 600; }
.steps p { max-width: 22em; margin: 0.5rem auto 0; color: rgba(255, 255, 255, 0.9); font-size: 0.9375rem; line-height: 1.6; }

/* split layouts */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.illo-wrap { display: grid; place-items: center; }
.illo { width: 100%; max-width: 460px; height: auto; }

/* accordion */

.accordion { display: grid; gap: 1rem; }
.accordion details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  color: var(--heading);
  font-weight: 500;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg {
  flex: none;
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}
.accordion summary:hover { color: var(--link); }
.accordion summary:focus-visible { outline-offset: -2px; border-radius: 8px; }
.accordion details[open] summary { background: var(--tint); color: var(--link); }
.accordion details[open] summary svg { transform: rotate(180deg); }
.accordion details p { padding: 1.125rem 1.375rem 1.375rem; color: var(--muted); }

/* contact */

.form-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form-intro { margin: 0.5rem 0 1.75rem; color: var(--muted); }
.form-fields { display: grid; gap: 1.125rem; }
.form-fields[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--heading);
  font-size: 0.9375rem;
  font-weight: 600;
}
.label-hint { color: var(--muted); font-size: 0.8125rem; font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.875rem;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  background: var(--field-bg);
  color: var(--heading);
  font: inherit;
  font-size: 1rem;
  caret-color: var(--link);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.25s ease;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(51, 94, 234, 0.22);
}
.field.has-error input, .field.has-error textarea { border-color: #DC2626; }
.field-error, .form-error { color: #DC2626; font-size: 0.8125rem; font-weight: 500; }
[data-theme="dark"] .field-error, [data-theme="dark"] .form-error { color: #F87171; }
.form-error { font-size: 0.875rem; }
.form-error[hidden] { display: none; }
.field-captcha { min-height: 78px; }
.field-captcha[hidden] { display: none; }
.botcheck { display: none; }
.btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }
[data-theme="dark"] .field.has-error input, [data-theme="dark"] .field.has-error textarea { border-color: #F87171; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.25rem; }
.form-note { color: var(--muted); font-size: 0.8125rem; }

.form-success { display: grid; justify-items: start; gap: 0.75rem; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.success-title { color: var(--heading); font-size: 1.25rem; font-weight: 700; }

.info-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: clamp(56px, 7vw, 88px);
}
.info-row li { display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; align-items: center; }
.info-row h3 { font-size: 1.125rem; font-weight: 600; }
.info-row p { margin-top: 0.25rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.info-row a, .form-error a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.form-error a { color: inherit; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: #CBD5E1;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.site-footer :focus-visible { outline-color: #84A2F9; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 72px 56px;
}
.footer-brand p { max-width: 24em; margin-top: 1rem; color: #CBD5E1; }
.footer-col h2 { color: #FFFFFF; font-size: 1.125rem; font-weight: 600; }
.footer-col ul { display: grid; gap: 0.625rem; margin-top: 1.25rem; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-col a:hover { color: #FFFFFF; }
.footer-col svg {
  flex: none;
  width: 14px; height: 14px;
  fill: none; stroke: #84A2F9; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.footer-contact li { display: flex; align-items: center; gap: 0.625rem; }
.footer-contact svg { width: 18px; height: 18px; }
.footer-base {
  padding-block: 24px 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: #94A3B8;
  font-size: 0.875rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .services { column-gap: 40px; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .nav { gap: 1rem; }
  .nav-main { justify-content: flex-end; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 1px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: 0; }

  .services, .split, .info-row { grid-template-columns: 1fr; }
  .split .illo { max-width: 360px; }
  .split-contact .illo-wrap { order: 2; }
  .hero-mark { width: 380px; right: -110px; top: auto; bottom: -70px; transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .nav-cta { display: none; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .service, .info-row li { grid-template-columns: 72px 1fr; gap: 1rem; }
  .pill-icon { width: 72px; height: 72px; }
  .pill-icon::before { top: 16px; bottom: 16px; left: -2px; right: -2px; }
  .pill-icon svg { width: 24px; height: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
