/* CloudTech — one-page site.
   Colours come from the logo: ink "Cloud", cyan→green "Tech" and the CT mark.
   One family (Manrope): 800 for headings to echo the wordmark, 400–600 for text. */

:root {
  --ink: #0C1118;
  --ink-2: #3D4853;
  --ink-3: #5F6B76;
  --paper: #F7FAFA;
  --surface: #FFFFFF;
  --tint: #ECF4F3;
  --line: #D9E4E4;
  --cyan: #16B6E0;
  --green: #2DAF8C;
  --sea: #06262E;
  --sea-ink: #E7F3F2;
  --accent-text: #0A7F91;     /* cyan dark enough for text on paper */
  --grad: linear-gradient(100deg, var(--cyan), var(--green));
  --focus: #0A7F91;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EAF1F2;
    --ink-2: #B9C7CB;
    --ink-3: #8C9CA2;
    --paper: #071318;
    --surface: #0D1D23;
    --tint: #0A1A20;
    --line: #1C3138;
    --sea: #0B2A33;
    --accent-text: #4FD0EA;
    --focus: #4FD0EA;
  }
  /* Light text on a dark ground reads thin at 400. */
  body { font-weight: 500; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: var(--radius-s); }
.skip:focus { top: 12px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.035em; line-height: 1; }
.wordmark__cloud { color: var(--ink); }
.wordmark__tech { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand--small .wordmark { font-size: 1.15rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-weight: 700; font-size: 1rem;
  color: #fff; background: var(--ink); border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: #22303C; }
.btn:active { transform: translateY(1px); }
.btn--ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--tint); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn--wa { background: #128C5E; }
.btn--wa:hover { background: #0E7A51; }
@media (prefers-color-scheme: dark) {
  .btn { color: var(--paper); background: var(--ink); }
  .btn:hover { background: #fff; }
  .btn--ghost { color: var(--ink); background: transparent; }
  .btn--ghost:hover { background: var(--tint); }
  .btn--wa { color: #fff; background: #128C5E; }
  .btn--wa:hover { background: #17A26E; }
}

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--ink); }
.menu-btn { display: none; }

@media (max-width: 820px) {
  .menu-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer;
  }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; max-width: 14ch; }
.lead { margin-top: 22px; font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
}

/* ---------- Project starter: the signature piece ---------- */
.starter {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: 0 1px 0 var(--line), 0 24px 60px -28px rgba(6, 38, 46, .35);
  border: 1px solid var(--line);
}
/* The CT mark's gradient, as a bar along the top edge only. */
.starter::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 4px;
  background: var(--grad); border-radius: 0 0 4px 4px;
}
.starter__head h2 { font-size: 1.35rem; font-weight: 800; }
.starter__head p { margin-top: 6px; color: var(--ink-3); font-size: .98rem; }

.starter__picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; border: 0; }
.starter__picks label { position: relative; }
.starter__picks input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.starter__picks span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  font-weight: 600; font-size: .95rem; color: var(--ink-2);
  border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.starter__picks label:hover span { border-color: var(--ink-3); }
.starter__picks input:checked + span { color: var(--ink); border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.starter__picks input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.starter__label { display: block; margin: 18px 0 6px; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.starter select, .starter textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-m);
}
.starter select { min-height: 46px; padding: 0 12px; }
.starter textarea { padding: 12px 14px; resize: vertical; line-height: 1.5; }
.starter select:focus, .starter textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.starter textarea.is-updated { animation: flash .6s ease; }
@keyframes flash { from { background: color-mix(in srgb, var(--cyan) 14%, var(--paper)); } to { background: var(--paper); } }

.starter__send { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.starter__send .btn { flex: 1 1 auto; white-space: nowrap; }
.starter__note { margin-top: 12px; font-size: .85rem; color: var(--ink-3); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--tint { background: var(--tint); }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__side p { margin-top: 16px; color: var(--ink-2); max-width: 38ch; }
@media (min-width: 921px) { .split__side { position: sticky; top: 108px; } }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }

/* Services as a list: icon, then text, divided by rules. */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service__icon { width: 30px; height: 30px; margin-top: 2px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.28rem; font-weight: 800; }
.service p { margin-top: 8px; color: var(--ink-2); max-width: 58ch; }
.ask {
  margin-top: 12px; padding: 0; font: inherit; font-weight: 700; font-size: .95rem;
  color: var(--accent-text); background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.ask:hover { color: var(--ink); }

/* Process: numbered because it is a real order. */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 48px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 28px 0 0; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px;
  font-weight: 800; font-size: 1.1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 50%;
  position: relative; z-index: 1;
}
/* The line joining the steps. */
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 2px;
  background: var(--grad); opacity: .55;
}
.steps h3 { font-size: 1.2rem; font-weight: 800; }
.steps p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 32px 64px; }
  .steps li::before { position: absolute; left: 0; top: -6px; margin: 0; }
  .steps li:not(:last-child)::after { top: 40px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
}

/* Promises */
.promises { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.promises dt { font-weight: 800; font-size: 1.15rem; padding-top: 16px; border-top: 2px solid var(--ink); }
.promises dd { margin: 8px 0 0; color: var(--ink-2); }
@media (max-width: 560px) { .promises { grid-template-columns: 1fr; } }

/* Tech */
.tech { display: flex; flex-wrap: wrap; align-items: baseline; gap: 20px 40px; }
.tech h2 { font-size: 1.3rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li { padding: 6px 14px; font-weight: 600; font-size: .95rem; color: var(--ink-2); border: 1.5px solid var(--line); border-radius: 999px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-weight: 700; font-size: 1.12rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 60ch; }

/* ---------- Contact band ---------- */
.contact { padding: clamp(72px, 10vw, 128px) 0; color: var(--sea-ink); background: var(--sea); }
.contact__inner { position: relative; z-index: 1; }
.contact h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; max-width: 16ch; color: #fff; }
.contact__inner > p { margin-top: 14px; color: #A9C5C6; }
.contact__ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px; max-width: 980px; }
.way {
  display: block; padding: 20px 22px; text-decoration: none; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .16); border-radius: var(--radius-m);
  transition: border-color .15s ease, background-color .15s ease;
}
.way:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .04); }
.way__label { display: block; font-size: .9rem; font-weight: 600; color: #8FD9E6; }
.way__value { display: block; margin-top: 6px; font-weight: 800; font-size: clamp(1.05rem, 1.6vw, 1.25rem); overflow-wrap: anywhere; }
.contact__place { margin-top: 28px; color: #A9C5C6; }
.contact :focus-visible { outline-color: #8FD9E6; }
@media (max-width: 760px) { .contact__ways { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { padding: 32px 0; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .95rem; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.lost p { margin: 14px auto 28px; color: var(--ink-2); max-width: 40ch; }

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