/**
 * DiaHub Cloud (cloud.diahub.dk) — visual tokens aligned with https://diahub.dk/styles.css
 * Source of truth: marketing site CSS variables + typography. Do not duplicate unrelated pages.
 */

:root {
  --bg: #07111f;
  --bg-soft: #0d1830;
  --panel: rgba(11, 24, 46, 0.8);
  --panel-strong: #111f39;
  --text: #f4f7fb;
  --muted: #9eb0ca;
  --line: rgba(178, 198, 229, 0.16);
  --accent: #77e0ff;
  --accent-strong: #00b8ff;
  --accent-warm: #b8ffde;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --warn: #ffb454;
  --danger: #ff6b6b;
  --ok: #7ee2a4;
  --accent-grad: linear-gradient(135deg, var(--accent), var(--accent-strong));

  /* Aliases used by cloud-specific pages */
  --text-muted: var(--muted);
  --text-dim: #7c8aa3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 184, 255, 0.16), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(184, 255, 222, 0.1), transparent 18%),
    linear-gradient(180deg, #07111f 0%, #081322 40%, #050b15 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 32px));
  margin: 16px auto;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(4, 10, 22, 0.78);
  box-shadow: var(--shadow);
  overflow: clip;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 13, 26, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 184, 255, 0.18);
}

.cloud-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cloud-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  text-decoration: none;
}

.cloud-nav a:hover {
  color: var(--text);
}

.cloud-main {
  padding: 56px 28px 88px;
}

.cloud-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.cloud-hero-title {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.cloud-hero-title .serif {
  display: block;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.cloud-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.cloud-grid {
  margin-top: 36px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 820px) {
  .cloud-grid {
    grid-template-columns: 1fr;
  }

  .site-shell {
    width: min(100%, calc(100% - 16px));
    margin: 8px auto;
    border-radius: 24px;
  }

  .cloud-main {
    padding: 40px 18px 64px;
  }

  .site-header {
    flex-wrap: wrap;
    padding-left: 18px;
    padding-right: 18px;
  }
}

.cloud-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
}

.cloud-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.cloud-card p.sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cloud-card label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.cloud-card input[type="email"],
.cloud-card input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: rgba(6, 14, 32, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  outline: none;
}

.cloud-card input::placeholder {
  color: var(--text-dim);
}

.cloud-card input:focus {
  border-color: rgba(119, 224, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 184, 255, 0.15);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04111f;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 184, 255, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(0, 184, 255, 0.32);
}

.button[type="submit"] {
  width: 100%;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.button-ghost:hover {
  border-color: rgba(119, 224, 255, 0.45);
}

#message,
#provisionMessage {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 28px 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer-mini p {
  margin: 0;
}

.footer-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 560px) {
  .site-footer-mini {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px 22px;
  }
}
