/* ==========================================================================
   KaoriPalette — design tokens
   ========================================================================== */

:root {
  /* Neutrals */
  --ink: #0b1524;
  --ink-soft: #33405a;
  --muted: #5f6b80;
  --line: rgba(11, 21, 36, 0.1);
  --line-strong: rgba(11, 21, 36, 0.16);
  --paper: #f5f7fa;
  --surface: #ffffff;

  /* Dark surfaces */
  --night: #070e19;

  /* Brand accent */
  --accent: #12b5c9;
  --accent-bright: #22c1d6;
  --accent-deep: #06333a;
  --accent-soft: rgba(18, 181, 201, 0.12);
  /* Button fill: deep enough to carry white text at 4.6:1. */
  --accent-strong: #0e7f8e;
  --accent-strong-hover: #0b6a77;

  /* Data colors (score bands) */
  --c-pearl: #e9eff7;
  --c-green: #2f9e63;
  --c-aqua: #0fb5c9;
  --c-amber: #f0932b;
  --c-yellow: #c2c81f;
  --c-purple: #7b2cbf;

  /* Status */
  --good: #1f9254;
  --warn: #b45309;
  --bad: #b91c1c;

  /* Radii */
  --r-sm: 10px;
  --r-btn: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(11, 21, 36, 0.04), 0 4px 12px rgba(11, 21, 36, 0.05);
  --shadow-md: 0 2px 4px rgba(11, 21, 36, 0.04), 0 12px 32px rgba(11, 21, 36, 0.08);
  --shadow-lg: 0 24px 70px rgba(7, 14, 25, 0.28);

  /* Layout */
  --gutter: clamp(20px, 5vw, 48px);
  --page: 1180px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  /* Japanese wraps anywhere by default; auto-phrase keeps breaks at phrase
     boundaries and balance stops the last line becoming a one-word orphan. */
  word-break: auto-phrase;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

svg {
  display: block;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  border-radius: var(--r-sm);
  background: var(--ink);
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ==========================================================================
   Shared type
   ========================================================================== */

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow.on-dark {
  color: var(--accent-bright);
}

.lead,
.section-lead,
.cta-copy {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.95;
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.button.primary {
  background: var(--accent-strong);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-strong-hover);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  padding: 16px var(--gutter) 0;
  transition: padding 0.3s var(--ease);
}

.header-inner {
  display: flex;
  width: min(var(--page), 100%);
  height: 64px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-full);
  background: rgba(7, 14, 25, 0.55);
  padding: 0 12px 0 22px;
  color: #fff;
  backdrop-filter: blur(20px) saturate(140%);
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled .header-inner {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(7, 14, 25, 0.82);
  box-shadow: 0 12px 40px rgba(7, 14, 25, 0.24);
}

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

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.brand-name b {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-ja {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.3;
  opacity: 0.55;
}

.brand-mark {
  display: grid;
  width: 26px;
  height: 26px;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.brand-mark span {
  border-radius: var(--r-full);
  background: var(--accent-bright);
}

.brand-mark span:nth-child(2) {
  background: #34a86b;
}

.brand-mark span:nth-child(3) {
  background: #f0b429;
}

.brand-mark span:nth-child(4) {
  background: #a855f7;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  border-radius: var(--r-full);
  padding: 9px 16px;
  color: rgba(255, 255, 255, 0.76);
  transition:
    color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav .nav-cta {
  margin-left: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
}

.nav .nav-cta:hover {
  background: var(--accent-strong);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.16s var(--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);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(128px, 16vh, 168px) var(--gutter) clamp(72px, 10vh, 112px);
  color: #fff;
  background: var(--night);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(var(--page), 100%);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.hero-sub {
  margin-top: 20px;
  color: #fff;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.6;
  word-break: auto-phrase;
}

.hero .lead {
  max-width: 32em;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.66);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats > div {
  background: var(--night);
  padding: 18px 16px;
}

.hero-stats dt {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.hero-stats dd {
  margin: 2px 0 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hero-stats dd span {
  margin-left: 3px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
}

/* "募集中" is a state, not a figure — size it as a word, not a number. */
.hero-stats dd.dd-text {
  color: var(--accent-bright);
  font-size: 19px;
  letter-spacing: 0;
  line-height: 2.05;
}

/* --- Dashboard panel --------------------------------------------------- */

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: 22px;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-head h2 {
  font-size: 20px;
  line-height: 1.5;
}

.panel-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.live-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-full);
  background: rgba(31, 146, 84, 0.1);
  padding: 5px 12px;
  color: var(--good);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: currentColor;
  animation: pulse 1.8s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

.score-panel {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: 20px;
}

.score-ring {
  position: relative;
  display: grid;
  width: 108px;
  height: 108px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--r-full);
  background: conic-gradient(
    from -90deg,
    var(--accent) 0deg,
    #34a86b calc(var(--value) * 3.6deg * 0.5),
    var(--accent-bright) calc(var(--value) * 3.6deg),
    var(--line) calc(var(--value) * 3.6deg),
    var(--line) 360deg
  );
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: inset 0 1px 3px rgba(11, 21, 36, 0.06);
}

.score-value {
  position: relative;
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.score-meta h3 {
  font-size: 19px;
  line-height: 1.5;
}

.score-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

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

.space-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 16px;
}

.space-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--tone);
}

.space-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--good);
}

.space-card[data-level="warn"] .space-status {
  color: var(--warn);
}

.space-card[data-level="warn"] .status-dot {
  background: var(--warn);
}

.space-card[data-level="bad"] .space-status {
  color: var(--bad);
}

.space-card[data-level="bad"] .status-dot {
  background: var(--bad);
}

.space-name {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.space-card strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.space-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: clamp(72px, 10vw, 128px) var(--gutter);
}

.section > * {
  width: min(var(--page), 100%);
  margin-inline: auto;
}

.section-alt {
  background: var(--surface);
}

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

.section h2 {
  font-size: clamp(27px, 3.4vw, 44px);
  line-height: 1.45;
}

.section-lead {
  margin-top: 20px;
  color: var(--muted);
}

/* --- Palette ----------------------------------------------------------- */

.palette-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.palette-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}

.palette-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.swatch {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: var(--r-full);
  background: var(--tone);
  box-shadow:
    inset 0 0 0 1px rgba(11, 21, 36, 0.08),
    inset 0 6px 12px rgba(255, 255, 255, 0.28),
    0 6px 16px color-mix(in srgb, var(--tone) 40%, transparent);
}

.palette-body {
  min-width: 0;
  flex: 1;
}

.palette-body strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.palette-range {
  color: var(--ink-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

.palette-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.palette-tag {
  flex: 0 0 auto;
  align-self: flex-start;
  border-radius: var(--r-full);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
}

.tag-good {
  background: rgba(31, 146, 84, 0.1);
  color: var(--good);
}

.tag-warn {
  background: rgba(180, 83, 9, 0.1);
  color: var(--warn);
}

.tag-bad {
  background: rgba(185, 28, 28, 0.1);
  color: var(--bad);
}

/* --- Steps ------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: 28px;
}

.step-num {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.steps h3,
.usecase-grid h3 {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.6;
}

.steps p,
.usecase-grid p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

/* --- Sensor ------------------------------------------------------------ */

.section-dark {
  background: var(--night);
  color: #fff;
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.66);
}

.sensor-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
}

.device-stage {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.03);
  padding: 32px 24px;
  text-align: center;
}

