/*
Theme Name: CabinBeacon Coming Soon
Theme URI: https://cabinbeacon.eu
Author: CabinBeacon
Description: Bilingual coming-soon theme for cabinbeacon.eu and cabinbeacon.dk.
Version: 0.2.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: cabinbeacon
*/

:root {
  --cb-navy: #071a2b;
  --cb-navy-soft: #0d2b40;
  --cb-cyan: #47dfcf;
  --cb-cyan-dark: #0c9e97;
  --cb-ice: #dffaf6;
  --cb-white: #f8fcff;
  --cb-muted: #a9bdc9;
  --cb-line: rgba(197, 238, 238, 0.15);
  --cb-card: rgba(12, 42, 61, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--cb-white);
  background:
    radial-gradient(circle at 78% 18%, rgba(71, 223, 207, 0.14), transparent 31rem),
    radial-gradient(circle at 15% 80%, rgba(26, 112, 144, 0.18), transparent 35rem),
    var(--cb-navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.cb-site {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.cb-site::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--cb-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--cb-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), transparent 70%);
  content: "";
  opacity: 0.22;
}

.cb-wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.cb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
}

.cb-brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--cb-white);
  font-size: 1.13rem;
  font-weight: 720;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.cb-beacon {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(71, 223, 207, 0.45);
  border-radius: 50%;
}

.cb-beacon::before,
.cb-beacon::after {
  position: absolute;
  border: 1px solid rgba(71, 223, 207, 0.24);
  border-radius: 50%;
  content: "";
}

.cb-beacon::before {
  inset: 5px;
}

.cb-beacon::after {
  inset: 10px;
  background: var(--cb-cyan);
  border: 0;
  box-shadow: 0 0 18px rgba(71, 223, 207, 0.8);
}

.cb-language {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--cb-line);
  border-radius: 999px;
  background: rgba(4, 20, 32, 0.5);
}

.cb-language a {
  min-width: 44px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--cb-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
}

.cb-language a[aria-current="page"] {
  color: var(--cb-navy);
  background: var(--cb-cyan);
}

.cb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
  min-height: calc(100vh - 184px);
  padding-block: 64px 96px;
}

.cb-eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--cb-cyan);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cb-eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

.cb-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 680;
  letter-spacing: -0.065em;
  line-height: 0.97;
}

.cb-title span {
  color: var(--cb-cyan);
}

.cb-lead {
  max-width: 670px;
  margin: 28px 0 0;
  color: #c6d6df;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
}

.cb-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 12px 21px;
  border: 1px solid var(--cb-cyan);
  border-radius: 999px;
  color: var(--cb-navy);
  background: var(--cb-cyan);
  font-size: 0.94rem;
  font-weight: 720;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.cb-button:hover,
.cb-button:focus-visible {
  background: #72eee1;
  transform: translateY(-2px);
}

.cb-note {
  color: var(--cb-muted);
  font-size: 0.82rem;
}

.cb-device-stage {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.cb-orbit {
  position: absolute;
  width: min(100%, 480px);
  aspect-ratio: 1;
  border: 1px solid rgba(71, 223, 207, 0.17);
  border-radius: 50%;
}

.cb-orbit::before,
.cb-orbit::after {
  position: absolute;
  border: 1px solid rgba(71, 223, 207, 0.12);
  border-radius: inherit;
  content: "";
}

.cb-orbit::before {
  inset: 12%;
}

.cb-orbit::after {
  inset: 28%;
}

.cb-device {
  position: relative;
  z-index: 1;
  width: min(290px, 70vw);
  padding: 32px;
  border: 1px solid rgba(158, 255, 244, 0.25);
  border-radius: 38px;
  background: linear-gradient(145deg, rgba(19, 61, 82, 0.92), rgba(5, 25, 39, 0.98));
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-4deg);
}

.cb-device-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.cb-device-mark {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.cb-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cb-cyan);
  box-shadow: 0 0 18px var(--cb-cyan);
}

