:root {
  /* Keep this restrained. You can shift these later. */
  --ink: #141515;
  --muted: rgba(20, 21, 21, 0.72);
  --bg-ocean: #0b2a33;
  /* deep teal/navy */
  --bg-deep: #061a20;
  --sky-1: #0f3b57;
  --sky-2: #0a2a3d;
  --foam: rgba(255, 255, 255, 0.08);

  --panel: rgba(255, 255, 255, 0.94);
  /* “chart table” feel */
  --panel-edge: rgba(255, 255, 255, 0.55);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);

  --radius: 18px;
  --max: 1080px;

  --nav-h: 144px;
  --hero-pad: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  color: var(--bg-ocean);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  background:
    radial-gradient(
      1200px 800px at 40% -200px,
      rgba(255, 255, 255, 0.08),
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg-ocean) 0%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

/* ====== Frame ====== */
.frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ====== Top band (sky + nav) ====== */
.topband {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    180deg,
    rgba(120, 42, 61, 0.88),
    rgba(10, 42, 61, 0.62)
  );
  border-bottom: 0px solid rgba(255, 255, 255, 0.1);
}

.nav {
  position: relative;
  z-index: 1;
  min-height: var(--nav-h);
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  user-select: none;
}

.brand .mark {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;

  overflow: hidden;
}

.brand .name {
  font-weight: 650;
  letter-spacing: 0.2px;
  font-size: 24px;
  line-height: 1.1;
}

.brand .name small {
  display: block;
  font-weight: 520;
  letter-spacing: 0.3px;
  opacity: 0.72;
  margin-top: 3px;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.menu a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.menu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ====== Waves under logo ====== */
.waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  overflow: hidden;
  pointer-events: none;
}

.waves svg {
  position: absolute;
  inset: auto 0 0 0;
  width: 140%;
  left: -20%;
  height: 110px;
  transform: translateY(6px);
}

/* ====== Content panel ====== */
.content {
  flex: 1;
  position: relative;
  padding: 14px 18px 0;
}

.panel {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--panel-edge);
  overflow: hidden;
  position: relative;
}

/* Subtle “chart table” grid (low opacity) */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      to right,
      rgba(20, 21, 21, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(20, 21, 21, 0.05) 1px,
      transparent 1px
    );
  background-size: 64px 64px;
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.panel-inner {
  position: relative;
  padding: 34px 34px 30px;
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px 22px;
  }

  .brand .mark {
    width: 80px;
    height: 80px;
  }

  .brand .mark img {
    height: 80px;
    width: auto;
  }

  .panel-inner {
    padding: 26px 18px 22px;
  }

  .brand .name {
    display: none;
  }

  .menu {
    justify-content: center;
    gap: 4px 8px;
  }

  .menu a {
    padding: 10px 10px;
  }
}

@media (min-width: 721px) and (max-width: 1080px) {
  .brand .name {
    display: none;
  }
}

/* ====== About and Support pages ====== */
.page-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.6px;
}

.page-copy h2 {
  margin: 28px 0 12px;
  font-size: 20px;
}

.page-copy p,
.page-copy address {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
  line-height: 1.65;
}