.device-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-full);
  background: rgba(240, 147, 43, 0.14);
  padding: 6px 14px;
  color: #f5b169;
  font-size: 12px;
  font-weight: 600;
}

.device-badge svg {
  width: 14px;
  height: 14px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device {
  display: grid;
  width: 172px;
  justify-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  background: #131a24;
  padding: 22px 20px 20px;
}

.device-vents {
  display: flex;
  gap: 5px;
}

.device-vents i {
  width: 5px;
  height: 5px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.22);
}

.device-ring {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: var(--r-full);
  background: conic-gradient(
    from -90deg,
    var(--accent-bright) calc(var(--value) * 3.6deg),
    rgba(255, 255, 255, 0.12) calc(var(--value) * 3.6deg)
  );
}

.device-ring::before {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: var(--r-full);
  background: #131a24;
}

.device-ring span {
  position: relative;
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.device-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.device-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
}

.device-note {
  max-width: 30em;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  line-height: 1.8;
  word-break: auto-phrase;
}

.sensor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sensor-grid li {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.03);
  padding: 26px;
}

.sensor-grid h3 {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
}

.sensor-grid p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.85;
}

.sensor-grid .sensor-next {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  line-height: 1.7;
}

.section-dark .usecase-icon {
  background: rgba(34, 193, 214, 0.14);
  color: var(--accent-bright);
}

/* --- Use cases --------------------------------------------------------- */

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.usecase-grid li {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.24s var(--ease),
    box-shadow 0.24s var(--ease),
    border-color 0.24s var(--ease);
}

.usecase-grid li:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.usecase-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.usecase-icon svg {
  width: 22px;
  height: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Pricing ----------------------------------------------------------- */

.pricing-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-band li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: 30px;
}

.pricing-band li.featured {
  border-color: transparent;
  background: var(--night);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.pricing-kicker {
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.featured .pricing-kicker {
  color: var(--accent-bright);
}

.pricing-band strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.pricing-band p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.featured p {
  color: rgba(255, 255, 255, 0.7);
}

.pricing-flag {
  position: absolute;
  top: 20px;
  right: 20px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  padding: clamp(20px, 4vw, 40px) var(--gutter) clamp(48px, 6vw, 72px);
}

.cta-inner {
  position: relative;
  display: grid;
  width: min(var(--page), 100%);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  overflow: hidden;
  margin: 0 auto;
  border-radius: var(--r-xl);
  background: var(--night);
  padding: clamp(44px, 6vw, 72px) clamp(28px, 5vw, 64px);
  color: #fff;
}

.cta h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.45;
}

.cta-copy {
  max-width: 34em;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.cta-action {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.cta-mail {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  transition: color 0.18s var(--ease);
}

.cta-mail:hover {
  color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 40px var(--gutter);
}

.footer-inner {
  display: flex;
  width: min(var(--page), 100%);
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
}

.footer-nav a {
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-note {
  color: var(--muted);
  font-size: 13px;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.palette-list .reveal.is-visible,
.steps .reveal.is-visible,
.usecase-grid .reveal.is-visible,
.pricing-band .reveal.is-visible {
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero .lead {
    max-width: 40em;
  }

  .hero-panel {
    max-width: 640px;
  }

  .usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-lg);
    background: rgba(7, 14, 25, 0.94);
    padding: 10px;
    font-size: 15px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.22s var(--ease),
      transform 0.22s var(--ease),
      visibility 0.22s;
    visibility: hidden;
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav a {
    border-radius: var(--r-md);
    padding: 12px 14px;
  }

  .nav .nav-cta {
    margin: 4px 0 0;
    justify-self: stretch;
    text-align: center;
  }

  .header-inner {
    position: relative;
  }

  .palette-list,
  .steps,
  .pricing-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sensor-layout {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-action {
    justify-items: start;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    padding: 16px;
  }

  .score-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .space-grid,
  .palette-list,
  .steps,
  .usecase-grid,
  .sensor-grid,
  .pricing-band {
    grid-template-columns: 1fr;
  }

  .cta-action,
  .cta-action .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
