/* CloudOnScale public site — static, dependency-free.
   Palette: orange #FF6A00, charcoal #111111, gray #6B7280, white #FFFFFF.
   #FF6A00 is used for fills and on dark surfaces only; small text on light
   surfaces uses --accent (#B94300, AA on white). */

:root {
  color-scheme: light dark;

  --orange: #ff6a00;
  --orange-hover: #ff8126;
  --orange-display: #d95500; /* large display text on light (>= 3:1) */
  --accent: #b94300;         /* small text, links and focus on light (AA) */
  --on-dark-accent: #ff8a3d; /* small text and focus on charcoal */

  --ink: #111111;
  --muted: #555b63;
  --line: #e4e6ea;
  --line-strong: #c3c7ce;
  --paper: #ffffff;
  --surface: #f5f5f3;
  --card: #ffffff;
  --chip: #f5f5f3; /* light tile that carries the logo on dark surfaces */

  /* Charcoal "band" surfaces (dark in both colour schemes) */
  --band-bg: #111111;
  --band-ink: #f5f5f3;
  --band-muted: #b4b8bf;
  --band-line: #2c2e33;
  --footer-bg: #111111;

  --radius: 14px;
  --radius-sm: 8px;
  --gutter: clamp(20px, 5vw, 48px);
  --container: 1200px;
  --section-pad: clamp(64px, 9vw, 120px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --orange-display: #ff6a00;
    --accent: #ff8a3d;
    --ink: #f4f4f2;
    --muted: #a9aeb6;
    --line: #2a2c30;
    --line-strong: #44474d;
    --paper: #0e0e0f;
    --surface: #17181a;
    --card: #131415;
    --band-bg: #17181a;
    --band-line: #303237;
    --footer-bg: #09090a;
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { font-weight: 700; text-wrap: balance; }

h2 {
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus { outline: none; }

::selection { background: #ff6a0047; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

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

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

.section { padding-block: var(--section-pad); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
}

.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }

.section-lead {
  margin-top: 18px;
  max-width: 44em;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button--primary { background: var(--orange); color: #111111; }
.button--primary:hover { background: var(--orange-hover); }

.button--ghost { border-color: var(--line-strong); color: var(--ink); }
.button--ghost:hover { border-color: var(--ink); }

.button--small { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }

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

.site-header {
  z-index: 50;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.js .site-header { position: sticky; }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
}

.brand img { width: clamp(150px, 46vw, 196px); }

/* The approved logo has dark lettering, so on dark surfaces it sits on a light tile. */
.brand--chip { padding: 8px 12px; background: var(--chip); }

@media (prefers-color-scheme: dark) {
  .brand { padding: 6px 10px; background: var(--chip); }
  .brand--chip { padding: 8px 12px; }
}

.site-nav { flex: 1 0 100%; padding-bottom: 12px; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.site-nav a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-nav a:not(.button):hover { color: var(--accent); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Small screens with JS: the nav collapses behind the toggle.
   Without JS the links simply wrap under the logo (rules above). */
@media (max-width: 859.98px) {
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px #00000040;
  }

  .js .site-nav.is-open { display: block; }

  .js .site-nav ul { display: block; }

  .js .site-nav li + li { border-top: 1px solid var(--line); }

  .js .site-nav a:not(.button) {
    display: flex;
    min-height: 52px;
    font-size: 1.0625rem;
  }

  .js .site-nav li:last-child { padding-top: 16px; }
  .js .site-nav .button { display: flex; min-height: 48px; font-size: 1rem; }
}

@media (min-width: 860px) {
  .site-header { position: sticky; }
  .header-inner { flex-wrap: nowrap; min-height: 76px; }
  .site-nav { flex: none; padding-bottom: 0; }
  .site-nav ul { gap: 30px; flex-wrap: nowrap; }
  .nav-toggle { display: none !important; }
}

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

.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px); }

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

h1 {
  font-size: clamp(2.125rem, 1rem + 6vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

h1 span { display: block; color: var(--orange-display); }

.lead {
  margin-top: 24px;
  max-width: 33em;
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
}

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

.hero-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 1.14;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 48%, #3a2f27 0, #1a1a1a 58%, #101010 100%);
}

@media (prefers-color-scheme: dark) {
  .hero-visual { border-color: var(--line); }
}

/* Dot grid echoing the pixel motif in the mark, faded out behind the tile */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(#ffffff26 1px, transparent 1.6px);
  background-size: 22px 22px;
  background-position: center;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 80%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 80%);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit--inner {
  width: 68%;
  border: 1px solid #7a5a43;
  box-shadow: 0 0 0 28px #ffffff05, 0 0 0 56px #ffffff04;
}

.orbit--outer { width: 96%; border: 1px dashed #ffffff2b; }

.orbit--outer::before,
.orbit--outer::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--orange);
}

.orbit--outer::before { top: -5px; left: 50%; margin-left: -4px; }
.orbit--outer::after { bottom: -5px; left: 50%; margin-left: -4px; opacity: 0.6; }

@media (prefers-reduced-motion: no-preference) {
  .orbit--outer { animation: orbit 140s linear infinite; }
}

@keyframes orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.mark-tile {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 22%;
  background: var(--chip);
  box-shadow: 0 0 0 1px #ffffff14, 0 24px 60px #00000080, 0 0 72px #ff6a0038;
}

.mark-tile img { width: 82%; }

.node {
  position: absolute;
  z-index: 1;
  padding: 7px 11px;
  border: 1px solid #6a5240;
  border-radius: 6px;
  background: #232323;
  color: #f4eee9;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.node--1 { top: 11%; left: 7%; }
.node--2 { top: 15%; right: 7%; }
.node--3 { bottom: 12%; left: 8%; }
.node--4 { bottom: 15%; right: 7%; }

@media (min-width: 480px) {
  .node { font-size: 0.6875rem; padding: 8px 12px; }
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  h1 { font-size: clamp(3rem, 5.2vw, 4.5rem); }
  .hero-visual { max-width: none; }
}

/* ---------- Platform ---------- */

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

.pillars { display: grid; gap: 16px; }

.pillar {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.pillar p { color: var(--muted); }
.pillar h3 { margin-bottom: 10px; }

.pillar .pillar-index {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* 01 — the foundation: charcoal feature card */
.pillar--lead {
  --accent: var(--on-dark-accent);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 300px;
  border-color: var(--band-line);
  background: var(--band-bg);
  color: var(--band-ink);
}

.pillar--lead h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  letter-spacing: -0.025em;
}

.pillar--lead p:not(.pillar-index) { max-width: 30em; color: var(--band-muted); font-size: 1.0625rem; }

/* pixel cluster, top right */
.pillar--lead::after {
  content: "";
  position: absolute;
  top: clamp(22px, 3vw, 32px);
  right: clamp(22px, 3vw, 32px);
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--orange);
  box-shadow:
    -17px 0 0 #ff6a00,
    0 17px 0 #ff6a00b3,
    -17px 17px 0 #ff6a0066,
    -34px 0 0 #ff6a0040;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
}

.tag-list li {
  padding: 6px 12px;
  border: 1px solid #44474d;
  border-radius: 999px;
  color: var(--band-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 06 — tinted card with a checklist */
.pillar--resilience {
  display: grid;
  gap: 24px;
  background: var(--surface);
  border-color: transparent;
}

.check-list li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-top: 1px solid var(--line-strong);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.check-list li:last-child { padding-bottom: 0; }

.check-list li::before {
  content: "";
  position: absolute;
  top: 1.2em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--orange);
}

/* 07 — closing statement row, no box */
.pillar--independence {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 28px 0 0;
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
}

.pillar--independence h3 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  letter-spacing: -0.025em;
}

.pillar--independence > p { font-size: 1.0625rem; }

@media (min-width: 600px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar--lead,
  .pillar--resilience,
  .pillar--independence { grid-column: 1 / -1; }
  .pillar--resilience { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
  .check-list li:first-child { border-top: 0; padding-top: 0; }
  .check-list li:first-child::before { top: 0.45em; }
}

@media (min-width: 960px) {
  .pillars { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
  .pillar--lead { grid-column: 1 / 7; grid-row: 1 / 3; }
  .pillar--hosting { grid-column: 7 / 13; }
  .pillar--workspace { grid-column: 7 / 10; }
  .pillar--email { grid-column: 10 / 13; }
  .pillar--storage { grid-column: 1 / 5; }
  .pillar--resilience { grid-column: 5 / 13; }
  .pillar--independence {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    margin-top: 28px;
    padding-top: 36px;
  }
}

/* ---------- Approach (charcoal band) ---------- */

.band {
  --accent: var(--on-dark-accent);
  background: var(--band-bg);
  color: var(--band-ink);
}

@media (prefers-color-scheme: dark) {
  .band { border-block: 1px solid var(--line); }
}

.band .section-lead { color: var(--band-muted); }

.approach { display: grid; gap: clamp(36px, 6vw, 80px); }

.principle {
  padding-block: 26px;
  border-top: 1px solid var(--band-line);
}

.principle:last-child { padding-bottom: 0; }

.principle h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 1.3125rem;
}

.principle h3::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--orange);
  transform: translateY(-1px);
}

.principle p { max-width: 38em; padding-left: 21px; color: var(--band-muted); }

@media (min-width: 900px) {
  .approach { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .approach-intro { position: sticky; top: 120px; }
  .principle:first-child { padding-top: 0; border-top: 0; }
}

/* ---------- Engagements ---------- */

.steps {
  display: grid;
  gap: 36px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 64px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 1rem;
  font-weight: 700;
}

.step:first-child::before {
  border-color: var(--orange);
  background: var(--orange);
  color: #111111;
}

/* connector */
.step::after {
  content: "";
  position: absolute;
  top: 50px;
  bottom: -28px;
  left: 20.5px;
  width: 1px;
  background: var(--line-strong);
}

.step:last-child::after { display: none; }

.step h3 { margin-bottom: 8px; padding-top: 7px; }
.step p { max-width: 36em; color: var(--muted); }

.access-note {
  max-width: 860px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 20px 24px;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  color: var(--muted);
}

.access-note strong { color: var(--ink); }

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .step { padding: 66px 0 0; }
  .step::after {
    top: 21px;
    bottom: auto;
    left: 54px;
    right: -28px;
    width: auto;
    height: 1px;
  }
  .step h3 { padding-top: 0; }
}

/* ---------- Contact ---------- */

.contact { padding-top: 0; }

.contact-panel {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 20px;
  background: var(--surface);
}

.contact-copy p:not(.eyebrow) { margin-top: 16px; max-width: 36em; color: var(--muted); }

.sales-contact {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.sales-contact p { color: var(--muted); font-size: 0.9375rem; }

.sales-contact .status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px #ff6a0033;
}

@media (min-width: 860px) {
  .contact-panel { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

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

.site-footer {
  --accent: var(--on-dark-accent);
  padding-block: 56px 36px;
  background: var(--footer-bg);
  color: var(--band-muted);
  font-size: 0.9375rem;
}

@media (prefers-color-scheme: dark) {
  .site-footer { border-top: 1px solid var(--line); }
}

.footer-inner { display: grid; gap: 36px; }

.footer-brand p { margin-top: 18px; max-width: 30em; }

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

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--band-ink);
  font-weight: 600;
}

.footer-nav a:hover { color: var(--on-dark-accent); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--band-line);
  font-size: 0.8125rem;
}

@media (min-width: 860px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */

.error-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.error-page main { flex: 1; display: grid; align-items: center; }
.error-main { padding-block: clamp(56px, 12vw, 140px); }
.error-main .lead { margin-bottom: 32px; }
.error-page .site-footer { padding-block: 28px; }
.error-page .footer-legal { padding-top: 0; border-top: 0; }

/* ---------- Print ---------- */

@media print {
  .site-header { position: static; }
  .nav-toggle, .hero-visual, .skip-link { display: none !important; }
}
