:root {
  --paper: #f4f3ef;
  --paper-deep: #eceae3;
  --surface: rgba(255, 255, 255, 0.78);
  --slate: #2a3a4d;
  --slate-dark: #1f2c3b;
  --blue: #4989ce;
  --muted: #58677a;
  --line: rgba(42, 58, 77, 0.16);
  --line-strong: rgba(42, 58, 77, 0.34);
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background-color: var(--paper);
  background-image: radial-gradient(circle at 50% 24%, #faf9f6 0%, var(--paper) 60%, var(--paper-deep) 100%);
  color: var(--slate);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(42, 58, 77, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 58, 77, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 78% 72% at 50% 48%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 48%, #000 35%, transparent 100%);
}

/* Technical drawing sheet border echoing the KINER splash screens */
.sheet-frame {
  position: fixed;
  inset: 16px;
  border: 1.5px solid var(--line-strong);
  pointer-events: none;
  z-index: 2;
}

.sheet-frame::before,
.sheet-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(220px, 32vw);
  height: 5px;
  border-left: 1.5px solid var(--line-strong);
  border-right: 1.5px solid var(--line-strong);
  background: var(--paper);
}

.sheet-frame::before {
  top: -6px;
  border-top: 1.5px solid var(--line-strong);
}

.sheet-frame::after {
  bottom: -6px;
  border-bottom: 1.5px solid var(--line-strong);
}

.tick {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--slate);
  border-style: solid;
  opacity: 0.45;
}

.tick-top-left {
  top: -2px;
  left: -2px;
  border-width: 2px 0 0 2px;
}

.tick-top-right {
  top: -2px;
  right: -2px;
  border-width: 2px 2px 0 0;
}

.tick-bottom-left {
  bottom: -2px;
  left: -2px;
  border-width: 0 0 2px 2px;
}

.tick-bottom-right {
  bottom: -2px;
  right: -2px;
  border-width: 0 2px 2px 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 36px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.domain-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.domain-dot {
  width: 6px;
  height: 6px;
  background: var(--slate);
  transform: rotate(45deg);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.lang-btn:hover {
  color: var(--slate);
}

.lang-btn.is-active {
  background: var(--slate);
  color: #ffffff;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto 0;
}

.wordmark {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  color: var(--slate);
  line-height: 0.98;
}

.wordmark-main {
  font-size: clamp(2.6rem, 6.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-indent: 0.06em;
}

.wordmark-sub {
  margin-top: 5px;
  font-size: clamp(1.15rem, 2.8vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}

.tagline {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* Prominent Under Construction / Coming Soon placard */
.construction-banner {
  margin-top: 40px;
  width: min(720px, 100%);
  padding: 28px 28px 30px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(42, 58, 77, 0.07);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.banner-line {
  width: 64px;
  height: 2px;
  background: var(--blue);
  opacity: 0.85;
}

.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(73, 137, 206, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(73, 137, 206, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(73, 137, 206, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(73, 137, 206, 0);
  }
}

.banner-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.06em;
  text-indent: 0.06em;
  color: var(--slate);
}

.banner-sub {
  margin: 2px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  background: var(--slate);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  clip-path: polygon(
    9px 0,
    100% 0,
    100% calc(100% - 9px),
    calc(100% - 9px) 100%,
    0 100%,
    0 9px
  );
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.progress-track {
  width: min(260px, 68vw);
  height: 8px;
  border-radius: 999px;
  border: 1.5px solid var(--slate);
  padding: 1.5px;
  background: rgba(255, 255, 255, 0.7);
}

.progress-fill {
  width: 62%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--slate) 0%, var(--blue) 100%);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-sep {
  opacity: 0.45;
}

@media (max-width: 600px) {
  .sheet-frame {
    inset: 10px;
  }

  .page {
    padding: 28px 22px 30px;
    gap: 24px;
  }

  .construction-banner {
    margin-top: 28px;
    padding: 22px 16px 24px;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot {
    animation: none;
  }
}
