/* self-hosted fonts */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url('fonts/Inter.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:300 700;font-display:swap;src:url('fonts/SpaceGrotesk.woff2') format('woff2');}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/SpaceMono-Regular.woff2') format('woff2');}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/SpaceMono-Bold.woff2') format('woff2');}

/* ============================================================
   Cloud Labs — prototype stylesheet
   Palette: muted blues + soft greys. Built for modern browsers.
   ============================================================ */

:root {
  --ink:        #182230;
  --slate:      #51606e;
  --blue:       #3e6fa8;
  --blue-deep:  #1f3a5f;
  --blue-soft:  #eaf1f8;
  --surface:    #f5f7fa;
  --border:     #e4e9ef;
  --white:      #ffffff;
  --accent:     #2f9e7a;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(24,34,48,.05), 0 8px 24px rgba(24,34,48,.04);
  --shadow-md: 0 2px 4px rgba(24,34,48,.06), 0 18px 40px rgba(31,58,95,.10);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0; }
h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 4.8vw, 3.5rem); line-height: 1.05; letter-spacing: -.022em; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; letter-spacing: -.018em; }
h3 { font-family: var(--font-body); font-weight: 650; font-size: 1.16rem; line-height: 1.3; letter-spacing: -.01em; }
p  { margin: 0; }
a  { color: var(--blue); text-decoration: none; }

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