.cb-reading-label {
  margin: 0;
  color: var(--cb-muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cb-reading {
  margin: 5px 0 0;
  font-size: 3.25rem;
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1;
}

.cb-device-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 36px;
}

.cb-device-meta div {
  padding: 13px;
  border: 1px solid var(--cb-line);
  border-radius: 15px;
  background: rgba(3, 19, 31, 0.45);
}

.cb-device-meta span {
  display: block;
  color: var(--cb-muted);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-device-meta strong {
  display: block;
  margin-top: 3px;
  font-size: 0.9rem;
}

.cb-feature {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid var(--cb-line);
  border-radius: 14px;
  background: var(--cb-card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  color: #dbe9ee;
  font-size: 0.78rem;
  font-weight: 650;
}

.cb-feature svg {
  width: 18px;
  height: 18px;
  color: var(--cb-cyan);
}

.cb-feature--temperature { top: 12%; left: 0; }
.cb-feature--humidity { top: 18%; right: -2%; }
.cb-feature--location { bottom: 17%; left: -3%; }
.cb-feature--movement { right: 0; bottom: 11%; }

.cb-footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px 34px;
  border-top: 1px solid var(--cb-line);
  color: var(--cb-muted);
  font-size: 0.78rem;
}

.cb-footer p {
  margin: 0;
}

.cb-footer a {
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .cb-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  .cb-copy {
    text-align: center;
  }

  .cb-eyebrow,
  .cb-actions {
    justify-content: center;
  }

  .cb-lead {
    margin-inline: auto;
  }

  .cb-device-stage {
    min-height: 490px;
  }
}

@media (max-width: 560px) {
  .cb-wrap {
    width: min(100% - 28px, 1160px);
  }

  .cb-header {
    padding-block: 20px;
  }

  .cb-title {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .cb-hero {
    gap: 32px;
    padding-block: 52px 62px;
  }

  .cb-device-stage {
    min-height: 420px;
  }

  .cb-device {
    width: 240px;
    padding: 25px;
    border-radius: 30px;
  }

  .cb-feature {
    font-size: 0;
  }

  .cb-feature svg {
    width: 22px;
    height: 22px;
  }

  .cb-feature--temperature { left: 2%; }
  .cb-feature--humidity { right: 2%; }
  .cb-feature--location { left: 3%; }
  .cb-feature--movement { right: 3%; }

  .cb-footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* App-aligned visual identity: shared colors, card language, and branding assets. */
:root {
  --cb-navy: #192f45;
  --cb-navy-soft: #30475d;
  --cb-cyan: #f8ba29;
  --cb-cyan-dark: #d99a05;
  --cb-ice: #fff3cd;
  --cb-white: #192f45;
  --cb-muted: #65717d;
  --cb-line: rgba(25, 47, 69, 0.14);
  --cb-card: rgba(255, 253, 248, 0.94);
}

body {
  color: var(--cb-navy);
  background:
    radial-gradient(circle at 78% 18%, rgba(248, 186, 41, 0.18), transparent 28rem),
    radial-gradient(circle at 12% 82%, rgba(25, 47, 69, 0.07), transparent 32rem),
    #f7f4ec;
}

.cb-site::before {
  background-image:
    linear-gradient(rgba(25, 47, 69, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 47, 69, 0.08) 1px, transparent 1px);
  opacity: 0.42;
}

.cb-brand {
  display: block;
}

.cb-brand img {
  display: block;
  width: clamp(170px, 18vw, 222px);
  height: auto;
}

.cb-beacon {
  display: none;
}

.cb-language {
  border-color: rgba(25, 47, 69, 0.16);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 8px 28px rgba(25, 47, 69, 0.06);
}

.cb-language a {
  color: #68737d;
}

.cb-language a[aria-current="page"] {
  color: var(--cb-navy);
  background: var(--cb-cyan);
}

.cb-eyebrow {
  color: #a76d00;
}

.cb-title {
  color: var(--cb-navy);
}

.cb-title span {
  color: #d99600;
}

.cb-lead {
  color: #52606c;
}

.cb-button {
  border-color: var(--cb-navy);
  border-radius: 12px;
  color: #fffdf8;
  background: var(--cb-navy);
  box-shadow: 0 10px 24px rgba(25, 47, 69, 0.14);
}

.cb-button:hover,
.cb-button:focus-visible {
  color: var(--cb-navy);
  background: var(--cb-cyan);
  border-color: var(--cb-cyan);
}

.cb-orbit {
  border-color: rgba(25, 47, 69, 0.12);
}

.cb-orbit::before,
.cb-orbit::after {
  border-color: rgba(248, 186, 41, 0.25);
}

.cb-device {
  border-color: rgba(25, 47, 69, 0.16);
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: 0 30px 75px rgba(25, 47, 69, 0.16), inset 0 1px rgba(255, 255, 255, 0.9);
  transform: rotate(-2deg);
}

.cb-device-top {
  margin-bottom: 34px;
}

.cb-device-mark {
  width: 48px;
  height: 48px;
  border-radius: 11px;
}

.cb-status {
  background: #4f8b39;
  box-shadow: 0 0 0 5px rgba(79, 139, 57, 0.13);
}

.cb-reading-label {
  color: #697680;
}

.cb-reading {
  color: var(--cb-navy);
}

.cb-device-meta div {
  border-color: rgba(25, 47, 69, 0.12);
  background: #f7f4ec;
}

.cb-device-meta span {
  color: #6a7680;
}

.cb-device-meta strong {
  color: var(--cb-navy);
}

.cb-feature {
  border-color: rgba(25, 47, 69, 0.14);
  border-radius: 16px;
  color: var(--cb-navy);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 14px 38px rgba(25, 47, 69, 0.1);
}

.cb-feature svg {
  color: #d99600;
}

.cb-footer {
  color: #697680;
}