.page-copy a {
  color: var(--bg-ocean);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* ====== Stagecraft feature ====== */
.stagecraft-feature {
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #0d0b10;
  box-shadow: 0 14px 32px rgba(13, 11, 16, 0.18);
}

.stagecraft-feature__link {
  display: block;
  padding: clamp(24px, 5vw, 48px);
  color: #f2ece2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.stagecraft-feature__link:hover {
  background: #151119;
}

.stagecraft-feature__link:focus-visible {
  outline: 2px solid #cdb99a;
  outline-offset: -6px;
}

.stagecraft-wordmark {
  /* Keep the optical spacing proportional at every wordmark size. */
  --sc-kern-s-t: -0.035em;
  --sc-kern-t-a: -0.02em;
  --sc-kern-a-g: -0.065em;
  --sc-kern-g-e: -0.04em;
  --sc-kern-e-c: -0.035em;
  --sc-kern-c-r: -0.02em;
  --sc-kern-r-a: -0.03em;
  --sc-kern-a-f: -0.035em;
  --sc-kern-f-t: -0.015em;
  --sc-initial-size: 105%;
  --sc-tm-size: 17.5%;
  --sc-tm-gap: 0.45em;
  --sc-tm-lift: -0.15em;

  margin: 0 0 18px;
  font-family:
    "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 9vw, 5.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.015em;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  white-space: nowrap;
}

.stagecraft-wordmark sup {
  position: relative;
  top: var(--sc-tm-lift);
  margin-inline-start: var(--sc-tm-gap);
  font-size: var(--sc-tm-size);
  line-height: 1;
  letter-spacing: 0;
  vertical-align: super;
}

.sc-wordmark__initial {
  font-size: var(--sc-initial-size);
}

.sc-wordmark__kern--st {
  margin-inline-start: var(--sc-kern-s-t);
}

.sc-wordmark__kern--ta {
  margin-inline-start: var(--sc-kern-t-a);
}

.sc-wordmark__kern--ag {
  margin-inline-start: var(--sc-kern-a-g);
}

.sc-wordmark__kern--ge {
  margin-inline-start: var(--sc-kern-g-e);
}

.sc-wordmark__kern--ec {
  margin-inline-start: var(--sc-kern-e-c);
}

.sc-wordmark__kern--cr {
  margin-inline-start: var(--sc-kern-c-r);
}

.sc-wordmark__kern--ra {
  margin-inline-start: var(--sc-kern-r-a);
}

.sc-wordmark__kern--af {
  margin-inline-start: var(--sc-kern-a-f);
}

.sc-wordmark__kern--ft {
  margin-inline-start: var(--sc-kern-f-t);
}

.stagecraft-teaser {
  margin: 0;
  color: #f2ece2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55;
}

.stagecraft-lights {
  margin: 10px 0 0;
  color: #cdb99a;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.stagecraft-feature .stagecraft-meta {
  justify-content: center;
  margin-top: 18px;
}

.stagecraft-feature .pill {
  border-color: rgba(242, 236, 226, 0.22);
  background: rgba(242, 236, 226, 0.08);
  color: #f2ece2;
}

/* ====== Hero ====== */
.hero {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 22px;
  padding: var(--hero-pad);
  border-radius: 14px;
  background:
    radial-gradient(
      900px 320px at 30% 10%,
      rgba(15, 59, 87, 0.13),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55),
      rgba(255, 255, 255, 0.2)
    );
  border: 1px solid rgba(20, 21, 21, 0.1);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.hero p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}

.kato-mark {
  display: grid;
  min-width: 0;
  place-items: center;
}

.kato-mark a {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.kato-mark img {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(8rem, 17vw, 11.5rem);
  object-fit: contain;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(20, 21, 21, 0.14);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.btn.primary {
  background: #102a33;
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn.primary:hover {
  filter: brightness(1.06);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.128);
}

.hero-card {
  border-radius: 14px;
  border: 1px solid rgba(20, 21, 21, 0.1);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.hero-card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: rgba(20, 21, 21, 0.128);
}

.hero-card p {
  margin: 0;
  font-size: 14px;
  color: rgba(20, 21, 21, 0.72);
  line-height: 1.4;
}

.hero-card .cta-row {
  margin-top: 8px;
}

.hero-card .meta {
  margin-top: 10px;
}

.mini-terminal {
  margin-top: 12px;
  border-radius: 12px;
  background: rgba(6, 26, 32, 0.92);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 12px;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.dotrow {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

/* ====== Product grid ====== */
.section {
  margin-top: 26px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card {
  grid-column: span 6;
  border-radius: 16px;
  border: 1px solid rgba(20, 21, 21, 0.1);
  background: rgba(255, 255, 255, 0.128);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

#semantic-flow {
  scroll-margin-top: calc(var(--nav-h) + 24px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
  background: #f4e9d8;
  grid-column: span 12;
}

.semantic-flow-mark {
  display: block;
  width: 100%;
  height: auto;
}

.semantic-flow-copy {
  min-width: 0;
}

.semantic-flow-copy .btn {
  width: max-content;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(20, 21, 21, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(20, 21, 21, 0.128);
}

.hero-card .pill,
#semantic-flow .pill,
.page-copy .pill {
  border-color: rgba(20, 21, 21, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(20, 21, 21, 0.76);
}

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

  .card {
    grid-column: span 12;
  }

  #semantic-flow {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  #semantic-flow {
    scroll-margin-top: 224px;
    grid-template-columns: 1fr;
  }

  .semantic-flow-mark {
    width: min(100%, 28rem);
    margin-inline: auto;
  }
}

/* ====== Bottom seabed band ====== */
.bottom {
  margin-top: 38px;
  padding: 0 18px 44px;
  position: relative;
}

.seabed {
  max-width: var(--max);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 22px;
}

.wordmark {
  font-size: 14px;
  letter-spacing: 0.5px;
  font-weight: 800;
  opacity: 0.92;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  opacity: 0.82;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
}

.footer-links a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.seabed-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  pointer-events: none;
  overflow: hidden;
}

.seabed-band svg {
  position: absolute;
  left: -15%;
  width: 130%;
  bottom: -8px;
  height: 240px;
  opacity: 0.95;
}

/* tiny util */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