.section { padding: 6rem 0; }
.section--tight { padding: 4.25rem 0; }
.section--surface { background: var(--surface); }
.section--softblue { background: var(--blue-soft); }
.section--deep { background: var(--blue-deep); }
.section--deep, .section--deep h2, .section--deep h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--blue);
  margin: 0 0 .9rem;
}
.section--deep .eyebrow { color: #9cc1e8; }

.lead { font-size: 1.12rem; color: var(--slate); max-width: 60ch; }
.measure { max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .78rem 1.35rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.section--deep .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.section--deep .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-on-deep { background: #fff; color: var(--blue-deep); }
.btn-on-deep:hover { transform: translateY(-1px); background: #f0f4f9; }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.arrow-link { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.arrow-link svg { transition: transform .15s ease; }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 0 rgba(24,34,48,.02); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a { color: var(--ink); font-weight: 500; font-size: .98rem; padding: .4rem 0; }
.nav-links > li > a:hover { color: var(--blue); }

.logo { display: inline-flex; align-items: center; gap: .55rem; }
.logo svg { height: 26px; width: auto; display: block; }
.logo .wordmark { font-family: var(--font-display); font-size: 1.32rem; letter-spacing: -.01em; color: var(--ink); }
.logo .wordmark b { font-weight: 700; }
.logo .wordmark span { font-weight: 400; color: var(--slate); }

/* dropdown */
.has-menu { position: relative; }
/* invisible hover bridge so the menu doesn't close when crossing the gap */
.has-menu::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 300px; height: 12px; display: none; z-index: 1; }
.has-menu:hover::after, .has-menu:focus-within::after { display: block; }
.menu-toggle { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; padding: .4rem 0; font-weight: 500; }
.menu-toggle svg { transition: transform .2s ease; }
.has-menu:hover .menu-toggle svg, .has-menu:focus-within .menu-toggle svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; z-index: 60; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .6rem; width: 300px;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease;
}
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .7rem; border-radius: 9px; color: var(--ink); }
.dropdown a:hover { background: var(--surface); }
.dropdown .di-name { font-weight: 600; font-size: .95rem; }
.dropdown .di-desc { font-size: .82rem; color: var(--slate); line-height: 1.4; }
.dropdown .icon-chip { flex: none; }
.dropdown-all { display: block !important; text-align: center; margin-top: .35rem; padding-top: .7rem; border-top: 1px solid var(--border); font-weight: 600; font-size: .9rem; color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* mobile menu panel */
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 5.5rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.hero h1 { margin-bottom: 1.3rem; }
.hero .lead { font-size: 1.2rem; }
.trust-strip { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.trust-strip span { font-size: .86rem; color: var(--slate); display: inline-flex; align-items: center; gap: .45rem; }
.trust-strip svg { color: var(--accent); flex: none; }

/* hero diagram */
.hero-figure { position: relative; }
.hero-figure svg { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .node-float { animation: float 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .node-float:nth-child(2) { animation-delay: -1s; }
  .node-float:nth-child(3) { animation-delay: -2s; }
  .node-float:nth-child(4) { animation-delay: -3s; }
  .node-float:nth-child(5) { animation-delay: -4s; }
  .node-float:nth-child(6) { animation-delay: -5s; }
  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  .dash { stroke-dasharray: 4 6; animation: dash 22s linear infinite; }
  @keyframes dash { to { stroke-dashoffset: -200; } }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d4dde7; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; }

.icon-chip {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--blue-soft); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.icon-chip.sm { width: 34px; height: 34px; border-radius: 9px; margin: 0; }

.service-card .arrow-link { margin-top: 1rem; font-size: .92rem; }

/* section heading block */
.head-block { max-width: 64ch; margin-bottom: 3rem; }
.head-block.center { margin-inline: auto; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .95rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; line-height: 1.5; }
.checklist svg { flex: none; margin-top: 3px; color: var(--accent); }
.section--deep .checklist svg { color: #6fd6b0; }
.section--deep .checklist li { color: #dce6f1; }

/* split band (how it's different) */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; }

/* partner / strip */
.flow { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; }
.flow .pill { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .7rem 1.3rem; font-weight: 600; color: var(--ink); font-size: .95rem; }
.flow .sep { color: var(--blue); }

.strip-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.4rem; }
.strip-grid h3 { margin-bottom: .4rem; }
.strip-grid p { font-size: .95rem; }

/* ---------- Tables ---------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background:#fff; }
table.cmp { width: 100%; border-collapse: collapse; font-size: .96rem; }
table.cmp th, table.cmp td { text-align: left; padding: 1rem 1.2rem; vertical-align: top; border-bottom: 1px solid var(--border); }
table.cmp thead th { background: var(--surface); color: var(--ink); font-weight: 650; font-size: .9rem; }
table.cmp thead th.col-cl { background: var(--blue-deep); color: #fff; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td.cl { background: #f4f8fc; color: var(--ink); }
table.cmp .rowlabel { font-weight: 600; color: var(--ink); width: 26%; }
.tick { color: var(--accent); font-weight: 700; }
.dashmark { color: var(--slate); }

.note {
  background: var(--blue-soft); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; font-size: .96rem; color: var(--ink); margin-top: 1.4rem;
}
.note b { color: var(--blue-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: #c6d4e4; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-mono); font-weight: 400; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: #c6d4e4; font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.footer-brand .logo .wordmark { color: #fff; }
.footer-brand .logo .wordmark span { color: #9cb4cf; }
.footer-brand p { font-size: .92rem; color: #9cb4cf; margin-top: 1rem; max-width: 34ch; }
.footer-base { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .85rem; color: #88a0bd; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav .btn-primary.desktop-cta { display: none; }
  .hamburger { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-figure { order: -1; max-width: 460px; margin: 0 auto; }
  .grid-3, .grid-2, .strip-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .mobile-menu.open { display: block; position: fixed; inset: 72px 0 0; background: #fff; z-index: 40; padding: 1.5rem; overflow-y: auto; }
  .mobile-menu .m-link { display: block; padding: .9rem 0; border-bottom: 1px solid var(--border); color: var(--ink); font-weight: 600; font-size: 1.1rem; }
  .mobile-menu .m-sub { padding: .6rem 0 .6rem 1rem; color: var(--slate); font-weight: 500; font-size: 1rem; }
  .mobile-menu .btn { width: 100%; justify-content: center; margin-top: 1.4rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  table.cmp thead { display: none; }
  table.cmp, table.cmp tbody, table.cmp tr, table.cmp td { display: block; width: 100%; }
  table.cmp tr { border-bottom: 1px solid var(--border); padding: .4rem 0; }
  table.cmp td { border: 0; padding: .35rem 1.1rem; }
  table.cmp .rowlabel { width: auto; padding-top: .8rem; }
  table.cmp td.cl { background: transparent; }
  table.cmp td[data-h]::before { content: attr(data-h); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-family: var(--font-mono); margin-bottom: .15rem; }
}

/* logo image (standalone SVG) */
.logo img { display: block; height: 26px; width: auto; }
.site-footer .logo img { height: 26px; }

/* contact form */
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(62,111,168,.15);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--slate); margin-top: .55rem; }


/* accessibility & launch */
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); font-weight: 600; padding: .7rem 1rem; border-radius: 0 0 8px 0; z-index: 100; box-shadow: var(--shadow-md); }
.skip-link:focus { left: 0; }
a:focus-visible, .btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.nav-links a[aria-current], .menu-toggle.current { color: var(--blue); }
.prose { max-width: 70ch; }
.prose h3 { margin: 2rem 0 .5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.prose li { margin-bottom: .4rem; }
.draft-banner { background: #fff6e6; border: 1px solid #f0d9a8; color: #7a5b18; border-radius: var(--radius); padding: .9rem 1.2rem; font-size: .92rem; margin-bottom: 2rem; }
